123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- var xR=Object.defineProperty;var AR=(e,t,n)=>t in e?xR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qt=(e,t,n)=>(AR(e,typeof t!="symbol"?t+"":t,n),n);import{h as Wn,y as Dr,r as Cr,j as fo,F as Hu,B as Ul,p as z,M as ge,N as ne,q as te,o as We,l as pe,V as Ze,a4 as we,a2 as js,k as W,T as $t,U as xr,ae as A3,$ as md,n as gl,t as de,W as Do,a6 as hn,a7 as Ou,A as OR,Z as _R,i as O3,af as gw,I as L_,H as kR,_ as TR,ag as Qn,m as j_,am as FR,aj as M_,an as Bv,ao as bo,ap as z_,a0 as BR,ad as PR,aq as IR,ar as V_,J as NR,ac as RR,O as LR,as as jR,at as MR,au as zR}from"./vue-a39e6937.js";import{o as VR,R as SS,T as HR,U as UR,V as WR,_ as Ro,g as el,W as zf,X as qR,d as H_,Y as yi,Z as vw,f as _3,z as Vf,$ as ug,a0 as GR,a1 as KR,a2 as Dm,x as YR,a3 as DS,j as XR,a4 as JR,a5 as ZR,a6 as QR}from"./index-ba596ae9.js";import{r as eL}from"./controllerUrls-941681c3.js";import{p as tL}from"./index-7e56a0fa.js";const nL={class:"icon-selector-box"},rL={class:"selector-header"},oL={class:"selector-title"},iL={class:"selector-tab"},aL=["title"],uL=["title"],sL=["title"],lL=["title"],cL={class:"selector-body"},fL={key:0},dL=["title","onClick"],pL={class:"icon-prepend"},hL={key:0,class:"name"},gL=Wn({__name:"iconSelector",props:{size:{default:"default"},disabled:{type:Boolean,default:!1},title:{default:""},type:{default:"ele"},placement:{default:"bottom"},modelValue:{default:""},showIconName:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,r=Dr(),o=Dr(),i=Cr({iconType:n.type,selectorWidth:0,popoverVisible:!1,inputFocus:!1,iconSelectorMouseover:!1,fontIconNames:[],inputValue:"",prependIcon:n.modelValue,defaultModelValue:n.modelValue||"el-icon-Minus",iconKey:0}),a=()=>{i.inputFocus=i.popoverVisible=!0},u=()=>{i.inputFocus=!1,i.popoverVisible=i.iconSelectorMouseover},s=()=>{i.iconKey++,i.prependIcon=i.defaultModelValue,i.inputValue="",t("update:modelValue",i.defaultModelValue),t("change",i.defaultModelValue)},l=g=>{i.iconType=g,i.fontIconNames=[],g=="ele"?SS().then(v=>{i.fontIconNames=v}):g=="awe"?HR().then(v=>{i.fontIconNames=v.map(h=>`fa ${h}`)}):g=="ali"?UR().then(v=>{i.fontIconNames=v.map(h=>`iconfont ${h}`)}):g=="local"&&WR().then(v=>{i.fontIconNames=v})},c=g=>{i.iconSelectorMouseover=i.popoverVisible=!1,i.iconKey++,i.prependIcon=g,i.inputValue="",t("update:modelValue",g),t("change",g),gl(()=>{r.value.blur()})},f=fo(()=>{if(!i.inputValue)return i.fontIconNames;let g=i.inputValue.trim().toLowerCase();return i.fontIconNames.filter(v=>{if(v.toLowerCase().indexOf(g)!==-1)return v})}),d=()=>{gl(()=>{i.selectorWidth=r.value.$el.offsetWidth<260?260:r.value.$el.offsetWidth})},p=()=>{i.popoverVisible=!!(i.inputFocus||i.iconSelectorMouseover)};return Hu(()=>n.modelValue,()=>{i.iconKey++,n.modelValue!=i.prependIcon&&(i.defaultModelValue=n.modelValue),n.modelValue==""&&(i.defaultModelValue="el-icon-Minus"),i.prependIcon=n.modelValue}),Ul(()=>{d(),VR(document,"click",p),SS().then(g=>{i.fontIconNames=g})}),(g,v)=>{const h=de("Icon"),y=de("el-scrollbar"),b=de("el-input"),m=de("el-popover");return z(),ge(m,{placement:e.placement,trigger:"focus","hide-after":0,width:i.selectorWidth,visible:i.popoverVisible},{reference:ne(()=>[te(b,{modelValue:i.inputValue,"onUpdate:modelValue":v[6]||(v[6]=$=>i.inputValue=$),size:e.size,disabled:e.disabled,placeholder:g.$t("search")+g.$t("utils.Icon"),ref_key:"selectorInput",ref:r,onFocus:a,onBlur:u,class:js("size-"+e.size)},{prepend:ne(()=>[We("div",pL,[(z(),ge(h,{key:"icon"+i.iconKey,name:i.prependIcon?i.prependIcon:i.defaultModelValue},null,8,["name"])),e.showIconName?(z(),pe("div",hL,Ze(i.prependIcon?i.prependIcon:i.defaultModelValue),1)):we("",!0)])]),append:ne(()=>[te(h,{onClick:s,name:"el-icon-RefreshRight"})]),_:1},8,["modelValue","size","disabled","placeholder","class"])]),default:ne(()=>[We("div",{onMouseover:v[4]||(v[4]=md($=>i.iconSelectorMouseover=!0,["stop"])),onMouseout:v[5]||(v[5]=md($=>i.iconSelectorMouseover=!1,["stop"])),class:"icon-selector"},[te(A3,{name:"el-zoom-in-center"},{default:ne(()=>[We("div",nL,[We("div",rL,[We("div",oL,Ze(e.title?e.title:g.$t("utils.Please select an icon")),1),We("div",iL,[We("span",{title:"Element Puls "+g.$t("utils.Icon"),onClick:v[0]||(v[0]=$=>l("ele")),class:js(i.iconType=="ele"?"active":"")},"ele",10,aL),We("span",{title:"Font Awesome "+g.$t("utils.Icon"),onClick:v[1]||(v[1]=$=>l("awe")),class:js(i.iconType=="awe"?"active":"")},"awe",10,uL),We("span",{title:g.$t("utils.Ali iconcont Icon"),onClick:v[2]||(v[2]=$=>l("ali")),class:js(i.iconType=="ali"?"active":"")},"ali",10,sL),We("span",{title:g.$t("utils.Local icon title"),onClick:v[3]||(v[3]=$=>l("local")),class:js(i.iconType=="local"?"active":"")},"local",10,lL)])]),We("div",cL,[te(y,{ref_key:"selectorScrollbarRef",ref:o},{default:ne(()=>[W(f).length>0?(z(),pe("div",fL,[(z(!0),pe($t,null,xr(W(f),($,E)=>(z(),pe("div",{class:"icon-selector-item",title:$,onClick:S=>c($),key:E},[te(h,{name:$},null,8,["name"])],8,dL))),128))])):we("",!0)]),_:1},512)])])]),_:1})],32)]),_:1},8,["placement","width","visible"])}}});const vL=Ro(gL,[["__scopeId","data-v-72558dee"]]),mL=["string","password","number","radio","checkbox","switch","textarea","array","datetime","year","date","time","select","selects","remoteSelect","editor","city","image","images","file","files","icon","color"],yL=Wn({__name:"array",props:{modelValue:{default:()=>[]}},setup(e){const t=e,n=Cr({value:t.modelValue}),r=()=>{n.value.push({key:"",value:""})},o=i=>{n.value.splice(i,1)};return Hu(()=>t.modelValue,i=>{n.value=i}),(i,a)=>{const u=de("el-col"),s=de("el-row"),l=de("el-input"),c=de("el-button"),f=Ou("blur");return z(),pe("div",null,[te(s,{gutter:10},{default:ne(()=>[te(u,{span:10,class:"ba-array-key"},{default:ne(()=>[Do("键名")]),_:1}),te(u,{span:10,class:"ba-array-value"},{default:ne(()=>[Do("键值")]),_:1})]),_:1}),(z(!0),pe($t,null,xr(n.value,(d,p)=>(z(),ge(s,{class:"ba-array-item",gutter:10,key:p},{default:ne(()=>[te(u,{span:10},{default:ne(()=>[te(l,{modelValue:d.key,"onUpdate:modelValue":g=>d.key=g},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),te(u,{span:10},{default:ne(()=>[te(l,{modelValue:d.value,"onUpdate:modelValue":g=>d.value=g},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),te(u,{span:4},{default:ne(()=>[te(c,{onClick:g=>o(p),size:"small",icon:"el-icon-Delete",circle:""},null,8,["onClick"])]),_:2},1024)]),_:2},1024))),128)),te(s,{gutter:10},{default:ne(()=>[te(u,{span:10,offset:10},{default:ne(()=>[hn((z(),ge(c,{class:"ba-add-array-item",onClick:r,icon:"el-icon-Plus"},{default:ne(()=>[Do("添加")]),_:1})),[[f]])]),_:1})]),_:1})])}}});const bL=Ro(yL,[["__scopeId","data-v-db2a0da1"]]),wL=Wn({__name:"remoteSelect",props:{pk:{default:"id"},field:{default:"name"},params:{default:()=>({})},multiple:{type:Boolean,default:!1},remoteUrl:{default:""},modelValue:{default:""},labelFormatter:null,tooltipParams:{default:()=>({})}},emits:["update:modelValue","row"],setup(e,{expose:t,emit:n}){const r=e,o=Dr(),i=Cr({primaryKey:r.pk,options:[],loading:!1,total:0,currentPage:1,pageSize:10,params:r.params,keyword:"",value:r.modelValue?r.modelValue:"",selectKey:el(),initializeData:!1,accidentBlur:!1});let a=null;const u=OR(),s=m=>{var $;if(n("update:modelValue",m),typeof(($=u==null?void 0:u.vnode.props)==null?void 0:$.onRow)=="function")if(typeof m=="number"||typeof m=="string"){const E=zf(i.options,r.pk,m.toString());n("row",E?gw(i.options[E]):{})}else{const E=[];for(const S in m){let x=zf(i.options,r.pk,m[S].toString());x&&E.push(gw(i.options[x]))}n("row",E)}},l=m=>{m||gl(()=>{var $;($=o.value)==null||$.blur()})},c=()=>{var m;((m=o.value)==null?void 0:m.query)!=i.keyword&&(i.keyword="",i.initializeData=!1,i.accidentBlur=!0),i.initializeData||p()},f=()=>{i.keyword="",i.initializeData=!1},d=m=>{i.keyword=m,p()},p=(m="")=>{i.loading=!0,i.params.page=i.currentPage,i.params.initKey=r.pk,i.params.initValue=m,qR(r.remoteUrl,i.keyword,i.params).then($=>{let E=!0,S=$.data.options?$.data.options:$.data.list;if(typeof r.labelFormatter=="function")for(const x in S)S[x][r.field]=r.labelFormatter(S[x],x);i.options=S,i.total=$.data.total??0,m&&(i.selectKey=el(),E=!1),i.loading=!1,i.initializeData=E,i.accidentBlur&&gl(()=>{var B;const x=(B=o.value)==null?void 0:B.$el.querySelector(".el-select__tags .el-select__input");x&&x.focus(),i.accidentBlur=!1})}).catch(()=>{i.loading=!1})},g=m=>{i.currentPage=m,p()},v=()=>{if(i.value){if(typeof i.value=="object")for(const m in i.value)i.value[m]=i.value[m].toString();else typeof i.value=="number"&&(i.value=i.value.toString());p(i.value)}};return Ul(()=>{if(r.pk.indexOf(".")>0){let m=r.pk.split(".");i.primaryKey=m[1]?m[1]:m[0]}v(),setTimeout(()=>{var m;window!=null&&window.IntersectionObserver&&(a=new IntersectionObserver($=>{var E;for(const S in $)$[S].isIntersecting||(E=o.value)==null||E.blur()}),a.observe((m=o.value)==null?void 0:m.$el))},500)}),_R(()=>{a==null||a.disconnect()}),Hu(()=>r.modelValue,m=>{String(i.value)!=String(m)&&(i.value=m||"",v())}),t({blur:()=>{var m;(m=o.value)==null||m.blur()},focus:()=>{var m;(m=o.value)==null||m.focus()},getSelectRef:()=>o.value}),(m,$)=>{const E=de("el-tooltip"),S=de("el-option"),x=de("el-pagination"),B=de("el-select");return z(),ge(B,{ref_key:"selectRef",ref:o,onFocus:c,class:"remote-select",loading:i.loading||i.accidentBlur,filterable:!0,remote:!0,clearable:"","remote-show-suffix":"","remote-method":d,modelValue:i.value,"onUpdate:modelValue":$[0]||($[0]=I=>i.value=I),onChange:s,multiple:e.multiple,key:i.selectKey,onClear:f,onVisibleChange:l},{default:ne(()=>[(z(!0),pe($t,null,xr(i.options,I=>(z(),ge(S,{class:"remote-select-option",label:I[e.field],value:I[i.primaryKey].toString(),key:I[i.primaryKey]},{default:ne(()=>[W(O3)(e.tooltipParams)?we("",!0):(z(),ge(E,{key:0,placement:"right",effect:"light"},{content:ne(()=>[(z(!0),pe($t,null,xr(e.tooltipParams,(H,G)=>(z(),pe("p",{key:G},Ze(G)+": "+Ze(I[H]),1))),128))]),default:ne(()=>[We("div",null,Ze(I[e.field]),1)]),_:2},1024))]),_:2},1032,["label","value"]))),128)),i.total?(z(),ge(x,{key:0,currentPage:i.currentPage,"page-size":i.pageSize,class:"select-pagination",layout:"->, prev, next",total:i.total,onCurrentChange:g},null,8,["currentPage","page-size","total"])):we("",!0)]),_:1},8,["loading","modelValue","multiple"])}}});const $L=Ro(wL,[["__scopeId","data-v-b0045602"]]);var Cm;if(typeof global>"u"){if("ActiveXObject"in window){var CS="抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器";CS+=`
- Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(CS)}xS(),AS()}else global&&(!((Cm=global.navigator)===null||Cm===void 0)&&Cm.userAgent.match("QQBrowser"))&&(xS(),AS());function xS(){typeof globalThis>"u"&&(window.globalThis=window)}function AS(){typeof AggregateError>"u"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof global=="object"){var EL=Object.getOwnPropertyDescriptor(global,"window");(!global.window||EL.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)}})}/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function OS(e){return Object.prototype.toString.call(e)==="[object Object]"}function xn(e){var t,n;return OS(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(OS(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function gn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];{var o=kL[e],i=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}}function _u(e){return!!e&&!!e[ir]}function ku(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===TL}(e)||Array.isArray(e)||!!e[NS]||!!e.constructor[NS]||k3(e)||T3(e))}function yd(e,t,n){n===void 0&&(n=!1),Wl(e)===0?(n?Object.keys:N3)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Wl(e){var t=e[ir];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:k3(e)?2:T3(e)?3:0}function mw(e,t){return Wl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function SL(e,t){return Wl(e)===2?e.get(t):e[t]}function U_(e,t,n){var r=Wl(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function DL(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function k3(e){return OL&&e instanceof Map}function T3(e){return _L&&e instanceof Set}function Xa(e){return e.o||e.t}function F3(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=FL(e);delete t[ir];for(var n=N3(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(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 B3(e,t){return t===void 0&&(t=!1),P3(e)||_u(e)||!ku(e)||(Wl(e)>1&&(e.set=e.add=e.clear=e.delete=CL),Object.freeze(e),t&&yd(e,function(n,r){return B3(r,!0)},!0)),e}function CL(){gn(2)}function P3(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ti(e){var t=BL[e];return t||gn(18,e),t}function _S(){return vl||gn(0),vl}function xm(e,t){t&&(ti("Patches"),e.u=[],e.s=[],e.v=t)}function Mg(e){yw(e),e.p.forEach(xL),e.p=null}function yw(e){e===vl&&(vl=e.l)}function kS(e){return vl={p:[],l:vl,h:e,m:!0,_:0}}function xL(e){var t=e[ir];t.i===0||t.i===1?t.j():t.O=!0}function Am(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ti("ES5").S(t,e,r),r?(n[ir].P&&(Mg(t),gn(4)),ku(e)&&(e=zg(t,e),t.l||Vg(t,e)),t.u&&ti("Patches").M(n[ir],e,t.u,t.s)):e=zg(t,n,[]),Mg(t),t.u&&t.v(t.u,t.s),e!==W_?e:void 0}function zg(e,t,n){if(P3(t))return t;var r=t[ir];if(!r)return yd(t,function(i,a){return TS(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Vg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=F3(r.k):r.o;yd(r.i===3?new Set(o):o,function(i,a){return TS(e,r,o,i,a,n)}),Vg(e,o,!1),n&&e.u&&ti("Patches").R(r,n,e.u,e.s)}return r.o}function TS(e,t,n,r,o,i){if(o===n&&gn(5),_u(o)){var a=zg(e,o,i&&t&&t.i!==3&&!mw(t.D,r)?i.concat(r):void 0);if(U_(n,r,a),!_u(a))return;e.m=!1}if(ku(o)&&!P3(o)){if(!e.h.F&&e._<1)return;zg(e,o),t&&t.A.l||Vg(e,o)}}function Vg(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&B3(t,n)}function Om(e,t){var n=e[ir];return(n?Xa(n):e)[t]}function FS(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 bw(e){e.P||(e.P=!0,e.l&&bw(e.l))}function _m(e){e.o||(e.o=F3(e.t))}function ww(e,t,n){var r=k3(t)?ti("MapSet").N(t,n):T3(t)?ti("MapSet").T(t,n):e.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:_S(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=sg;a&&(s=[u],l=lg);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,n):ti("ES5").J(t,n);return(n?n.A:_S()).p.push(r),r}function AL(e){return _u(e)||gn(22,e),function t(n){if(!ku(n))return n;var r,o=n[ir],i=Wl(n);if(o){if(!o.P&&(o.i<4||!ti("ES5").K(o)))return o.t;o.I=!0,r=BS(n,i),o.I=!1}else r=BS(n,i);return yd(r,function(a,u){o&&SL(o.t,a)===u||U_(r,a,t(u))}),i===3?new Set(r):r}(e)}function BS(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return F3(e)}var PS,vl,I3=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",OL=typeof Map<"u",_L=typeof Set<"u",IS=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",W_=I3?Symbol.for("immer-nothing"):((PS={})["immer-nothing"]=!0,PS),NS=I3?Symbol.for("immer-draftable"):"__$immer_draftable",ir=I3?Symbol.for("immer-state"):"__$immer_state",kL={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},TL=""+Object.prototype.constructor,N3=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,FL=Object.getOwnPropertyDescriptors||function(e){var t={};return N3(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},BL={},sg={get:function(e,t){if(t===ir)return e;var n=Xa(e);if(!mw(n,t))return function(o,i,a){var u,s=FS(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!ku(r)?r:r===Om(e.t,t)?(_m(e),e.o[t]=ww(e.A.h,r,e)):r},has:function(e,t){return t in Xa(e)},ownKeys:function(e){return Reflect.ownKeys(Xa(e))},set:function(e,t,n){var r=FS(Xa(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Om(Xa(e),t),i=o==null?void 0:o[ir];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(DL(n,o)&&(n!==void 0||mw(e.t,t)))return!0;_m(e),bw(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return Om(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,_m(e),bw(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Xa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){gn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){gn(12)}},lg={};yd(sg,function(e,t){lg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),lg.deleteProperty=function(e,t){return isNaN(parseInt(t))&&gn(13),sg.deleteProperty.call(this,e[0],t)},lg.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&gn(14),sg.set.call(this,e[0],t,n,e[0])};var PL=function(){function e(n){var r=this;this.g=IS,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(p){var g=this;p===void 0&&(p=u);for(var v=arguments.length,h=Array(v>1?v-1:0),y=1;y<v;y++)h[y-1]=arguments[y];return s.produce(p,function(b){var m;return(m=i).call.apply(m,[g,b].concat(h))})}}var l;if(typeof i!="function"&&gn(6),a!==void 0&&typeof a!="function"&&gn(7),ku(o)){var c=kS(r),f=ww(r,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Mg(c):yw(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return xm(c,a),Am(p,c)},function(p){throw Mg(c),p}):(xm(c,a),Am(l,c))}if(!o||typeof o!="object")return(l=i(o))===W_?void 0:(l===void 0&&(l=o),r.F&&B3(l,!0),l);gn(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return r.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){ku(n)||gn(8),_u(n)&&(n=AL(n));var r=kS(this),o=ww(this,n,void 0);return o[ir].C=!0,yw(r),o},t.finishDraft=function(n,r){var o=n&&n[ir];o&&o.C||gn(9),o.I&&gn(10);var i=o.A;return xm(i,r),Am(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!IS&&gn(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ti("Patches").$;return _u(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),ar=new PL,Pv=ar.produce;ar.produceWithPatches.bind(ar);ar.setAutoFreeze.bind(ar);ar.setUseProxies.bind(ar);ar.applyPatches.bind(ar);var RS=ar.createDraft.bind(ar),LS=ar.finishDraft.bind(ar);function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hg=new WeakMap,bc=new WeakMap,jS=new WeakMap,MS=new WeakMap,zS=new WeakMap,VS=new WeakMap;function HS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ah(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HS(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var IL=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of D.pathRefs(e))dj.transform(n,t);for(var r of D.pointRefs(e))pj.transform(r,t);for(var o of D.rangeRefs(e))vj.transform(o,t);var i=new Set,a=[],u=p=>{if(p){var g=p.join(",");i.has(g)||(i.add(g),a.push(p))}},s=Hg.get(e)||[],l=NL(t);for(var c of s){var f=P.transform(c,t);u(f)}for(var d of l)u(d);Hg.set(e,a),N.transform(e,t),e.operations.push(t),D.normalize(e),t.type==="set_selection"&&(e.marks=null),bc.get(e)||(bc.set(e,!0),Promise.resolve().then(()=>{bc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(L.isExpanded(r))N.setNodes(e,{[t]:n},{match:oe.isText,split:!0});else{var o=ah(ah({},D.marks(e)||{}),{},{[t]:n});e.marks=o,bc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&L.isCollapsed(n)&&N.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&L.isCollapsed(n)&&N.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&L.isExpanded(n)&&N.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?X.fragment(e,t):[]},insertBreak:()=>{N.splitNodes(e,{always:!0})},insertFragment:t=>{N.insertFragment(e,t)},insertNode:t=>{N.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=ah({text:t},r);N.insertNodes(e,o)}else N.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!oe.isText(n)){if(se.isElement(n)&&n.children.length===0){var o={text:""};N.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var i=D.isEditor(n)?!1:se.isElement(n)&&(e.isInline(n)||n.children.length===0||oe.isText(n.children[0])||e.isInline(n.children[0])),a=0,u=0;u<n.children.length;u++,a++){var s=X.get(e,r);if(!oe.isText(s)){var l=n.children[u],c=s.children[a-1],f=u===n.children.length-1,d=oe.isText(l)||se.isElement(l)&&e.isInline(l);if(d!==i)N.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(se.isElement(l)){if(e.isInline(l)){if(c==null||!oe.isText(c)){var p={text:""};N.insertNodes(e,p,{at:r.concat(a),voids:!0}),a++}else if(f){var g={text:""};N.insertNodes(e,g,{at:r.concat(a+1),voids:!0}),a++}}}else c!=null&&oe.isText(c)&&(oe.equals(l,c,{loose:!0})?(N.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(N.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(N.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},removeMark:t=>{var{selection:n}=e;if(n)if(L.isExpanded(n))N.unsetNodes(e,t,{match:oe.isText,split:!0});else{var r=ah({},D.marks(e)||{});delete r[t],e.marks=r,bc.get(e)||e.onChange()}}};return e},NL=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:t}=e;return P.levels(t)}case"insert_node":{var{node:n,path:r}=e,o=P.levels(r),i=oe.isText(n)?[]:Array.from(X.nodes(n),I=>{var[,H]=I;return r.concat(H)});return[...o,...i]}case"merge_node":{var{path:a}=e,u=P.ancestors(a),s=P.previous(a);return[...u,s]}case"move_node":{var{path:l,newPath:c}=e;if(P.equals(l,c))return[];var f=[],d=[];for(var p of P.ancestors(l)){var g=P.transform(p,e);f.push(g)}for(var v of P.ancestors(c)){var h=P.transform(v,e);d.push(h)}var y=d[d.length-1],b=c[c.length-1],m=y.concat(b);return[...f,...d,m]}case"remove_node":{var{path:$}=e,E=P.ancestors($);return[...E]}case"split_node":{var{path:S}=e,x=P.levels(S),B=P.next(S);return[...x,B]}default:return[]}};function RL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ii(e,t){if(e==null)return{};var n=RL(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var R3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?HL(t):t,i=Ae.None,a=Ae.None,u=0,s=null,l=null;for(var c of o){var f=c.codePointAt(0);if(!f)break;var d=tj(c,f);if([i,a]=r?[a,d]:[d,i],Gs(i,Ae.ZWJ)&&Gs(a,Ae.ExtPict)&&(r?s=US(t.substring(0,u)):s=US(t.substring(0,t.length-u)),!s)||Gs(i,Ae.RI)&&Gs(a,Ae.RI)&&(l!==null?l=!l:r?l=!0:l=aj(t.substring(0,t.length-u)),!l)||i!==Ae.None&&a!==Ae.None&&rj(i,a))break;u+=c.length}return u||1},LL=/\s/,jL=/[\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]/,ML=/['\u2018\u2019]/,zL=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var i=R3(t,n),[a,u]=L3(t,i,n);if(VL(a,u,n))o=!0,r+=i;else if(!o)r+=i;else break;t=u}return r},L3=(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)]},VL=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(LL.test(t))return!1;if(ML.test(t)){var o=R3(n,r),[i,a]=L3(n,o,r);if(e(i,a,r))return!0}return!jL.test(t)},HL=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(WL(o.charCodeAt(0))){var i=t.charAt(n-r-1);if(UL(i.charCodeAt(0))){yield i+o,r++;continue}}yield o}},UL=e=>e>=55296&&e<=56319,WL=e=>e>=56320&&e<=57343,Ae;(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"})(Ae||(Ae={}));var qL=/^(?:[\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])$/,GL=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,KL=/^(?:[\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])$/,YL=/^[\u1100-\u115F\uA960-\uA97C]$/,XL=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,JL=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ZL=/^[\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]$/,QL=/^[\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]$/,ej=/^(?:[\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])$/,tj=(e,t)=>{var n=Ae.Any;return e.search(qL)!==-1&&(n|=Ae.Extend),t===8205&&(n|=Ae.ZWJ),t>=127462&&t<=127487&&(n|=Ae.RI),e.search(GL)!==-1&&(n|=Ae.Prepend),e.search(KL)!==-1&&(n|=Ae.SpacingMark),e.search(YL)!==-1&&(n|=Ae.L),e.search(XL)!==-1&&(n|=Ae.V),e.search(JL)!==-1&&(n|=Ae.T),e.search(ZL)!==-1&&(n|=Ae.LV),e.search(QL)!==-1&&(n|=Ae.LVT),e.search(ej)!==-1&&(n|=Ae.ExtPict),n};function Gs(e,t){return(e&t)!==0}var nj=[[Ae.L,Ae.L|Ae.V|Ae.LV|Ae.LVT],[Ae.LV|Ae.V,Ae.V|Ae.T],[Ae.LVT|Ae.T,Ae.T],[Ae.Any,Ae.Extend|Ae.ZWJ],[Ae.Any,Ae.SpacingMark],[Ae.Prepend,Ae.Any],[Ae.ZWJ,Ae.ExtPict],[Ae.RI,Ae.RI]];function rj(e,t){return nj.findIndex(n=>Gs(e,n[0])&&Gs(t,n[1]))===-1}var oj=/(?:[\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$/,US=e=>e.search(oj)!==-1,ij=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,aj=e=>{var t=e.match(ij);if(t===null)return!1;var n=t[0].length/2;return n%2===1},WS=e=>xn(e)&&X.isNodeList(e.children)&&!D.isEditor(e),se={isAncestor(e){return xn(e)&&X.isNodeList(e.children)},isElement:WS,isElementList(e){return Array.isArray(e)&&e.every(t=>se.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return WS(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},uj=["text"],sj=["text"];function qS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function us(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var GS=new WeakMap,D={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=D.path(e,o),u=r==="lowest";for(var[s,l]of D.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!oe.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.point(e,t,{edge:"end"}),o=D.end(e,[]),i={anchor:r,focus:o},{distance:a=1}=n,u=0,s;for(var l of D.positions(e,us(us({},n),{},{at:i}))){if(u>a)break;u!==0&&(s=l),u++}return s},before(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.start(e,[]),o=D.point(e,t,{edge:"start"}),i={anchor:r,focus:o},{distance:a=1}=n,u=0,s;for(var l of D.positions(e,us(us({},n),{},{at:i,reverse:!0}))){if(u>a)break;u!==0&&(s=l),u++}return s},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges(e,t){return[D.start(e,t),D.end(e,t)]},end(e,t){return D.point(e,t,{edge:"end"})},first(e,t){var n=D.path(e,t,{edge:"start"});return D.node(e,n)},fragment(e,t){var n=D.range(e,t),r=X.fragment(e,n);return r},hasBlocks(e,t){return t.children.some(n=>D.isBlock(e,n))},hasInlines(e,t){return t.children.some(n=>oe.isText(n)||D.isInline(e,n))},hasTexts(e,t){return t.children.every(n=>oe.isText(n))},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){return se.isElement(t)&&!e.isInline(t)},isEditor(e){if(!xn(e))return!1;var t=GS.get(e);if(t!==void 0)return t;var n=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=="function"&&(e.marks===null||xn(e.marks))&&(e.selection===null||L.isRange(e.selection))&&X.isNodeList(e.children)&&qi.isOperationList(e.operations);return GS.set(e,n),n},isEnd(e,t,n){var r=D.end(e,n);return Be.equals(t,r)},isEdge(e,t,n){return D.isStart(e,t,n)||D.isEnd(e,t,n)},isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&oe.isText(r)&&r.text===""&&!e.isVoid(t)},isInline(e,t){return se.isElement(t)&&e.isInline(t)},isNormalizing(e){var t=jS.get(e);return t===void 0?!0:t},isStart(e,t,n){if(t.offset!==0)return!1;var r=D.start(e,n);return Be.equals(t,r)},isVoid(e,t){return se.isElement(t)&&e.isVoid(t)},last(e,t){var n=D.path(e,t,{edge:"end"});return D.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(e,t,n),o=X.leaf(e,r);return[o,r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),!!n){var a=[],u=D.path(e,n);for(var[s,l]of X.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&D.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(L.isExpanded(n)){var[r]=D.nodes(e,{match:oe.isText});if(r){var[o]=r,i=ii(o,uj);return i}else return{}}var{anchor:a}=n,{path:u}=a,[s]=D.leaf(e,u);if(a.offset===0){var l=D.previous(e,{at:u,match:oe.isText}),c=D.above(e,{match:v=>D.isBlock(e,v)});if(l&&c){var[f,d]=l,[,p]=c;P.isAncestor(p,d)&&(s=f)}}var g=ii(s,sj);return g},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=D.after(e,i,{voids:r});if(a){var[,u]=D.last(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(P.isPath(i)){var[l]=D.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(e,t,n),o=X.get(e,r);return[o,r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?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(lj.isSpan(n))s=n[0],l=n[1];else{var c=D.path(e,n,{edge:"start"}),f=D.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d=X.nodes(e,{reverse:i,from:s,to:l,pass:m=>{var[$]=m;return a?!1:D.isVoid(e,$)}}),p=[],g;for(var[v,h]of d){var y=g&&P.compare(h,g[1])===0;if(!(r==="highest"&&y)){if(!u(v,h)){if(o&&!y&&oe.isText(v))return;continue}if(r==="lowest"&&y){g=[v,h];continue}var b=r==="lowest"?g:[v,h];b&&(o?p.push(b):yield b),g=[v,h]}}r==="lowest"&&g&&(o?p.push(g):yield g),o&&(yield*p)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>Hg.get(i)||[];if(D.isNormalizing(e)){if(n){var o=Array.from(X.nodes(e),i=>{var[,a]=i;return a});Hg.set(e,o)}r(e).length!==0&&D.withoutNormalizing(e,()=>{for(var i of r(e))if(X.has(e,i)){var a=D.node(e,i),[u,s]=a;se.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=r(e).length*42,c=0;r(e).length!==0;){if(c>l)throw new Error(`
- Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
- `));var f=r(e).pop();if(X.has(e,f)){var d=D.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=D.path(e,t,n),o=P.parent(r),i=D.node(e,o);return i},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(P.isPath(t)){if(o==="start"){var[,i]=X.first(e,t);t=i}else if(o==="end"){var[,a]=X.last(e,t);t=a}}return L.isRange(t)&&(o==="start"?t=L.start(t):o==="end"?t=L.end(t):t=P.common(t.anchor.path,t.focus.path)),Be.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return X.has(e,t)},pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o,u=D.pathRefs(e);return u.delete(o),o.current=null,a}},i=D.pathRefs(e);return i.add(o),o},pathRefs(e){var t=MS.get(e);return t||(t=new Set,MS.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(P.isPath(t)){var o;if(r==="end"){var[,i]=X.last(e,t);o=i}else{var[,a]=X.first(e,t);o=a}var u=X.get(e,o);if(!oe.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:r==="end"?u.text.length:0}}if(L.isRange(t)){var[s,l]=L.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o,u=D.pointRefs(e);return u.delete(o),o.current=null,a}},i=D.pointRefs(e);return i.add(o),o},pointRefs(e){var t=zS.get(e);return t||(t=new Set,zS.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(!n)return;var a=D.range(e,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,g=0;for(var[v,h]of D.nodes(e,{at:n,reverse:o,voids:i})){if(se.isElement(v)){if(!i&&e.isVoid(v)){yield D.start(e,h);continue}if(e.isInline(v))continue;if(D.hasInlines(e,v)){var y=P.isAncestor(h,s.path)?s:D.end(e,h),b=P.isAncestor(h,u.path)?u:D.start(e,h);f=D.string(e,{anchor:b,focus:y},{voids:i}),c=!0}}if(oe.isText(v)){var m=P.equals(h,l.path);for(m?(p=o?l.offset:v.text.length-l.offset,g=l.offset):(p=v.text.length,g=o?p:0),(m||c||r==="offset")&&(yield{path:h,offset:g},c=!1);;){if(d===0){if(f==="")break;d=$(f,r,o),f=L3(f,d,o)[1]}if(g=o?g-d:g+d,p=p-d,p<0){d=-p;break}d=0,yield{path:h,offset:g}}}}function $(E,S,x){return S==="character"?R3(E,x):S==="word"?zL(E,x):S==="line"||S==="block"?E.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=D.before(e,i,{voids:r});if(a){var[,u]=D.first(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(P.isPath(i)){var[l]=D.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range(e,t,n){if(L.isRange(t)&&!n)return t;var r=D.start(e,t),o=D.end(e,n||t);return{anchor:r,focus:o}},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:a}=o,u=D.rangeRefs(e);return u.delete(o),o.current=null,a}},i=D.rangeRefs(e);return i.add(o),o},rangeRefs(e){var t=VS.get(e);return t||(t=new Set,VS.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){jS.set(e,t)},start(e,t){return D.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=D.range(e,t),[i,a]=L.edges(o),u="";for(var[s,l]of D.nodes(e,{at:o,match:oe.isText,voids:r})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(t);if(o.offset!==0||i.offset!==0||L.isCollapsed(t))return t;var a=D.above(e,{at:i,match:p=>D.isBlock(e,p)}),u=a?a[1]:[],s=D.start(e,[]),l={anchor:s,focus:i},c=!0;for(var[f,d]of D.nodes(e,{at:l,match:oe.isText,reverse:!0,voids:r})){if(c){c=!1;continue}if(f.text!==""||P.isBefore(d,u)){i={path:d,offset:f.text.length};break}}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(e,us(us({},t),{},{match:n=>D.isVoid(e,n)}))},withoutNormalizing(e,t){var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)}},lj={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(P.isPath)}},cj=["children"],fj=["text"],KS=new WeakMap,X={ancestor(e,t){var n=X.get(e,t);if(oe.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.ancestors(t,n)){var o=X.ancestor(e,r),i=[o,r];yield i}},child(e,t){if(oe.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)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&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=X.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=X.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=P.common(t,n),o=X.get(e,r);return[o,r]},descendant(e,t){var n=X.get(e,t);if(D.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&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of X.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of X.nodes(e,t))se.isElement(n)&&(yield[n,r])},extractProps(e){if(se.isAncestor(e)){var t=ii(e,cj);return t}else{var t=ii(e,fj);return t}},first(e,t){for(var n=t.slice(),r=X.get(e,n);r&&!(oe.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(oe.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Pv({children:e.children},r=>{var[o,i]=L.edges(t),a=X.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!L.includes(t,p)}});for(var[,u]of a){if(!L.includes(t,u)){var s=X.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,i.path)){var c=X.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(P.equals(u,o.path)){var f=X.leaf(r,u);f.text=f.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.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(oe.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return oe.isText(e)||se.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=KS.get(e);if(t!==void 0)return t;var n=e.every(r=>X.isNode(r));return KS.set(e,n),n},last(e,t){for(var n=t.slice(),r=X.get(e,n);r&&!(oe.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=X.get(e,t);if(!oe.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&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.levels(t,n)){var o=X.get(e,r);yield[o,r]}},matches(e,t){return se.isElement(e)&&se.isElementProps(t)&&se.matches(e,t)||oe.isText(e)&&oe.isTextProps(t)&&oe.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!(i&&(r?P.isBefore(u,i):P.isAfter(u,i)));){if(a.has(s)||(yield[s,u]),!a.has(s)&&!oe.isText(s)&&s.children.length!==0&&(n==null||n([s,u])===!1)){a.add(s);var l=r?s.children.length-1:0;P.isAncestor(u,o)&&(l=o[u.length]),u=u.concat(l),s=X.get(e,u);continue}if(u.length===0)break;if(!r){var c=P.next(u);if(X.has(e,c)){u=c,s=X.get(e,u);continue}}if(r&&u[u.length-1]!==0){var f=P.previous(u);u=f,s=X.get(e,u);continue}u=P.parent(u),s=X.get(e,u),a.add(s)}},parent(e,t){var n=P.parent(t),r=X.get(e,n);if(oe.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){return oe.isText(e)?e.text:e.children.map(X.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of X.nodes(e,t))oe.isText(n)&&(yield[n,r])}};function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qi={isNodeOperation(e){return qi.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!xn(e))return!1;switch(e.type){case"insert_node":return P.isPath(e.path)&&X.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&xn(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"remove_node":return P.isPath(e.path)&&X.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"set_node":return P.isPath(e.path)&&xn(e.properties)&&xn(e.newProperties);case"set_selection":return e.properties===null&&L.isRange(e.newProperties)||e.newProperties===null&&L.isRange(e.properties)||xn(e.properties)&&xn(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&xn(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>qi.isOperation(t))},isSelectionOperation(e){return qi.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return qi.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return yt(yt({},e),{},{type:"remove_node"});case"insert_text":return yt(yt({},e),{},{type:"remove_text"});case"merge_node":return yt(yt({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(P.equals(t,n))return e;if(P.isSibling(n,t))return yt(yt({},e),{},{path:t,newPath:n});var r=P.transform(n,e),o=P.transform(P.next(n),e);return yt(yt({},e),{},{path:r,newPath:o})}case"remove_node":return yt(yt({},e),{},{type:"insert_node"});case"remove_text":return yt(yt({},e),{},{type:"insert_text"});case"set_node":{var{properties:i,newProperties:a}=e;return yt(yt({},e),{},{properties:a,newProperties:i})}case"set_selection":{var{properties:u,newProperties:s}=e;return u==null?yt(yt({},e),{},{properties:s,newProperties:null}):s==null?yt(yt({},e),{},{properties:null,newProperties:u}):yt(yt({},e),{},{properties:s,newProperties:u})}case"split_node":return yt(yt({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=P.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],i=t[r];if(o!==i)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 P.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return P.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 P.equals(r,o)&&i<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return P.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&P.compare(e,t)===0},isBefore(e,t){return P.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&P.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&P.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&P.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&P.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],i=t[t.length-1];return o!==i&&P.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?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(e.length===0)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(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)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(!P.isAncestor(t,e)&&!P.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&&arguments[2]!==void 0?arguments[2]:{};return Pv(e,r=>{var{affinity:o="forward"}=n;if(!(!e||(e==null?void 0:e.length)===0)){if(r===null)return null;switch(t.type){case"insert_node":{var{path:i}=t;(P.equals(i,r)||P.endsBefore(i,r)||P.isAncestor(i,r))&&(r[i.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(P.equals(a,r)||P.isAncestor(a,r))return null;P.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:u,position:s}=t;P.equals(u,r)||P.endsBefore(u,r)?r[u.length-1]-=1:P.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(P.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(l,r)?r[l.length-1]+=1:P.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(P.equals(f,d))return;if(P.isAncestor(f,r)||P.equals(f,r)){var p=d.slice();return P.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}else P.isSibling(f,d)&&(P.isAncestor(d,r)||P.equals(d,r))?P.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:P.endsBefore(d,r)||P.equals(d,r)||P.isAncestor(d,r)?(P.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):P.endsBefore(f,r)&&(P.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1);break}}}})}},dj={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=P.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function XS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function JS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Be={compare(e,t){var n=P.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return Be.compare(e,t)===1},isBefore(e,t){return Be.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&P.equals(e.path,t.path)},isPoint(e){return xn(e)&&typeof e.offset=="number"&&P.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pv(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=P.transform(i,t,n);break}case"insert_text":{P.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break}case"merge_node":{P.equals(t.path,i)&&(r.offset+=t.position),r.path=P.transform(i,t,n);break}case"remove_text":{P.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;r.path=P.transform(i,t,n);break}case"split_node":{if(P.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=P.transform(i,t,JS(JS({},n),{},{affinity:"forward"})))}else r.path=P.transform(i,t,n);break}}})}},pj={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Be.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},hj=["anchor","focus"];function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var L={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return L.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=L.edges(e);return t},equals(e,t){return Be.equals(e.anchor,t.anchor)&&Be.equals(e.focus,t.focus)},includes(e,t){if(L.isRange(t)){if(L.includes(e,t.anchor)||L.includes(e,t.focus))return!0;var[n,r]=L.edges(e),[o,i]=L.edges(t);return Be.isBefore(n,o)&&Be.isAfter(r,i)}var[a,u]=L.edges(e),s=!1,l=!1;return Be.isPoint(t)?(s=Be.compare(t,a)>=0,l=Be.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=ii(e,hj),[r,o]=L.edges(e),[i,a]=L.edges(t),u=Be.isBefore(r,i)?i:r,s=Be.isBefore(o,a)?o:a;return Be.isBefore(s,u)?null:gj({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Be.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Be.equals(t,n)},isExpanded(e){return!L.isCollapsed(e)},isForward(e){return!L.isBackward(e)},isRange(e){return xn(e)&&Be.isPoint(e.anchor)&&Be.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=L.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pv(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,i,a;if(o==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(i="forward",a=u?i:"backward"):(i="backward",a=u?i:"forward")}else o==="outward"?L.isForward(r)?(i="backward",a="forward"):(i="forward",a="backward"):(i=o,a=o);var s=Be.transform(r.anchor,t,{affinity:i}),l=Be.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},vj={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=L.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},q_=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(xn(r)&&xn(o)){if(!q_(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(e[a]===void 0&&t[a]!==void 0)return!1;return!0},mj=["text"],yj=["anchor","focus"];function QS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oe={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){var a=ii(i,mj);return a}return q_(r?o(e):e,r?o(t):t)},isText(e){return xn(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>oe.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Go({},e)];for(var r of t){var o=ii(r,yj),[i,a]=L.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);continue}if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0){u.push(l);continue}var d=l,p=void 0,g=void 0;if(a.offset<s){var v=a.offset-f;g=Go(Go({},d),{},{text:d.text.slice(v)}),d=Go(Go({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var h=i.offset-f;p=Go(Go({},d),{},{text:d.text.slice(0,h)}),d=Go(Go({},d),{},{text:d.text.slice(h)})}Object.assign(d,o),p&&u.push(p),u.push(d),g&&u.push(g)}n=u}return n}};function eD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eD(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bj=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,i=X.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 L.points(t))t[s]=Be.transform(u,n);break}case"insert_text":{var{path:l,offset:c,text:f}=n;if(f.length===0)break;var d=X.leaf(e,l),p=d.text.slice(0,c),g=d.text.slice(c);if(d.text=p+f+g,t)for(var[v,h]of L.points(t))t[h]=Be.transform(v,n);break}case"merge_node":{var{path:y}=n,b=X.get(e,y),m=P.previous(y),$=X.get(e,m),E=X.parent(e,y),S=y[y.length-1];if(oe.isText(b)&&oe.isText($))$.text+=b.text;else if(!oe.isText(b)&&!oe.isText($))$.children.push(...b.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(b," ").concat($));if(E.children.splice(S,1),t)for(var[x,B]of L.points(t))t[B]=Be.transform(x,n);break}case"move_node":{var{path:I,newPath:H}=n;if(P.isAncestor(I,H))throw new Error("Cannot move a path [".concat(I,"] to new path [").concat(H,"] because the destination is inside itself."));var G=X.get(e,I),Y=X.parent(e,I),U=I[I.length-1];Y.children.splice(U,1);var ie=P.transform(I,n),re=X.get(e,P.parent(ie)),ae=ie[ie.length-1];if(re.children.splice(ae,0,G),t)for(var[me,De]of L.points(t))t[De]=Be.transform(me,n);break}case"remove_node":{var{path:$e}=n,le=$e[$e.length-1],Me=X.parent(e,$e);if(Me.children.splice(le,1),t)for(var[T,_]of L.points(t)){var F=Be.transform(T,n);if(t!=null&&F!=null)t[_]=F;else{var R=void 0,q=void 0;for(var[j,ue]of X.texts(e))if(P.compare(ue,$e)===-1)R=[j,ue];else{q=[j,ue];break}var be=!1;R&&q&&(P.equals(q[1],$e)?be=!P.hasPrevious(q[1]):be=P.common(R[1],$e).length<P.common(q[1],$e).length),R&&!be?(T.path=R[1],T.offset=R[0].text.length):q?(T.path=q[1],T.offset=0):t=null}}break}case"remove_text":{var{path:Pe,offset:Je,text:V}=n;if(V.length===0)break;var rt=X.leaf(e,Pe),ke=rt.text.slice(0,Je),ve=rt.text.slice(Je+V.length);if(rt.text=ke+ve,t)for(var[Te,qn]of L.points(t))t[qn]=Be.transform(Te,n);break}case"set_node":{var{path:st,properties:At,newProperties:Tt}=n;if(st.length===0)throw new Error("Cannot set properties on the root node!");var In=X.get(e,st);for(var Ft in Tt){if(Ft==="children"||Ft==="text")throw new Error('Cannot set the "'.concat(Ft,'" property of nodes!'));var pr=Tt[Ft];pr==null?delete In[Ft]:In[Ft]=pr}for(var Gn in At)Tt.hasOwnProperty(Gn)||delete In[Gn];break}case"set_selection":{var{newProperties:Nn}=n;if(Nn==null)t=Nn;else{if(t==null){if(!L.isRange(Nn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Nn)," when there is no current selection."));t=wc({},Nn)}for(var eo in Nn){var to=Nn[eo];if(to==null){if(eo==="anchor"||eo==="focus")throw new Error('Cannot remove the "'.concat(eo,'" selection property'));delete t[eo]}else t[eo]=to}}break}case"split_node":{var{path:Kn,position:no,properties:kn}=n;if(Kn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Kn,"] because the root node cannot be split."));var hr=X.get(e,Kn),es=X.parent(e,Kn),ac=Kn[Kn.length-1],zo;if(oe.isText(hr)){var pi=hr.text.slice(0,no),ts=hr.text.slice(no);hr.text=pi,zo=wc(wc({},kn),{},{text:ts})}else{var hi=hr.children.slice(0,no),Vo=hr.children.slice(no);hr.children=hi,zo=wc(wc({},kn),{},{children:Vo})}if(es.children.splice(ac+1,0,zo),t)for(var[Yn,gi]of L.points(t))t[gi]=Be.transform(Yn,n);break}}return t},wj={transform(e,t){e.children=RS(e.children);var n=e.selection&&RS(e.selection);try{n=bj(e,n,t)}finally{e.children=LS(e.children),n?e.selection=_u(n)?LS(n):n:e.selection=null}}},$j=["text"],Ej=["children"];function tD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Sj={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(X.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(e.selection?a=e.selection:e.children.length>0?a=D.end(e,[]):a=[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=D.unhangRange(e,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=D.pointRef(e,c);N.delete(e,{at:a}),a=f.unref()}if(Be.isPoint(a)){u==null&&(oe.isText(l)?u=S=>oe.isText(S):e.isInline(l)?u=S=>oe.isText(S)||D.isInline(e,S):u=S=>D.isBlock(e,S));var[d]=D.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(d){var[,p]=d,g=D.pathRef(e,p),v=D.isEnd(e,a,p);N.splitNodes(e,{at:a,match:u,mode:i,voids:o});var h=g.unref();a=v?P.next(h):h}else return}var y=P.parent(a),b=a[a.length-1];if(!(!o&&D.void(e,{at:y}))){for(var m of t){var $=y.concat(b);b++,e.apply({type:"insert_node",path:$,node:m}),a=P.next(a)}if(a=P.previous(a),s){var E=D.end(e,a);E&&N.select(e,E)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=P.isPath(n)?ss(e,n):m=>D.isBlock(e,m)),!!n){var a=D.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,m=>{var[,$]=m;return D.pathRef(e,$)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(e,P.parent(l)),[f,d]=c,p=l[l.length-1],{length:g}=f.children;if(g===1){var v=P.next(d);N.moveNodes(e,{at:l,to:v,voids:o}),N.removeNodes(e,{at:d,voids:o})}else if(p===0)N.moveNodes(e,{at:l,to:d,voids:o});else if(p===g-1){var h=P.next(d);N.moveNodes(e,{at:l,to:h,voids:o})}else{var y=P.next(l),b=P.next(d);N.splitNodes(e,{at:y,voids:o}),N.moveNodes(e,{at:l,to:b,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(P.isPath(r)){var[u]=D.parent(e,r);n=I=>u.children.includes(I)}else n=I=>D.isBlock(e,I);if(!o&&L.isRange(r)&&(r=D.unhangRange(e,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=D.pointRef(e,s);N.delete(e,{at:r}),r=l.unref(),t.at==null&&N.select(e,r)}var[c]=D.nodes(e,{at:r,match:n,voids:i,mode:a}),f=D.previous(e,{at:r,match:n,voids:i,mode:a});if(!(!c||!f)){var[d,p]=c,[g,v]=f;if(!(p.length===0||v.length===0)){var h=P.next(v),y=P.common(p,v),b=P.isSibling(p,v),m=Array.from(D.levels(e,{at:p}),I=>{var[H]=I;return H}).slice(y.length).slice(0,-1),$=D.above(e,{at:p,mode:"highest",match:I=>m.includes(I)&&G_(e,I)}),E=$&&D.pathRef(e,$[1]),S,x;if(oe.isText(d)&&oe.isText(g)){var B=ii(d,$j);x=g.text.length,S=B}else if(se.isElement(d)&&se.isElement(g)){var B=ii(d,Ej);x=g.children.length,S=B}else 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(g)));b||N.moveNodes(e,{at:p,to:h,voids:i}),E&&N.removeNodes(e,{at:E.current,voids:i}),se.isElement(g)&&D.isEmpty(e,g)||oe.isText(g)&&g.text===""&&v[v.length-1]!==0?N.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:h,position:x,properties:S}),E&&E.unref()}}}})},moveNodes(e,t){D.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=P.isPath(r)?ss(e,r):p=>D.isBlock(e,p));var u=D.pathRef(e,n),s=D.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,g]=p;return D.pathRef(e,g)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&P.isSibling(d,f)&&P.isAfter(d,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?ss(e,i):d=>D.isBlock(e,d)),!n&&L.isRange(i)&&(i=D.unhangRange(e,i));var u=D.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,d=>{var[,p]=d;return D.pathRef(e,p)});for(var l of s){var c=l.unref();if(c){var[f]=D.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.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(r==null&&(r=P.isPath(o)?ss(e,o):E=>D.isBlock(e,E)),!i&&L.isRange(o)&&(o=D.unhangRange(e,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&D.leaf(e,o.anchor)[0].text.length>0)return;var l=D.rangeRef(e,o,{affinity:"inward"}),[c,f]=L.edges(o),d=a==="lowest"?"lowest":"highest",p=D.isEnd(e,f,f.path);N.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var g=D.isStart(e,c,c.path);N.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!g}),o=l.unref(),n.at==null&&N.select(e,o)}for(var[v,h]of D.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},b={};if(h.length!==0){var m=!1;for(var $ in t)$==="children"||$==="text"||t[$]!==v[$]&&(m=!0,v.hasOwnProperty($)&&(y[$]=v[$]),t[$]!=null&&(b[$]=t[$]));m&&e.apply({type:"set_node",path:h,properties:y,newProperties:b})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=me=>D.isBlock(e,me)),L.isRange(i)&&(i=Dj(e,i)),P.isPath(i)){var s=i,l=D.point(e,s),[c]=D.parent(e,s);o=me=>me===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=D.pointRef(e,i,{affinity:"backward"}),[d]=D.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=D.void(e,{at:i,mode:"highest"}),g=0;if(!r&&p){var[v,h]=p;if(se.isElement(v)&&e.isInline(v)){var y=D.after(e,h);if(!y){var b={text:""},m=P.next(h);N.insertNodes(e,b,{at:m,voids:r}),y=D.point(e,m)}i=y,u=!0}var $=i.path.length-h.length;a=$+1,u=!0}var E=D.pointRef(e,i),S=i.path.length-a,[,x]=d,B=i.path.slice(0,S),I=a===0?i.offset:i.path[S]+g;for(var[H,G]of D.levels(e,{at:B,reverse:!0,voids:r})){var Y=!1;if(G.length<x.length||G.length===0||!r&&D.isVoid(e,H))break;var U=f.current,ie=D.isEnd(e,U,G);if(u||!f||!D.isEdge(e,U,G)){Y=!0;var re=X.extractProps(H);e.apply({type:"split_node",path:G,position:I,properties:re})}I=G[G.length-1]+(Y||ie?1:0)}if(t.at==null){var ae=E.current||D.end(e,[]);N.select(e,ae)}f.unref(),E.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;N.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?ss(e,i):d=>D.isBlock(e,d)),P.isPath(i)&&(i=D.range(e,i));var u=L.isRange(i)?D.rangeRef(e,i):null,s=D.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,d=>{var[,p]=d;return D.pathRef(e,p)}).reverse(),c=function(p){var g=p.unref(),[v]=D.node(e,g),h=D.range(e,g);r&&u&&(h=L.intersection(u.current,h)),N.liftNodes(e,{at:h,match:y=>se.isAncestor(v)&&v.children.includes(y),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(a==null&&(P.isPath(u)?a=ss(e,u):e.isInline(t)?a=h=>D.isInline(e,h)||oe.isText(h):a=h=>D.isBlock(e,h)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=D.rangeRef(e,u,{affinity:"inward"});N.splitNodes(e,{at:l,match:a,voids:i}),N.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(e,u)}var f=Array.from(D.nodes(e,{at:u,match:e.isInline(t)?h=>D.isBlock(e,h):h=>D.isEditor(h),mode:"lowest",voids:i}));for(var[,d]of f){var p=L.isRange(u)?L.intersection(u,D.range(e,d)):u;if(p){var g=Array.from(D.nodes(e,{at:p,match:a,mode:r,voids:i}));if(g.length>0){var v=function(){var[h]=g,y=g[g.length-1],[,b]=h,[,m]=y;if(b.length===0&&m.length===0)return"continue";var $=P.equals(b,m)?P.parent(b):P.common(b,m),E=D.range(e,b,m),S=D.node(e,$),[x]=S,B=$.length+1,I=P.next(m.slice(0,B)),H=nD(nD({},t),{},{children:[]});N.insertNodes(e,H,{at:I,voids:i}),N.moveNodes(e,{at:E,match:G=>se.isAncestor(x)&&x.children.includes(G),to:I.concat(0),voids:i})}();if(v==="continue")continue}}}}})}},G_=(e,t)=>{if(se.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?G_(e,n.children[0]):!1}else return!D.isEditor(t)},Dj=(e,t)=>{if(L.isCollapsed(t))return t.anchor;var[,n]=L.edges(t),r=D.pointRef(e,n);return N.delete(e,{at:t}),r.unref()},ss=(e,t)=>{var[n]=D.node(e,t);return r=>r===n};function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Cj={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")N.select(e,r.anchor);else if(n==="focus")N.select(e,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(e,o)}else if(n==="end"){var[,i]=L.edges(r);N.select(e,i)}}else return},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?D.before(e,u,l):D.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?D.before(e,s,l):D.after(e,s,l);d&&(c.focus=d)}N.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=D.range(e,t),n){N.setSelection(e,t);return}if(!L.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&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(e,{[o==="anchor"?"anchor":"focus"]:oD(oD({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!Be.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!Be.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&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})}}},xj={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.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(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Be.isPoint(a)){var s=D.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o},f=n?D.before(e,a,c)||D.start(e,[]):D.after(e,a,c)||D.end(e,[]);a={anchor:a,focus:f},u=!0}}if(P.isPath(a)){N.removeNodes(e,{at:a,voids:i});return}if(!L.isCollapsed(a)){if(!u){var[,d]=L.edges(a),p=D.end(e,[]);Be.equals(d,p)||(a=D.unhangRange(e,a,{voids:i}))}var[g,v]=L.edges(a),h=D.above(e,{match:be=>D.isBlock(e,be),at:g,voids:i}),y=D.above(e,{match:be=>D.isBlock(e,be),at:v,voids:i}),b=h&&y&&!P.equals(h[1],y[1]),m=P.equals(g.path,v.path),$=i?null:D.void(e,{at:g,mode:"highest"}),E=i?null:D.void(e,{at:v,mode:"highest"});if($){var S=D.before(e,g);S&&h&&P.isAncestor(h[1],S.path)&&(g=S)}if(E){var x=D.after(e,v);x&&y&&P.isAncestor(y[1],x.path)&&(v=x)}var B=[],I;for(var H of D.nodes(e,{at:a,voids:i})){var[G,Y]=H;I&&P.compare(Y,I)===0||(!i&&D.isVoid(e,G)||!P.isCommon(Y,g.path)&&!P.isCommon(Y,v.path))&&(B.push(H),I=Y)}var U=Array.from(B,be=>{var[,Pe]=be;return D.pathRef(e,Pe)}),ie=D.pointRef(e,g),re=D.pointRef(e,v);if(!m&&!$){var ae=ie.current,[me]=D.leaf(e,ae),{path:De}=ae,{offset:$e}=g,le=me.text.slice($e);le.length>0&&e.apply({type:"remove_text",path:De,offset:$e,text:le})}for(var Me of U){var T=Me.unref();N.removeNodes(e,{at:T,voids:i})}if(!E){var _=re.current,[F]=D.leaf(e,_),{path:R}=_,q=m?g.offset:0,j=F.text.slice(q,v.offset);j.length>0&&e.apply({type:"remove_text",path:R,offset:q,text:j})}!m&&b&&re.current&&ie.current&&N.mergeNodes(e,{at:re.current,hanging:!0,voids:i});var ue=n?ie.unref()||re.unref():re.unref()||ie.unref();t.at==null&&ue&&N.select(e,ue)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length){if(i)if(L.isRange(i))if(r||(i=D.unhangRange(e,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&D.void(e,{at:a}))return;var u=D.pointRef(e,a);N.delete(e,{at:i}),i=u.unref()}else P.isPath(i)&&(i=D.start(e,i));else return;if(!(!o&&D.void(e,{at:i}))){var s=D.above(e,{at:i,match:F=>D.isInline(e,F),mode:"highest",voids:o});if(s){var[,l]=s;if(D.isEnd(e,i,l)){var c=D.after(e,l);i=c}else if(D.isStart(e,i,l)){var f=D.before(e,l);i=f}}var d=D.above(e,{match:F=>D.isBlock(e,F),at:i,voids:o}),[,p]=d,g=D.isStart(e,i,p),v=D.isEnd(e,i,p),h=g&&v,y=!g||g&&v,b=!v,[,m]=X.first({children:t},[]),[,$]=X.last({children:t},[]),E=[],S=F=>{var[R,q]=F,j=q.length===0;return j?!1:h?!0:!(y&&P.isAncestor(q,m)&&se.isElement(R)&&!e.isVoid(R)&&!e.isInline(R)||b&&P.isAncestor(q,$)&&se.isElement(R)&&!e.isVoid(R)&&!e.isInline(R))};for(var x of X.nodes({children:t},{pass:S}))S(x)&&E.push(x);var B=[],I=[],H=[],G=!0,Y=!1;for(var[U]of E)se.isElement(U)&&!e.isInline(U)?(G=!1,Y=!0,I.push(U)):G?B.push(U):H.push(U);var[ie]=D.nodes(e,{at:i,match:F=>oe.isText(F)||D.isInline(e,F),mode:"highest",voids:o}),[,re]=ie,ae=D.isStart(e,i,re),me=D.isEnd(e,i,re),De=D.pathRef(e,v?P.next(p):p),$e=D.pathRef(e,me?P.next(re):re),le=D.pathRef(e,p);N.splitNodes(e,{at:i,match:F=>Y?D.isBlock(e,F):oe.isText(F)||D.isInline(e,F),mode:Y?"lowest":"highest",voids:o});var Me=D.pathRef(e,!ae||ae&&me?P.next(re):re);if(N.insertNodes(e,B,{at:Me.current,match:F=>oe.isText(F)||D.isInline(e,F),mode:"highest",voids:o}),h&&I.length&&N.delete(e,{at:le.unref(),voids:o}),N.insertNodes(e,I,{at:De.current,match:F=>D.isBlock(e,F),mode:"lowest",voids:o}),N.insertNodes(e,H,{at:$e.current,match:F=>oe.isText(F)||D.isInline(e,F),mode:"highest",voids:o}),!n.at){var T;H.length>0?T=P.previous($e.current):I.length>0?T=P.previous(De.current):T=P.previous(Me.current);var _=D.end(e,T);N.select(e,_)}Me.unref(),De.unref(),$e.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(P.isPath(o)&&(o=D.range(e,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&D.void(e,{at:i}))return;var a=D.pointRef(e,i);N.delete(e,{at:o,voids:r}),o=a.unref(),N.setSelection(e,{anchor:o,focus:o})}if(!(!r&&D.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 iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iD(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var N=uh(uh(uh(uh({},wj),Sj),Cj),xj),St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function j3(e){var t={exports:{}};return e(t,t.exports),t.exports}var K_=9007199254740991,Aj="[object Arguments]",Oj="[object Function]",_j="[object GeneratorFunction]",$w="[object Map]",kj="[object Object]",aD="[object Promise]",Ew="[object Set]",Tj="[object String]",uD="[object WeakMap]",sD="[object DataView]",Fj=/[\\^$.*+?()[\]{}|]/g,Bj=/^\[object .+?Constructor\]$/,Pj=/^(?:0|[1-9]\d*)$/,M3="\\ud800-\\udfff",Y_="\\u0300-\\u036f\\ufe20-\\ufe23",X_="\\u20d0-\\u20f0",J_="\\ufe0e\\ufe0f",Ij="["+M3+"]",Sw="["+Y_+X_+"]",Dw="\\ud83c[\\udffb-\\udfff]",Nj="(?:"+Sw+"|"+Dw+")",Z_="[^"+M3+"]",Q_="(?:\\ud83c[\\udde6-\\uddff]){2}",ek="[\\ud800-\\udbff][\\udc00-\\udfff]",tk="\\u200d",nk=Nj+"?",rk="["+J_+"]?",Rj="(?:"+tk+"(?:"+[Z_,Q_,ek].join("|")+")"+rk+nk+")*",Lj=rk+nk+Rj,jj="(?:"+[Z_+Sw+"?",Sw,Q_,ek,Ij].join("|")+")",Mj=RegExp(Dw+"(?="+Dw+")|"+jj+Lj,"g"),zj=RegExp("["+tk+M3+Y_+X_+J_+"]"),Vj=typeof St=="object"&&St&&St.Object===Object&&St,Hj=typeof self=="object"&&self&&self.Object===Object&&self,Uu=Vj||Hj||Function("return this")();function Uj(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Wj(e){return e.split("")}function qj(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gj(e,t){return Uj(t,function(n){return e[n]})}function Kj(e,t){return e==null?void 0:e[t]}function Yj(e){return zj.test(e)}function Xj(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Jj(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Zj(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Qj(e,t){return function(n){return e(t(n))}}function eM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function tM(e){return Yj(e)?nM(e):Wj(e)}function nM(e){return e.match(Mj)||[]}var rM=Function.prototype,Iv=Object.prototype,km=Uu["__core-js_shared__"],lD=function(){var e=/[^.]+$/.exec(km&&km.keys&&km.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ok=rM.toString,Nv=Iv.hasOwnProperty,cp=Iv.toString,oM=RegExp("^"+ok.call(Nv).replace(Fj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cD=Uu.Symbol,Tm=cD?cD.iterator:void 0,iM=Iv.propertyIsEnumerable,aM=Qj(Object.keys,Object),Cw=fp(Uu,"DataView"),xw=fp(Uu,"Map"),Aw=fp(Uu,"Promise"),Ow=fp(Uu,"Set"),_w=fp(Uu,"WeakMap"),uM=Wu(Cw),sM=Wu(xw),lM=Wu(Aw),cM=Wu(Ow),fM=Wu(_w);function dM(e,t){var n=ik(e)||wM(e)?qj(e.length,String):[],r=n.length,o=!!r;for(var i in e)(t||Nv.call(e,i))&&!(o&&(i=="length"||mM(i,r)))&&n.push(i);return n}function pM(e){return cp.call(e)}function hM(e){if(!uk(e)||yM(e))return!1;var t=ak(e)||Xj(e)?oM:Bj;return t.test(Wu(e))}function gM(e){if(!bM(e))return aM(e);var t=[];for(var n in Object(e))Nv.call(e,n)&&n!="constructor"&&t.push(n);return t}function vM(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function fp(e,t){var n=Kj(e,t);return hM(n)?n:void 0}var Ja=pM;(Cw&&Ja(new Cw(new ArrayBuffer(1)))!=sD||xw&&Ja(new xw)!=$w||Aw&&Ja(Aw.resolve())!=aD||Ow&&Ja(new Ow)!=Ew||_w&&Ja(new _w)!=uD)&&(Ja=function(e){var t=cp.call(e),n=t==kj?e.constructor:void 0,r=n?Wu(n):void 0;if(r)switch(r){case uM:return sD;case sM:return $w;case lM:return aD;case cM:return Ew;case fM:return uD}return t});function mM(e,t){return t=t??K_,!!t&&(typeof e=="number"||Pj.test(e))&&e>-1&&e%1==0&&e<t}function yM(e){return!!lD&&lD in e}function bM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Iv;return e===n}function Wu(e){if(e!=null){try{return ok.call(e)}catch{}try{return e+""}catch{}}return""}function wM(e){return $M(e)&&Nv.call(e,"callee")&&(!iM.call(e,"callee")||cp.call(e)==Aj)}var ik=Array.isArray;function z3(e){return e!=null&&EM(e.length)&&!ak(e)}function $M(e){return sk(e)&&z3(e)}function ak(e){var t=uk(e)?cp.call(e):"";return t==Oj||t==_j}function EM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=K_}function uk(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function sk(e){return!!e&&typeof e=="object"}function SM(e){return typeof e=="string"||!ik(e)&&sk(e)&&cp.call(e)==Tj}function DM(e){if(!e)return[];if(z3(e))return SM(e)?tM(e):vM(e);if(Tm&&e[Tm])return Jj(e[Tm]());var t=Ja(e),n=t==$w?Zj:t==Ew?eM:xM;return n(e)}function CM(e){return z3(e)?dM(e):gM(e)}function xM(e){return e?Gj(e,CM(e)):[]}var fD=DM;function dD(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function V3(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){typeof e[n]>"u"?e[n]=t[n]:dD(t[n])&&dD(e[n])&&Object.keys(t[n]).length>0&&V3(e[n],t[n])})}var lk={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 dp(){var e=typeof document<"u"?document:{};return V3(e,lk),e}var AM={document:lk,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 typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout>"u"||clearTimeout(e)}};function qu(){var e=typeof window<"u"?window:{};return V3(e,AM),e}function OM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function kw(e){return kw=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kw(e)}function Ug(e,t){return Ug=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Ug(e,t)}function _M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function cg(e,t,n){return _M()?cg=Reflect.construct:cg=function(o,i,a){var u=[null];u.push.apply(u,i);var s=Function.bind.apply(o,u),l=new s;return a&&Ug(l,a.prototype),l},cg.apply(null,arguments)}function kM(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Tw(e){var t=typeof Map=="function"?new Map:void 0;return Tw=function(r){if(r===null||!kM(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return cg(r,arguments,kw(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ug(o,r)},Tw(e)}function TM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FM(e){var t=e.__proto__;Object.defineProperty(e,"__proto__",{get:function(){return t},set:function(r){t.__proto__=r}})}var Gi=function(e){OM(t,e);function t(n){var r;return r=e.call.apply(e,[this].concat(n))||this,FM(TM(r)),r}return t}(Tw(Array));function Rv(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Rv(n)):t.push(n)}),t}function ck(e,t){return Array.prototype.filter.call(e,t)}function BM(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function PM(e){return e.toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function IM(e,t){if(typeof e!="string")return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}function O(e,t){var n=qu(),r=dp(),o=[];if(!t&&e instanceof Gi)return e;if(!e)return new Gi(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),(i.indexOf("<td")===0||i.indexOf("<th")===0)&&(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(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=IM(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Gi)return e;o=e}return new Gi(BM(o))}O.fn=Gi.prototype;function ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rv(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function yl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rv(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function bl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rv(t.map(function(o){return o.split(" ")}));return ck(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Oo(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)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 wl(){var e=this[0];if(e){var t={};if(e.dataset)for(var n in e.dataset)t[n]=e.dataset[n];else for(var r=0;r<e.attributes.length;r+=1){var o=e.attributes[r];o.name.indexOf("data-")>=0&&(t[PM(o.name.split("data-")[1])]=o.value)}for(var i in t)t[i]==="false"?t[i]=!1:t[i]==="true"?t[i]=!0:parseFloat(t[i])===t[i]*1&&(t[i]*=1);return t}}function _o(e){if(typeof e>"u"){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){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&&i.nodeName.toLowerCase()==="select")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 ko(){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];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);function u(v){var h=v.target;if(h){var y=v.target.dom7EventData||[];if(y.indexOf(v)<0&&y.unshift(v),O(h).is(o))i.apply(h,y);else for(var b=O(h).parents(),m=0;m<b.length;m+=1)O(b[m]).is(o)&&i.apply(b[m],y)}}function s(v){var h=v&&v.target?v.target.dom7EventData||[]:[];h.indexOf(v)<0&&h.unshift(v),i.apply(this,h)}for(var l=r.split(" "),c,f=0;f<this.length;f+=1){var d=this[f];if(o)for(c=0;c<l.length;c+=1){var g=l[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[g]||(d.dom7LiveListeners[g]=[]),d.dom7LiveListeners[g].push({listener:i,proxyListener:u}),d.addEventListener(g,u,a)}else for(c=0;c<l.length;c+=1){var p=l[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[p]||(d.dom7Listeners[p]=[]),d.dom7Listeners[p].push({listener:i,proxyListener:s}),d.addEventListener(p,s,a)}}return this}function pD(){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];typeof t[1]=="function"&&(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 g=d[p];i&&g.listener===i||i&&g.listener&&g.listener.dom7proxy&&g.listener.dom7proxy===i?(f.removeEventListener(l,g.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,g.proxyListener,a),d.splice(p,1))}}return this}function qg(){var e=qu();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Gg(){var e=qu();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function hD(){if(this.length>0){var e=qu(),t=dp(),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 $l(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Kg(){for(var e=qu(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Yg(e,t){var n=qu(),r;if(arguments.length===1)if(typeof e=="string"){if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}else{for(r=0;r<this.length;r+=1)for(var o in e)this[r].style[o]=e[o];return this}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function Xg(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function gD(e){var t=ck(this,e);return O(t)}function pa(e){if(typeof e>"u")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(typeof e>"u")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function vD(e){var t=qu(),n=dp(),r=this[0],o,i;if(!r||typeof e>"u")return!1;if(typeof e=="string"){if(r.matches)return r.matches(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);for(o=O(e),i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}if(e===n)return r===n;if(e===t)return r===t;if(e.nodeType||e instanceof Gi){for(o=e.nodeType?[e]:e,i=0;i<o.length;i+=1)if(o[i]===r)return!0;return!1}return!1}function To(){for(var e,t=dp(),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(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Gi)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function mD(e){var t=dp(),n,r;for(n=0;n<this.length;n+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(o.childNodes[r],this[n].childNodes[0])}else if(e instanceof Gi)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this}function Zg(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?O(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return O(t)}function Qg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?O(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return O(t)}function El(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 O(t)}function Sl(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||O(r[o]).is(e))&&t.push(r[o]);return O(t)}function Dl(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Cl(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){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}var NM="resize scroll".split(" ");function fk(e){function t(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(typeof r[0]>"u"){for(var i=0;i<this.length;i+=1)NM.indexOf(e)<0&&(e in this[i]?this[i][e]():O(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}return t}var yD=fk("click"),ha=fk("focus"),dk=9007199254740991,RM="[object Arguments]",LM="[object Function]",jM="[object GeneratorFunction]",MM=/^(?:0|[1-9]\d*)$/;function zM(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function VM(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function HM(e,t){return function(n){return e(t(n))}}var Lv=Object.prototype,H3=Lv.hasOwnProperty,pk=Lv.toString,UM=Lv.propertyIsEnumerable,WM=HM(Object.keys,Object);function qM(e,t){var n=hk(e)||nz(e)?VM(e.length,String):[],r=n.length,o=!!r;for(var i in e)(t||H3.call(e,i))&&!(o&&(i=="length"||QM(i,r)))&&n.push(i);return n}var GM=JM(YM),KM=ZM();function YM(e,t){return e&&KM(e,t,sz)}function XM(e){if(!ez(e))return WM(e);var t=[];for(var n in Object(e))H3.call(e,n)&&n!="constructor"&&t.push(n);return t}function JM(e,t){return function(n,r){if(n==null)return n;if(!U3(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}function ZM(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(n(i[s],s,i)===!1)break}return t}}function QM(e,t){return t=t??dk,!!t&&(typeof e=="number"||MM.test(e))&&e>-1&&e%1==0&&e<t}function ez(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lv;return e===n}function tz(e,t){var n=hk(e)?zM:GM;return n(e,typeof t=="function"?t:lz)}function nz(e){return rz(e)&&H3.call(e,"callee")&&(!UM.call(e,"callee")||pk.call(e)==RM)}var hk=Array.isArray;function U3(e){return e!=null&&iz(e.length)&&!oz(e)}function rz(e){return uz(e)&&U3(e)}function oz(e){var t=az(e)?pk.call(e):"";return t==LM||t==jM}function iz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dk}function az(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function uz(e){return!!e&&typeof e=="object"}function sz(e){return U3(e)?qM(e):XM(e)}function lz(e){return e}var W3=tz;{if(typeof navigator<"u"&&navigator.product==="ReactNative"&&typeof crypto>"u")throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if(typeof msCrypto<"u"&&typeof crypto>"u")throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if(typeof crypto>"u")throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.")}let gk=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};var vk="Expected a function",bD=0/0,cz="[object Symbol]",fz=/^\s+|\s+$/g,dz=/^[-+]0x[0-9a-f]+$/i,pz=/^0b[01]+$/i,hz=/^0o[0-7]+$/i,gz=parseInt,vz=typeof St=="object"&&St&&St.Object===Object&&St,mz=typeof self=="object"&&self&&self.Object===Object&&self,yz=vz||mz||Function("return this")(),bz=Object.prototype,wz=bz.toString,$z=Math.max,Ez=Math.min,Fm=function(){return yz.Date.now()};function Sz(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(vk);t=wD(t)||0,e0(n)&&(c=!!n.leading,f="maxWait"in n,i=f?$z(wD(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function p(S){var x=r,B=o;return r=o=void 0,l=S,a=e.apply(B,x),a}function g(S){return l=S,u=setTimeout(y,t),c?p(S):a}function v(S){var x=S-s,B=S-l,I=t-x;return f?Ez(I,i-B):I}function h(S){var x=S-s,B=S-l;return s===void 0||x>=t||x<0||f&&B>=i}function y(){var S=Fm();if(h(S))return b(S);u=setTimeout(y,v(S))}function b(S){return u=void 0,d&&r?p(S):(r=o=void 0,a)}function m(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0}function $(){return u===void 0?a:b(Fm())}function E(){var S=Fm(),x=h(S);if(r=arguments,o=this,s=S,x){if(u===void 0)return g(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return E.cancel=m,E.flush=$,E}function Dz(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(vk);return e0(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Sz(e,t,{leading:r,maxWait:t,trailing:o})}function e0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Cz(e){return!!e&&typeof e=="object"}function xz(e){return typeof e=="symbol"||Cz(e)&&wz.call(e)==cz}function wD(e){if(typeof e=="number")return e;if(xz(e))return bD;if(e0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=e0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(fz,"");var n=pz.test(e);return n||hz.test(e)?gz(e.slice(2),n?2:8):dz.test(e)?bD:+e}var Tu=Dz;function Az(e,t){return document.createElement(e,t)}function Oz(e,t,n){return document.createElementNS(e,t,n)}function _z(e){return document.createTextNode(e)}function kz(e){return document.createComment(e)}function Tz(e,t,n){e.insertBefore(t,n)}function Fz(e,t){e.removeChild(t)}function Bz(e,t){e.appendChild(t)}function Pz(e){return e.parentNode}function Iz(e){return e.nextSibling}function Nz(e){return e.tagName}function Rz(e,t){e.textContent=t}function Lz(e){return e.textContent}function jz(e){return e.nodeType===1}function Mz(e){return e.nodeType===3}function zz(e){return e.nodeType===8}const Vz={createElement:Az,createElementNS:Oz,createTextNode:_z,createComment:kz,insertBefore:Tz,removeChild:Fz,appendChild:Bz,parentNode:Pz,nextSibling:Iz,tagName:Nz,setTextContent:Rz,getTextContent:Lz,isElement:jz,isText:Mz,isComment:zz};function bd(e,t,n,r,o){const i=t===void 0?void 0:t.key;return{sel:e,data:t,children:n,text:r,elm:o,key:i}}const Fw=Array.isArray;function fg(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Bm(e){return e===void 0}function Xn(e){return e!==void 0}const $D=bd("",{},[],void 0,void 0);function $c(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function Hz(e){return e.sel!==void 0}function Uz(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const Wz=["create","update","remove","destroy","pre","post"];function qz(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t!==void 0?t:Vz;for(const d of Wz)for(const p of e){const g=p[d];g!==void 0&&n[d].push(g)}function o(d){const p=d.id?"#"+d.id:"",g=d.getAttribute("class"),v=g?"."+g.split(" ").join("."):"";return bd(r.tagName(d).toLowerCase()+p+v,{},[],void 0,d)}function i(d,p){return function(){if(--p===0){const v=r.parentNode(d);r.removeChild(v,d)}}}function a(d,p){var g,v;let h,y=d.data;if(y!==void 0){const $=(g=y.hook)===null||g===void 0?void 0:g.init;Xn($)&&($(d),y=d.data)}const b=d.children,m=d.sel;if(m==="!")Bm(d.text)&&(d.text=""),d.elm=r.createComment(d.text);else if(m!==void 0){const $=m.indexOf("#"),E=m.indexOf(".",$),S=$>0?$:m.length,x=E>0?E:m.length,B=$!==-1||E!==-1?m.slice(0,Math.min(S,x)):m,I=d.elm=Xn(y)&&Xn(h=y.ns)?r.createElementNS(h,B,y):r.createElement(B,y);for(S<x&&I.setAttribute("id",m.slice(S+1,x)),E>0&&I.setAttribute("class",m.slice(x+1).replace(/\./g," ")),h=0;h<n.create.length;++h)n.create[h]($D,d);if(Fw(b))for(h=0;h<b.length;++h){const G=b[h];G!=null&&r.appendChild(I,a(G,p))}else fg(d.text)&&r.appendChild(I,r.createTextNode(d.text));const H=d.data.hook;Xn(H)&&((v=H.create)===null||v===void 0||v.call(H,$D,d),H.insert&&p.push(d))}else d.elm=r.createTextNode(d.text);return d.elm}function u(d,p,g,v,h,y){for(;v<=h;++v){const b=g[v];b!=null&&r.insertBefore(d,a(b,y),p)}}function s(d){var p,g;const v=d.data;if(v!==void 0){(g=(p=v==null?void 0:v.hook)===null||p===void 0?void 0:p.destroy)===null||g===void 0||g.call(p,d);for(let h=0;h<n.destroy.length;++h)n.destroy[h](d);if(d.children!==void 0)for(let h=0;h<d.children.length;++h){const y=d.children[h];y!=null&&typeof y!="string"&&s(y)}}}function l(d,p,g,v){for(var h,y;g<=v;++g){let b,m;const $=p[g];if($!=null)if(Xn($.sel)){s($),b=n.remove.length+1,m=i($.elm,b);for(let S=0;S<n.remove.length;++S)n.remove[S]($,m);const E=(y=(h=$==null?void 0:$.data)===null||h===void 0?void 0:h.hook)===null||y===void 0?void 0:y.remove;Xn(E)?E($,m):m()}else r.removeChild(d,$.elm)}}function c(d,p,g,v){let h=0,y=0,b=p.length-1,m=p[0],$=p[b],E=g.length-1,S=g[0],x=g[E],B,I,H,G;for(;h<=b&&y<=E;)m==null?m=p[++h]:$==null?$=p[--b]:S==null?S=g[++y]:x==null?x=g[--E]:$c(m,S)?(f(m,S,v),m=p[++h],S=g[++y]):$c($,x)?(f($,x,v),$=p[--b],x=g[--E]):$c(m,x)?(f(m,x,v),r.insertBefore(d,m.elm,r.nextSibling($.elm)),m=p[++h],x=g[--E]):$c($,S)?(f($,S,v),r.insertBefore(d,$.elm,m.elm),$=p[--b],S=g[++y]):(B===void 0&&(B=Uz(p,h,b)),I=B[S.key],Bm(I)?r.insertBefore(d,a(S,v),m.elm):(H=p[I],H.sel!==S.sel?r.insertBefore(d,a(S,v),m.elm):(f(H,S,v),p[I]=void 0,r.insertBefore(d,H.elm,m.elm))),S=g[++y]);(h<=b||y<=E)&&(h>b?(G=g[E+1]==null?null:g[E+1].elm,u(d,G,g,y,E,v)):l(d,p,h,b))}function f(d,p,g){var v,h,y,b,m;const $=(v=p.data)===null||v===void 0?void 0:v.hook;(h=$==null?void 0:$.prepatch)===null||h===void 0||h.call($,d,p);const E=p.elm=d.elm,S=d.children,x=p.children;if(d!==p){if(p.data!==void 0){for(let B=0;B<n.update.length;++B)n.update[B](d,p);(b=(y=p.data.hook)===null||y===void 0?void 0:y.update)===null||b===void 0||b.call(y,d,p)}Bm(p.text)?Xn(S)&&Xn(x)?S!==x&&c(E,S,x,g):Xn(x)?(Xn(d.text)&&r.setTextContent(E,""),u(E,null,x,0,x.length-1,g)):Xn(S)?l(E,S,0,S.length-1):Xn(d.text)&&r.setTextContent(E,""):d.text!==p.text&&(Xn(S)&&l(E,S,0,S.length-1),r.setTextContent(E,p.text)),(m=$==null?void 0:$.postpatch)===null||m===void 0||m.call($,d,p)}}return function(p,g){let v,h,y;const b=[];for(v=0;v<n.pre.length;++v)n.pre[v]();for(Hz(p)||(p=o(p)),$c(p,g)?f(p,g,b):(h=p.elm,y=r.parentNode(h),a(g,b),y!==null&&(r.insertBefore(y,g.elm,r.nextSibling(h)),l(y,[p],0,0))),v=0;v<b.length;++v)b[v].data.hook.insert(b[v]);for(v=0;v<n.post.length;++v)n.post[v]();return g}}function mk(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&mk(o,t[r].children,t[r].sel)}}function xl(e,t,n){let r={},o,i,a;if(n!==void 0?(t!==null&&(r=t),Fw(n)?o=n:fg(n)?i=n.toString():n&&n.sel&&(o=[n])):t!=null&&(Fw(t)?o=t:fg(t)?i=t.toString():t&&t.sel?o=[t]:r=t),o!==void 0)for(a=0;a<o.length;++a)fg(o[a])&&(o[a]=bd(void 0,void 0,void 0,o[a],void 0));return e[0]==="s"&&e[1]==="v"&&e[2]==="g"&&(e.length===3||e[3]==="."||e[3]==="#")&&mk(r,o,e),bd(e,r,o,i,void 0)}function ED(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if(!(!i&&!a)&&i!==a){i=i||{},a=a||{};for(r in 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 Gz={create:ED,update:ED},SD=/[A-Z]/g;function DD(e,t){const n=t.elm;let r=e.data.dataset,o=t.data.dataset,i;if(!r&&!o||r===o)return;r=r||{},o=o||{};const a=n.dataset;for(i in r)o[i]||(a?i in a&&delete a[i]:n.removeAttribute("data-"+i.replace(SD,"-$&").toLowerCase()));for(i in o)r[i]!==o[i]&&(a?a[i]=o[i]:n.setAttribute("data-"+i.replace(SD,"-$&").toLowerCase(),o[i]))}const Kz={create:DD,update:DD};function yk(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)yk(e[r],t,n)}function Yz(e,t){const n=e.type,r=t.data.on;r&&r[n]&&yk(r[n],t,e)}function Xz(){return function e(t){Yz(t,e.vnode)}}function Pm(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 s=t.listener=e.listener||Xz();if(s.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Jz={create:Pm,update:Pm,destroy:Pm};function CD(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if(!(!a&&!u)&&a!==u){a=a||{},u=u||{};for(n in u)r=u[n],o=a[n],o!==r&&(n!=="value"||i[n]!==r)&&(i[n]=r)}}const Zz={create:CD,update:CD},xD=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout,Qz=function(e){xD(function(){xD(e)})};let Bw=!1;function eV(e,t,n){Qz(function(){e[t]=n})}function AD(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||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],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],(!u||n!==i.delayed[s])&&eV(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}function tV(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]}function nV(e,t){const n=e.data.style;if(!n||!n.remove){t();return}Bw||(e.elm.offsetLeft,Bw=!0);let r;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 c=getComputedStyle(o)["transition-property"].split(", ");for(;i<c.length;++i)s.indexOf(c[i])!==-1&&u++;o.addEventListener("transitionend",function(f){f.target===o&&--u,u===0&&t()})}function rV(){Bw=!1}const oV={pre:rV,create:AD,update:AD,destroy:tV,remove:nV};function bk(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?bk(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(bd(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ce(e,t,...n){const r=bk(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?xl(e,t,r[0].text):xl(e,t,r)}(function(e){})(Ce||(Ce={}));var iV=1/0,aV="[object Symbol]",uV=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jv="\\ud800-\\udfff",wk="\\u0300-\\u036f\\ufe20-\\ufe23",$k="\\u20d0-\\u20f0",Ek="\\u2700-\\u27bf",Sk="a-z\\xdf-\\xf6\\xf8-\\xff",lV="\\xac\\xb1\\xd7\\xf7",cV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fV="\\u2000-\\u206f",dV=" \\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",Dk="A-Z\\xc0-\\xd6\\xd8-\\xde",Ck="\\ufe0e\\ufe0f",xk=lV+cV+fV+dV,q3="['’]",pV="["+jv+"]",OD="["+xk+"]",t0="["+wk+$k+"]",Ak="\\d+",hV="["+Ek+"]",Ok="["+Sk+"]",_k="[^"+jv+xk+Ak+Ek+Sk+Dk+"]",Pw="\\ud83c[\\udffb-\\udfff]",gV="(?:"+t0+"|"+Pw+")",kk="[^"+jv+"]",G3="(?:\\ud83c[\\udde6-\\uddff]){2}",K3="[\\ud800-\\udbff][\\udc00-\\udfff]",Ms="["+Dk+"]",Tk="\\u200d",_D="(?:"+Ok+"|"+_k+")",vV="(?:"+Ms+"|"+_k+")",kD="(?:"+q3+"(?:d|ll|m|re|s|t|ve))?",TD="(?:"+q3+"(?:D|LL|M|RE|S|T|VE))?",Fk=gV+"?",Bk="["+Ck+"]?",mV="(?:"+Tk+"(?:"+[kk,G3,K3].join("|")+")"+Bk+Fk+")*",Pk=Bk+Fk+mV,yV="(?:"+[hV,G3,K3].join("|")+")"+Pk,bV="(?:"+[kk+t0+"?",t0,G3,K3,pV].join("|")+")",wV=RegExp(q3,"g"),$V=RegExp(t0,"g"),EV=RegExp(Pw+"(?="+Pw+")|"+bV+Pk,"g"),SV=RegExp([Ms+"?"+Ok+"+"+kD+"(?="+[OD,Ms,"$"].join("|")+")",vV+"+"+TD+"(?="+[OD,Ms+_D,"$"].join("|")+")",Ms+"?"+_D+"+"+kD,Ms+"+"+TD,Ak,yV].join("|"),"g"),DV=RegExp("["+Tk+jv+wk+$k+Ck+"]"),CV=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xV={À:"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"},AV=typeof St=="object"&&St&&St.Object===Object&&St,OV=typeof self=="object"&&self&&self.Object===Object&&self,_V=AV||OV||Function("return this")();function kV(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 TV(e){return e.split("")}function FV(e){return e.match(uV)||[]}function BV(e){return function(t){return e==null?void 0:e[t]}}var PV=BV(xV);function Ik(e){return DV.test(e)}function IV(e){return CV.test(e)}function NV(e){return Ik(e)?RV(e):TV(e)}function RV(e){return e.match(EV)||[]}function LV(e){return e.match(SV)||[]}var jV=Object.prototype,MV=jV.toString,FD=_V.Symbol,BD=FD?FD.prototype:void 0,PD=BD?BD.toString:void 0;function zV(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,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}function VV(e){if(typeof e=="string")return e;if(GV(e))return PD?PD.call(e):"";var t=e+"";return t=="0"&&1/e==-iV?"-0":t}function HV(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:zV(e,t,n)}function UV(e){return function(t){t=Mv(t);var n=Ik(t)?NV(t):void 0,r=n?n[0]:t.charAt(0),o=n?HV(n,1).join(""):t.slice(1);return r[e]()+o}}function WV(e){return function(t){return kV(ZV(XV(t).replace(wV,"")),e,"")}}function qV(e){return!!e&&typeof e=="object"}function GV(e){return typeof e=="symbol"||qV(e)&&MV.call(e)==aV}function Mv(e){return e==null?"":VV(e)}var KV=WV(function(e,t,n){return t=t.toLowerCase(),e+(n?YV(t):t)});function YV(e){return JV(Mv(e).toLowerCase())}function XV(e){return e=Mv(e),e&&e.replace(sV,PV).replace($V,"")}var JV=UV("toUpperCase");function ZV(e,t,n){return e=Mv(e),t=n?void 0:t,t===void 0?IV(e)?LV(e):FV(e):e.match(t)||[]}var QV=KV,eH=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Im={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Nk={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:eH?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Y3={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};for(var sh=1;sh<20;sh++)Y3["f"+sh]=111+sh;function Rk(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return nH(a,t)}),o=function(u){return r.some(function(s){return rH(s,u)})},i=n==null?o:o(n);return i}function tH(e,t){return Rk(e,{byKey:!0},t)}function nH(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var a in Im)r[Im[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c=o[Symbol.iterator](),f;!(u=(f=c.next()).done);u=!0){var d=f.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var g=Lk(d),v=Im[g];if(d.length>1&&!v&&!Nk[d]&&!Y3[g])throw new TypeError('Unknown modifier: "'+d+'"');(i===1||!v)&&(n?r.key=g:r.which=oH(d)),v&&(r[v]=p?null:!0)}}catch(h){s=!0,l=h}finally{try{!u&&c.return&&c.return()}finally{if(s)throw l}}return r}function rH(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function oH(e){e=Lk(e);var t=Y3[e]||e.toUpperCase().charCodeAt(0);return t}function Lk(e){return e=e.toLowerCase(),e=Nk[e]||e,e}var iH=Rk,Nm=tH,aH="Expected a function",ID=0/0,uH="[object Symbol]",sH=/^\s+|\s+$/g,lH=/^[-+]0x[0-9a-f]+$/i,cH=/^0b[01]+$/i,fH=/^0o[0-7]+$/i,dH=parseInt,pH=typeof St=="object"&&St&&St.Object===Object&&St,hH=typeof self=="object"&&self&&self.Object===Object&&self,gH=pH||hH||Function("return this")(),vH=Object.prototype,mH=vH.toString,yH=Math.max,bH=Math.min,Rm=function(){return gH.Date.now()};function wH(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(aH);t=ND(t)||0,Iw(n)&&(c=!!n.leading,f="maxWait"in n,i=f?yH(ND(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function p(S){var x=r,B=o;return r=o=void 0,l=S,a=e.apply(B,x),a}function g(S){return l=S,u=setTimeout(y,t),c?p(S):a}function v(S){var x=S-s,B=S-l,I=t-x;return f?bH(I,i-B):I}function h(S){var x=S-s,B=S-l;return s===void 0||x>=t||x<0||f&&B>=i}function y(){var S=Rm();if(h(S))return b(S);u=setTimeout(y,v(S))}function b(S){return u=void 0,d&&r?p(S):(r=o=void 0,a)}function m(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0}function $(){return u===void 0?a:b(Rm())}function E(){var S=Rm(),x=h(S);if(r=arguments,o=this,s=S,x){if(u===void 0)return g(s);if(f)return u=setTimeout(y,t),p(s)}return u===void 0&&(u=setTimeout(y,t)),a}return E.cancel=m,E.flush=$,E}function Iw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $H(e){return!!e&&typeof e=="object"}function EH(e){return typeof e=="symbol"||$H(e)&&mH.call(e)==uH}function ND(e){if(typeof e=="number")return e;if(EH(e))return ID;if(Iw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Iw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(sH,"");var n=cH.test(e);return n||fH.test(e)?dH(e.slice(2),n?2:8):lH.test(e)?ID:+e}var jk=wH,Mk=j3(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object GeneratorFunction]",d="[object Map]",p="[object Number]",g="[object Object]",v="[object Promise]",h="[object RegExp]",y="[object Set]",b="[object String]",m="[object Symbol]",$="[object WeakMap]",E="[object ArrayBuffer]",S="[object DataView]",x="[object Float32Array]",B="[object Float64Array]",I="[object Int8Array]",H="[object Int16Array]",G="[object Int32Array]",Y="[object Uint8Array]",U="[object Uint8ClampedArray]",ie="[object Uint16Array]",re="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,me=/\w*$/,De=/^\[object .+?Constructor\]$/,$e=/^(?:0|[1-9]\d*)$/,le={};le[i]=le[a]=le[E]=le[S]=le[u]=le[s]=le[x]=le[B]=le[I]=le[H]=le[G]=le[d]=le[p]=le[g]=le[h]=le[y]=le[b]=le[m]=le[Y]=le[U]=le[ie]=le[re]=!0,le[l]=le[c]=le[$]=!1;var Me=typeof St=="object"&&St&&St.Object===Object&&St,T=typeof self=="object"&&self&&self.Object===Object&&self,_=Me||T||Function("return this")(),F=t&&!t.nodeType&&t,R=F&&!0&&e&&!e.nodeType&&e,q=R&&R.exports===F;function j(w,C){return w.set(C[0],C[1]),w}function ue(w,C){return w.add(C),w}function be(w,C){for(var k=-1,M=w?w.length:0;++k<M&&C(w[k],k,w)!==!1;);return w}function Pe(w,C){for(var k=-1,M=C.length,_e=w.length;++k<M;)w[_e+k]=C[k];return w}function Je(w,C,k,M){var _e=-1,he=w?w.length:0;for(M&&he&&(k=w[++_e]);++_e<he;)k=C(k,w[_e],_e,w);return k}function V(w,C){for(var k=-1,M=Array(w);++k<w;)M[k]=C(k);return M}function rt(w,C){return w==null?void 0:w[C]}function ke(w){var C=!1;if(w!=null&&typeof w.toString!="function")try{C=!!(w+"")}catch{}return C}function ve(w){var C=-1,k=Array(w.size);return w.forEach(function(M,_e){k[++C]=[_e,M]}),k}function Te(w,C){return function(k){return w(C(k))}}function qn(w){var C=-1,k=Array(w.size);return w.forEach(function(M){k[++C]=M}),k}var st=Array.prototype,At=Function.prototype,Tt=Object.prototype,In=_["__core-js_shared__"],Ft=function(){var w=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||"");return w?"Symbol(src)_1."+w:""}(),pr=At.toString,Gn=Tt.hasOwnProperty,Nn=Tt.toString,eo=RegExp("^"+pr.call(Gn).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),to=q?_.Buffer:void 0,Kn=_.Symbol,no=_.Uint8Array,kn=Te(Object.getPrototypeOf,Object),hr=Object.create,es=Tt.propertyIsEnumerable,ac=st.splice,zo=Object.getOwnPropertySymbols,pi=to?to.isBuffer:void 0,ts=Te(Object.keys,Object),hi=Lr(_,"DataView"),Vo=Lr(_,"Map"),Yn=Lr(_,"Promise"),gi=Lr(_,"Set"),uc=Lr(_,"WeakMap"),Fa=Lr(Object,"create"),sc=Tn(hi),Ba=Tn(Vo),lc=Tn(Yn),cc=Tn(gi),fc=Tn(uc),vi=Kn?Kn.prototype:void 0,Gp=vi?vi.valueOf:void 0;function Ho(w){var C=-1,k=w?w.length:0;for(this.clear();++C<k;){var M=w[C];this.set(M[0],M[1])}}function z1(){this.__data__=Fa?Fa(null):{}}function V1(w){return this.has(w)&&delete this.__data__[w]}function H1(w){var C=this.__data__;if(Fa){var k=C[w];return k===r?void 0:k}return Gn.call(C,w)?C[w]:void 0}function Kp(w){var C=this.__data__;return Fa?C[w]!==void 0:Gn.call(C,w)}function dc(w,C){var k=this.__data__;return k[w]=Fa&&C===void 0?r:C,this}Ho.prototype.clear=z1,Ho.prototype.delete=V1,Ho.prototype.get=H1,Ho.prototype.has=Kp,Ho.prototype.set=dc;function cn(w){var C=-1,k=w?w.length:0;for(this.clear();++C<k;){var M=w[C];this.set(M[0],M[1])}}function U1(){this.__data__=[]}function W1(w){var C=this.__data__,k=rs(C,w);if(k<0)return!1;var M=C.length-1;return k==M?C.pop():ac.call(C,k,1),!0}function q1(w){var C=this.__data__,k=rs(C,w);return k<0?void 0:C[k][1]}function G1(w){return rs(this.__data__,w)>-1}function K1(w,C){var k=this.__data__,M=rs(k,w);return M<0?k.push([w,C]):k[M][1]=C,this}cn.prototype.clear=U1,cn.prototype.delete=W1,cn.prototype.get=q1,cn.prototype.has=G1,cn.prototype.set=K1;function $n(w){var C=-1,k=w?w.length:0;for(this.clear();++C<k;){var M=w[C];this.set(M[0],M[1])}}function Y1(){this.__data__={hash:new Ho,map:new(Vo||cn),string:new Ho}}function X1(w){return Ia(this,w).delete(w)}function J1(w){return Ia(this,w).get(w)}function Z1(w){return Ia(this,w).has(w)}function Q1(w,C){return Ia(this,w).set(w,C),this}$n.prototype.clear=Y1,$n.prototype.delete=X1,$n.prototype.get=J1,$n.prototype.has=Z1,$n.prototype.set=Q1;function Rn(w){this.__data__=new cn(w)}function em(){this.__data__=new cn}function tm(w){return this.__data__.delete(w)}function nm(w){return this.__data__.get(w)}function rm(w){return this.__data__.has(w)}function om(w,C){var k=this.__data__;if(k instanceof cn){var M=k.__data__;if(!Vo||M.length<n-1)return M.push([w,C]),this;k=this.__data__=new $n(M)}return k.set(w,C),this}Rn.prototype.clear=em,Rn.prototype.delete=tm,Rn.prototype.get=nm,Rn.prototype.has=rm,Rn.prototype.set=om;function ns(w,C){var k=vc(w)||is(w)?V(w.length,String):[],M=k.length,_e=!!M;for(var he in w)(C||Gn.call(w,he))&&!(_e&&(he=="length"||ym(he,M)))&&k.push(he);return k}function Yp(w,C,k){var M=w[C];(!(Gn.call(w,C)&&eh(M,k))||k===void 0&&!(C in w))&&(w[C]=k)}function rs(w,C){for(var k=w.length;k--;)if(eh(w[k][0],C))return k;return-1}function ro(w,C){return w&&gc(C,yc(C),w)}function pc(w,C,k,M,_e,he,He){var Ke;if(M&&(Ke=he?M(w,_e,he,He):M(w)),Ke!==void 0)return Ke;if(!io(w))return w;var zt=vc(w);if(zt){if(Ke=vm(w),!C)return pm(w,Ke)}else{var ot=Wo(w),En=ot==c||ot==f;if(th(w))return os(w,C);if(ot==g||ot==i||En&&!he){if(ke(w))return he?w:{};if(Ke=oo(En?{}:w),!C)return hm(w,ro(Ke,w))}else{if(!le[ot])return he?w:{};Ke=mm(w,ot,pc,C)}}He||(He=new Rn);var Ln=He.get(w);if(Ln)return Ln;if(He.set(w,Ke),!zt)var Zt=k?gm(w):yc(w);return be(Zt||w,function(Sn,fn){Zt&&(fn=Sn,Sn=w[fn]),Yp(Ke,fn,pc(Sn,C,k,M,fn,w,He))}),Ke}function im(w){return io(w)?hr(w):{}}function am(w,C,k){var M=C(w);return vc(w)?M:Pe(M,k(w))}function um(w){return Nn.call(w)}function sm(w){if(!io(w)||wm(w))return!1;var C=mc(w)||ke(w)?eo:De;return C.test(Tn(w))}function lm(w){if(!Zp(w))return ts(w);var C=[];for(var k in Object(w))Gn.call(w,k)&&k!="constructor"&&C.push(k);return C}function os(w,C){if(C)return w.slice();var k=new w.constructor(w.length);return w.copy(k),k}function hc(w){var C=new w.constructor(w.byteLength);return new no(C).set(new no(w)),C}function Pa(w,C){var k=C?hc(w.buffer):w.buffer;return new w.constructor(k,w.byteOffset,w.byteLength)}function Xp(w,C,k){var M=C?k(ve(w),!0):ve(w);return Je(M,j,new w.constructor)}function Jp(w){var C=new w.constructor(w.source,me.exec(w));return C.lastIndex=w.lastIndex,C}function cm(w,C,k){var M=C?k(qn(w),!0):qn(w);return Je(M,ue,new w.constructor)}function fm(w){return Gp?Object(Gp.call(w)):{}}function dm(w,C){var k=C?hc(w.buffer):w.buffer;return new w.constructor(k,w.byteOffset,w.length)}function pm(w,C){var k=-1,M=w.length;for(C||(C=Array(M));++k<M;)C[k]=w[k];return C}function gc(w,C,k,M){k||(k={});for(var _e=-1,he=C.length;++_e<he;){var He=C[_e],Ke=M?M(k[He],w[He],He,k,w):void 0;Yp(k,He,Ke===void 0?w[He]:Ke)}return k}function hm(w,C){return gc(w,Uo(w),C)}function gm(w){return am(w,yc,Uo)}function Ia(w,C){var k=w.__data__;return bm(C)?k[typeof C=="string"?"string":"hash"]:k.map}function Lr(w,C){var k=rt(w,C);return sm(k)?k:void 0}var Uo=zo?Te(zo,Object):Em,Wo=um;(hi&&Wo(new hi(new ArrayBuffer(1)))!=S||Vo&&Wo(new Vo)!=d||Yn&&Wo(Yn.resolve())!=v||gi&&Wo(new gi)!=y||uc&&Wo(new uc)!=$)&&(Wo=function(w){var C=Nn.call(w),k=C==g?w.constructor:void 0,M=k?Tn(k):void 0;if(M)switch(M){case sc:return S;case Ba:return d;case lc:return v;case cc:return y;case fc:return $}return C});function vm(w){var C=w.length,k=w.constructor(C);return C&&typeof w[0]=="string"&&Gn.call(w,"index")&&(k.index=w.index,k.input=w.input),k}function oo(w){return typeof w.constructor=="function"&&!Zp(w)?im(kn(w)):{}}function mm(w,C,k,M){var _e=w.constructor;switch(C){case E:return hc(w);case u:case s:return new _e(+w);case S:return Pa(w,M);case x:case B:case I:case H:case G:case Y:case U:case ie:case re:return dm(w,M);case d:return Xp(w,M,k);case p:case b:return new _e(w);case h:return Jp(w);case y:return cm(w,M,k);case m:return fm(w)}}function ym(w,C){return C=C??o,!!C&&(typeof w=="number"||$e.test(w))&&w>-1&&w%1==0&&w<C}function bm(w){var C=typeof w;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?w!=="__proto__":w===null}function wm(w){return!!Ft&&Ft in w}function Zp(w){var C=w&&w.constructor,k=typeof C=="function"&&C.prototype||Tt;return w===k}function Tn(w){if(w!=null){try{return pr.call(w)}catch{}try{return w+""}catch{}}return""}function Qp(w){return pc(w,!0,!0)}function eh(w,C){return w===C||w!==w&&C!==C}function is(w){return $m(w)&&Gn.call(w,"callee")&&(!es.call(w,"callee")||Nn.call(w)==i)}var vc=Array.isArray;function as(w){return w!=null&&nh(w.length)&&!mc(w)}function $m(w){return rh(w)&&as(w)}var th=pi||Sm;function mc(w){var C=io(w)?Nn.call(w):"";return C==c||C==f}function nh(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=o}function io(w){var C=typeof w;return!!w&&(C=="object"||C=="function")}function rh(w){return!!w&&typeof w=="object"}function yc(w){return as(w)?ns(w):lm(w)}function Em(){return[]}function Sm(){return!1}e.exports=Qp}),SH=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},ls;function RD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var DH=0;function CH(e){return"__private_"+DH+++"_"+e}function xH(e,t,n){const r=[];return e.forEach(o=>typeof o!="string"?r.push(o):t[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.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 LD(e,t){const n=/\$/g,r="$$$$";let o=[e];if(t==null)return o;for(const i of Object.keys(t))if(i!=="_"){let a=t[i];typeof a=="string"&&(a=n[Symbol.replace](a,r)),o=xH(o,new RegExp(`%\\{${i}\\}`,"g"),a)}return o}var zk=(ls=CH("apply"),class{constructor(t){Object.defineProperty(this,ls,{value:AH}),this.locale={strings:{},pluralize(n){return n===1?0:1}},Array.isArray(t)?t.forEach(RD(this,ls)[ls],this):RD(this,ls)[ls](t)}translate(t,n){return this.translateArray(t,n).join("")}translateArray(t,n){if(!SH(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(n&&typeof n.smart_count<"u"){const i=this.locale.pluralize(n.smart_count);return LD(r[i],n)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return LD(r,n)}});function AH(e){if(!(e!=null&&e.strings))return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Vk=function(){var t={},n=t._fns={};t.emit=function(a,u,s,l,c,f,d){var p=r(a);p.length&&o(a,p,[u,s,l,c,f,d])},t.on=function(a,u){n[a]||(n[a]=[]),n[a].push(u)},t.once=function(a,u){function s(){u.apply(this,arguments),t.off(a,s)}this.on(a,s)},t.off=function(a,u){var s=[];if(a&&u){var l=this._fns[a],c=0,f=l?l.length:0;for(c;c<f;c++)l[c]!==u&&s.push(l[c])}s.length?this._fns[a]=s:delete this._fns[a]};function r(i){var a=n[i]?n[i]:[],u=i.indexOf(":"),s=u===-1?[i]:[i.substring(0,u),i.substring(u+1)],l=Object.keys(n),c=0,f=l.length;for(c;c<f;c++){var d=l[c];if(d==="*"&&(a=a.concat(n[d])),s.length===2&&s[0]===d){a=a.concat(n[d]);break}}return a}function o(i,a,u){var s=0,l=a.length;for(s;s<l&&a[s];s++)a[s].event=i,a[s].apply(a[s],u)}return t};let OH="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var _H={urlAlphabet:OH};let{urlAlphabet:kH}=_H;{if(typeof navigator<"u"&&navigator.product==="ReactNative"&&typeof crypto>"u")throw new Error("React Native does not have a built-in secure random generator. If you don’t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID.");if(typeof msCrypto<"u"&&typeof crypto>"u")throw new Error("Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support");if(typeof crypto>"u")throw new Error("Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure.")}let Hk=e=>crypto.getRandomValues(new Uint8Array(e)),Uk=(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}}},TH=(e,t)=>Uk(e,t,Hk),FH=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};var BH={nanoid:FH,customAlphabet:TH,customRandom:Uk,urlAlphabet:kH,random:Hk},Lm=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var n=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(n&&(t=-t),t<1)return(n?"-":"")+t+" B";var o=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,o));var i=r[o];return t>=10||t%1===0?(n?"-":"")+t.toFixed(0)+" "+i:(n?"-":"")+t.toFixed(1)+" "+i};function Wk(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Wk.prototype.match=function(e){var t=!0,n=this.parts,r,o=n.length,i;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else{for(i=(e||"").split(this.separator),r=0;t&&r<o;r++)n[r]!=="*"&&(r<i.length?t=n[r]===i[r]:t=!1);t=t&&i}else if(typeof e.splice=="function")for(t=[],r=e.length;r--;)this.match(e[r])&&(t[t.length]=e[r]);else if(typeof e=="object"){t={};for(var a in e)this.match(a)&&(t[a]=e[a])}return t};var PH=function(e,t,n){var r=new Wk(e,n||/[\/\.]/);return typeof t<"u"?r.match(t):r},IH=/[\/\+\.]/,NH=function(e,t){function n(r){var o=PH(r,e,IH);return o&&o.length>=2}return t?n(t.split(";")[0]):n};function RH(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var LH=0;function jH(e){return"__private_"+LH+++"_"+e}var jm=jH("publish");class qk{constructor(){Object.defineProperty(this,jm,{value:MH}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};this.state=r,RH(this,jm)[jm](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function MH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}qk.VERSION="2.0.3";var zH=function(){return new qk},Gk=function(t){const n=t.lastIndexOf(".");return n===-1||n===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,n),extension:t.slice(n+1)}},jD={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"},VH=function(t){var n;if(t.type)return t.type;const r=t.name?(n=Gk(t.name).extension)==null?void 0:n.toLowerCase():null;return r&&r in jD?jD[r]:"application/octet-stream"};function HH(e){return e.charCodeAt(0).toString(32)}function MD(e){let t="";return e.replace(/[^A-Z0-9]/ig,n=>(t+=`-${HH(n)}`,"/"))+t}var UH=function(t){let n="uppy";return typeof t.name=="string"&&(n+=`-${MD(t.name.toLowerCase())}`),t.type!==void 0&&(n+=`-${t.type}`),t.meta&&typeof t.meta.relativePath=="string"&&(n+=`-${MD(t.meta.relativePath.toLowerCase())}`),t.data.size!==void 0&&(n+=`-${t.data.size}`),t.data.lastModified!==void 0&&(n+=`-${t.data.lastModified}`),n},WH=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const n=/Edge\/(\d+\.\d+)/.exec(t);if(!n)return!0;const r=n[1];let[o,i]=r.split(".");return o=parseInt(o,10),i=parseInt(i,10),o<15||o===15&&i<15063||o>18||o===18&&i>=18218},qH=function(t,n){return n.name?n.name:t.split("/")[0]==="image"?`${t.split("/")[0]}.${t.split("/")[1]}`:"noname"};function Mm(e){return e<10?`0${e}`:e.toString()}var dg=function(){const t=new Date,n=Mm(t.getHours()),r=Mm(t.getMinutes()),o=Mm(t.getSeconds());return`${n}:${r}:${o}`};const GH={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] [${dg()}]`,...t)}},KH={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${dg()}]`,...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] [${dg()}]`,...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] [${dg()}]`,...t)}};var Kk={justErrorsLogger:GH,debugLogger:KH},YH={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}"}}},Yk=BH;let Xk,Jk;function ce(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var XH=0;function Jt(e){return"__private_"+XH+++"_"+e}const{nanoid:JH}=Yk,{justErrorsLogger:ZH,debugLogger:QH}=Kk;class yo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,n){super(n),this.errors=t}});class eU extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var dn=Jt("plugins"),Ec=Jt("storeUnsubscribe"),Ko=Jt("emitter"),nu=Jt("preProcessors"),ru=Jt("uploaders"),Zo=Jt("postProcessors"),Hf=Jt("checkRestrictions"),zm=Jt("checkMinNumberOfFiles"),wd=Jt("checkRequiredMetaFieldsOnFile"),Vm=Jt("checkRequiredMetaFields"),tn=Jt("showOrLogErrorAndThrow"),Sc=Jt("assertNewUploadAllowed"),Dc=Jt("checkAndCreateFileStateObject"),Cc=Jt("startIfAutoProceed"),Hm=Jt("addListeners"),zr=Jt("updateOnlineStatus"),Yo=Jt("createUpload"),Um=Jt("getUpload"),uu=Jt("removeUpload"),Xo=Jt("runUpload");Xk=Symbol.for("uppy test: getPlugins");Jk=Symbol.for("uppy test: createUpload");class Zk{constructor(t){Object.defineProperty(this,Xo,{value:pU}),Object.defineProperty(this,uu,{value:dU}),Object.defineProperty(this,Um,{value:fU}),Object.defineProperty(this,Yo,{value:cU}),Object.defineProperty(this,Hm,{value:lU}),Object.defineProperty(this,Cc,{value:sU}),Object.defineProperty(this,Dc,{value:uU}),Object.defineProperty(this,Sc,{value:aU}),Object.defineProperty(this,tn,{value:iU}),Object.defineProperty(this,Vm,{value:oU}),Object.defineProperty(this,wd,{value:rU}),Object.defineProperty(this,zm,{value:nU}),Object.defineProperty(this,Hf,{value:tU}),Object.defineProperty(this,dn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Ec,{writable:!0,value:void 0}),Object.defineProperty(this,Ko,{writable:!0,value:Vk()}),Object.defineProperty(this,nu,{writable:!0,value:new Set}),Object.defineProperty(this,ru,{writable:!0,value:new Set}),Object.defineProperty(this,Zo,{writable:!0,value:new Set}),Object.defineProperty(this,zr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=YH;const n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:r=>r,onBeforeUpload:r=>r,store:zH(),logger:ZH,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=QH),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Tu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:WH(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ce(this,Ec)[Ec]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ce(this,Hm)[Hm]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];ce(this,Ko)[Ko].emit(t,...r)}on(t,n){return ce(this,Ko)[Ko].on(t,n),this}once(t,n){return ce(this,Ko)[Ko].once(t,n),this}off(t,n){return ce(this,Ko)[Ko].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new zk([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...t},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){ce(this,nu)[nu].add(t)}removePreProcessor(t){return ce(this,nu)[nu].delete(t)}addPostProcessor(t){ce(this,Zo)[Zo].add(t)}removePostProcessor(t){return ce(this,Zo)[Zo].delete(t)}addUploader(t){ce(this,ru)[ru].add(t)}removeUploader(t){return ce(this,ru)[ru].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter(g=>{let{progress:v}=g;return!v.uploadComplete&&v.uploadStarted}),a=o.filter(g=>!g.progress.uploadStarted),u=o.filter(g=>g.progress.uploadStarted||g.progress.preprocess||g.progress.postprocess),s=o.filter(g=>g.progress.uploadStarted),l=o.filter(g=>g.isPaused),c=o.filter(g=>g.progress.uploadComplete),f=o.filter(g=>g.error),d=i.filter(g=>!g.isPaused),p=o.filter(g=>g.progress.preprocess||g.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&p.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(g=>g.isGhost)}}validateRestrictions(t,n){try{return ce(this,Hf)[Hf](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!!(n[t]&&!n[t].isGhost)}addFile(t){ce(this,Sc)[Sc](t);const{files:n}=this.getState();let r=ce(this,Dc)[Dc](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ce(this,Cc)[Cc](),r.id}addFiles(t){ce(this,Sc)[Sc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=ce(this,Dc)[Dc](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
- id: ${r[i].id}
- type: ${r[i].type}`)}),r.length>0&&ce(this,Cc)[Cc](),o.length>0){let i=`Multiple errors occurred while adding files:
- `;if(o.forEach(a=>{i+=`
- * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);t.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])});function s(f){return u[f]===void 0}Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);if(d.length===0){delete a[f];return}a[f]={...o[f],fileIDs:d}});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const o={...t[r],isPaused:!0};t[r]=o}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const o={...t[r],isPaused:!1,error:null};t[r]=o}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ce(this,Yo)[Yo](n,{forceAllowNewUpload:!0});return ce(this,Xo)[Xo](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=ce(this,Yo)[Yo]([t],{forceAllowNewUpload:!0});return ce(this,Xo)[Xo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const n=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(n.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const r=n.filter(l=>l.progress.bytesTotal!=null),o=n.filter(l=>l.progress.bytesTotal==null);if(r.length===0){const l=n.length*100,c=o.reduce((d,p)=>d+p.progress.percentage,0),f=Math.round(c/l*100);this.setState({totalProgress:f});return}let i=r.reduce((l,c)=>l+c.progress.bytesTotal,0);const a=i/r.length;i+=a*o.length;let u=0;r.forEach(l=>{u+=l.progress.bytesUploaded}),o.forEach(l=>{u+=a*(l.progress.percentage||0)/100});let s=i===0?0:Math.round(u/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){(typeof window.navigator.onLine<"u"?window.navigator.onLine:!0)?(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(t,n){if(typeof t!="function"){const a=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(a)}const r=new t(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in ce(this,dn)[dn]?ce(this,dn)[dn][r.type].push(r):ce(this,dn)[dn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(ce(this,dn)[dn])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[Xk](t){return ce(this,dn)[dn][t]}iteratePlugins(t){Object.values(ce(this,dn)[dn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=ce(this,dn)[dn][t.type],r=n.findIndex(a=>a.id===t.id);r!==-1&&n.splice(r,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ce(this,Ec)[Ec](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ce(this,zr)[zr]),window.removeEventListener("offline",ce(this,zr)[zr]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t);break}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?ce(this,Xo)[Xo](t):(ce(this,uu)[uu](t),Promise.reject(new Error("Nonexistent upload")))}[Jk](){return ce(this,Yo)[Yo](...arguments)}addResultData(t,n){if(!ce(this,Um)[Um](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=ce(this,dn)[dn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ce(this,zm)[zm](n),ce(this,Vm)[Vm](n)}).catch(o=>{ce(this,tn)[tn](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);!l.progress.uploadStarted&&i.indexOf(s)===-1&&a.push(l.id)});const u=ce(this,Yo)[Yo](a);return ce(this,Xo)[Xo](u)}).catch(o=>{ce(this,tn)[tn](o,{showInformer:!1})}))}}function tU(e,t){t===void 0&&(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 yo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(s=>s.indexOf("/")>-1?e.type?NH(e.type.replace(/;.*?$/,""),s):!1:s[0]==="."&&e.extension?e.extension.toLowerCase()===s.substr(1).toLowerCase():!1)){const s=a.join(", ");throw new yo(this.i18n("youCanOnlyUploadFileTypes",{types:s}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>o)throw new yo(this.i18n("exceedsSize",{size:Lm(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new yo(this.i18n("exceedsSize",{size:Lm(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new yo(this.i18n("inferiorSize",{size:Lm(r)}))}function nU(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new yo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function rU(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 a=new yo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),o.push(t[i]),ce(this,tn)[tn](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function oU(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return ce(this,wd)[wd](r)});if(t.length)throw new eU(t,`${this.i18n("missingRequiredMetaField")}`)}function iU(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&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 typeof e=="object"?e:new Error(e)}function aU(e){const{allowNewUpload:t}=this.getState();t===!1&&ce(this,tn)[tn](new yo(this.i18n("noMoreFilesAllowed")),{file:e})}function uU(e,t){const n=VH(t),r=qH(n,t),o=Gk(r).extension,i=!!t.isRemote,a=UH({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new yo(this.i18n("noDuplicates",{fileName:r}));ce(this,tn)[tn](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?ce(this,tn)[tn](new yo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);ce(this,Hf)[Hf](l,f)}catch(f){ce(this,tn)[tn](f,{file:l})}return l}function sU(){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 lU(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),ce(this,tn)[tn](o,{throwErr:!1})}else ce(this,tn)[tn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:ce(this,Zo)[Zo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}})}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}})}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id)){this.log(`Not setting progress for a file that has been removed: ${t.id}`);return}const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&ce(this,wd)[wd](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ce(this,zr)[zr]),window.addEventListener("offline",ce(this,zr)[zr]),setTimeout(ce(this,zr)[zr],3e3))}function cU(e,t){t===void 0&&(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=JH();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function fU(e){const{currentUploads:t}=this.getState();return t[e]}function dU(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function pU(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...ce(this,nu)[nu],...ce(this,ru)[ru],...ce(this,Zo)[Zo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),ce(this,uu)[uu](e),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),ce(this,uu)[uu](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Zk.VERSION="2.1.3";var Qk=Zk,hU=j3(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(T,_){for(var F in _)T[F]=_[F];return T}function g(T){var _=T.parentNode;_&&_.removeChild(T)}function v(T,_,F){var R,q,j,ue={};for(j in _)j=="key"?R=_[j]:j=="ref"?q=_[j]:ue[j]=_[j];if(arguments.length>2&&(ue.children=arguments.length>3?n.call(arguments,2):F),typeof T=="function"&&T.defaultProps!=null)for(j in T.defaultProps)ue[j]===void 0&&(ue[j]=T.defaultProps[j]);return h(T,ue,R,q,null)}function h(T,_,F,R,q){var j={type:T,props:_,key:F,ref:R,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:q??++o};return q==null&&r.vnode!=null&&r.vnode(j),j}function y(T){return T.children}function b(T,_){this.props=T,this.context=_}function m(T,_){if(_==null)return T.__?m(T.__,T.__.__k.indexOf(T)+1):null;for(var F;_<T.__k.length;_++)if((F=T.__k[_])!=null&&F.__e!=null)return F.__e;return typeof T.type=="function"?m(T):null}function $(T){var _,F;if((T=T.__)!=null&&T.__c!=null){for(T.__e=T.__c.base=null,_=0;_<T.__k.length;_++)if((F=T.__k[_])!=null&&F.__e!=null){T.__e=T.__c.base=F.__e;break}return $(T)}}function E(T){(!T.__d&&(T.__d=!0)&&a.push(T)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var T;S.__r=a.length;)T=a.sort(function(_,F){return _.__v.__b-F.__v.__b}),a=[],T.some(function(_){var F,R,q,j,ue,be;_.__d&&(ue=(j=(F=_).__v).__e,(be=F.__P)&&(R=[],(q=p({},j)).__v=j.__v+1,re(be,j,q,F.__n,be.ownerSVGElement!==void 0,j.__h!=null?[ue]:null,R,ue??m(j),j.__h),ae(R,j),j.__e!=ue&&$(j)))})}function x(T,_,F,R,q,j,ue,be,Pe,Je){var V,rt,ke,ve,Te,qn,st,At=R&&R.__k||f,Tt=At.length;for(F.__k=[],V=0;V<_.length;V++)if((ve=F.__k[V]=(ve=_[V])==null||typeof ve=="boolean"?null:typeof ve=="string"||typeof ve=="number"||typeof ve=="bigint"?h(null,ve,null,null,ve):Array.isArray(ve)?h(y,{children:ve},null,null,null):ve.__b>0?h(ve.type,ve.props,ve.key,null,ve.__v):ve)!=null){if(ve.__=F,ve.__b=F.__b+1,(ke=At[V])===null||ke&&ve.key==ke.key&&ve.type===ke.type)At[V]=void 0;else for(rt=0;rt<Tt;rt++){if((ke=At[rt])&&ve.key==ke.key&&ve.type===ke.type){At[rt]=void 0;break}ke=null}re(T,ve,ke=ke||c,q,j,ue,be,Pe,Je),Te=ve.__e,(rt=ve.ref)&&ke.ref!=rt&&(st||(st=[]),ke.ref&&st.push(ke.ref,null,ve),st.push(rt,ve.__c||Te,ve)),Te!=null?(qn==null&&(qn=Te),typeof ve.type=="function"&&ve.__k===ke.__k?ve.__d=Pe=B(ve,Pe,T):Pe=I(T,ve,ke,At,Te,Pe),typeof F.type=="function"&&(F.__d=Pe)):Pe&&ke.__e==Pe&&Pe.parentNode!=T&&(Pe=m(ke))}for(F.__e=qn,V=Tt;V--;)At[V]!=null&&(typeof F.type=="function"&&At[V].__e!=null&&At[V].__e==F.__d&&(F.__d=m(R,V+1)),$e(At[V],At[V]));if(st)for(V=0;V<st.length;V++)De(st[V],st[++V],st[++V])}function B(T,_,F){for(var R,q=T.__k,j=0;q&&j<q.length;j++)(R=q[j])&&(R.__=T,_=typeof R.type=="function"?B(R,_,F):I(F,R,R,q,R.__e,_));return _}function I(T,_,F,R,q,j){var ue,be,Pe;if(_.__d!==void 0)ue=_.__d,_.__d=void 0;else if(F==null||q!=j||q.parentNode==null)e:if(j==null||j.parentNode!==T)T.appendChild(q),ue=null;else{for(be=j,Pe=0;(be=be.nextSibling)&&Pe<R.length;Pe+=2)if(be==q)break e;T.insertBefore(q,j),ue=j}return ue!==void 0?ue:q.nextSibling}function H(T,_,F,R,q){var j;for(j in F)j==="children"||j==="key"||j in _||Y(T,j,null,F[j],R);for(j in _)q&&typeof _[j]!="function"||j==="children"||j==="key"||j==="value"||j==="checked"||F[j]===_[j]||Y(T,j,_[j],F[j],R)}function G(T,_,F){_[0]==="-"?T.setProperty(_,F):T[_]=F==null?"":typeof F!="number"||d.test(_)?F:F+"px"}function Y(T,_,F,R,q){var j;e:if(_==="style")if(typeof F=="string")T.style.cssText=F;else{if(typeof R=="string"&&(T.style.cssText=R=""),R)for(_ in R)F&&_ in F||G(T.style,_,"");if(F)for(_ in F)R&&F[_]===R[_]||G(T.style,_,F[_])}else if(_[0]==="o"&&_[1]==="n")j=_!==(_=_.replace(/Capture$/,"")),_=_.toLowerCase()in T?_.toLowerCase().slice(2):_.slice(2),T.l||(T.l={}),T.l[_+j]=F,F?R||T.addEventListener(_,j?ie:U,j):T.removeEventListener(_,j?ie:U,j);else if(_!=="dangerouslySetInnerHTML"){if(q)_=_.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(_!=="href"&&_!=="list"&&_!=="form"&&_!=="tabIndex"&&_!=="download"&&_ in T)try{T[_]=F??"";break e}catch{}typeof F=="function"||(F!=null&&(F!==!1||_[0]==="a"&&_[1]==="r")?T.setAttribute(_,F):T.removeAttribute(_))}}function U(T){this.l[T.type+!1](r.event?r.event(T):T)}function ie(T){this.l[T.type+!0](r.event?r.event(T):T)}function re(T,_,F,R,q,j,ue,be,Pe){var Je,V,rt,ke,ve,Te,qn,st,At,Tt,In,Ft=_.type;if(_.constructor!==void 0)return null;F.__h!=null&&(Pe=F.__h,be=_.__e=F.__e,_.__h=null,j=[be]),(Je=r.__b)&&Je(_);try{e:if(typeof Ft=="function"){if(st=_.props,At=(Je=Ft.contextType)&&R[Je.__c],Tt=Je?At?At.props.value:Je.__:R,F.__c?qn=(V=_.__c=F.__c).__=V.__E:("prototype"in Ft&&Ft.prototype.render?_.__c=V=new Ft(st,Tt):(_.__c=V=new b(st,Tt),V.constructor=Ft,V.render=le),At&&At.sub(V),V.props=st,V.state||(V.state={}),V.context=Tt,V.__n=R,rt=V.__d=!0,V.__h=[]),V.__s==null&&(V.__s=V.state),Ft.getDerivedStateFromProps!=null&&(V.__s==V.state&&(V.__s=p({},V.__s)),p(V.__s,Ft.getDerivedStateFromProps(st,V.__s))),ke=V.props,ve=V.state,rt)Ft.getDerivedStateFromProps==null&&V.componentWillMount!=null&&V.componentWillMount(),V.componentDidMount!=null&&V.__h.push(V.componentDidMount);else{if(Ft.getDerivedStateFromProps==null&&st!==ke&&V.componentWillReceiveProps!=null&&V.componentWillReceiveProps(st,Tt),!V.__e&&V.shouldComponentUpdate!=null&&V.shouldComponentUpdate(st,V.__s,Tt)===!1||_.__v===F.__v){V.props=st,V.state=V.__s,_.__v!==F.__v&&(V.__d=!1),V.__v=_,_.__e=F.__e,_.__k=F.__k,_.__k.forEach(function(pr){pr&&(pr.__=_)}),V.__h.length&&ue.push(V);break e}V.componentWillUpdate!=null&&V.componentWillUpdate(st,V.__s,Tt),V.componentDidUpdate!=null&&V.__h.push(function(){V.componentDidUpdate(ke,ve,Te)})}V.context=Tt,V.props=st,V.state=V.__s,(Je=r.__r)&&Je(_),V.__d=!1,V.__v=_,V.__P=T,Je=V.render(V.props,V.state,V.context),V.state=V.__s,V.getChildContext!=null&&(R=p(p({},R),V.getChildContext())),rt||V.getSnapshotBeforeUpdate==null||(Te=V.getSnapshotBeforeUpdate(ke,ve)),In=Je!=null&&Je.type===y&&Je.key==null?Je.props.children:Je,x(T,Array.isArray(In)?In:[In],_,F,R,q,j,ue,be,Pe),V.base=_.__e,_.__h=null,V.__h.length&&ue.push(V),qn&&(V.__E=V.__=null),V.__e=!1}else j==null&&_.__v===F.__v?(_.__k=F.__k,_.__e=F.__e):_.__e=me(F.__e,_,F,R,q,j,ue,Pe);(Je=r.diffed)&&Je(_)}catch(pr){_.__v=null,(Pe||j!=null)&&(_.__e=be,_.__h=!!Pe,j[j.indexOf(be)]=null),r.__e(pr,_,F)}}function ae(T,_){r.__c&&r.__c(_,T),T.some(function(F){try{T=F.__h,F.__h=[],T.some(function(R){R.call(F)})}catch(R){r.__e(R,F.__v)}})}function me(T,_,F,R,q,j,ue,be){var Pe,Je,V,rt=F.props,ke=_.props,ve=_.type,Te=0;if(ve==="svg"&&(q=!0),j!=null){for(;Te<j.length;Te++)if((Pe=j[Te])&&"setAttribute"in Pe==!!ve&&(ve?Pe.localName===ve:Pe.nodeType===3)){T=Pe,j[Te]=null;break}}if(T==null){if(ve===null)return document.createTextNode(ke);T=q?document.createElementNS("http://www.w3.org/2000/svg",ve):document.createElement(ve,ke.is&&ke),j=null,be=!1}if(ve===null)rt===ke||be&&T.data===ke||(T.data=ke);else{if(j=j&&n.call(T.childNodes),Je=(rt=F.props||c).dangerouslySetInnerHTML,V=ke.dangerouslySetInnerHTML,!be){if(j!=null)for(rt={},Te=0;Te<T.attributes.length;Te++)rt[T.attributes[Te].name]=T.attributes[Te].value;(V||Je)&&(V&&(Je&&V.__html==Je.__html||V.__html===T.innerHTML)||(T.innerHTML=V&&V.__html||""))}if(H(T,ke,rt,q,be),V)_.__k=[];else if(Te=_.props.children,x(T,Array.isArray(Te)?Te:[Te],_,F,R,q&&ve!=="foreignObject",j,ue,j?j[0]:F.__k&&m(F,0),be),j!=null)for(Te=j.length;Te--;)j[Te]!=null&&g(j[Te]);be||("value"in ke&&(Te=ke.value)!==void 0&&(Te!==rt.value||Te!==T.value||ve==="progress"&&!Te)&&Y(T,"value",Te,rt.value,!1),"checked"in ke&&(Te=ke.checked)!==void 0&&Te!==T.checked&&Y(T,"checked",Te,rt.checked,!1))}return T}function De(T,_,F){try{typeof T=="function"?T(_):T.current=_}catch(R){r.__e(R,F)}}function $e(T,_,F){var R,q;if(r.unmount&&r.unmount(T),(R=T.ref)&&(R.current&&R.current!==T.__e||De(R,null,_)),(R=T.__c)!=null){if(R.componentWillUnmount)try{R.componentWillUnmount()}catch(j){r.__e(j,_)}R.base=R.__P=null}if(R=T.__k)for(q=0;q<R.length;q++)R[q]&&$e(R[q],_,typeof T.type!="function");F||T.__e==null||g(T.__e),T.__e=T.__d=void 0}function le(T,_,F){return this.constructor(T,F)}function Me(T,_,F){var R,q,j;r.__&&r.__(T,_),q=(R=typeof F=="function")?null:F&&F.__k||_.__k,j=[],re(_,T=(!R&&F||_).__k=v(y,null,[T]),q||c,c,_.ownerSVGElement!==void 0,!R&&F?[F]:q?null:_.firstChild?n.call(_.childNodes):null,j,!R&&F?F:q?q.__e:_.firstChild,R),ae(j,T)}n=f.slice,r={__e:function(T,_){for(var F,R,q;_=_.__;)if((F=_.__c)&&!F.__)try{if((R=F.constructor)&&R.getDerivedStateFromError!=null&&(F.setState(R.getDerivedStateFromError(T)),q=F.__d),F.componentDidCatch!=null&&(F.componentDidCatch(T),q=F.__d),q)return F.__E=F}catch(j){T=j}throw T}},o=0,i=function(T){return T!=null&&T.constructor===void 0},b.prototype.setState=function(T,_){var F;F=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof T=="function"&&(T=T(p({},F),this.props)),T&&p(F,T),T!=null&&this.__v&&(_&&this.__h.push(_),E(this))},b.prototype.forceUpdate=function(T){this.__v&&(this.__e=!0,T&&this.__h.push(T),E(this))},b.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=b,t.Fragment=y,t.cloneElement=function(T,_,F){var R,q,j,ue=p({},T.props);for(j in _)j=="key"?R=_[j]:j=="ref"?q=_[j]:ue[j]=_[j];return arguments.length>2&&(ue.children=arguments.length>3?n.call(arguments,2):F),h(T.type,ue,R||T.key,q||T.ref,null)},t.createContext=function(T,_){var F={__c:_="__cC"+l++,__:T,Consumer:function(R,q){return R.children(q)},Provider:function(R){var q,j;return this.getChildContext||(q=[],(j={})[_]=this,this.getChildContext=function(){return j},this.shouldComponentUpdate=function(ue){this.props.value!==ue.value&&q.some(E)},this.sub=function(ue){q.push(ue);var be=ue.componentWillUnmount;ue.componentWillUnmount=function(){q.splice(q.indexOf(ue),1),be&&be.call(ue)}}),R.children}};return F.Provider.__=F.Consumer.contextType=F},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function T(_,F){Me(_,F,T)},t.isValidElement=i,t.options=r,t.render=Me,t.toChildArray=function T(_,F){return F=F||[],_==null||typeof _=="boolean"||(Array.isArray(_)?_.some(function(R){T(R,F)}):F.push(_)),F}}),gU=function(t){return(t==null?void 0:t.nodeType)===Node.ELEMENT_NODE},vU=function(t,n){return n===void 0&&(n=document),typeof t=="string"?n.querySelector(t):gU(t)?t:null},X3=class{constructor(t,n){n===void 0&&(n={}),this.uppy=t,this.opts=n}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:n}=this.uppy.getState();this.uppy.setState({plugins:{...n,[this.id]:{...n[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new zk([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function zD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mU=0;function yU(e){return"__private_"+mU+++"_"+e}const{render:VD}=hU;function bU(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}}var xc=yU("updateUI");class J3 extends X3{constructor(){super(...arguments),Object.defineProperty(this,xc,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=vU(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return zD(this,xc)[xc]=bU(s=>{this.uppy.getPlugin(this.id)&&(VD(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),VD(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof J3)i=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw typeof t=="function"?a+=" 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.":a+="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(a)}update(t){if(this.el!=null){var n,r;(n=(r=zD(this,xc))[xc])==null||n.call(r,t)}}unmount(){if(this.isTargetDOMEl){var t;(t=this.el)==null||t.remove()}this.onUnmount()}onMount(){}onUnmount(){}}var wU=J3;const{debugLogger:$U}=Kk;var pp=Qk,EU=Qk,SU=wU,DU=X3,CU=$U;pp.Uppy=EU;pp.UIPlugin=SU;pp.BasePlugin=DU;pp.debugLogger=CU;class xU extends Error{constructor(t,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=n}}var Z3=xU,Wm=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new Z3(t)})};class AU extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var OU=AU,lh,bi,so,wi,HD;function uo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _U=0;function qm(e){return"__private_"+_U+++"_"+e}function kU(e){return e.replace(/\/$/,"")}async function Gm(e){if(e.status===401)throw new OU;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var Q3=(HD=(bi=qm("getPostResponseFunc"),so=qm("getUrl"),wi=qm("errorHandler"),lh=class eT{constructor(t,n){Object.defineProperty(this,wi,{value:FU}),Object.defineProperty(this,so,{value:TU}),Object.defineProperty(this,bi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return kU(t&&t[n]?t[n]:n)}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...eT.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},o=this.opts.companionUrl,{headers:i}=t;return i.has("i-am")&&i.get("i-am")!==r[o]&&this.uppy.setState({companion:{...r,[o]:i.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(uo(this,so)[so](t),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(t,n){const r="get";return this.preflightAndHeaders(t).then(o=>Wm(uo(this,so)[so](t),{method:r,headers:o,credentials:this.opts.companionCookiesRule||"same-origin"})).then(uo(this,bi)[bi](n)).then(Gm).catch(uo(this,wi)[wi](r,t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then(i=>Wm(uo(this,so)[so](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(uo(this,bi)[bi](r)).then(Gm).catch(uo(this,wi)[wi](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then(i=>Wm(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(uo(this,bi)[bi](r)).then(Gm).catch(uo(this,wi)[wi](o,t))}}),lh.VERSION="2.0.4",lh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${lh.VERSION}`},HD);function TU(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function FU(e,t){return n=>{var r;if(!((r=n)!=null&&r.isAuthError)){const o=new Error(`Could not ${e} ${uo(this,so)[so](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var BU=(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),PU=e=>Promise.resolve(localStorage.getItem(e)),IU=e=>new Promise(t=>{localStorage.removeItem(e),t()}),NU={setItem:BU,getItem:PU,removeItem:IU};const RU=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var LU=class extends Q3{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||RU(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[n,r]=t;const o={};return r&&(o["uppy-auth-token"]=r),this.companionKeysParams&&(o["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...n,...o}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const n=this.uppy.getPlugin(this.pluginId),o=n.getPluginState().authenticated?t.status!==401:t.status<400;return n.setPluginState({authenticated:o}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[n]=t;return n})}static initPlugin(t,n,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...n}),n.serverUrl||n.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(n.companionAllowedHosts){const o=n.companionAllowedHosts;if(typeof o!="string"&&!Array.isArray(o)&&!(o instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=o}else/^(?!https?:\/\/).*$/i.test(n.companionUrl)?t.opts.companionAllowedHosts=`https://${n.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(n.companionUrl).origin;t.storage=t.opts.storage||NU}};const jU=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");var MU=class extends Q3{constructor(t,n){super(t,n),this.provider=n.provider,this.id=this.provider,this.name=this.opts.name||jU(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,n){return n=n?`&${n}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${n}`)}},ao,$i,gr,Dn,ch;let UD,WD;function Vt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zU=0;function Ac(e){return"__private_"+zU+++"_"+e}var VU=(ao=Ac("queued"),$i=Ac("emitter"),gr=Ac("isOpen"),Dn=Ac("socket"),ch=Ac("handleMessage"),UD=Symbol.for("uppy test: getSocket"),WD=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,ao,{writable:!0,value:[]}),Object.defineProperty(this,$i,{writable:!0,value:Vk()}),Object.defineProperty(this,gr,{writable:!0,value:!1}),Object.defineProperty(this,Dn,{writable:!0,value:void 0}),Object.defineProperty(this,ch,{writable:!0,value:n=>{try{const r=JSON.parse(n.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,(!t||t.autoOpen!==!1)&&this.open()}get isOpen(){return Vt(this,gr)[gr]}[UD](){return Vt(this,Dn)[Dn]}[WD](){return Vt(this,ao)[ao]}open(){Vt(this,Dn)[Dn]=new WebSocket(this.opts.target),Vt(this,Dn)[Dn].onopen=()=>{for(Vt(this,gr)[gr]=!0;Vt(this,ao)[ao].length>0&&Vt(this,gr)[gr];){const t=Vt(this,ao)[ao].shift();this.send(t.action,t.payload)}},Vt(this,Dn)[Dn].onclose=()=>{Vt(this,gr)[gr]=!1},Vt(this,Dn)[Dn].onmessage=Vt(this,ch)[ch]}close(){var t;(t=Vt(this,Dn)[Dn])==null||t.close()}send(t,n){if(!Vt(this,gr)[gr]){Vt(this,ao)[ao].push({action:t,payload:n});return}Vt(this,Dn)[Dn].send(JSON.stringify({action:t,payload:n}))}on(t,n){Vt(this,$i)[$i].on(t,n)}emit(t,n){Vt(this,$i)[$i].emit(t,n)}once(t,n){Vt(this,$i)[$i].once(t,n)}}),HU={RequestClient:Q3,Provider:LU,SearchProvider:MU,Socket:VU};function UU(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}))}var WU=Tu(UU,300,{leading:!0,trailing:!0}),qU=function(t){const r=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(t)[1];return`${/^http:\/\//i.test(t)?"ws":"wss"}://${r}`},GU=function(t){const n=[],r=[];function o(u){n.push(u)}function i(u){r.push(u)}return Promise.all(t.map(u=>u.then(o,i))).then(()=>({successful:n,failed:r}))},Ei,cs;function Oc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var KU=0;function qD(e){return"__private_"+KU+++"_"+e}var GD=(Ei=qD("emitter"),cs=qD("events"),class{constructor(t){Object.defineProperty(this,Ei,{writable:!0,value:void 0}),Object.defineProperty(this,cs,{writable:!0,value:[]}),Oc(this,Ei)[Ei]=t}on(t,n){return Oc(this,cs)[cs].push([t,n]),Oc(this,Ei)[Ei].on(t,n)}remove(){for(const[t,n]of Oc(this,cs)[cs].splice(0))Oc(this,Ei)[Ei].off(t,n)}});function vr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var YU=0;function zv(e){return"__private_"+YU+++"_"+e}var Jo=zv("aliveTimer"),Ra=zv("isDone"),_c=zv("onTimedOut"),La=zv("timeout");class XU{constructor(t,n){Object.defineProperty(this,Jo,{writable:!0,value:void 0}),Object.defineProperty(this,Ra,{writable:!0,value:!1}),Object.defineProperty(this,_c,{writable:!0,value:void 0}),Object.defineProperty(this,La,{writable:!0,value:void 0}),vr(this,La)[La]=t,vr(this,_c)[_c]=n}progress(){vr(this,Ra)[Ra]||vr(this,La)[La]>0&&(clearTimeout(vr(this,Jo)[Jo]),vr(this,Jo)[Jo]=setTimeout(vr(this,_c)[_c],vr(this,La)[La]))}done(){vr(this,Ra)[Ra]||(clearTimeout(vr(this,Jo)[Jo]),vr(this,Jo)[Jo]=null,vr(this,Ra)[Ra]=!0)}}var KD=XU;function qt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var JU=0;function Gu(e){return"__private_"+JU+++"_"+e}function ZU(){return new Error("Cancelled")}var er=Gu("activeRequests"),Bn=Gu("queuedHandlers"),Uf=Gu("call"),Tf=Gu("queueNext"),Nw=Gu("next"),Km=Gu("queue"),Rw=Gu("dequeue");class QU{constructor(t){Object.defineProperty(this,Rw,{value:oW}),Object.defineProperty(this,Km,{value:rW}),Object.defineProperty(this,Nw,{value:nW}),Object.defineProperty(this,Tf,{value:tW}),Object.defineProperty(this,Uf,{value:eW}),Object.defineProperty(this,er,{writable:!0,value:0}),Object.defineProperty(this,Bn,{writable:!0,value:[]}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,n){return qt(this,er)[er]<this.limit?qt(this,Uf)[Uf](t):qt(this,Km)[Km](t,n)}wrapPromiseFunction(t,n){var r=this;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];let u;const s=new Promise((l,c)=>{u=r.run(()=>{let f,d;try{d=Promise.resolve(t(...i))}catch(p){d=Promise.reject(p)}return d.then(p=>{f?c(f):(u.done(),l(p))},p=>{f?c(f):(u.done(),c(p))}),()=>{f=ZU()}},n)});return s.abort=()=>{u.abort()},s}}}function eW(e){qt(this,er)[er]+=1;let t=!1,n;try{n=e()}catch(r){throw qt(this,er)[er]-=1,r}return{abort:()=>{t||(t=!0,qt(this,er)[er]-=1,n(),qt(this,Tf)[Tf]())},done:()=>{t||(t=!0,qt(this,er)[er]-=1,qt(this,Tf)[Tf]())}}}function tW(){queueMicrotask(()=>qt(this,Nw)[Nw]())}function nW(){if(qt(this,er)[er]>=this.limit||qt(this,Bn)[Bn].length===0)return;const e=qt(this,Bn)[Bn].shift(),t=qt(this,Uf)[Uf](e.fn);e.abort=t.abort,e.done=t.done}function rW(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{qt(this,Rw)[Rw](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=qt(this,Bn)[Bn].findIndex(o=>n.priority>o.priority);return r===-1?qt(this,Bn)[Bn].push(n):qt(this,Bn)[Bn].splice(r,0,n),n}function oW(e){const t=qt(this,Bn)[Bn].indexOf(e);t!==-1&&qt(this,Bn)[Bn].splice(t,1)}var iW={RateLimitedQueue:QU,internalRateLimitedQueue:Symbol("__queue")};function aW(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}var tT=aW,uW={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}},YD,XD;const{nanoid:sW}=Yk,{Provider:lW,RequestClient:cW,Socket:fW}=HU,{RateLimitedQueue:dW,internalRateLimitedQueue:Ym}=iW;function JD(e,t){let n=t;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),tT(e)?(n=new Z3(n,e),n):(n.request=e,n)}function ZD(e){return e.data.slice(0,e.data.size,e.meta.type)}var pW=(XD=YD=class extends X3{constructor(t,n){super(t,n),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=uW;const r={formData:!0,fieldName:n.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:30*1e3,limit:5,withCredentials:!1,responseType:"",getResponseData(o){let i={};try{i=JSON.parse(o)}catch(a){t.log(a)}return i},getResponseError(o,i){let a=new Error("Upload error");return tT(i)&&(a=new Z3(a,i)),a},validateStatus(o){return o>=200&&o<300}};if(this.opts={...r,...n},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Ym in this.opts?this.requests=this.opts[Ym]:this.requests=new dW(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const n=this.uppy.getState().xhrUpload,{headers:r}=this.opts,o={...this.opts,...n||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?o.headers=r(t):Object.assign(o.headers,this.opts.headers),n&&Object.assign(o.headers,n.headers),t.xhrUpload&&Object.assign(o.headers,t.xhrUpload.headers),o}addMetadata(t,n,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(n)).forEach(i=>{t.append(i,n[i])})}createFormDataUpload(t,n){const r=new FormData;this.addMetadata(r,t.meta,n);const o=ZD(t);return t.name?r.append(n.fieldName,o,t.meta.name):r.append(n.fieldName,o),r}createBundledUpload(t,n){const r=new FormData,{meta:o}=this.uppy.getState();return this.addMetadata(r,o,n),t.forEach(i=>{const a=this.getOptions(i),u=ZD(i);i.name?r.append(a.fieldName,u,i.name):r.append(a.fieldName,u)}),r}upload(t,n,r){const o=this.getOptions(t);return this.uppy.log(`uploading ${n} of ${r}`),new Promise((i,a)=>{this.uppy.emit("upload-started",t);const u=o.formData?this.createFormDataUpload(t,o):t.data,s=new XMLHttpRequest;this.uploaderEvents[t.id]=new GD(this.uppy);const l=new KD(o.timeout,()=>{s.abort(),f.done();const d=new Error(this.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));this.uppy.emit("upload-error",t,d),a(d)}),c=sW();s.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${c} started`)}),s.upload.addEventListener("progress",d=>{this.uppy.log(`[XHRUpload] ${c} progress: ${d.loaded} / ${d.total}`),l.progress(),d.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:d.loaded,bytesTotal:d.total})}),s.addEventListener("load",d=>{if(this.uppy.log(`[XHRUpload] ${c} finished`),l.done(),f.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),o.validateStatus(d.target.status,s.responseText,s)){const h=o.getResponseData(s.responseText,s),y=h[o.responseUrlFieldName],b={status:d.target.status,body:h,uploadURL:y};return this.uppy.emit("upload-success",t,b),y&&this.uppy.log(`Download ${t.name} from ${y}`),i(t)}const p=o.getResponseData(s.responseText,s),g=JD(s,o.getResponseError(s.responseText,s)),v={status:d.target.status,body:p};return this.uppy.emit("upload-error",t,g,v),a(g)}),s.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${c} errored`),l.done(),f.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const d=JD(s,o.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",t,d),a(d)}),s.open(o.method.toUpperCase(),o.endpoint,!0),s.withCredentials=o.withCredentials,o.responseType!==""&&(s.responseType=o.responseType);const f=this.requests.run(()=>{this.uppy.emit("upload-started",t);const d=this.getOptions(t);return Object.keys(d.headers).forEach(p=>{s.setRequestHeader(p,d.headers[p])}),s.send(u),()=>{l.done(),s.abort()}});this.onFileRemove(t.id,()=>{f.abort(),a(new Error("File removed"))}),this.onCancelAll(t.id,()=>{f.abort(),a(new Error("Upload cancelled"))})})}uploadRemote(t){const n=this.getOptions(t);return new Promise((r,o)=>{this.uppy.emit("upload-started",t);const i={};(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t.meta)).forEach(l=>{i[l]=t.meta[l]});const u=t.remote.providerOptions.provider?lW:cW;new u(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:n.endpoint,size:t.data.size,fieldname:n.fieldName,metadata:i,httpMethod:n.method,useFormData:n.formData,headers:n.headers}).then(l=>{const{token:c}=l,f=qU(t.remote.companionUrl),d=new fW({target:`${f}/api/${c}`,autoOpen:!1});this.uploaderEvents[t.id]=new GD(this.uppy),this.onFileRemove(t.id,()=>{d.send("cancel",{}),p.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{d.send("cancel",{}),p.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{d.send("pause",{}),d.send("resume",{})}),this.onRetryAll(t.id,()=>{d.send("pause",{}),d.send("resume",{})}),d.on("progress",g=>WU(this,g,t)),d.on("success",g=>{const v=n.getResponseData(g.response.responseText,g.response),h=v[n.responseUrlFieldName],y={status:g.response.status,body:v,uploadURL:h};return this.uppy.emit("upload-success",t,y),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),d.on("error",g=>{const v=g.response,h=v?n.getResponseError(v.responseText,v):Object.assign(new Error(g.error.message),{cause:g.error});this.uppy.emit("upload-error",t,h),p.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),o(h)});const p=this.requests.run(()=>(d.open(),t.isPaused&&d.send("pause",{}),()=>d.close()))}).catch(l=>{this.uppy.emit("upload-error",t,l),o(l)})})}uploadBundle(t){return new Promise((n,r)=>{const{endpoint:o}=this.opts,{method:i}=this.opts,a=this.uppy.getState().xhrUpload,u=this.createBundledUpload(t,{...this.opts,...a||{}}),s=new XMLHttpRequest,l=new KD(this.opts.timeout,()=>{s.abort();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(f),r(f)}),c=f=>{t.forEach(d=>{this.uppy.emit("upload-error",d,f)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()}),s.upload.addEventListener("progress",f=>{l.progress(),f.lengthComputable&&t.forEach(d=>{this.uppy.emit("upload-progress",d,{uploader:this,bytesUploaded:f.loaded/f.total*d.size,bytesTotal:d.size})})}),s.addEventListener("load",f=>{if(l.done(),this.opts.validateStatus(f.target.status,s.responseText,s)){const p=this.opts.getResponseData(s.responseText,s),g={status:f.target.status,body:p};return t.forEach(v=>{this.uppy.emit("upload-success",v,g)}),n()}const d=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return d.request=s,c(d),r(d)}),s.addEventListener("error",()=>{l.done();const f=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return c(f),r(f)}),this.uppy.on("cancel-all",()=>{l.done(),s.abort()}),s.open(i.toUpperCase(),o,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(f=>{s.setRequestHeader(f,this.opts.headers[f])}),s.send(u),t.forEach(f=>{this.uppy.emit("upload-started",f)})})}uploadFiles(t){const n=t.map((r,o)=>{const i=parseInt(o,10)+1,a=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,i,a):this.upload(r,i,a)});return GU(n)}onFileRemove(t,n){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&n(r.id)})}onRetry(t,n){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&n()})}onRetryAll(t,n){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&n()})}onCancelAll(t,n){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&n()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit===0&&!this.opts[Ym]&&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 n=t.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(n.some(o=>o.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(n)}return this.uploadFiles(n).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},YD.VERSION="2.0.6",XD),QD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hp(e){var t={exports:{}};return e(t,t.exports),t.exports}var Si,pg,fh=function(e){return e&&e.Math==Math&&e},K=fh(typeof globalThis=="object"&&globalThis)||fh(typeof window=="object"&&window)||fh(typeof self=="object"&&self)||fh(typeof QD=="object"&&QD)||function(){return this}()||Function("return this")(),hW=Object.defineProperty,eE=function(e,t){try{hW(K,e,{value:t,configurable:!0,writable:!0})}catch{K[e]=t}return t},Ji=K["__core-js_shared__"]||eE("__core-js_shared__",{}),tE=hp(function(e){(e.exports=function(t,n){return Ji[t]||(Ji[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),nT=Function.prototype,Lw=nT.bind,jw=nT.call,gW=Lw&&Lw.bind(jw),fe=Lw?function(e){return e&&gW(jw,e)}:function(e){return e&&function(){return jw.apply(e,arguments)}},vW=K.TypeError,Br=function(e){if(e==null)throw vW("Can't call method on "+e);return e},mW=K.Object,Ca=function(e){return mW(Br(e))},yW=fe({}.hasOwnProperty),Rt=Object.hasOwn||function(e,t){return yW(Ca(e),t)},bW=0,wW=Math.random(),$W=fe(1 .toString),nE=function(e){return"Symbol("+(e===void 0?"":e)+")_"+$W(++bW+wW,36)},it=function(e){return typeof e=="function"},EW=function(e){return it(e)?e:void 0},Ku=function(e,t){return arguments.length<2?EW(K[e]):K[e]&&K[e][t]},tl=Ku("navigator","userAgent")||"",eC=K.process,tC=K.Deno,nC=eC&&eC.versions||tC&&tC.version,rC=nC&&nC.v8;rC&&(pg=(Si=rC.split("."))[0]>0&&Si[0]<4?1:+(Si[0]+Si[1])),!pg&&tl&&(!(Si=tl.match(/Edge\/(\d+)/))||Si[1]>=74)&&(Si=tl.match(/Chrome\/(\d+)/))&&(pg=+Si[1]);var $d=pg,Qe=function(e){try{return!!e()}catch{return!0}},Mw=!!Object.getOwnPropertySymbols&&!Qe(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$d&&$d<41}),rE=Mw&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kc=tE("wks"),fu=K.Symbol,oC=fu&&fu.for,SW=rE?fu:fu&&fu.withoutSetter||nE,xt=function(e){if(!Rt(kc,e)||!Mw&&typeof kc[e]!="string"){var t="Symbol."+e;Mw&&Rt(fu,e)?kc[e]=fu[e]:kc[e]=rE&&oC?oC(t):SW(t)}return kc[e]},rT={};rT[xt("toStringTag")]="z";var oE=String(rT)==="[object z]",an=!Qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ft=function(e){return typeof e=="object"?e!==null:it(e)},zw=K.document,DW=ft(zw)&&ft(zw.createElement),Ed=function(e){return DW?zw.createElement(e):{}},oT=!an&&!Qe(function(){return Object.defineProperty(Ed("div"),"a",{get:function(){return 7}}).a!=7}),CW=K.String,xW=K.TypeError,Lt=function(e){if(ft(e))return e;throw xW(CW(e)+" is not an object")},Tc=Function.prototype.call,Ve=Tc.bind?Tc.bind(Tc):function(){return Tc.apply(Tc,arguments)},Fu=fe({}.isPrototypeOf),AW=K.Object,Vw=rE?function(e){return typeof e=="symbol"}:function(e){var t=Ku("Symbol");return it(t)&&Fu(t.prototype,AW(e))},OW=K.String,Vv=function(e){try{return OW(e)}catch{return"Object"}},_W=K.TypeError,ga=function(e){if(it(e))return e;throw _W(Vv(e)+" is not a function")},Bu=function(e,t){var n=e[t];return n==null?void 0:ga(n)},kW=K.TypeError,TW=K.TypeError,FW=xt("toPrimitive"),BW=function(e,t){if(!ft(e)||Vw(e))return e;var n,r=Bu(e,FW);if(r){if(t===void 0&&(t="default"),n=Ve(r,e,t),!ft(n)||Vw(n))return n;throw TW("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&it(a=o.toString)&&!ft(u=Ve(a,o))||it(a=o.valueOf)&&!ft(u=Ve(a,o))||i!=="string"&&it(a=o.toString)&&!ft(u=Ve(a,o)))return u;throw kW("Can't convert object to primitive value")}(e,t)},iE=function(e){var t=BW(e,"string");return Vw(t)?t:t+""},PW=K.TypeError,iC=Object.defineProperty,Qr={f:an?iC:function(e,t,n){if(Lt(e),t=iE(t),Lt(n),oT)try{return iC(e,t,n)}catch{}if("get"in n||"set"in n)throw PW("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Hv=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Gr=an?function(e,t,n){return Qr.f(e,t,Hv(1,n))}:function(e,t,n){return e[t]=n,e},IW=fe(Function.toString);it(Ji.inspectSource)||(Ji.inspectSource=function(e){return IW(e)});var n0,Wf,r0,Uv=Ji.inspectSource,aC=K.WeakMap,iT=it(aC)&&/native code/.test(Uv(aC)),uC=tE("keys"),aE=function(e){return uC[e]||(uC[e]=nE(e))},Wv={},Hw=K.TypeError,NW=K.WeakMap;if(iT||Ji.state){var ja=Ji.state||(Ji.state=new NW),RW=fe(ja.get),sC=fe(ja.has),LW=fe(ja.set);n0=function(e,t){if(sC(ja,e))throw new Hw("Object already initialized");return t.facade=e,LW(ja,e,t),t},Wf=function(e){return RW(ja,e)||{}},r0=function(e){return sC(ja,e)}}else{var fs=aE("state");Wv[fs]=!0,n0=function(e,t){if(Rt(e,fs))throw new Hw("Object already initialized");return t.facade=e,Gr(e,fs,t),t},Wf=function(e){return Rt(e,fs)?e[fs]:{}},r0=function(e){return Rt(e,fs)}}var _n={set:n0,get:Wf,has:r0,enforce:function(e){return r0(e)?Wf(e):n0(e,{})},getterFor:function(e){return function(t){var n;if(!ft(t)||(n=Wf(t)).type!==e)throw Hw("Incompatible receiver, "+e+" required");return n}}},aT=Function.prototype,jW=an&&Object.getOwnPropertyDescriptor,Xm=Rt(aT,"name"),ql={EXISTS:Xm,PROPER:Xm&&function(){}.name==="something",CONFIGURABLE:Xm&&(!an||an&&jW(aT,"name").configurable)},Vn=hp(function(e){var t=ql.CONFIGURABLE,n=_n.get,r=_n.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;it(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Rt(u,"name")||t&&u.name!==p)&&Gr(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==K?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Gr(i,a,u)):f?i[a]=u:eE(a,u)})(Function.prototype,"toString",function(){return it(this)&&n(this).source||Uv(this)})}),MW=fe({}.toString),zW=fe("".slice),Kr=function(e){return zW(MW(e),8,-1)},VW=xt("toStringTag"),HW=K.Object,UW=Kr(function(){return arguments}())=="Arguments",qv=oE?Kr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=HW(e),VW))=="string"?n:UW?Kr(t):(r=Kr(t))=="Object"&&it(t.callee)?"Arguments":r},WW=oE?{}.toString:function(){return"[object "+qv(this)+"]"};oE||Vn(Object.prototype,"toString",WW,{unsafe:!0});var o0={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},Jm=Ed("span").classList,lC=Jm&&Jm.constructor&&Jm.constructor.prototype,uT=lC===Object.prototype?void 0:lC,cC=fe(fe.bind),Pu=function(e,t){return ga(e),t===void 0?e:cC?cC(e,t):function(){return e.apply(t,arguments)}},Zm=K.Object,qW=fe("".split),Gv=Qe(function(){return!Zm("z").propertyIsEnumerable(0)})?function(e){return Kr(e)=="String"?qW(e,""):Zm(e)}:Zm,GW=Math.ceil,KW=Math.floor,gp=function(e){var t=+e;return t!=t||t===0?0:(t>0?KW:GW)(t)},YW=Math.min,Gl=function(e){return e>0?YW(gp(e),9007199254740991):0},Yu=function(e){return Gl(e.length)},i0=Array.isArray||function(e){return Kr(e)=="Array"},sT=function(){},XW=[],lT=Ku("Reflect","construct"),uE=/^\s*(?:class|function)\b/,JW=fe(uE.exec),ZW=!uE.exec(sT),Fc=function(e){if(!it(e))return!1;try{return lT(sT,XW,e),!0}catch{return!1}},Kv=!lT||Qe(function(){var e;return Fc(Fc.call)||!Fc(Object)||!Fc(function(){e=!0})||e})?function(e){if(!it(e))return!1;switch(qv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZW||!!JW(uE,Uv(e))}:Fc,QW=xt("species"),fC=K.Array,cT=function(e,t){return new(function(n){var r;return i0(n)&&(r=n.constructor,(Kv(r)&&(r===fC||i0(r.prototype))||ft(r)&&(r=r[QW])===null)&&(r=void 0)),r===void 0?fC:r}(e))(t===0?0:t)},dC=fe([].push),Di=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=Ca(s),v=Gv(g),h=Pu(l,c),y=Yu(v),b=0,m=f||cT,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:dC($,d)}else switch(e){case 4:return!1;case 7:dC($,d)}return i?-1:r||o?o:$}},Kl={forEach:Di(0),map:Di(1),filter:Di(2),some:Di(3),every:Di(4),find:Di(5),findIndex:Di(6),filterReject:Di(7)},fT=function(e,t){var n=[][e];return!!n&&Qe(function(){n.call(null,t||function(){throw 1},1)})},eq=Kl.forEach,Qm=fT("forEach")?[].forEach:function(e){return eq(this,e,arguments.length>1?arguments[1]:void 0)},dT=function(e){if(e&&e.forEach!==Qm)try{Gr(e,"forEach",Qm)}catch{e.forEach=Qm}};for(var ey in o0)o0[ey]&&dT(K[ey]&&K[ey].prototype);dT(uT);var pC={}.propertyIsEnumerable,hC=Object.getOwnPropertyDescriptor,tq=hC&&!pC.call({1:2},1)?function(e){var t=hC(this,e);return!!t&&t.enumerable}:pC,pT={f:tq},xa=function(e){return Gv(Br(e))},gC=Object.getOwnPropertyDescriptor,vp={f:an?gC:function(e,t){if(e=xa(e),t=iE(t),oT)try{return gC(e,t)}catch{}if(Rt(e,t))return Hv(!Ve(pT.f,e,t),e[t])}},nq=Math.max,rq=Math.min,Al=function(e,t){var n=gp(e);return n<0?nq(n+t,0):rq(n,t)},vC=function(e){return function(t,n,r){var o,i=xa(t),a=Yu(i),u=Al(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}},hT={includes:vC(!0),indexOf:vC(!1)},oq=hT.indexOf,mC=fe([].push),gT=function(e,t){var n,r=xa(e),o=0,i=[];for(n in r)!Rt(Wv,n)&&Rt(r,n)&&mC(i,n);for(;t.length>o;)Rt(r,n=t[o++])&&(~oq(i,n)||mC(i,n));return i},a0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iq=a0.concat("length","prototype"),Sd={f:Object.getOwnPropertyNames||function(e){return gT(e,iq)}},vT={f:Object.getOwnPropertySymbols},aq=fe([].concat),uq=Ku("Reflect","ownKeys")||function(e){var t=Sd.f(Lt(e)),n=vT.f;return n?aq(t,n(e)):t},sq=function(e,t){for(var n=uq(t),r=Qr.f,o=vp.f,i=0;i<n.length;i++){var a=n[i];Rt(e,a)||r(e,a,o(t,a))}},lq=/#|\.prototype\./,mp=function(e,t){var n=fq[cq(e)];return n==pq||n!=dq&&(it(t)?Qe(t):!!t)},cq=mp.normalize=function(e){return String(e).replace(lq,".").toLowerCase()},fq=mp.data={},dq=mp.NATIVE="N",pq=mp.POLYFILL="P",Dd=mp,hq=vp.f,Dt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?K:l?K[u]||eE(u,{}):(K[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=hq(n,r))&&a.value:n[r],!Dd(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;sq(i,o)}(e.sham||o&&o.sham)&&Gr(i,"sham",!0),Vn(n,r,i,e)}},gq=xt("species"),Yv=function(e){return $d>=51||!Qe(function(){var t=[];return(t.constructor={})[gq]=function(){return{foo:1}},t[e](Boolean).foo!==1})},vq=Kl.map,mq=Yv("map");Dt({target:"Array",proto:!0,forced:!mq},{map:function(e){return vq(this,e,arguments.length>1?arguments[1]:void 0)}});var Uw=function(e,t,n){var r,o;Lt(e);try{if(!(r=Bu(e,"return"))){if(t==="throw")throw n;return n}r=Ve(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Lt(r),n},yq=function(e,t,n,r){try{return r?t(Lt(n)[0],n[1]):t(n)}catch(o){Uw(e,"throw",o)}},Ol={},bq=xt("iterator"),wq=Array.prototype,mT=function(e){return e!==void 0&&(Ol.Array===e||wq[bq]===e)},Cd=function(e,t,n){var r=iE(t);r in e?Qr.f(e,r,Hv(0,n)):e[r]=n},$q=xt("iterator"),sE=function(e){if(e!=null)return Bu(e,$q)||Bu(e,"@@iterator")||Ol[qv(e)]},Eq=K.TypeError,yT=function(e,t){var n=arguments.length<2?sE(e):t;if(ga(n))return Lt(Ve(n,e));throw Eq(Vv(e)+" is not iterable")},yC=K.Array,bT=xt("iterator"),wT=!1;try{var Sq=0,bC={next:function(){return{done:!!Sq++}},return:function(){wT=!0}};bC[bT]=function(){return this},Array.from(bC,function(){throw 2})}catch{}var lE=function(e,t){if(!t&&!wT)return!1;var n=!1;try{var r={};r[bT]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Dq=!lE(function(e){Array.from(e)});Dt({target:"Array",stat:!0,forced:Dq},{from:function(e){var t=Ca(e),n=Kv(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Pu(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=sE(t),p=0;if(!d||this==yC&&mT(d))for(a=Yu(t),u=n?new this(a):yC(a);a>p;p++)f=i?o(t[p],p):t[p],Cd(u,p,f);else for(c=(l=yT(t,d)).next,u=n?new this:[];!(s=Ve(c,l)).done;p++)f=i?yq(l,o,[s.value,p],!0):s.value,Cd(u,p,f);return u.length=p,u}});var dh,Cq=K.String,lt=function(e){if(qv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Cq(e)},xq=fe("".charAt),wC=fe("".charCodeAt),Aq=fe("".slice),$C=function(e){return function(t,n){var r,o,i=lt(Br(t)),a=gp(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=wC(i,a))<55296||r>56319||a+1===u||(o=wC(i,a+1))<56320||o>57343?e?xq(i,a):r:e?Aq(i,a,a+2):o-56320+(r-55296<<10)+65536}},$T={codeAt:$C(!1),charAt:$C(!0)},nl=Object.keys||function(e){return gT(e,a0)},Oq=an?Object.defineProperties:function(e,t){Lt(e);for(var n,r=xa(t),o=nl(t),i=o.length,a=0;i>a;)Qr.f(e,n=o[a++],r[n]);return e},Ww=Ku("document","documentElement"),ET=aE("IE_PROTO"),ty=function(){},ST=function(e){return"<script>"+e+"<\/script>"},EC=function(e){e.write(ST("")),e.close();var t=e.parentWindow.Object;return e=null,t},hg=function(){try{dh=new ActiveXObject("htmlfile")}catch{}var e,t;hg=typeof document<"u"?document.domain&&dh?EC(dh):((t=Ed("iframe")).style.display="none",Ww.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(ST("document.F=Object")),e.close(),e.F):EC(dh);for(var n=a0.length;n--;)delete hg.prototype[a0[n]];return hg()};Wv[ET]=!0;var du,SC,DC,Xv=Object.create||function(e,t){var n;return e!==null?(ty.prototype=Lt(e),n=new ty,ty.prototype=null,n[ET]=e):n=hg(),t===void 0?n:Oq(n,t)},_q=!Qe(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),CC=aE("IE_PROTO"),qw=K.Object,kq=qw.prototype,u0=_q?qw.getPrototypeOf:function(e){var t=Ca(e);if(Rt(t,CC))return t[CC];var n=t.constructor;return it(n)&&t instanceof n?n.prototype:t instanceof qw?kq:null},Gw=xt("iterator"),DT=!1;[].keys&&("next"in(DC=[].keys())?(SC=u0(u0(DC)))!==Object.prototype&&(du=SC):DT=!0);var Tq=du==null||Qe(function(){var e={};return du[Gw].call(e)!==e});Tq&&(du={}),it(du[Gw])||Vn(du,Gw,function(){return this});var cE={IteratorPrototype:du,BUGGY_SAFARI_ITERATORS:DT},Fq=Qr.f,xC=xt("toStringTag"),s0=function(e,t,n){e&&!Rt(e=n?e:e.prototype,xC)&&Fq(e,xC,{configurable:!0,value:t})},Bq=cE.IteratorPrototype,Pq=function(){return this},Iq=K.String,Nq=K.TypeError,_l=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=fe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Lt(r),function(i){if(typeof i=="object"||it(i))return i;throw Nq("Can't set "+Iq(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Rq=ql.PROPER,Lq=ql.CONFIGURABLE,AC=cE.IteratorPrototype,ph=cE.BUGGY_SAFARI_ITERATORS,Bc=xt("iterator"),jq=function(){return this},fE=function(e,t,n,r,o,i,a){(function(y,b,m,$){var E=b+" Iterator";y.prototype=Xv(Bq,{next:Hv(+!$,m)}),s0(y,E,!1),Ol[E]=Pq})(n,t,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!ph&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,g=p[Bc]||p["@@iterator"]||o&&p[o],v=!ph&&g||c(o),h=t=="Array"&&p.entries||g;if(h&&(u=u0(h.call(new e)))!==Object.prototype&&u.next&&(u0(u)!==AC&&(_l?_l(u,AC):it(u[Bc])||Vn(u,Bc,jq)),s0(u,f,!0)),Rq&&o=="values"&&g&&g.name!=="values"&&(Lq?Gr(p,"name","values"):(d=!0,v=function(){return Ve(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(ph||d||!(l in p))&&Vn(p,l,s[l]);else Dt({target:t,proto:!0,forced:ph||d},s);return p[Bc]!==v&&Vn(p,Bc,v,{name:o}),Ol[t]=v,s},Mq=$T.charAt,zq=_n.set,Vq=_n.getterFor("String Iterator");fE(String,"String",function(e){zq(this,{type:"String Iterator",string:lt(e),index:0})},function(){var e,t=Vq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Mq(n,r),t.index+=e.length,{value:e,done:!1})});var Hq=Qe(function(){nl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function OC(e){return Object.prototype.toString.call(e)==="[object Object]"}Dt({target:"Object",stat:!0,forced:Hq},{keys:function(e){return nl(Ca(e))}});var Uq={isHistory(e){return OC(t=e)!==!1&&((n=t.constructor)===void 0||OC(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||qi.isOperationList(e.redos[0]))&&(e.undos.length===0||qi.isOperationList(e.undos[0]));var t,n,r}},ny=new WeakMap,ry=new WeakMap,Ks={isHistoryEditor:e=>Uq.isHistory(e.history)&&D.isEditor(e),isMerging:e=>ry.get(e),isSaving:e=>ny.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ks.isMerging(e);ry.set(e,!1),t(),ry.set(e,n)},withoutSaving(e,t){var n=Ks.isSaving(e);ny.set(e,!1),t(),ny.set(e,n)}},Wq=(e,t)=>e.type==="set_selection"||!(!t||e.type!=="insert_text"||t.type!=="insert_text"||e.offset!==t.offset+t.text.length||!P.equals(e.path,t.path))||!(!t||e.type!=="remove_text"||t.type!=="remove_text"||e.offset+e.text.length!==t.offset||!P.equals(e.path,t.path)),qq=(e,t)=>e.type!=="set_selection"||e.properties!=null&&e.newProperties!=null,Gq=(e,t)=>!(!t||e.type!=="set_selection"||t.type!=="set_selection"),Kq=e=>e.type!=="set_selection",dE=function(){var e=Lt(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},Yq=ql.PROPER,Kw=RegExp.prototype,CT=Kw.toString,Xq=fe(dE),Jq=Qe(function(){return CT.call({source:"a",flags:"b"})!="/a/b"}),Zq=Yq&&CT.name!="toString";(Jq||Zq)&&Vn(RegExp.prototype,"toString",function(){var e=Lt(this),t=lt(e.source),n=e.flags;return"/"+t+"/"+lt(n===void 0&&Fu(Kw,e)&&!("flags"in Kw)?Xq(e):n)},{unsafe:!0});var Yw=xt("unscopables"),Xw=Array.prototype;Xw[Yw]==null&&Qr.f(Xw,Yw,{configurable:!0,value:Xv(null)});var qf=function(e){Xw[Yw][e]=!0},Qq=hT.includes;Dt({target:"Array",proto:!0},{includes:function(e){return Qq(this,e,arguments.length>1?arguments[1]:void 0)}}),qf("includes");var eG=xt("match"),pE=function(e){var t;return ft(e)&&((t=e[eG])!==void 0?!!t:Kr(e)=="RegExp")},tG=K.TypeError,hE=function(e){if(pE(e))throw tG("The method doesn't accept regular expressions");return e},nG=xt("match"),gE=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[nG]=!1,"/./"[e](t)}catch{}}return!1},rG=fe("".indexOf);Dt({target:"String",proto:!0,forced:!gE("includes")},{includes:function(e){return!!~rG(lt(Br(this)),lt(hE(e)),arguments.length>1?arguments[1]:void 0)}});var _C,oG=/"/g,iG=fe("".replace);Dt({target:"String",proto:!0,forced:(_C="anchor",Qe(function(){var e=""[_C]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,o=lt(Br(this)),i="<"+t,n!==""&&(i+=" "+n+'="'+iG(lt(r),oG,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var oy,aG=vp.f,kC=fe("".endsWith),uG=fe("".slice),sG=Math.min,xT=gE("endsWith"),lG=!(xT||(oy=aG(String.prototype,"endsWith"),!oy||oy.writable));Dt({target:"String",proto:!0,forced:!lG&&!xT},{endsWith:function(e){var t=lt(Br(this));hE(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:sG(Gl(n),r),i=lt(e);return kC?kC(t,i,o):uG(t,o-i.length,o)===i}});var cG=fe([].join),fG=Gv!=Object,dG=fT("join",",");Dt({target:"Array",proto:!0,forced:fG||!dG},{join:function(e){return cG(xa(this),e===void 0?",":e)}});var vE=K.RegExp,Jw=Qe(function(){var e=vE("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),pG=Jw||Qe(function(){return!vE("a","y").sticky}),Jv={BROKEN_CARET:Jw||Qe(function(){var e=vE("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:pG,UNSUPPORTED_Y:Jw},hG=K.RegExp,mE=Qe(function(){var e=hG(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),gG=K.RegExp,yE=Qe(function(){var e=gG("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),vG=_n.get,mG=tE("native-string-replace",String.prototype.replace),l0=RegExp.prototype.exec,Zw=l0,yG=fe("".charAt),bG=fe("".indexOf),wG=fe("".replace),iy=fe("".slice),ay=function(){var e=/a/,t=/b*/g;return Ve(l0,e,"a"),Ve(l0,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),TC=Jv.BROKEN_CARET,uy=/()??/.exec("")[1]!==void 0;(ay||uy||TC||mE||yE)&&(Zw=function(e){var t,n,r,o,i,a,u,s=this,l=vG(s),c=lt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ve(Zw,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=TC&&s.sticky,g=Ve(dE,s),v=s.source,h=0,y=c;if(p&&(g=wG(g,"y",""),bG(g,"g")===-1&&(g+="g"),y=iy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&yG(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),uy&&(n=new RegExp("^"+v+"$(?!\\s)",g)),ay&&(r=s.lastIndex),o=Ve(l0,p?n:s,y),p?o?(o.input=iy(o.input,h),o[0]=iy(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ay&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),uy&&o&&o.length>1&&Ve(mG,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Xv(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var xd=Zw;Dt({target:"RegExp",proto:!0,forced:/./.exec!==xd},{exec:xd});var bE=Function.prototype,FC=bE.apply,$G=bE.bind,BC=bE.call,wE=typeof Reflect=="object"&&Reflect.apply||($G?BC.bind(FC):function(){return BC.apply(FC,arguments)}),EG=xt("species"),sy=RegExp.prototype,$E=function(e,t,n,r){var o=xt(e),i=!Qe(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Qe(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[EG]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=fe(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=fe(l),v=c.exec;return v===xd||v===sy.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});Vn(String.prototype,e,s[0]),Vn(sy,o,s[1])}r&&Gr(sy[o],"sham",!0)},SG=$T.charAt,EE=function(e,t,n){return t+(n?SG(e,t).length:1)},DG=Math.floor,ly=fe("".charAt),CG=fe("".replace),cy=fe("".slice),xG=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,AG=/\$([$&'`]|\d{1,2})/g,OG=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=AG;return o!==void 0&&(o=Ca(o),s=xG),CG(i,s,function(l,c){var f;switch(ly(c,0)){case"$":return"$";case"&":return e;case"`":return cy(t,0,n);case"'":return cy(t,a);case"<":f=o[cy(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=DG(d/10);return p===0?l:p<=u?r[p-1]===void 0?ly(c,1):r[p-1]+ly(c,1):l}f=r[d-1]}return f===void 0?"":f})},_G=K.TypeError,Ad=function(e,t){var n=e.exec;if(it(n)){var r=Ve(n,e,t);return r!==null&&Lt(r),r}if(Kr(e)==="RegExp")return Ve(xd,e,t);throw _G("RegExp#exec called on incompatible receiver")},Qw=xt("replace"),kG=Math.max,TG=Math.min,FG=fe([].concat),fy=fe([].push),PC=fe("".indexOf),IC=fe("".slice),BG="a".replace(/./,"$0")==="$0",NC=!!/./[Qw]&&/./[Qw]("a","$0")==="";$E("replace",function(e,t,n){var r=NC?"$":"$0";return[function(o,i){var a=Br(this),u=o==null?void 0:Bu(o,Qw);return u?Ve(u,o,a,i):Ve(t,lt(a),o,i)},function(o,i){var a=Lt(this),u=lt(o);if(typeof i=="string"&&PC(i,r)===-1&&PC(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=it(i);l||(i=lt(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ad(a,u);if(p===null||(fy(d,p),!c))break;lt(p[0])===""&&(a.lastIndex=EE(u,Gl(a.lastIndex),f))}for(var g,v="",h=0,y=0;y<d.length;y++){for(var b=lt((p=d[y])[0]),m=kG(TG(gp(p.index),u.length),0),$=[],E=1;E<p.length;E++)fy($,(g=p[E])===void 0?g:String(g));var S=p.groups;if(l){var x=FG([b],$,m,u);S!==void 0&&fy(x,S);var B=lt(wE(i,void 0,x))}else B=OG(b,u,m,$,S,i);m>=h&&(v+=IC(u,h,m)+B,h=m+b.length)}return v+IC(u,h)}]},!!Qe(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!BG||NC);/*! *****************************************************************************
- 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 e4=function(e,t){return e4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},e4(e,t)};function Yl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}e4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ar=function(){return Ar=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},Ar.apply(this,arguments)};function Vr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 Ue(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||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 t4(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var PG=0,RC=function(){this.id=""+PG++},IG=_n.set,NG=_n.getterFor("Array Iterator"),Ff=fE(Array,"Array",function(e,t){IG(this,{type:"Array Iterator",target:xa(e),index:0,kind:t})},function(){var e=NG(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ol.Arguments=Ol.Array,qf("keys"),qf("values"),qf("entries");var kl=function(e,t,n){for(var r in t)Vn(e,r,t[r],n);return e},RG=K.Array,LG=Math.max,n4=function(e,t,n){for(var r=Yu(e),o=Al(t,r),i=Al(n===void 0?r:n,r),a=RG(LG(i-o,0)),u=0;o<i;o++,u++)Cd(a,u,e[o]);return a.length=u,a},LC=Sd.f,jC=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jG={f:function(e){return jC&&Kr(e)=="Window"?function(t){try{return LC(t)}catch{return n4(jC)}}(e):LC(xa(e))}},MC=Qe(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),hh=Object.isExtensible,su=Qe(function(){hh(1)})||MC?function(e){return!!ft(e)&&(!MC||Kr(e)!="ArrayBuffer")&&(!hh||hh(e))}:hh,MG=!Qe(function(){return Object.isExtensible(Object.preventExtensions({}))}),Zv=hp(function(e){var t=Qr.f,n=!1,r=nE("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Sd.f,s=fe([].splice),l={};l[r]=1,u(l).length&&(Sd.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Dt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jG.f}))},fastKey:function(u,s){if(!ft(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Rt(u,r)){if(!su(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Rt(u,r)){if(!su(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return MG&&n&&su(u)&&!Rt(u,r)&&i(u),u}};Wv[r]=!0}),zG=K.TypeError,gg=function(e,t){this.stopped=e,this.result=t},zC=gg.prototype,Od=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),g=Pu(t,c),v=function(y){return r&&Uw(r,"normal",y),new gg(!0,y)},h=function(y){return f?(Lt(y),p?g(y[0],y[1],v):g(y[0],y[1])):p?g(y,v):g(y)};if(d)r=e;else{if(!(o=sE(e)))throw zG(Vv(e)+" is not iterable");if(mT(o)){for(i=0,a=Yu(e);a>i;i++)if((u=h(e[i]))&&Fu(zC,u))return u;return new gg(!1)}r=yT(e,o)}for(s=r.next;!(l=Ve(s,r)).done;){try{u=h(l.value)}catch(y){Uw(r,"throw",y)}if(typeof u=="object"&&u&&Fu(zC,u))return u}return new gg(!1)},VG=K.TypeError,Qv=function(e,t){if(Fu(t,e))return e;throw VG("Incorrect invocation")},AT=function(e,t,n){var r,o;return _l&&it(r=t.constructor)&&r!==n&&ft(o=r.prototype)&&o!==n.prototype&&_l(e,o),e},OT=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=K[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=fe(u[h]);Vn(u,h,h=="add"?function(b){return y(this,b===0?0:b),this}:h=="delete"?function(b){return!(o&&!ft(b))&&y(this,b===0?0:b)}:h=="get"?function(b){return o&&!ft(b)?void 0:y(this,b===0?0:b)}:h=="has"?function(b){return!(o&&!ft(b))&&y(this,b===0?0:b)}:function(b,m){return y(this,b===0?0:b,m),this})};if(Dd(e,!it(a)||!(o||u.forEach&&!Qe(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),Zv.enable();else if(Dd(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Qe(function(){f.has(1)}),g=lE(function(h){new a(h)}),v=!o&&Qe(function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)});g||((s=t(function(h,y){Qv(h,u);var b=AT(new a,h,s);return y!=null&&Od(y,b[i],{that:b,AS_ENTRIES:r}),b})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Dt({global:!0,forced:s!=a},l),s0(s,e),o||n.setStrong(s,e,r),s},gh=Zv.getWeakData,HG=_n.set,UG=_n.getterFor,WG=Kl.find,qG=Kl.findIndex,GG=fe([].splice),KG=0,vh=function(e){return e.frozen||(e.frozen=new _T)},_T=function(){this.entries=[]},dy=function(e,t){return WG(e.entries,function(n){return n[0]===t})};_T.prototype={get:function(e){var t=dy(this,e);if(t)return t[1]},has:function(e){return!!dy(this,e)},set:function(e,t){var n=dy(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=qG(this.entries,function(n){return n[0]===e});return~t&&GG(this.entries,t,1),!!~t}};var Pc,kT={getConstructor:function(e,t,n,r){var o=e(function(s,l){Qv(s,i),HG(s,{type:t,id:KG++,frozen:void 0}),l!=null&&Od(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=UG(t),u=function(s,l,c){var f=a(s),d=gh(Lt(l),!0);return d===!0?vh(f).set(l,c):d[f.id]=c,s};return kl(i,{delete:function(s){var l=a(this);if(!ft(s))return!1;var c=gh(s);return c===!0?vh(l).delete(s):c&&Rt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ft(s))return!1;var c=gh(s);return c===!0?vh(l).has(s):c&&Rt(c,l.id)}}),kl(i,n?{get:function(s){var l=a(this);if(ft(s)){var c=gh(s);return c===!0?vh(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},mh=_n.enforce,YG=!K.ActiveXObject&&"ActiveXObject"in K,TT=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},XG=OT("WeakMap",TT,kT);if(iT&&YG){Pc=kT.getConstructor(TT,"WeakMap",!0),Zv.enable();var Ic=XG.prototype,VC=fe(Ic.delete),yh=fe(Ic.has),HC=fe(Ic.get),UC=fe(Ic.set);kl(Ic,{delete:function(e){if(ft(e)&&!su(e)){var t=mh(this);return t.frozen||(t.frozen=new Pc),VC(this,e)||t.frozen.delete(e)}return VC(this,e)},has:function(e){if(ft(e)&&!su(e)){var t=mh(this);return t.frozen||(t.frozen=new Pc),yh(this,e)||t.frozen.has(e)}return yh(this,e)},get:function(e){if(ft(e)&&!su(e)){var t=mh(this);return t.frozen||(t.frozen=new Pc),yh(this,e)?HC(this,e):t.frozen.get(e)}return HC(this,e)},set:function(e,t){if(ft(e)&&!su(e)){var n=mh(this);n.frozen||(n.frozen=new Pc),yh(this,e)?UC(this,e,t):n.frozen.set(e,t)}else UC(this,e,t);return this}})}var py=xt("iterator"),WC=xt("toStringTag"),hy=Ff.values,FT=function(e,t){if(e){if(e[py]!==hy)try{Gr(e,py,hy)}catch{e[py]=hy}if(e[WC]||Gr(e,WC,t),o0[t]){for(var n in Ff)if(e[n]!==Ff[n])try{Gr(e,n,Ff[n])}catch{e[n]=Ff[n]}}}};for(var gy in o0)FT(K[gy]&&K[gy].prototype,gy);FT(uT,"DOMTokenList");var r4=new WeakMap,o4=new WeakMap,SE=new WeakMap,e1=new WeakMap,i4=new WeakMap,c0=new WeakMap,DE=new WeakMap,a4=new WeakMap,vg=new WeakMap,qC=new WeakMap,GC=new WeakMap,KC=new WeakMap,YC=new WeakMap,_d=new WeakMap,Tl=new WeakMap,CE=new WeakMap,t1=new WeakMap,xE=new WeakMap,n1=new WeakMap,mg=new WeakMap,BT=new WeakMap,pu=new WeakMap,PT=new WeakMap,XC=new WeakMap,vy=new WeakMap,JG=Kl.find,JC=!0;"find"in[]&&Array(1).find(function(){JC=!1}),Dt({target:"Array",proto:!0,forced:JC},{find:function(e){return JG(this,e,arguments.length>1?arguments[1]:void 0)}}),qf("find"),Dt({global:!0},{globalThis:K});const ZG=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Yg&&(O.fn.css=Yg),To&&(O.fn.append=To),ml&&(O.fn.addClass=ml),yl&&(O.fn.removeClass=yl),bl&&(O.fn.hasClass=bl),ko&&(O.fn.on=ko),ha&&(O.fn.focus=ha),Oo&&(O.fn.attr=Oo),Wg&&(O.fn.removeAttr=Wg),$l&&(O.fn.hide=$l),Kg&&(O.fn.show=Kg),hD&&(O.fn.offset=hD),qg&&(O.fn.width=qg),Gg&&(O.fn.height=Gg),Zg&&(O.fn.parent=Zg),Qg&&(O.fn.parents=Qg),vD&&(O.fn.is=vD),wl&&(O.fn.dataset=wl),_o&&(O.fn.val=_o),Jg&&(O.fn.text=Jg),pa&&(O.fn.html=pa),Sl&&(O.fn.children=Sl),Dl&&(O.fn.remove=Dl),El&&(O.fn.find=El),Xg&&(O.fn.each=Xg),Cl&&(O.fn.empty=Cl);var Fl,AE=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Mr=function(e){return Iu(e)&&e.nodeType===1},Iu=function(e){var t=AE(e);return!!t&&e instanceof t.Node},ZC=function(e){var t=e&&e.anchorNode&&AE(e.anchorNode);return!!t&&e instanceof t.Selection},IT=function(e){return Iu(e)&&e.nodeType===3},OE=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},NT=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Iu(r=i)&&r.nodeType===8||Mr(i)&&i.childNodes.length===0||Mr(i)&&i.getAttribute("contenteditable")==="false")&&(!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+=n==="forward"?1:-1);return[i,t]},QG=function(e,t,n){return Ue(NT(e,t,n),1)[0]},u4=function e(t){var n,r,o="";if(IT(t)&&t.nodeValue)return t.nodeValue;if(Mr(t)){try{for(var i=Vr(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=`
- `)}return o};function RT(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||RT(o,t)}}function s4(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Fl.ELEMENT_NODE?"":t.tagName.toLowerCase()}(function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Fl||(Fl={}));var l4=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Gf=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Nc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),eK=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),tK=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),c4=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Rc=!tK&&!eK&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=BT.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=mg.get(t);return n||(n=new RC,mg.set(t,n)),n},setNewKey:function(e){var t=new RC;mg.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Tl.get(r);if(o==null){if(D.isEditor(r))return n;break}var i=_d.get(r);if(i==null)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=A.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Tl.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=A.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[A.findPath(e,t)[0]];return X.get(e,n)},toDOMNode:function(e,t){var n;if(D.isEditor(t))n=CE.get(e);else{var r=A.findKey(e,t);n=xE.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){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(e,e);try{r=Mr(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=L.isBackward(t),i=A.toDOMPoint(e,n),a=L.isCollapsed(t)?i:A.toDOMPoint(e,r),u=A.getWindow(e).document.createRange(),s=Ue(o?a:i,2),l=s[0],c=s[1],f=Ue(o?i:a,2),d=f[0],p=f[1],g=!!(Mr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(Mr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,g?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=Ue(D.node(e,t.path),1)[0],a=A.toDOMNode(e,i);D.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=Vr(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,g=f.getAttribute("data-slate-length"),v=s+(g==null?p:parseInt(g,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(h){n={error:h}}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=Mr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?t1.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(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(D.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=D.point(e,u,{edge:l?"start":"end"}),f=l?D.before(e,c):D.after(e,c);if(f)return D.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 A.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((ZC(t)?t.anchorNode:t.startContainer)&&(ZC(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=c4&&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)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=A.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return L.isExpanded(d)&&L.isForward(d)&&Mr(i)&&D.void(e,{at:d.focus,mode:"highest"})&&(d=D.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Ue(o?t:function(b){var m,$=Ue(b,2),E=$[0],S=$[1];if(Mr(E)&&E.childNodes.length){var x=S===E.childNodes.length,B=x?S-1:S;for(E=(m=Ue(NT(E,B,x?"backward":"forward"),2))[0],x=(B=m[1])<S;Mr(E)&&E.childNodes.length;){var I=x?E.childNodes.length-1:0;E=QG(E,I,x?"backward":"forward")}S=x&&E.textContent!=null?E.textContent.length:0}return[E,S]}(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]"),g=null;if(p){c=p.closest('[data-slate-node="text"]');var v=A.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var h=v.cloneContents();t4(t4([],Ue(fD(h.querySelectorAll("[data-slate-zero-width]")))),Ue(fD(h.querySelectorAll("[contenteditable=false]")))).forEach(function(b){b.parentNode.removeChild(b)}),f=h.textContent.length,g=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(g=p).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach(function(b){f-=b.textContent.length})):f=1);g&&f===g.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Gf&&(!((r=g.textContent)===null||r===void 0)&&r.endsWith(`
- `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=A.toSlateNode(e,c);return{path:A.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return D.hasPath(e,n.path)&&D.hasPath(e,r.path)},getNodeType:function(e){return se.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return X.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=D.nodes(e,{universal:!0});try{for(var i=Vr(o),a=i.next();!a.done;a=i.next()){var u=Ue(a.value,1)[0];se.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=Ue(D.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=Ue(D.nodes(e,{match:function(r){return oe.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Ue(D.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&Ue(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(D.isEnd(e,n.anchor,t)||D.isEnd(e,n.focus,t))},getTextarea:function(e){var t=r4.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return e1.get(e)||null},getHoverbar:function(e){return c0.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(typeof n!="number"||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=A.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Vr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=D.nodes(e,{match:function(v){return!(!se.isElement(v)||e.isInline(v))},universal:!0});try{for(var f=Vr(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var g=p[0];RT(A.toDOMNode(e,g),function(v,h){var y=O(h);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||h.removeChild(v)})}}}catch(v){r={error:v}}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:""}]}}},nK=1,LT={},kd={};function rK(e,t){var n=e.key,r=e.factory,o=e.config,i=Ar(Ar({},o),t||{});if(kd[n]!=null)throw new Error("Duplicated key '"+n+"' in menu items");kd[n]=r,function(a,u){u!=null&&(LT[a]=u)}(n,i)}var QC=xt("species"),_E=function(e){var t=Ku(e),n=Qr.f;an&&t&&!t[QC]&&n(t,QC,{configurable:!0,get:function(){return this}})},oK=Qr.f,ex=Zv.fastKey,tx=_n.set,my=_n.getterFor,iK={getConstructor:function(e,t,n,r){var o=e(function(l,c){Qv(l,i),tx(l,{type:t,index:Xv(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Od(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=my(t),u=function(l,c,f){var d,p,g=a(l),v=s(l,c);return v?v.value=f:(g.last=v={index:p=ex(c,!0),key:c,value:f,previous:d=g.last,next:void 0,removed:!1},g.first||(g.first=v),d&&(d.next=v),an?g.size++:l.size++,p!=="F"&&(g.index[p]=v)),l},s=function(l,c){var f,d=a(l),p=ex(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return kl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,an?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,g=d.previous;delete f.index[d.index],d.removed=!0,g&&(g.next=p),p&&(p.previous=g),f.first==d&&(f.first=p),f.last==d&&(f.last=g),an?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Pu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),kl(i,n?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),an&&oK(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=my(t),i=my(r);fE(e,t,function(a,u){tx(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),_E(t)}};OT("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},iK);var aK=Kl.filter,uK=Yv("filter");Dt({target:"Array",proto:!0,forced:!uK},{filter:function(e){return aK(this,e,arguments.length>1?arguments[1]:void 0)}});var f4=`
- \v\f\r \u2028\u2029\uFEFF`,nx=fe("".replace),f0="["+f4+"]",sK=RegExp("^"+f0+f0+"*"),lK=RegExp(f0+f0+"*$"),yy=function(e){return function(t){var n=lt(Br(t));return 1&e&&(n=nx(n,sK,"")),2&e&&(n=nx(n,lK,"")),n}},cK={start:yy(1),end:yy(2),trim:yy(3)},fK=ql.PROPER,dK=cK.trim;Dt({target:"String",proto:!0,forced:function(e){return Qe(function(){return!!f4[e]()||"
"[e]()!=="
"||fK&&f4[e].name!==e})}("trim")},{trim:function(){return dK(this)}});var pK=K.TypeError,hK=xt("species"),jT=function(e,t){var n,r=Lt(e).constructor;return r===void 0||(n=Lt(r)[hK])==null?t:function(o){if(Kv(o))return o;throw pK(Vv(o)+" is not a constructor")}(n)},ds=Jv.UNSUPPORTED_Y,gK=Math.min,MT=[].push,vK=fe(/./.exec),ps=fe(MT),Lc=fe("".slice);$E("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=lt(Br(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!pE(o))return Ve(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,g=new RegExp(o.source,d+"g");(s=Ve(xd,g,a))&&!((l=g.lastIndex)>p&&(ps(f,Lc(a,p,s.index)),s.length>1&&s.index<a.length&&wE(MT,f,n4(s,1)),c=s[0].length,p=l,f.length>=u));)g.lastIndex===s.index&&g.lastIndex++;return p===a.length?!c&&vK(g,"")||ps(f,""):ps(f,Lc(a,p)),f.length>u?n4(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ve(t,this,o,i)}:t,[function(o,i){var a=Br(this),u=o==null?void 0:Bu(o,e);return u?Ve(u,o,a,i):Ve(r,lt(a),o,i)},function(o,i){var a=Lt(this),u=lt(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=jT(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ds?"g":"y"),d=new l(ds?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Ad(d,u)===null?[u]:[];for(var g=0,v=0,h=[];v<u.length;){d.lastIndex=ds?0:v;var y,b=Ad(d,ds?Lc(u,v):u);if(b===null||(y=gK(Gl(d.lastIndex+(ds?v:0)),u.length))===g)v=EE(u,v,c);else{if(ps(h,Lc(u,g,v)),h.length===p)return h;for(var m=1;m<=b.length-1;m++)if(ps(h,b[m]),h.length===p)return h;v=g=y}}return ps(h,Lc(u,g)),h}]},!!Qe(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ds);var kE=[];function mK(e){kE.push(e)}var zT={};function yK(e){var t=e.type,n=e.elemToHtml;zT[t||""]=n}function bK(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function wK(e,t){var n=e.type,r=n===void 0?"":n,o=e.children,i=o===void 0?[]:o,a=D.isVoid(t,e),u="";a||(u=i.map(function(c){return eF(c,t)}).join(""));var s=function(c){return zT[c]||bK}(r),l=s(e,u,t);return a||kE.forEach(function(c){return l=c(e,l)}),l}var Td,hs,rx,by,d0=K.Promise,VT=fe([].slice),HT=/(?:ipad|iphone|ipod).*applewebkit/i.test(tl),Zi=Kr(K.process)=="process",d4=K.setImmediate,p4=K.clearImmediate,$K=K.process,wy=K.Dispatch,EK=K.Function,ox=K.MessageChannel,SK=K.String,$y=0,Kf={};try{Td=K.location}catch{}var TE=function(e){if(Rt(Kf,e)){var t=Kf[e];delete Kf[e],t()}},Ey=function(e){return function(){TE(e)}},ix=function(e){TE(e.data)},ax=function(e){K.postMessage(SK(e),Td.protocol+"//"+Td.host)};d4&&p4||(d4=function(e){var t=VT(arguments,1);return Kf[++$y]=function(){wE(it(e)?e:EK(e),void 0,t)},hs($y),$y},p4=function(e){delete Kf[e]},Zi?hs=function(e){$K.nextTick(Ey(e))}:wy&&wy.now?hs=function(e){wy.now(Ey(e))}:ox&&!HT?(by=(rx=new ox).port2,rx.port1.onmessage=ix,hs=Pu(by.postMessage,by)):K.addEventListener&&it(K.postMessage)&&!K.importScripts&&Td&&Td.protocol!=="file:"&&!Qe(ax)?(hs=ax,K.addEventListener("message",ix,!1)):hs="onreadystatechange"in Ed("script")?function(e){Ww.appendChild(Ed("script")).onreadystatechange=function(){Ww.removeChild(this),TE(e)}}:function(e){setTimeout(Ey(e),0)});var jc,ou,Yf,zs,Sy,Dy,Cy,ux,UT={set:d4,clear:p4},DK=/ipad|iphone|ipod/i.test(tl)&&K.Pebble!==void 0,CK=/web0s(?!.*chrome)/i.test(tl),xK=vp.f,xy=UT.set,sx=K.MutationObserver||K.WebKitMutationObserver,lx=K.document,cx=K.process,bh=K.Promise,fx=xK(K,"queueMicrotask"),WT=fx&&fx.value;WT||(jc=function(){var e,t;for(Zi&&(e=cx.domain)&&e.exit();ou;){t=ou.fn,ou=ou.next;try{t()}catch(n){throw ou?zs():Yf=void 0,n}}Yf=void 0,e&&e.enter()},HT||Zi||CK||!sx||!lx?!DK&&bh&&bh.resolve?((Cy=bh.resolve(void 0)).constructor=bh,ux=Pu(Cy.then,Cy),zs=function(){ux(jc)}):Zi?zs=function(){cx.nextTick(jc)}:(xy=Pu(xy,K),zs=function(){xy(jc)}):(Sy=!0,Dy=lx.createTextNode(""),new sx(jc).observe(Dy,{characterData:!0}),zs=function(){Dy.data=Sy=!Sy}));var Ay,dx,qT,px,GT=WT||function(e){var t={fn:e,next:void 0};Yf&&(Yf.next=t),ou||(ou=t,zs()),Yf=t},AK=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=ga(t),this.reject=ga(n)},FE={f:function(e){return new AK(e)}},h4=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},OK=typeof window=="object",KT=UT.set,_K=xt("species"),po="Promise",hx=_n.getterFor(po),kK=_n.set,TK=_n.getterFor(po),Za=d0&&d0.prototype,wo=d0,Mc=Za,YT=K.TypeError,g4=K.document,BE=K.process,rl=FE.f,FK=rl,BK=!!(g4&&g4.createEvent&&K.dispatchEvent),XT=it(K.PromiseRejectionEvent),JT=!1,Xf=Dd(po,function(){var e=Uv(wo),t=e!==String(wo);if(!t&&$d===66)return!0;if($d>=51&&/native code/.test(e))return!1;var n=new wo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[_K]=r,!(JT=n.then(function(){})instanceof r)||!t&&OK&&!XT}),PK=Xf||!lE(function(e){wo.all(e).catch(function(){})}),ZT=function(e){var t;return!(!ft(e)||!it(t=e.then))&&t},PE=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;GT(function(){for(var r=e.value,o=e.state==1,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||(e.rejection===2&&NK(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(YT("Promise-chain cycle")):(u=ZT(a))?Ve(u,a,f,d):f(a)):d(r)}catch(g){p&&!s&&p.exit(),d(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&IK(e)})}},QT=function(e,t,n){var r,o;BK?((r=g4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),K.dispatchEvent(r)):r={promise:t,reason:n},!XT&&(o=K["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=K.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},IK=function(e){Ve(KT,K,function(){var t,n=e.facade,r=e.value;if(gx(e)&&(t=h4(function(){Zi?BE.emit("unhandledRejection",r,n):QT("unhandledrejection",n,r)}),e.rejection=Zi||gx(e)?2:1,t.error))throw t.value})},gx=function(e){return e.rejection!==1&&!e.parent},NK=function(e){Ve(KT,K,function(){var t=e.facade;Zi?BE.emit("rejectionHandled",t):QT("rejectionhandled",t,e.value)})},Ys=function(e,t,n){return function(r){e(t,r,n)}},ol=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,PE(e,!0))},v4=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw YT("Promise can't be resolved itself");var r=ZT(t);r?GT(function(){var o={done:!1};try{Ve(r,t,Ys(v4,o,e),Ys(ol,o,e))}catch(i){ol(o,i,e)}}):(e.value=t,e.state=1,PE(e,!1))}catch(o){ol({done:!1},o,e)}}};if(Xf&&(Mc=(wo=function(e){Qv(this,Mc),ga(e),Ve(Ay,this);var t=hx(this);try{e(Ys(v4,t),Ys(ol,t))}catch(n){ol(t,n)}}).prototype,(Ay=function(e){kK(this,{type:po,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=kl(Mc,{then:function(e,t){var n=TK(this),r=n.reactions,o=rl(jT(this,wo));return o.ok=!it(e)||e,o.fail=it(t)&&t,o.domain=Zi?BE.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&PE(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),dx=function(){var e=new Ay,t=hx(e);this.promise=e,this.resolve=Ys(v4,t),this.reject=Ys(ol,t)},FE.f=rl=function(e){return e===wo||e===qT?new dx(e):FK(e)},it(d0)&&Za!==Object.prototype)){px=Za.then,JT||(Vn(Za,"then",function(e,t){var n=this;return new wo(function(r,o){Ve(px,n,r,o)}).then(e,t)},{unsafe:!0}),Vn(Za,"catch",Mc.catch,{unsafe:!0}));try{delete Za.constructor}catch{}_l&&_l(Za,Mc)}function Pr(e){Promise.resolve().then(e)}function eF(e,t){return se.isElement(e)?wK(e,t):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return kE.forEach(function(s){return i=s(n,i)}),i}(e,t)}function tF(e){return"w-e-element-"+e}Dt({global:!0,wrap:!0,forced:Xf},{Promise:wo}),s0(wo,po,!1),_E(po),qT=Ku(po),Dt({target:po,stat:!0,forced:Xf},{reject:function(e){var t=rl(this);return Ve(t.reject,void 0,e),t.promise}}),Dt({target:po,stat:!0,forced:Xf},{resolve:function(e){return function(t,n){if(Lt(t),ft(n)&&n.constructor===t)return n;var r=FE.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Dt({target:po,stat:!0,forced:PK},{all:function(e){var t=this,n=rl(t),r=n.resolve,o=n.reject,i=h4(function(){var a=ga(t.resolve),u=[],s=0,l=1;Od(e,function(c){var f=s++,d=!1;l++,Ve(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=rl(t),r=n.reject,o=h4(function(){var i=ga(t.resolve);Od(e,function(a){Ve(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var vx=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},mx=function(e,t,n){var r=A.toDOMRange(e,t).getBoundingClientRect(),o=A.toDOMRange(e,n).getBoundingClientRect();return vx(r,o)&&vx(o,r)},nF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],rF=[];function RK(e){rF.push(e)}var IE=[];function LK(e){IE.push(e)}var p0={};function jK(e){var t=e.selector,n=e.parseElemHtml;p0[t]=n}var MK=Qr.f,zK=Sd.f,VK=_n.enforce,HK=xt("match"),Qo=K.RegExp,Vs=Qo.prototype,UK=K.SyntaxError,WK=fe(dE),qK=fe(Vs.exec),wh=fe("".charAt),yx=fe("".replace),bx=fe("".indexOf),GK=fe("".slice),KK=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,hu=/a/g,Oy=/a/g,YK=new Qo(hu)!==hu,oF=Jv.MISSED_STICKY,XK=Jv.UNSUPPORTED_Y,JK=an&&(!YK||oF||mE||yE||Qe(function(){return Oy[HK]=!1,Qo(hu)!=hu||Qo(Oy)==Oy||Qo(hu,"i")!="/a/i"}));if(Dd("RegExp",JK)){for(var Ci=function(e,t){var n,r,o,i,a,u,s=Fu(Vs,this),l=pE(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Ci)return e;if((l||Fu(Vs,e))&&(e=e.source,c&&(t="flags"in d?d.flags:WK(d))),e=e===void 0?"":lt(e),t=t===void 0?"":lt(t),d=e,mE&&"dotAll"in hu&&(r=!!t&&bx(t,"s")>-1)&&(t=yx(t,/s/g,"")),n=t,oF&&"sticky"in hu&&(o=!!t&&bx(t,"y")>-1)&&XK&&(t=yx(t,/y/g,"")),yE&&(i=function(p){for(var g,v=p.length,h=0,y="",b=[],m={},$=!1,E=!1,S=0,x="";h<=v;h++){if((g=wh(p,h))==="\\")g+=wh(p,++h);else if(g==="]")$=!1;else if(!$)switch(!0){case g==="[":$=!0;break;case g==="(":qK(KK,GK(p,h+1))&&(h+=2,E=!0),y+=g,S++;continue;case(g===">"&&E):if(x===""||Rt(m,x))throw new UK("Invalid capture group name");m[x]=!0,b[b.length]=[x,S],E=!1,x="";continue}E?x+=g:y+=g}return[y,b]}(e),e=i[0],f=i[1]),a=AT(Qo(e,t),s?this:Vs,Ci),(r||o||f.length)&&(u=VK(a),r&&(u.dotAll=!0,u.raw=Ci(function(p){for(var g,v=p.length,h=0,y="",b=!1;h<=v;h++)(g=wh(p,h))!=="\\"?b||g!=="."?(g==="["?b=!0:g==="]"&&(b=!1),y+=g):y+="[\\s\\S]":y+=g+wh(p,++h);return y}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Gr(a,"source",d===""?"(?:)":d)}catch{}return a},ZK=function(e){e in Ci||MK(Ci,e,{configurable:!0,get:function(){return Qo[e]},set:function(t){Qo[e]=t}})},wx=zK(Qo),$x=0;wx.length>$x;)ZK(wx[$x++]);Vs.constructor=Ci,Ci.prototype=Vs,Vn(K,"RegExp",Ci)}_E("RegExp");var QK=new RegExp(String.fromCharCode(160),"g");function iF(e){return e.replace(QK," ")}function Ex(e,t){var n=e.length;if(n){var r=e[n-1];if(oe.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function eY(e,t,n){return{type:"paragraph",children:[{text:O(e).text().replace(/\s+/gm," ")}]}}function _y(e,t){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==Fl.ELEMENT_NODE){if(l.nodeType===Fl.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=iF(c),Ex(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(Ex(u,`
- `)||u.push({text:`
- `}));var f=O(l);u.push(NE(f,a))}}),u)}(e,t),r=function(i){for(var a in p0)if(i[0].matches(a))return p0[a];return eY}(e),o=r(e[0],n,t);return D.isVoid(t,o)||(n.length===0&&(o.children=[{text:e.text().replace(/\s+/gm," ")}]),IE.forEach(function(i){o=i(e[0],o,t)})),o}function ky(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=e[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(n);var r={text:n=iF(n)};return IE.forEach(function(o){r=o(e[0],r,t)}),r}function NE(e,t){rF.forEach(function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=O(i(e[0])))});var n=s4(e);return n==="span"?e.attr("data-w-e-type")?_y(e,t):ky(e,t):n==="code"?s4(e.parent())==="pre"?_y(e,t):ky(e,t):nF.includes(n)?ky(e,t):_y(e,t)}var tY=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),nY=function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(a){t.getConfig().readOnly||r(a)},t.apply=function(a){var u,s,l,c,f,d,p,g,v=[];switch(a.type){case"insert_text":case"remove_text":case"set_node":try{for(var h=Vr(D.levels(t,{at:a.path})),y=h.next();!y.done;y=h.next()){var b=Ue(y.value,2),m=b[0],$=b[1],E=A.findKey(t,m);v.push([$,E])}}catch(re){u={error:re}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var S=Vr(D.levels(t,{at:P.parent(a.path)})),x=S.next();!x.done;x=S.next()){var B=Ue(x.value,2);m=B[0],$=B[1],E=A.findKey(t,m),v.push([$,E])}}catch(re){l={error:re}}finally{try{x&&!x.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}break;case"move_node":try{for(var I=Vr(D.levels(t,{at:P.common(P.parent(a.path),P.parent(a.newPath))})),H=I.next();!H.done;H=I.next()){var G=Ue(H.value,2);m=G[0],$=G[1],E=A.findKey(t,m),v.push([$,E])}}catch(re){f={error:re}}finally{try{H&&!H.done&&(d=I.return)&&d.call(I)}finally{if(f)throw f.error}}}o(a);try{for(var Y=Vr(v),U=Y.next();!U.done;U=Y.next()){var ie=Ue(U.value,2);$=ie[0],E=ie[1],m=Ue(D.node(t,$),1)[0],mg.set(m,E)}}catch(re){p={error:re}}finally{try{U&&!U.done&&(g=Y.return)&&g.call(Y)}finally{if(p)throw p.error}}},t.deleteBackward=function(a){if(a!=="line")return i(a);if(e.selection&&L.isCollapsed(e.selection)){var u=D.above(e,{match:function(f){return D.isBlock(e,f)},at:e.selection});if(u){var s=Ue(u,2)[1],l=D.range(e,s,e.selection.anchor),c=function(f,d){var p=D.range(f,L.end(d)),g=Array.from(D.positions(f,{at:d})),v=0,h=g.length,y=Math.floor(h/2);if(mx(f,D.range(f,g[v]),p))return D.range(f,g[v],p);if(g.length<2)return D.range(f,g[g.length-1],p);for(;y!==g.length&&y!==v;)mx(f,D.range(f,g[y]),p)?h=y:v=y,y=Math.floor((v+h)/2);return D.range(f,g[h],p)}(t,l);L.isCollapsed(c)||N.delete(e,{at:c})}}},t.onChange=function(){var a=t.selection;a!=null&&PT.set(t,a),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return eF(u,t)}).join("")},t.getText=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return X.string(u)}).join(`
- `)},t.getSelectionText=function(){var a=t.selection;return a==null?"":D.string(e,a)},t.getElemsByType=function(a,u){var s,l;u===void 0&&(u=!1);var c=[],f=D.nodes(t,{at:[],universal:!0});try{for(var d=Vr(f),p=d.next();!p.done;p=d.next()){var g=Ue(p.value,1)[0];if(se.isElement(g)&&(u?g.type.indexOf(a)>=0:g.type===a)){var v=tF(A.findKey(t,g).id);c.push(Ar(Ar({},g),{id:v}))}}}catch(h){s={error:h}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}return c},t.getElemsByTypePrefix=function(a){return t.getElemsByType(a,!0)},t.isEmpty=function(){var a=t.children,u=a===void 0?[]:a;if(u.length>1)return!1;var s=u[0];if(s==null)return!0;if(se.isElement(s)&&s.type==="paragraph"){var l=s.children,c=l===void 0?[]:l;if(c.length>1)return!1;var f=c[0];if(f==null||oe.isText(f)&&f.text==="")return!0}return!1},t.clear=function(){N.removeNodes(t,{at:{anchor:D.start(t,[]),focus:D.end(t,[])},mode:"highest"}),t.children.length===0&&N.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(a){return A.getParentNode(t,a)},t.dangerouslyInsertHtml=function(a){if(a===void 0&&(a=""),a){var u=O(a);if((u=u.filter(function(c){if(c.nodeType!==Fl.ELEMENT_NODE)return!1;var f=s4(O(c));return!tY.has(f)})).length!==0){var s=O('<div hidden="true"></div>');s.append(u),O("body").append(s);var l=[];if(u.forEach(function(c){var f=!1;if(nF.includes(c.tagName.toLowerCase()))f=!0;else for(var d in p0)if(c.matches(d)){f=!0;break}if(f){var p=O(c);l.push(NE(p,t))}else{var g=u4(c).trim();g&&g.split(/\r\n|\r|\n/).forEach(function(v,h){v.trim()&&l.push({type:"paragraph",children:[{text:v}]})})}}),l.length)try{t.insertFragment(l)}catch{t.insertText(u4(s[0]))}s.remove()}}},t.setHtml=function(a){if(a===void 0&&(a=""),a){var u=t.isDisabled(),s=t.isFocused(),l=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),N.setNodes(e,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(a),s||(t.deselect(),t.blur()),u&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(l))}catch{t.select(D.start(t,[]))}}},t},Bf=function(e){return e!=null},rY={object:!0,function:!0,undefined:!0},oY=function(e){if(!function(t){return!!Bf(t)&&hasOwnProperty.call(rY,typeof t)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}},iY=/^\s*class[\s{/}]/,aY=Function.prototype.toString,Sx=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!oY(t)}(e)&&!iY.test(aY.call(e))},RE=function(e){return e!=null},uY=Object.keys,sY=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return uY(RE(e)?Object(e):e)},lY=function(e){if(!RE(e))throw new TypeError("Cannot use null or undefined");return e},cY=Math.max,Dx=function(){var e,t=Object.assign;return typeof t=="function"&&(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=cY(arguments.length,2);for(e=Object(lY(e)),o=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<i;++r)sY(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},fY=Array.prototype.forEach,dY=Object.create,pY=function(e,t){var n;for(n in e)t[n]=e[n]},Cx=function(e){var t=dY(null);return fY.call(arguments,function(n){RE(n)&&pY(Object(n),t)}),t},Ty="razdwatrzy",hY=String.prototype.indexOf,zc=typeof Ty.contains=="function"&&Ty.contains("dwa")===!0&&Ty.contains("foo")===!1?String.prototype.contains:function(e){return hY.call(this,e,arguments[1])>-1},$h=hp(function(e){var t=e.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],Bf(n)?(o=zc.call(n,"c"),i=zc.call(n,"e"),a=zc.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?Dx(Cx(u),s):s};t.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],Bf(r)?Sx(r)?Bf(o)?Sx(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Bf(n)?(i=zc.call(n,"c"),a=zc.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?Dx(Cx(u),s):s}}),Fy=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},gY=hp(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,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(h,y){var b;return Fy(y),g.call(this,"__ee__")?b=this.__ee__:(b=v.value=f(null),d(this,"__ee__",v),v.value=null),b[h]?typeof b[h]=="object"?b[h].push(y):b[h]=[b[h],y]:b[h]=y,this},r=function(h,y){var b,m;return Fy(y),m=this,n.call(this,h,b=function(){o.call(m,h,b),l.call(y,this,arguments)}),b.__eeOnceListener__=y,this},o=function(h,y){var b,m,$,E;if(Fy(y),!g.call(this,"__ee__"))return this;if(!(b=this.__ee__)[h])return this;if(typeof(m=b[h])=="object")for(E=0;$=m[E];++E)$!==y&&$.__eeOnceListener__!==y||(m.length===2?b[h]=m[E?0:1]:m.splice(E,1));else m!==y&&m.__eeOnceListener__!==y||delete b[h];return this},i=function(h){var y,b,m,$,E;if(g.call(this,"__ee__")&&($=this.__ee__[h]))if(typeof $=="object"){for(b=arguments.length,E=new Array(b-1),y=1;y<b;++y)E[y-1]=arguments[y];for($=$.slice(),y=0;m=$[y];++y)l.call(m,this,E)}else switch(arguments.length){case 1:c.call($,this);break;case 2:c.call($,this,arguments[1]);break;case 3:c.call($,this,arguments[1],arguments[2]);break;default:for(b=arguments.length,E=new Array(b-1),y=1;y<b;++y)E[y-1]=arguments[y];l.call($,this,E)}},a={on:n,once:r,off:o,emit:i},u={on:$h(n),once:$h(r),off:$h(o),emit:$h(i)},s=p({},u),e.exports=t=function(h){return h==null?f(s):p(Object(h),u)},t.methods=a});function Eh(e){var t=XC.get(e);return t==null&&(t=gY(),XC.set(e,t)),t}var h0=new WeakMap;function xx(e,t){var n=h0.get(e);n==null&&(n=new Set,h0.set(e,n)),n.add(t)}function vY(e){return h0.get(e)||new Set}function mY(e){h0.set(e,new Set)}function LE(e){var t=A.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function jE(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=LE(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(e,n).getClientRects()[0];if(s==null)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 g=u-f;c.bottom=g+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function ME(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=se.isElement(t)&&e.isVoid(t),i=se.isElement(t)&&e.isInline(t),a=n1.get(t);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(x){var B=[];B.push(x);for(var I=0;B.length>0;){var H=B.pop();if(H==null||++I>1e4)break;var G=H.nodeName;if(H.nodeType===1){var Y=G.toLowerCase();if(ZG.includes(Y)||Y==="iframe"||Y==="video")return H;var U=H.children||[],ie=U.length;if(ie)for(var re=ie-1;re>=0;re--)B.push(U[re])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var g=LE(e);if(g==null)return r;var v=g.top,h=g.left,y=g.width,b=g.height,m={},$=s-v,E=l-h;if(n==="bar")return m.left=E+"px",$>40?m.bottom=b-$+5+"px":m.top=$+c+5+"px",m;if(n==="modal"){var S;return o?i?E>(y-f)/2?m.right=y-E+5+"px":m.left=E+f+5+"px":m.left="20px":m.left=E+"px",o?((S=$)<0&&(S=0),m.top=S+"px"):$>(b-c)/2?m.bottom=b-$+5+"px":((S=$+c)<0&&(S=0),m.top=S+5+"px"),m}throw new Error("type '"+n+"' is invalid")}function m4(e,t){Pr(function(){var n=LE(e);if(n!=null){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,g=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var h=t.css("top"),y=parseInt(h.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var b=t.css("bottom"),m=parseInt(b.toString())-Math.abs(l);t.css("bottom",m+"px")}if(v.indexOf("left")>=0&&(r=g+f-a)>0){var $=t.css("left"),E=parseInt($.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),x=parseInt(S.toString())-Math.abs(c);t.css("right",x+"px")}}})}var yY=Yv("slice"),bY=xt("species"),By=K.Array,wY=Math.max;Dt({target:"Array",proto:!0,forced:!yY},{slice:function(e,t){var n,r,o,i=xa(this),a=Yu(i),u=Al(e,a),s=Al(t===void 0?a:t,a);if(i0(i)&&(n=i.constructor,(Kv(n)&&(n===By||i0(n.prototype))||ft(n)&&(n=n[bY])===null)&&(n=void 0),n===By||n===void 0))return VT(i,u,s);for(r=new(n===void 0?By:n)(wY(s-u,0)),o=0;u<s;u++,o++)u in i&&Cd(r,o,i[u]);return r.length=o,r}});var $Y=vp.f,Ax=fe("".startsWith),EY=fe("".slice),SY=Math.min,aF=gE("startsWith"),DY=!aF&&!!function(){var e=$Y(String.prototype,"startsWith");return e&&!e.writable}();Dt({target:"String",proto:!0,forced:!DY&&!aF},{startsWith:function(e){var t=lt(Br(this));hE(e);var n=Gl(SY(arguments.length>1?arguments[1]:void 0,t.length)),r=lt(e);return Ax?Ax(t,r,n):EY(t,n,n+r.length)===r}});var gs=Object.assign,Ox=Object.defineProperty,CY=fe([].concat),_x=!gs||Qe(function(){if(an&&gs({b:1},gs(Ox({},"a",{enumerable:!0,get:function(){Ox(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),gs({},e)[n]!=7||nl(gs({},t)).join("")!=r})?function(e,t){for(var n=Ca(e),r=arguments.length,o=1,i=vT.f,a=pT.f;r>o;)for(var u,s=Gv(arguments[o++]),l=i?CY(nl(s),i(s)):nl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Ve(a,s,u)||(n[u]=s[u]);return n}:gs;Dt({target:"Object",stat:!0,forced:Object.assign!==_x},{assign:_x});var xY=["props","attrs","style","dataset","on","hook"];function uF(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!xY.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=QV(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[i]=s,u)),delete n[i]}}else e.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&uF(i)})}var zE=[];function AY(e){zE.push(e)}var sF={};function OY(e){var t=e.type,n=e.renderElem;sF[t||""]=n}function _Y(e,t,n){var r=n.isInline(e)?"span":"div";return Ce(r,null,t)}function kY(e,t){var n,r=A.findKey(t,e),o=t.isInline(e),i=D.isVoid(t,e),a=tF(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=l===void 0?[]:l,f=function(b){return sF[b]||_Y}(s);n=i?null:c.map(function(b,m){return y4(b,m,e,t)});var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",g=Ue(X.texts(e),1),v=Ue(g[0],1)[0],h=y4(v,0,e,t),y=Ce(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},h);d=Ce(p,{style:{position:"relative"}},d,y),_d.set(v,0),Tl.set(v,e)}return d.data==null&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(b,m){var $=m;return zE.forEach(function(E){$=E(b,m)}),$}(e,d)),Pr(function(){var b=OE(a);b!=null&&(xE.set(r,b),n1.set(e,b),t1.set(b,e))}),d}function kx(e,t){return t===void 0&&(t=!1),Ce("span",{"data-slate-string":!0},t?e+`
- `:e)}function Py(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Ce("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Ce("br",null):null)}function TY(e,t,n){if(e.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=A.findKey(n,e),o=n.getConfig().decorate;if(o==null)throw new Error("Can not get config.decorate");var i=A.findPath(n,e),a=o([e,i]),u=oe.decorations(e,a),s=u.map(function(f,d){var p=function(g,v,h,y,b){v===void 0&&(v=!1);var m=g.text,$=A.findPath(b,h),E=P.parent($);if(D.isEditor(y))throw new Error("Text node "+JSON.stringify(h)+" parent is Editor");return b.isVoid(y)?Py(X.string(y).length):m!==""||y.children[y.children.length-1]!==h||b.isInline(y)||D.string(b,E)!==""?m===""?Py():v&&m.slice(-1)===`
- `?kx(m,!0):kx(m):Py(0,!0)}(f,d===u.length-1,e,t,n);return p=function(g,v){var h=v;return zE.forEach(function(y){h=y(g,h)}),h}(f,p),Ce("span",{"data-slate-leaf":!0},p)}),l=function(f){return"w-e-text-"+f}(r.id),c=Ce("span",{"data-slate-node":"text",id:l,key:r.id},s);return Pr(function(){var f=OE(l);f!=null&&(xE.set(r,f),n1.set(e,f),t1.set(f,e))}),c}function y4(e,t,n,r){return _d.set(e,t),Tl.set(e,n),se.isElement(e)?kY(e,r):TY(e,n,r)}function FY(e,t){var n,r=e.$scroll,o=function(v){return"w-e-textarea-"+v}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(v,h){return h===void 0&&(h=!1),xl("div#"+v,{props:{contentEditable:!h}})}(o,a),l=t.children||[];s.children=l.map(function(v,h){var y=y4(v,h,t,t);return uF(y),y});var c=GC.get(e);if(c==null&&(c=!0),c){var f=function(v,h){return O(`<div
- id="`+v+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);r.append(f),e.$textArea=f,n=f[0],(p=qz([Gz,Zz,oV,Kz,Jz]))(n,s),GC.set(e,!1),KC.set(e,p)}else{var d=YC.get(e),p=KC.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=OE(o))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var g=AE(n);g&&BT.set(t,g)}CE.set(t,n),n1.set(t,n),t1.set(n,t),YC.set(e,s)}}function Tx(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Fx(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Iy(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Fx(n.overflowY,t)||Fx(n.overflowX,t)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function Sh(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 Bx(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Pe){return Pe!==a};if(!Tx(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;Tx(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Iy(f)&&!Iy(document.documentElement)||f!=null&&Iy(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),y=h.height,b=h.width,m=h.top,$=h.right,E=h.bottom,S=h.left,x=o==="start"||o==="nearest"?m:o==="end"?E:m+y/2,B=i==="center"?S+b/2:i==="end"?$:S,I=[],H=0;H<c.length;H++){var G=c[H],Y=G.getBoundingClientRect(),U=Y.height,ie=Y.width,re=Y.top,ae=Y.right,me=Y.bottom,De=Y.left;if(r==="if-needed"&&m>=0&&S>=0&&E<=p&&$<=d&&m>=re&&E<=me&&S>=De&&$<=ae)return I;var $e=getComputedStyle(G),le=parseInt($e.borderLeftWidth,10),Me=parseInt($e.borderTopWidth,10),T=parseInt($e.borderRightWidth,10),_=parseInt($e.borderBottomWidth,10),F=0,R=0,q="offsetWidth"in G?G.offsetWidth-G.clientWidth-le-T:0,j="offsetHeight"in G?G.offsetHeight-G.clientHeight-Me-_:0;if(l===G)F=o==="start"?x:o==="end"?x-p:o==="nearest"?Sh(v,v+p,p,Me,_,v+x,v+x+y,y):x-p/2,R=i==="start"?B:i==="center"?B-d/2:i==="end"?B-d:Sh(g,g+d,d,le,T,g+B,g+B+b,b),F=Math.max(0,F+v),R=Math.max(0,R+g);else{F=o==="start"?x-re-Me:o==="end"?x-me+_+j:o==="nearest"?Sh(re,me,U,Me,_+j,x,x+y,y):x-(re+U/2)+j/2,R=i==="start"?B-De-le:i==="center"?B-(De+ie/2)+q/2:i==="end"?B-ae+T+q:Sh(De,ae,ie,le,T+q,B,B+b,b);var ue=G.scrollLeft,be=G.scrollTop;x+=be-(F=Math.max(0,Math.min(be+F,G.scrollHeight-U+j))),B+=ue-(R=Math.max(0,Math.min(ue+R,G.scrollWidth-ie+q)))}I.push({el:G,top:F,left:R})}return I}function Px(e){return e===Object(e)&&Object.keys(e).length!==0}function BY(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(Px(t)&&typeof t.behavior=="function")return t.behavior(n?[]:Bx(e,t));if(!n){var r=function(o){return o===!1?{block:"end",inline:"nearest"}:Px(o)?o:{block:"start",inline:"nearest"}}(t);return function(o,i){i===void 0&&(i="auto");var a="scrollBehavior"in document.body.style;o.forEach(function(u){var s=u.el,l=u.top,c=u.left;s.scroll&&a?s.scroll({top:l,left:c,behavior:i}):(s.scrollTop=l,s.scrollLeft=c)})}(Bx(e,r),r.behavior)}}function mr(e,t){return Iu(t)&&A.hasDOMNode(e,t,{editable:!0})}function Ix(e,t){if(e.getConfig().readOnly)return!1;var n=Hs(e,t)&&A.toSlateNode(e,t);return D.isVoid(e,n)}function Hs(e,t){return Iu(t)&&A.hasDOMNode(e,t)}var Ny=new WeakMap,Nx=new WeakMap,PY={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"},IY={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"},NY={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},vt=function(e){var t=PY[e],n=IY[e],r=NY[e],o=t&&Nm(t),i=n&&Nm(n),a=r&&Nm(r);return function(u){return!(!o||!o(u))||!!(l4&&i&&i(u))||!(l4||!a||!a(u))}},bt={isBold:vt("bold"),isCompose:vt("compose"),isMoveBackward:vt("moveBackward"),isMoveForward:vt("moveForward"),isDeleteBackward:vt("deleteBackward"),isDeleteForward:vt("deleteForward"),isDeleteLineBackward:vt("deleteLineBackward"),isDeleteLineForward:vt("deleteLineForward"),isDeleteWordBackward:vt("deleteWordBackward"),isDeleteWordForward:vt("deleteWordForward"),isExtendBackward:vt("extendBackward"),isExtendForward:vt("extendForward"),isExtendLineBackward:vt("extendLineBackward"),isExtendLineForward:vt("extendLineForward"),isItalic:vt("italic"),isMoveLineBackward:vt("moveLineBackward"),isMoveLineForward:vt("moveLineForward"),isMoveWordBackward:vt("moveWordBackward"),isMoveWordForward:vt("moveWordForward"),isRedo:vt("redo"),isSplitBlock:vt("splitBlock"),isTransposeCharacter:vt("transposeCharacter"),isUndo:vt("undo"),isTab:vt("tab"),isSelectAll:vt("selectAll")};function Ht(e){e.preventDefault()}var RY={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Rc&&!o&&mr(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ue(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";D.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":D.deleteForward(n);break;case"deleteContentBackward":D.deleteBackward(n);break;case"deleteEntireSoftLine":D.deleteBackward(n,{unit:"line"}),D.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":D.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!vy.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&D.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&mr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Mr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Iu(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(se.isElement(s)&&!n.isVoid(s))return}if(Nc){var l=a.getSelection();l==null||l.removeAllRanges()}pu.delete(n)}}}},focus:function(e,t,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,Gf&&e.target!==r?r.focus():pu.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Hs(n,e.target)&&Iu(e.target)){var r=A.toSlateNode(n,e.target),o=A.findPath(n,r);if(D.hasPath(n,o)&&X.get(n,o)===r){var i=D.start(n,o),a=D.end(n,o),u=D.void(n,{at:i}),s=D.void(n,{at:a});if(u&&s&&P.equals(u[1],s[1])){var l=D.range(n,i);N.select(n,l)}}}},compositionstart:function(e,t,n){if(mr(n,e.target)){var r=n.selection;if(r&&L.isExpanded(r)&&D.deleteFragment(n),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Ny.set(n,i),Nx.set(n,o)}t.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(mr(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(c4||Gf)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ue(D.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ue(D.node(n,i.path.slice(0,u+1)),1)[0];if(se.isElement(s)&&((Nc||Gf)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=Ny.get(n)||"",c>0&&D.insertText(n,l.slice(0,c)),t.changeViewState()):D.insertText(n,l)}else D.insertText(n,l);Nc||setTimeout(function(){var f=n.selection;if(f!=null){var d=Nx.get(n);d!=null&&A.toDOMRange(n,f).startContainer!==d&&(d.textContent=Ny.get(n)||"")}})}}}},compositionupdate:function(e,t,n){mr(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&mr(n,r.target)){if(function(a,u){var s=e1.get(a),l=s&&s.getMenus(),c=c0.get(a),f=c&&c.getMenus(),d=Ar(Ar({},l),f);for(var p in d){var g=d[p],v=g.hotkey;if(v&&iH(v,u)&&!g.isDisabled(a)){var h=g.getValue(a);g.exec(a,h)}}}(n,r),bt.isTab(r))return Ht(r),void n.handleTab();if(bt.isRedo(r))return Ht(r),void(typeof n.redo=="function"&&n.redo());if(bt.isUndo(r))return Ht(r),void(typeof n.undo=="function"&&n.undo());if(bt.isMoveLineBackward(r))return Ht(r),void N.move(n,{unit:"line",reverse:!0});if(bt.isMoveLineForward(r))return Ht(r),void N.move(n,{unit:"line"});if(bt.isExtendLineBackward(r))return Ht(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(bt.isExtendLineForward(r))return Ht(r),void N.move(n,{unit:"line",edge:"focus"});if(bt.isMoveBackward(r))return Ht(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(bt.isMoveForward(r))return Ht(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(bt.isMoveWordBackward(r))return Ht(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(bt.isMoveWordForward(r))return Ht(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(bt.isSelectAll(r))return Ht(r),void n.selectAll();if(Rc){if((c4||Nc)&&o&&(bt.isDeleteBackward(r)||bt.isDeleteForward(r))&&L.isCollapsed(o)){var i=X.parent(n,o.anchor.path);if(se.isElement(i)&&D.isVoid(n,i)&&D.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(bt.isBold(r)||bt.isItalic(r)||bt.isTransposeCharacter(r))return void Ht(r);if(bt.isSplitBlock(r))return Ht(r),void D.insertBreak(n);if(bt.isDeleteBackward(r))return Ht(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n));if(bt.isDeleteForward(r))return Ht(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n));if(bt.isDeleteLineBackward(r))return Ht(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"line"}));if(bt.isDeleteLineForward(r))return Ht(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"line"}));if(bt.isDeleteWordBackward(r))return Ht(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"backward"}):D.deleteBackward(n,{unit:"word"}));if(bt.isDeleteWordForward(r))return Ht(r),void(o&&L.isExpanded(o)?D.deleteFragment(n,{direction:"forward"}):D.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Rc&&!n.getConfig().readOnly&&mr(n,e.target)){e.preventDefault();var r=e.key;D.insertText(n,r)}},copy:function(e,t,n){var r=e;if(mr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&mr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))D.deleteFragment(n);else{var a=X.parent(n,o.anchor.path);D.isVoid(n,a)&&N.delete(n)}}},paste:function(e,t,n){vy.set(n,!0);var r=e;if(!n.getConfig().readOnly&&mr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void vy.set(n,!1);if(!Rc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(e,t,n){if(Hs(n,e.target)){var r=A.toSlateNode(n,e.target);D.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Hs(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(D.isVoid(n,o)||D.void(n,{at:i,voids:!0})){var a=D.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&Hs(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&Hs(n,r.target)&&o!=null&&!(Rc&&Nc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),t.isDraggingInternally&&(i&&N.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},LY=1,jY=function(){function e(t){var n=this;this.id=LY++,this.$textArea=null,this.$progressBar=O('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=O('<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=Tu(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=A.findDocumentOrShadowRoot(s),p=d.activeElement,g=A.toDOMNode(s,s),v=d.getSelection();if(p===g?(u.latestElement=p,pu.set(s,!0)):pu.delete(s),!v)return N.deselect(s);var h=v.anchorNode,y=v.focusNode,b=mr(s,h)||Ix(s,h),m=mr(s,y)||Ix(s,y);if(b&&m){var $=A.toSlateRange(s,v,{exactMatch:!1,suppressThrow:!1});N.select(s,$)}else N.deselect(s)}})(n,a)},100);var r=O(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=O('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=O('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Pr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=o4.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(W3(RY,function(i,a){n.on(a,function(u){i(u,t,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Tu(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?i&&i(n):t.latestEditorSelection!=null&&n.selection==null&&o&&o(n),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;FY(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=O('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Pr(function(){(function(r,o){var i=o.selection,a=A.findDocumentOrShadowRoot(o).getSelection();if(a&&!r.isComposing&&o.isFocused()){var u=a.type!=="None";if(i||u){var s=CE.get(o),l=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(l=!0),u&&l&&i){var c=A.toSlateRange(o,a,{exactMatch:!0,suppressThrow:!0});if(c&&L.equals(c,i)){var f=!0;if(L.isCollapsed(i)){var d=a.anchorNode,p=a.anchorOffset;if(d===s){var g=s.childNodes,v=void 0;(v=g[p])&&v.matches("table")&&(f=!1),(v=g[p-1])&&v.matches("table")&&(f=!1)}}if(f)return}}if(!i||A.hasRange(o,i)){r.isUpdatingSelection=!0;var h=i&&A.toDOMRange(o,i);if(h){L.isBackward(i)?a.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):a.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var y=h.startContainer.parentElement;y.closest("[data-slate-spacer]")||(y.getBoundingClientRect=h.getBoundingClientRect.bind(h),BY(y,{scrollMode:"if-needed",boundary:s.parentElement,block:"end",behavior:"smooth"}),delete y.getBoundingClientRect)}else a.removeAllRanges();setTimeout(function(){h&&Gf&&s.focus(),r.isUpdatingSelection=!1})}else o.selection=A.toSlateRange(o,a,{exactMatch:!1,suppressThrow:!1})}}})(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();$E("match",function(e,t,n){return[function(r){var o=Br(this),i=r==null?void 0:Bu(r,e);return i?Ve(i,r,o):new RegExp(r)[e](lt(o))},function(r){var o=Lt(this),i=lt(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Ad(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Ad(o,i))!==null;){var f=lt(s[0]);l[c]=f,f===""&&(o.lastIndex=EE(i,Gl(o.lastIndex),u)),c++}return c===0?null:l}]});function VE(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&&VE(t)}function HE(){return O('<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 lF(){return O('<div class="w-e-bar-divider"></div>')}function cF(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=l4?"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+`
- `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var UE=function(){function e(t,n){var r=this;n===void 0&&(n=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if(o!=="button")throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=u===void 0?"":u,l=t.iconSvg,c=l===void 0?"":l,f=this.$button;if(c){var d=O(c);VE(d),f.append(d)}else f.text(a);cF(f,c,a,s,n),n&&c&&f.append(O('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),this.$elem.append(f),Pr(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),tr(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=tr(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=tr(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=tr(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),MY=function(e){function t(n,r){return r===void 0&&(r=!1),e.call(this,n,r)||this}return Yl(t,e),t.prototype.onButtonClick=function(){},t}(UE),WE=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=a4.get(t);n==null&&(n=new Set,a4.set(t,n)),n.add(this),vg.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=vg.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=vg.get(this);t&&t.emit("modalOrPanelHide")}},e}(),zY=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=O('<div class="w-e-drop-panel"></div>'),r}return Yl(t,e),t.prototype.genSelfElem=function(){return null},t}(WE),VY=function(e){function t(n,r){r===void 0&&(r=!1);var o=e.call(this,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=HE();o.$button.append(i)}return o}return Yl(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=tr(this);if(this.dropPanel==null){var o=new zY(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t}(UE),HY=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=O('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return Yl(t,e),t.prototype.genSelfElem=function(){var n=this,r=O('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=vg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t}(WE);function Or(e,t,n){var r=O('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=O('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function Xl(e,t){var n=O('<div class="button-container"></div>'),r=O('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var UY=function(e){function t(n,r){r===void 0&&(r=!1);var o=e.call(this,n,r)||this;return o.$body=O("body"),o.modal=null,o.menu=n,o}return Yl(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=tr(this),r=this.menu.getModalPositionNode(n);return se.isElement(r)?ME(n,r,"modal"):jE(n)},t.prototype.handleModal=function(){var n=tr(this),r=this.menu;if(this.modal==null){var o=new HY(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=tr(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||m4(o,n.$elem),setTimeout(function(){o.blur()})}},t}(UE),WY=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=O('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return Yl(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=O("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=O('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=O('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(O('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},t.prototype.genSelfElem=function(){return null},t}(WE),qY=function(){function e(t,n){var r=this;n===void 0&&(n=!1),this.$elem=O('<div class="w-e-bar-item"></div>'),this.$button=O('<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=u===void 0?"":u,l=t.hotkey,c=l===void 0?"":l;if(o!=="select")throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),cF(f,s,i,c,n),this.$elem.append(f),this.menu=t,Pr(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),tr(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=tr(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new WY(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=O(u).attr("data-value");t.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=tr(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=tr(this),n=this.menu,r=n.getValue(t),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(t),r.toString()),i=this.$button,a=HE();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=tr(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),Rx=function(){function e(t){this.$elem=O('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=O('<div class="w-e-bar-item-menus-container"></div>'),this.$button=O('<button type="button"></button>');var n=t.iconSvg,r=t.title,o=this.$elem,i=this.$button;if(n){var a=O(n);VE(a),i.append(a)}else i.text(r);var u=HE();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(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){O(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}});return o},e}(),Lx=new WeakMap;function tr(e){var t=DE.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function fF(e,t){t===void 0&&(t=!1);var n=Lx.get(e);if(n)return n;var r=e.tag;if(r==="button"){var o=e.showDropPanel,i=e.showModal;n=o?new VY(e,t):i?new UY(e,t):new MY(e,t)}if(r==="select"&&(n=new qY(e,t)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return Lx.set(e,n),n}function GY(e,t){var n=e.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!oe.isText(t)}var KY=function(){function e(){var t=this;this.$elem=O('<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=jk(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),!(i&&se.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode))&&(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),Pr(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(i){return i.preventDefault()}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.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 t=this;Pr(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=lF();r.append(i)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=kd[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=fF(o);this.hoverbarItems.push(a),DE.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),se.isElement(t)){var o=ME(n,t,"bar");return r.css(o),void m4(n,r)}if(oe.isText(t))return o=jE(n),r.css(o),void m4(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(v,h){return A.checkNodeType(h,u)},p=Ue(D.nodes(t,{match:function(v){return d(t,v)},universal:!0}),1),g=p[0];if(g!=null)return r=g[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=i4.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=GY),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=A.findPath(null,t),o=A.findPath(null,n);return P.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function dF(e,t,n){var r=O(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function pF(e,t,n,r){if(_d.set(e,t),Tl.set(e,n),se.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(u,s){return pF(u,s,e,r)}),D.isVoid(r,e)){var i=Ue(X.texts(e),1),a=Ue(i[0],1)[0];_d.set(a,0),Tl.set(a,e)}}}function YY(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(b=>{var m=b,{apply:$}=m;return m.history={undos:[],redos:[]},m.redo=()=>{var{history:E}=m,{redos:S}=E;if(S.length>0){var x=S[S.length-1];Ks.withoutSaving(m,()=>{D.withoutNormalizing(m,()=>{for(var B of x)m.apply(B)})}),E.redos.pop(),E.undos.push(x)}},m.undo=()=>{var{history:E}=m,{undos:S}=E;if(S.length>0){var x=S[S.length-1];Ks.withoutSaving(m,()=>{D.withoutNormalizing(m,()=>{var B=x.map(qi.inverse).reverse();for(var I of B)m.apply(I)})}),E.redos.push(x),E.undos.pop()}},m.apply=E=>{var{operations:S,history:x}=m,{undos:B}=x,I=B[B.length-1],H=I&&I[I.length-1],G=Gq(E,H),Y=Ks.isSaving(m),U=Ks.isMerging(m);if(Y==null&&(Y=qq(E)),Y){if(U==null&&(U=I!=null&&(S.length!==0||Wq(E,H)||G)),I&&U)G&&I.pop(),I.push(E);else{var ie=[E];B.push(ie)}for(;B.length>100;)B.shift();Kq(E)&&(x.redos=[])}$(E)},m})(function(b){var m=b,$=m.insertText,E=m.insertNode,S=m.insertFragment;return m.insertText=function(x){if(m.getConfig().maxLength){var B=A.getLeftLengthOfMaxLength(m);B<=0||(B<x.length?$(x.slice(0,B)):$(x))}else $(x)},m.insertNode=function(x){if(m.getConfig().maxLength){var B=A.getLeftLengthOfMaxLength(m);B<=0||B<X.string(x).length||E(x)}else E(x)},m.insertFragment=function(x){m.getConfig().maxLength?x.forEach(function(B){m.insertNode(B)}):S(x)},m}(function(b){var m=b;return m.on=function($,E){var S=Eh(m);if(S.on($,E),$==="destroyed"&&xx(m,E),$!=="destroyed"){var x=function(){return S.off($,E)};S.on("destroyed",x),xx(m,x)}},m.once=function($,E){Eh(m).once($,E)},m.off=function($,E){Eh(m).off($,E)},m.emit=function($){for(var E=[],S=1;S<arguments.length;S++)E[S-1]=arguments[S];var x=Eh(m);x.emit.apply(x,t4([$],Ue(E))),$==="destroyed"&&(vY(m).forEach(function(B){return x.off("destroyed",B)}),mY(m))},m}(function(b){var m=b;return m.select=function($){N.select(m,$)},m.deselect=function(){var $=m.selection,E=A.findDocumentOrShadowRoot(m).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),$&&N.deselect(b)},m.move=function($,E){E===void 0&&(E=!1),$&&($<0||N.move(b,{distance:$,unit:"character",reverse:E}))},m.moveReverse=function($){m.move($,!0)},m.restoreSelection=function(){var $=PT.get(m);$!=null&&(m.focus(),N.select(m,$))},m.getSelectionPosition=function(){return jE(m)},m.getNodePosition=function($){return ME(m,$)},m.isSelectedAll=function(){var $=m.selection;if($==null)return!1;var E=Ue(L.edges($),2),S=E[0],x=E[1],B=Ue(D.edges(m,[]),2),I=B[0],H=B[1];return!(!Be.equals(S,I)||!Be.equals(x,H))},m.selectAll=function(){var $=D.start(m,[]),E=D.end(m,[]);N.select(m,{anchor:$,focus:E})},m}(nY(function(b){var m=b;return m.getAllMenuKeys=function(){var $=[];for(var E in kd)$.push(E);return $},m.getConfig=function(){var $=qC.get(m);if($==null)throw new Error("Can not get editor config");return $},m.getMenuConfig=function($){var E=m.getConfig().MENU_CONF;return(E===void 0?{}:E)[$]||{}},m.alert=function($,E){E===void 0&&(E="info");var S=m.getConfig().customAlert;S&&S($,E)},m}(function(b){var m=b;return m.id="wangEditor-"+nK++,m.isDestroyed=!1,m.isFullScreen=!1,m.focus=function($){var E=A.toDOMNode(m,m),S=A.findDocumentOrShadowRoot(m);if(pu.set(m,!0),$){var x=D.end(m,[]);N.select(m,x)}S.activeElement!==E&&E.focus({preventScroll:!0})},m.isFocused=function(){return!!pu.get(m)},m.blur=function(){var $=A.toDOMNode(m,m),E=A.findDocumentOrShadowRoot(m);pu.set(m,!1),E.activeElement===$&&($.blur(),N.deselect(m))},m.updateView=function(){A.getTextarea(m).changeViewState();var $=A.getToolbar(m);$&&$.changeToolbarState();var E=A.getHoverbar(m);E&&E.changeHoverbarState()},m.destroy=function(){if(!m.isDestroyed){var $=A.getTextarea(m);$.destroy(),r4.delete(m),o4.delete($);var E=A.getToolbar(m);E&&(E.destroy(),e1.delete(m),SE.delete(E));var S=A.getHoverbar(m);S&&(S.destroy(),c0.delete(m),i4.delete(S)),m.isDestroyed=!0,m.emit("destroyed")}},m.scrollToElem=function($){if(!m.getConfig().scroll){var E="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return E+=`
- You has disabled editor scroll, please do this yourself`,void console.warn(E)}var S=O("#"+$);if(S.length!==0){var x=S[0];if(!A.hasDOMNode(m,x))return E="Element (found by id is '"+$+"') is not in editor DOM",E+=`
- 通过 id '`+$+"' 找到的 element 不在 editor DOM 之内",void console.error(E,x);var B=A.getTextarea(m),I=B.$textAreaContainer,H=B.$scroll,G=S.offset().top,Y=I.offset().top;H[0].scrollBy({top:G-Y,behavior:"smooth"})}},m.showProgressBar=function($){$<1||A.getTextarea(m).changeProgress($)},m.hidePanelOrModal=function(){var $=a4.get(m);$!=null&&$.forEach(function(E){return E.hide()})},m.enable=function(){m.getConfig().readOnly=!1,m.updateView()},m.disable=function(){m.getConfig().readOnly=!0,m.updateView()},m.isDisabled=function(){return m.getConfig().readOnly},m.toDOMNode=function($){return A.toDOMNode(m,$)},m.fullScreen=function(){if(!m.isFullScreen){var $=null,E=A.getToolbar(m);E&&($=E.$box);var S=A.getTextarea(m).$box.parent();if($&&$.parent()[0]!==S[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
- 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);S.addClass("w-e-full-screen-container");var x=S.css("z-index");S.attr("data-z-index",x.toString()),m.isFullScreen=!0,m.emit("fullScreen")}},m.unFullScreen=function(){if(m.isFullScreen){var $=A.getTextarea(m).$box.parent();setTimeout(function(){$.removeClass("w-e-full-screen-container"),m.isFullScreen=!1,m.emit("unFullScreen")},200)}},m.getEditableContainer=function(){return A.getTextarea(m).$textAreaContainer[0]},m}(function(b){var m=b,$=m.insertText;return m.insertFragment,m.setFragmentData=function(E){var S=m.selection;if(S){var x=Ue(L.edges(S),2),B=x[0],I=x[1],H=D.void(m,{at:B.path}),G=D.void(m,{at:I.path});if(!L.isCollapsed(S)||H){var Y=A.toDOMRange(m,S),U=Y.cloneContents(),ie=U.childNodes[0];if(U.childNodes.forEach(function(_){_.textContent&&_.textContent.trim()!==""&&(ie=_)}),G){var re=Ue(G,1)[0],ae=Y.cloneRange(),me=A.toDOMNode(m,re);ae.setEndAfter(me),U=ae.cloneContents()}if(H&&(ie=U.querySelector("[data-slate-spacer]")),Array.from(U.querySelectorAll("[data-slate-zero-width]")).forEach(function(_){var F=_.getAttribute("data-slate-zero-width")==="n";_.textContent=F?`
- `:""}),IT(ie)){var De=ie.ownerDocument.createElement("span");De.style.whiteSpace="pre",De.appendChild(ie),U.appendChild(De),ie=De}var $e=m.getFragment(),le=JSON.stringify($e),Me=window.btoa(encodeURIComponent(le));ie.setAttribute("data-slate-fragment",Me),E.setData("application/x-slate-fragment",Me);var T=U.ownerDocument.createElement("div");return T.appendChild(U),T.setAttribute("hidden","true"),U.ownerDocument.body.appendChild(T),E.setData("text/html",T.innerHTML),E.setData("text/plain",u4(T)),U.ownerDocument.body.removeChild(T),E}}},m.insertData=function(E){var S,x,B=E.getData("application/x-slate-fragment");if(B){var I=decodeURIComponent(window.atob(B)),H=JSON.parse(I);m.insertFragment(H)}else{var G=E.getData("text/plain"),Y=E.getData("text/html");if(Y)m.dangerouslyInsertHtml(Y);else if(G){var U=G.split(/\r\n|\r|\n/),ie=!1;try{for(var re=Vr(U),ae=re.next();!ae.done;ae=re.next()){var me=ae.value;ie&&N.splitNodes(m,{always:!0}),$(me),ie=!0}}catch(De){S={error:De}}finally{try{ae&&!ae.done&&(x=re.return)&&x.call(re)}finally{if(S)throw S.error}}}}},m}(IL()))))))));if(n&&function(b,m){return dF(b,"data-w-e-textarea",m)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(b){b===void 0&&(b={});var m=Mk(LT),$={},E=b.MENU_CONF,S=E===void 0?{}:E;return W3(m,function(x,B){$[B]=Ar(Ar({},x),S[B]||{})}),delete b.MENU_CONF,Ar({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:$,hoverbarKeys:{},customAlert:function(x,B){window.alert(B+`:
- `+x)}},b)}(o);qC.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(b){l=b(l)}),a){var p=O("<div>"+a+"</div>");l.children=Array.from(p.children()).map(function(b){return NE(O(b),l)})}if(i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var g=new jY(n);r4.set(l,g),o4.set(g,l),g.changeViewState(),Pr(function(){var b=g.$scroll;b!=null&&b.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
- Textarea height < 300px . This may be cause modal and hoverbar position error`,b)});var v=void 0;Object.keys(d).length>0&&(v=new KY,i4.set(v,l),c0.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(b,m){return pF(b,m,l,l)});var h=c.onCreated,y=c.onDestroyed;return h&&l.on("created",function(){return h(l)}),y&&l.on("destroyed",function(){return y(l)}),Pr(function(){return l.emit("created")}),l}var XY=Yv("splice"),JY=K.TypeError,ZY=Math.max,QY=Math.min;Dt({target:"Array",proto:!0,forced:!XY},{splice:function(e,t){var n,r,o,i,a,u,s=Ca(this),l=Yu(s),c=Al(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=QY(ZY(gp(t),0),l-c)),l+n-r>9007199254740991)throw JY("Maximum allowed length exceeded");for(o=cT(s,r),i=0;i<r;i++)(a=c+i)in s&&Cd(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 eX=function(){function e(t,n){var r=this;this.$toolbar=O('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=jk(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=O(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()}),o.append(i),Pr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=Mk(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(g,v){f.splice(s.index+v,0,g)}));var d=f.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),p=d.length;d.forEach(function(g,v){if(g==="|"){if(v===0||v+1===p||n==="|")return;var h=lF();return r.append(h),void(n=g)}if(typeof g=="string")return t.registerSingleItem(g,t),void(n=g);t.registerGroup(g),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(l){return new Rx(l)}(t),i=t.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof Rx,i=this.menus,a=i[t];if(a==null){var u=kd[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
- 重复注册了菜单栏 menu '`+t+"'");var s=fF(a,o);this.toolbarItems.push(s),DE.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=SE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();function tX(e,t){if(e==null)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=r===void 0?{}:r;if(function(u,s){return dF(u,"data-w-e-toolbar",s)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=Ar({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new eX(n,i);return SE.set(a,e),e1.set(e,a),a}var nX=ql.EXISTS,rX=Qr.f,hF=Function.prototype,oX=fe(hF.toString),gF=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,iX=fe(gF.exec);function vF(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,g=p===void 0?{}:p,v=e.withCredentials,h=v!==void 0&&v,y=e.timeout,b=y===void 0?1e4:y,m=e.onBeforeUpload,$=m===void 0?function(U){return U}:m,E=e.onSuccess,S=E===void 0?function(U,ie){}:E,x=e.onError,B=x===void 0?function(U,ie,re){console.error(U.name+" upload error",ie,re)}:x,I=e.onProgress,H=I===void 0?function(U){}:I;if(!n)throw new Error(`Cannot get upload server address
- 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
- 没有配置 fieldName`);var G=n;d&&(G=function(U,ie){var re=Ue(U.split("#"),2),ae=re[0],me=re[1],De=[];W3(ie,function(le,Me){De.push(Me+"="+le)});var $e=De.join("&");return ae=ae.indexOf("?")>0?ae+"&"+$e:ae+"?"+$e,me?ae+"#"+me:ae}(G,c));var Y=new pp({onBeforeUpload:$,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(pW,{endpoint:G,headers:g,formData:!0,fieldName:o,bundle:!0,withCredentials:h,timeout:b});return Y.on("upload-success",function(U,ie){var re=ie.body;S(U,re===void 0?{}:re),Y.removeFile(U.id)}),Y.on("progress",function(U){U<1||H(U)}),Y.on("error",function(U){console.error("wangEditor file upload error",U.stack)}),Y.on("upload-error",function(U,ie,re){B(U,ie,re),Y.removeFile(U.id)}),Y.on("restriction-failed",function(U,ie){B(U,ie),Y.removeFile(U.id)}),Y}function Qi(e){return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function aX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){aX(e,o,n[o])})}return e}function si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jx(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 li(e,t,n){return t&&jx(e.prototype,t),n&&jx(e,n),e}function Nu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fd(e,t){if(t&&(Qi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nu(e)}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bl(e)}function b4(e,t){return b4=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},b4(e,t)}function r1(e,t){if(typeof t!="function"&&t!==null)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&&b4(e,t)}an&&!nX&&rX(hF,"name",{configurable:!0,get:function(){try{return iX(gF,oX(this))[1]}catch{return""}}});var uX={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)}},ei=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.init(t,n)}return li(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||uX,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Wt({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),va=function(){function e(){si(this,e),this.observers={}}return li(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value: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];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(r))})}}}]),e}();function Vc(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function Mx(e){return e==null?"":""+e}function sX(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function qE(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].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 zx(e,t,n){var r=qE(e,t,Object);r.obj[r.k]=n}function g0(e,t){var n=qE(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Vx(e,t,n){var r=g0(e,n);return r!==void 0?r:g0(t,n)}function mF(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):mF(e[r],t[r],n):e[r]=t[r]);return e}function vs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var lX={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function cX(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return lX[t]}):e}var o1=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function yF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?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||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?yF(s,l,n):void 0}o=o[r[i]]}return o}}var fX=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,t),r=Fd(this,Bl(t).call(this)),o1&&va.call(Nu(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return r1(t,va),li(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=g0(this.data,s);return l||!u||typeof o!="string"?l:yF(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),zx(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=g0(this.data,s)||{};i?mF(l,o,a):l=Wt({},l,o),zx(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Wt({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),bF={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))}),t}},Hx={},Ux=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,t),r=Fd(this,Bl(t).call(this)),o1&&va.call(Nu(r)),sX(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Nu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ei.create("translator"),r}return r1(t,va),li(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(Qi(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var g=this.resolve(n,r),v=g&&g.res,h=g&&g.usedKey||s,y=g&&g.exactUsedKey||s,b=Object.prototype.toString.apply(v),m=["[object Number]","[object Function]","[object RegExp]"],$=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof v!="string"&&typeof v!="boolean"&&typeof v!="number";if(E&&v&&S&&m.indexOf(b)<0&&(typeof $!="string"||b!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,v,Wt({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=b==="[object Array]",B=x?[]:{},I=x?y:h;for(var H in v)if(Object.prototype.hasOwnProperty.call(v,H)){var G="".concat(I).concat(a).concat(H);B[H]=this.translate(G,Wt({},r,{joinArrays:!1,ns:l})),B[H]===G&&(B[H]=v[H])}v=B}}else if(E&&typeof $=="string"&&b==="[object Array]")(v=v.join($))&&(v=this.extendTranslation(v,n,r,o));else{var Y=!1,U=!1,ie=r.count!==void 0&&typeof r.count!="string",re=t.hasDefaultValue(r),ae=ie?this.pluralResolver.getSuffix(f,r.count):"",me=r["defaultValue".concat(ae)]||r.defaultValue;!this.isValidLookup(v)&&re&&(Y=!0,v=me),this.isValidLookup(v)||(U=!0,v=s);var De=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,$e=De&&U?void 0:v,le=re&&me!==v&&this.options.updateMissing;if(U||Y||le){if(this.logger.log(le?"updateKey":"missingKey",f,c,s,le?me:v),a){var Me=this.resolve(s,Wt({},r,{keySeparator:!1}));Me&&Me.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 T=[],_=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&_&&_[0])for(var F=0;F<_.length;F++)T.push(_[F]);else this.options.saveMissingTo==="all"?T=this.languageUtils.toResolveHierarchy(r.lng||this.language):T.push(r.lng||this.language);var R=function(q,j,ue){i.options.missingKeyHandler?i.options.missingKeyHandler(q,c,j,le?ue:$e,le,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(q,c,j,le?ue:$e,le,r),i.emit("missingKey",q,c,j,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ie?T.forEach(function(q){i.pluralResolver.getSuffixes(q).forEach(function(j){R([q],s+j,r["defaultValue".concat(j)]||me)})}):R(T,s,me))}v=this.extendTranslation(v,n,r,g,o),U&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(s)),(U||Y)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(v))}return v}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Wt({},o,{interpolation:Wt({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Wt({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var v=arguments.length,h=new Array(v),y=0;y<v;y++)h[y]=arguments[y];return a&&a[0]===h[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(h[0]," in key: ").concat(r[0])),null):u.translate.apply(u,h.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,g=typeof p=="string"?[p]:p;return n!=null&&g&&g.length&&o.applyPostProcessor!==!1&&(n=bF.handle(g,n,r,this.options&&this.options.postProcessPassResolved?Wt({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var g=l.count!==void 0&&typeof l.count!="string",v=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",h=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(r)||(u=y,!Hx["".concat(h[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(Hx["".concat(h[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(h.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(b){if(!s.isValidLookup(r)){a=b;var m,$,E=d,S=[E];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,b,y,l):(g&&(m=s.pluralResolver.getSuffix(b,l.count)),g&&v&&S.push(E+m),v&&S.push(E+="".concat(s.options.contextSeparator).concat(l.context)),g&&S.push(E+=m));$=S.pop();)s.isValidLookup(r)||(i=$,r=s.getResource(b,y,$,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),t}();function Ry(e){return e.charAt(0).toUpperCase()+e.slice(1)}var dX=function(){function e(t){si(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ei.create("languageUtils")}return li(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ry(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ry(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ry(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&t.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),e}(),pX=[{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}],hX={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return 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 e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function gX(){var e={};return pX.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:hX[t.fc]}})}),e}var vX=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.languageUtils=t,this.options=n,this.logger=ei.create("pluralResolver"),this.rules=gX()}return li(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(o){return n.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e}(),mX=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,e),this.logger=ei.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return li(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:cX,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?vs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?vs(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?vs(n.nestingPrefix):n.nestingPrefixEscaped||vs("$t("),this.nestingSuffix=n.nestingSuffix?vs(n.nestingSuffix):n.nestingSuffixEscaped||vs(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(v){return v.replace(/\$/g,"$$$$")}var f=function(v){if(v.indexOf(s.formatSeparator)<0){var h=Vx(n,l,v);return s.alwaysFormat?s.format(h,void 0,r,Wt({},o,n,{interpolationkey:v})):h}var y=v.split(s.formatSeparator),b=y.shift().trim(),m=y.join(s.formatSeparator).trim();return s.format(Vx(n,l,b),m,r,Wt({},o,n,{interpolationkey:b}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,g=[{regex:this.regexpUnescape,safeValue:function(v){return c(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?c(s.escape(v)):c(v)}}];return g.forEach(function(v){for(u=0;i=v.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var h=d(t,i,o);a=typeof h=="string"?h:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=Mx(a));var y=v.safeValue(a);if(t=t.replace(i[0],y),p?(v.regex.lastIndex+=y.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Wt({},a);function s(d,p){var g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;var v=d.split(new RegExp("".concat(g,"[ ]*{"))),h="{".concat(v[1]);d=v[0],h=(h=this.interpolate(h,u)).replace(/'/g,'"');try{u=JSON.parse(h),p&&(u=Wt({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(g).concat(h)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(d){return d.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Mx(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Wt({},a,{interpolationkey:r[1].trim()}))},o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e}(),yX=function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,t),i=Fd(this,Bl(t).call(this)),o1&&va.call(Nu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ei.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return r1(t,va),li(t,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var g="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[g]=2:a.state[g]<0||(a.state[g]===1?s.indexOf(g)<0&&s.push(g):(a.state[g]=1,d=!1,s.indexOf(g)<0&&s.push(g),u.indexOf(g)<0&&u.push(g),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var g=qE(c,f,Object),v=g.obj,h=g.k;v[h]=v[h]||[],p&&(v[h]=v[h].concat(d)),p||v[h].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,Wt({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t}();function bX(){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(Qi(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Qi(e[2])==="object"||Qi(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}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 Wx(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(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 Dh(){}var wX=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,t),n=Fd(this,Bl(t).call(this)),o1&&va.call(Nu(n)),n.options=Wx(r),n.services={},n.logger=ei,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Fd(n,Nu(n));setTimeout(function(){n.init(r,o)},0)}return n}return r1(t,va),li(t,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Wt({},bX(),this.options,Wx(r)),this.format=this.options.interpolation.format,o||(o=Dh),!this.options.isClone){this.modules.logger?ei.init(i(this.modules.logger),this.options):ei.init(null,this.options);var a=new dX(this.options);this.store=new fX(this.options.resources,this.options);var u=this.services;u.logger=ei,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new vX(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new mX(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new yX(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var g=arguments.length,v=new Array(g>1?g-1:0),h=1;h<g;h++)v[h-1]=arguments[h];n.emit.apply(n,[p].concat(v))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new Ux(this.services,this.options),this.translator.on("*",function(p){for(var g=arguments.length,v=new Array(g>1?g-1:0),h=1;h<g;h++)v[h-1]=arguments[h];n.emit.apply(n,[p].concat(v))}),this.modules.external.forEach(function(p){p.init&&p.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){n[p]=function(){var g;return(g=n.store)[p].apply(g,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var g;return(g=n.store)[p].apply(g,arguments),n}});var f=Vc(),d=function(){var p=function(g,v){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(v),o(g,v)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dh,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(n,r,o){var i=Vc();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Dh),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&bF.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=Vc();this.emit("languageChanging",n);var a=function(u){n||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(Qi(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Wt({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var g=i.options.keySeparator||".",v=o?"".concat(o).concat(g).concat(s):s;return i.t(v,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=Vc();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=Vc();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dh,i=Wt({},this.options,r,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Wt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Ux(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),Bd=new wX,$X="translation";function Un(e,t){Bd.addResourceBundle(e,$X,t,!0,!0)}function EX(e){Bd.changeLanguage(e)}Bd.init({lng:"zh-CN",resources:{}});var Z=Bd.t.bind(Bd),SX={editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}},DX={editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}};Un("en",SX);Un("zh-CN",DX);Un("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"}}),Un("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 CX={type:"paragraph",renderElem:function(e,t,n){return Ce("p",null,t)}},xX={type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}},v0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i1(e){var t={exports:{}};return e(t,t.exports),t.exports}var xi,yg,Ch=function(e){return e&&e.Math==Math&&e},Oe=Ch(typeof globalThis=="object"&&globalThis)||Ch(typeof window=="object"&&window)||Ch(typeof self=="object"&&self)||Ch(typeof v0=="object"&&v0)||function(){return this}()||Function("return this")(),Ct=function(e){try{return!!e()}catch{return!0}},Xr=!Ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Hc=Function.prototype.call,Pt=Hc.bind?Hc.bind(Hc):function(){return Hc.apply(Hc,arguments)},qx={}.propertyIsEnumerable,Gx=Object.getOwnPropertyDescriptor,OX=Gx&&!qx.call({1:2},1)?function(e){var t=Gx(this,e);return!!t&&t.enumerable}:qx,wF={f:OX},GE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$F=Function.prototype,w4=$F.bind,$4=$F.call,_X=w4&&w4.bind($4),ye=w4?function(e){return e&&_X($4,e)}:function(e){return e&&function(){return $4.apply(e,arguments)}},kX=ye({}.toString),TX=ye("".slice),ea=function(e){return TX(kX(e),8,-1)},Ly=Oe.Object,FX=ye("".split),a1=Ct(function(){return!Ly("z").propertyIsEnumerable(0)})?function(e){return ea(e)=="String"?FX(e,""):Ly(e)}:Ly,BX=Oe.TypeError,Ir=function(e){if(e==null)throw BX("Can't call method on "+e);return e},Jl=function(e){return a1(Ir(e))},vn=function(e){return typeof e=="function"},$r=function(e){return typeof e=="object"?e!==null:vn(e)},PX=function(e){return vn(e)?e:void 0},yp=function(e,t){return arguments.length<2?PX(Oe[e]):Oe[e]&&Oe[e][t]},EF=ye({}.isPrototypeOf),jy=yp("navigator","userAgent")||"",Kx=Oe.process,Yx=Oe.Deno,Xx=Kx&&Kx.versions||Yx&&Yx.version,Jx=Xx&&Xx.v8;Jx&&(yg=(xi=Jx.split("."))[0]>0&&xi[0]<4?1:+(xi[0]+xi[1])),!yg&&jy&&(!(xi=jy.match(/Edge\/(\d+)/))||xi[1]>=74)&&(xi=jy.match(/Chrome\/(\d+)/))&&(yg=+xi[1]);var E4=yg,S4=!!Object.getOwnPropertySymbols&&!Ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&E4&&E4<41}),KE=S4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",IX=Oe.Object,D4=KE?function(e){return typeof e=="symbol"}:function(e){var t=yp("Symbol");return vn(t)&&EF(t.prototype,IX(e))},NX=Oe.String,SF=function(e){try{return NX(e)}catch{return"Object"}},RX=Oe.TypeError,DF=function(e){if(vn(e))return e;throw RX(SF(e)+" is not a function")},u1=function(e,t){var n=e[t];return n==null?void 0:DF(n)},LX=Oe.TypeError,jX=Object.defineProperty,YE=function(e,t){try{jX(Oe,e,{value:t,configurable:!0,writable:!0})}catch{Oe[e]=t}return t},ta=Oe["__core-js_shared__"]||YE("__core-js_shared__",{}),XE=i1(function(e){(e.exports=function(t,n){return ta[t]||(ta[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),MX=Oe.Object,bp=function(e){return MX(Ir(e))},zX=ye({}.hasOwnProperty),_r=Object.hasOwn||function(e,t){return zX(bp(e),t)},VX=0,HX=Math.random(),UX=ye(1 .toString),CF=function(e){return"Symbol("+(e===void 0?"":e)+")_"+UX(++VX+HX,36)},Uc=XE("wks"),gu=Oe.Symbol,Zx=gu&&gu.for,WX=KE?gu:gu&&gu.withoutSetter||CF,fr=function(e){if(!_r(Uc,e)||!S4&&typeof Uc[e]!="string"){var t="Symbol."+e;S4&&_r(gu,e)?Uc[e]=gu[e]:Uc[e]=KE&&Zx?Zx(t):WX(t)}return Uc[e]},qX=Oe.TypeError,GX=fr("toPrimitive"),KX=function(e,t){if(!$r(e)||D4(e))return e;var n,r=u1(e,GX);if(r){if(t===void 0&&(t="default"),n=Pt(r,e,t),!$r(n)||D4(n))return n;throw qX("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&vn(a=o.toString)&&!$r(u=Pt(a,o))||vn(a=o.valueOf)&&!$r(u=Pt(a,o))||i!=="string"&&vn(a=o.toString)&&!$r(u=Pt(a,o)))return u;throw LX("Can't convert object to primitive value")}(e,t)},JE=function(e){var t=KX(e,"string");return D4(t)?t:t+""},C4=Oe.document,YX=$r(C4)&&$r(C4.createElement),ZE=function(e){return YX?C4.createElement(e):{}},xF=!Xr&&!Ct(function(){return Object.defineProperty(ZE("div"),"a",{get:function(){return 7}}).a!=7}),Qx=Object.getOwnPropertyDescriptor,QE={f:Xr?Qx:function(e,t){if(e=Jl(e),t=JE(t),xF)try{return Qx(e,t)}catch{}if(_r(e,t))return GE(!Pt(wF.f,e,t),e[t])}},XX=Oe.String,JX=Oe.TypeError,ur=function(e){if($r(e))return e;throw JX(XX(e)+" is not an object")},ZX=Oe.TypeError,e8=Object.defineProperty,Zl={f:Xr?e8:function(e,t,n){if(ur(e),t=JE(t),ur(n),xF)try{return e8(e,t,n)}catch{}if("get"in n||"set"in n)throw ZX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Pl=Xr?function(e,t,n){return Zl.f(e,t,GE(1,n))}:function(e,t,n){return e[t]=n,e},QX=ye(Function.toString);vn(ta.inspectSource)||(ta.inspectSource=function(e){return QX(e)});var m0,Jf,y0,e5=ta.inspectSource,t8=Oe.WeakMap,eJ=vn(t8)&&/native code/.test(e5(t8)),n8=XE("keys"),AF=function(e){return n8[e]||(n8[e]=CF(e))},t5={},x4=Oe.TypeError,tJ=Oe.WeakMap;if(eJ||ta.state){var Ma=ta.state||(ta.state=new tJ),nJ=ye(Ma.get),r8=ye(Ma.has),rJ=ye(Ma.set);m0=function(e,t){if(r8(Ma,e))throw new x4("Object already initialized");return t.facade=e,rJ(Ma,e,t),t},Jf=function(e){return nJ(Ma,e)||{}},y0=function(e){return r8(Ma,e)}}else{var ms=AF("state");t5[ms]=!0,m0=function(e,t){if(_r(e,ms))throw new x4("Object already initialized");return t.facade=e,Pl(e,ms,t),t},Jf=function(e){return _r(e,ms)?e[ms]:{}},y0=function(e){return _r(e,ms)}}var A4={set:m0,get:Jf,has:y0,enforce:function(e){return y0(e)?Jf(e):m0(e,{})},getterFor:function(e){return function(t){var n;if(!$r(t)||(n=Jf(t)).type!==e)throw x4("Incompatible receiver, "+e+" required");return n}}},OF=Function.prototype,oJ=Xr&&Object.getOwnPropertyDescriptor,My=_r(OF,"name"),s1={EXISTS:My,PROPER:My&&function(){}.name==="something",CONFIGURABLE:My&&(!Xr||Xr&&oJ(OF,"name").configurable)},Pd=i1(function(e){var t=s1.CONFIGURABLE,n=A4.get,r=A4.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;vn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_r(u,"name")||t&&u.name!==p)&&Pl(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Oe?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Pl(i,a,u)):f?i[a]=u:YE(a,u)})(Function.prototype,"toString",function(){return vn(this)&&n(this).source||e5(this)})}),iJ=Math.ceil,aJ=Math.floor,Ql=function(e){var t=+e;return t!=t||t===0?0:(t>0?aJ:iJ)(t)},uJ=Math.max,sJ=Math.min,Id=function(e,t){var n=Ql(e);return n<0?uJ(n+t,0):sJ(n,t)},lJ=Math.min,wp=function(e){return e>0?lJ(Ql(e),9007199254740991):0},l1=function(e){return wp(e.length)},o8=function(e){return function(t,n,r){var o,i=Jl(t),a=l1(i),u=Id(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}},_F={includes:o8(!0),indexOf:o8(!1)},cJ=_F.indexOf,i8=ye([].push),kF=function(e,t){var n,r=Jl(e),o=0,i=[];for(n in r)!_r(t5,n)&&_r(r,n)&&i8(i,n);for(;t.length>o;)_r(r,n=t[o++])&&(~cJ(i,n)||i8(i,n));return i},b0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fJ=b0.concat("length","prototype"),dJ={f:Object.getOwnPropertyNames||function(e){return kF(e,fJ)}},TF={f:Object.getOwnPropertySymbols},pJ=ye([].concat),hJ=yp("Reflect","ownKeys")||function(e){var t=dJ.f(ur(e)),n=TF.f;return n?pJ(t,n(e)):t},gJ=function(e,t){for(var n=hJ(t),r=Zl.f,o=QE.f,i=0;i<n.length;i++){var a=n[i];_r(e,a)||r(e,a,o(t,a))}},vJ=/#|\.prototype\./,$p=function(e,t){var n=yJ[mJ(e)];return n==wJ||n!=bJ&&(vn(t)?Ct(t):!!t)},mJ=$p.normalize=function(e){return String(e).replace(vJ,".").toLowerCase()},yJ=$p.data={},bJ=$p.NATIVE="N",wJ=$p.POLYFILL="P",$J=$p,EJ=QE.f,rn=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Oe:l?Oe[u]||YE(u,{}):(Oe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=EJ(n,r))&&a.value:n[r],!$J(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;gJ(i,o)}(e.sham||o&&o.sham)&&Pl(i,"sham",!0),Pd(n,r,i,e)}},a8=ye(ye.bind),w0=Array.isArray||function(e){return ea(e)=="Array"},FF={};FF[fr("toStringTag")]="z";var n5=String(FF)==="[object z]",SJ=fr("toStringTag"),DJ=Oe.Object,CJ=ea(function(){return arguments}())=="Arguments",r5=n5?ea:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=DJ(e),SJ))=="string"?n:CJ?ea(t):(r=ea(t))=="Object"&&vn(t.callee)?"Arguments":r},BF=function(){},xJ=[],PF=yp("Reflect","construct"),o5=/^\s*(?:class|function)\b/,AJ=ye(o5.exec),OJ=!o5.exec(BF),Wc=function(e){if(!vn(e))return!1;try{return PF(BF,xJ,e),!0}catch{return!1}},i5=!PF||Ct(function(){var e;return Wc(Wc.call)||!Wc(Object)||!Wc(function(){e=!0})||e})?function(e){if(!vn(e))return!1;switch(r5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OJ||!!AJ(o5,e5(e))}:Wc,_J=fr("species"),u8=Oe.Array,kJ=function(e,t){return new(function(n){var r;return w0(n)&&(r=n.constructor,(i5(r)&&(r===u8||w0(r.prototype))||$r(r)&&(r=r[_J])===null)&&(r=void 0)),r===void 0?u8:r}(e))(t===0?0:t)},s8=ye([].push),Ai=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=bp(s),v=a1(g),h=function(E,S){return DF(E),S===void 0?E:a8?a8(E,S):function(){return E.apply(S,arguments)}}(l,c),y=l1(v),b=0,m=f||kJ,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:s8($,d)}else switch(e){case 4:return!1;case 7:s8($,d)}return i?-1:r||o?o:$}},c1={forEach:Ai(0),map:Ai(1),filter:Ai(2),some:Ai(3),every:Ai(4),find:Ai(5),findIndex:Ai(6),filterReject:Ai(7)},TJ=fr("species"),a5=function(e){return E4>=51||!Ct(function(){var t=[];return(t.constructor={})[TJ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},FJ=c1.filter;rn({target:"Array",proto:!0,forced:!a5("filter")},{filter:function(e){return FJ(this,e,arguments.length>1?arguments[1]:void 0)}});var BJ=n5?{}.toString:function(){return"[object "+r5(this)+"]"};n5||Pd(Object.prototype,"toString",BJ,{unsafe:!0});var xh,PJ=Oe.String,Et=function(e){if(r5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return PJ(e)},IF=function(){var e=ur(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},u5=Oe.RegExp,O4=Ct(function(){var e=u5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),IJ=O4||Ct(function(){return!u5("a","y").sticky}),NF={BROKEN_CARET:O4||Ct(function(){var e=u5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:IJ,UNSUPPORTED_Y:O4},il=Object.keys||function(e){return kF(e,b0)},NJ=Xr?Object.defineProperties:function(e,t){ur(e);for(var n,r=Jl(t),o=il(t),i=o.length,a=0;i>a;)Zl.f(e,n=o[a++],r[n]);return e},RJ=yp("document","documentElement"),RF=AF("IE_PROTO"),zy=function(){},LF=function(e){return"<script>"+e+"<\/script>"},l8=function(e){e.write(LF("")),e.close();var t=e.parentWindow.Object;return e=null,t},bg=function(){try{xh=new ActiveXObject("htmlfile")}catch{}var e,t;bg=typeof document<"u"?document.domain&&xh?l8(xh):((t=ZE("iframe")).style.display="none",RJ.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(LF("document.F=Object")),e.close(),e.F):l8(xh);for(var n=b0.length;n--;)delete bg.prototype[b0[n]];return bg()};t5[RF]=!0;var c8,Vy,jF=Object.create||function(e,t){var n;return e!==null?(zy.prototype=ur(e),n=new zy,zy.prototype=null,n[RF]=e):n=bg(),t===void 0?n:NJ(n,t)},LJ=Oe.RegExp,jJ=Ct(function(){var e=LJ(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),MJ=Oe.RegExp,zJ=Ct(function(){var e=MJ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),VJ=A4.get,HJ=XE("native-string-replace",String.prototype.replace),$0=RegExp.prototype.exec,_4=$0,UJ=ye("".charAt),WJ=ye("".indexOf),qJ=ye("".replace),Hy=ye("".slice),Uy=(Vy=/b*/g,Pt($0,c8=/a/,"a"),Pt($0,Vy,"a"),c8.lastIndex!==0||Vy.lastIndex!==0),f8=NF.BROKEN_CARET,Wy=/()??/.exec("")[1]!==void 0;(Uy||Wy||f8||jJ||zJ)&&(_4=function(e){var t,n,r,o,i,a,u,s=this,l=VJ(s),c=Et(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Pt(_4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=f8&&s.sticky,g=Pt(IF,s),v=s.source,h=0,y=c;if(p&&(g=qJ(g,"y",""),WJ(g,"g")===-1&&(g+="g"),y=Hy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&UJ(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),Wy&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Uy&&(r=s.lastIndex),o=Pt($0,p?n:s,y),p?o?(o.input=Hy(o.input,h),o[0]=Hy(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Uy&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Wy&&o&&o.length>1&&Pt(HJ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=jF(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Nd=_4;rn({target:"RegExp",proto:!0,forced:/./.exec!==Nd},{exec:Nd});var s5=Function.prototype,d8=s5.apply,GJ=s5.bind,p8=s5.call,MF=typeof Reflect=="object"&&Reflect.apply||(GJ?p8.bind(d8):function(){return p8.apply(d8,arguments)}),KJ=fr("species"),qy=RegExp.prototype,l5=function(e,t,n,r){var o=fr(e),i=!Ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ct(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[KJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ye(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=ye(l),v=c.exec;return v===Nd||v===qy.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});Pd(String.prototype,e,s[0]),Pd(qy,o,s[1])}r&&Pl(qy[o],"sham",!0)},YJ=ye("".charAt),h8=ye("".charCodeAt),XJ=ye("".slice),g8=function(e){return function(t,n){var r,o,i=Et(Ir(t)),a=Ql(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=h8(i,a))<55296||r>56319||a+1===u||(o=h8(i,a+1))<56320||o>57343?e?YJ(i,a):r:e?XJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},JJ={codeAt:g8(!1),charAt:g8(!0)}.charAt,c5=function(e,t,n){return t+(n?JJ(e,t).length:1)},ZJ=Math.floor,Gy=ye("".charAt),QJ=ye("".replace),Ky=ye("".slice),eZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tZ=/\$([$&'`]|\d{1,2})/g,nZ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=tZ;return o!==void 0&&(o=bp(o),s=eZ),QJ(i,s,function(l,c){var f;switch(Gy(c,0)){case"$":return"$";case"&":return e;case"`":return Ky(t,0,n);case"'":return Ky(t,a);case"<":f=o[Ky(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=ZJ(d/10);return p===0?l:p<=u?r[p-1]===void 0?Gy(c,1):r[p-1]+Gy(c,1):l}f=r[d-1]}return f===void 0?"":f})},rZ=Oe.TypeError,Rd=function(e,t){var n=e.exec;if(vn(n)){var r=Pt(n,e,t);return r!==null&&ur(r),r}if(ea(e)==="RegExp")return Pt(Nd,e,t);throw rZ("RegExp#exec called on incompatible receiver")},k4=fr("replace"),oZ=Math.max,iZ=Math.min,aZ=ye([].concat),Yy=ye([].push),v8=ye("".indexOf),m8=ye("".slice),uZ="a".replace(/./,"$0")==="$0",y8=!!/./[k4]&&/./[k4]("a","$0")==="";l5("replace",function(e,t,n){var r=y8?"$":"$0";return[function(o,i){var a=Ir(this),u=o==null?void 0:u1(o,k4);return u?Pt(u,o,a,i):Pt(t,Et(a),o,i)},function(o,i){var a=ur(this),u=Et(o);if(typeof i=="string"&&v8(i,r)===-1&&v8(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=vn(i);l||(i=Et(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Rd(a,u);if(p===null||(Yy(d,p),!c))break;Et(p[0])===""&&(a.lastIndex=c5(u,wp(a.lastIndex),f))}for(var g,v="",h=0,y=0;y<d.length;y++){for(var b=Et((p=d[y])[0]),m=oZ(iZ(Ql(p.index),u.length),0),$=[],E=1;E<p.length;E++)Yy($,(g=p[E])===void 0?g:String(g));var S=p.groups;if(l){var x=aZ([b],$,m,u);S!==void 0&&Yy(x,S);var B=Et(MF(i,void 0,x))}else B=nZ(b,u,m,$,S,i);m>=h&&(v+=m8(u,h,m)+B,h=m+b.length)}return v+m8(u,h)}]},!!Ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!uZ||y8);var T4=fr("unscopables"),F4=Array.prototype;F4[T4]==null&&Zl.f(F4,T4,{configurable:!0,value:jF(null)});var zF=function(e){F4[T4][e]=!0},sZ=c1.find,b8=!0;"find"in[]&&Array(1).find(function(){b8=!1}),rn({target:"Array",proto:!0,forced:b8},{find:function(e){return sZ(this,e,arguments.length>1?arguments[1]:void 0)}}),zF("find");var lZ=fr("match"),VF=function(e){var t;return $r(e)&&((t=e[lZ])!==void 0?!!t:ea(e)=="RegExp")},cZ=Oe.TypeError,fZ=fr("species"),dZ=function(e,t){var n,r=ur(e).constructor;return r===void 0||(n=ur(r)[fZ])==null?t:function(o){if(i5(o))return o;throw cZ(SF(o)+" is not a constructor")}(n)},HF=function(e,t,n){var r=JE(t);r in e?Zl.f(e,r,GE(0,n)):e[r]=n},pZ=Oe.Array,hZ=Math.max,w8=function(e,t,n){for(var r=l1(e),o=Id(t,r),i=Id(n===void 0?r:n,r),a=pZ(hZ(i-o,0)),u=0;o<i;o++,u++)HF(a,u,e[o]);return a.length=u,a},ys=NF.UNSUPPORTED_Y,gZ=Math.min,UF=[].push,vZ=ye(/./.exec),bs=ye(UF),qc=ye("".slice);l5("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Et(Ir(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!VF(o))return Pt(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,g=new RegExp(o.source,d+"g");(s=Pt(Nd,g,a))&&!((l=g.lastIndex)>p&&(bs(f,qc(a,p,s.index)),s.length>1&&s.index<a.length&&MF(UF,f,w8(s,1)),c=s[0].length,p=l,f.length>=u));)g.lastIndex===s.index&&g.lastIndex++;return p===a.length?!c&&vZ(g,"")||bs(f,""):bs(f,qc(a,p)),f.length>u?w8(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Pt(t,this,o,i)}:t,[function(o,i){var a=Ir(this),u=o==null?void 0:u1(o,e);return u?Pt(u,o,a,i):Pt(r,Et(a),o,i)},function(o,i){var a=ur(this),u=Et(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=dZ(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ys?"g":"y"),d=new l(ys?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Rd(d,u)===null?[u]:[];for(var g=0,v=0,h=[];v<u.length;){d.lastIndex=ys?0:v;var y,b=Rd(d,ys?qc(u,v):u);if(b===null||(y=gZ(wp(d.lastIndex+(ys?v:0)),u.length))===g)v=c5(u,v,c);else{if(bs(h,qc(u,g,v)),h.length===p)return h;for(var m=1;m<=b.length-1;m++)if(bs(h,b[m]),h.length===p)return h;v=g=y}}return bs(h,qc(u,g)),h}]},!!Ct(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ys);var Gc,B4=`
- \v\f\r \u2028\u2029\uFEFF`,$8=ye("".replace),E0="["+B4+"]",mZ=RegExp("^"+E0+E0+"*"),yZ=RegExp(E0+E0+"*$"),Xy=function(e){return function(t){var n=Et(Ir(t));return 1&e&&(n=$8(n,mZ,"")),2&e&&(n=$8(n,yZ,"")),n}},bZ={start:Xy(1),end:Xy(2),trim:Xy(3)},wZ=s1.PROPER,$Z=bZ.trim;function f5(e){return O("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function ec(e){return e.length===0?"":e[0].outerHTML}function tc(e){return e.length?e[0].tagName.toLowerCase():""}function Fo(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}rn({target:"String",proto:!0,forced:(Gc="trim",Ct(function(){return!!B4[Gc]()||"
"[Gc]()!=="
"||wZ&&B4[Gc].name!==Gc}))},{trim:function(){return $Z(this)}}),rn({global:!0},{globalThis:Oe}),Yg&&(O.fn.css=Yg),To&&(O.fn.append=To),mD&&(O.fn.prepend=mD),ml&&(O.fn.addClass=ml),yl&&(O.fn.removeClass=yl),bl&&(O.fn.hasClass=bl),ko&&(O.fn.on=ko),pD&&(O.fn.off=pD),ha&&(O.fn.focus=ha),Oo&&(O.fn.attr=Oo),Wg&&(O.fn.removeAttr=Wg),$l&&(O.fn.hide=$l),Kg&&(O.fn.show=Kg),Qg&&(O.fn.parents=Qg),wl&&(O.fn.dataset=wl),_o&&(O.fn.val=_o),Jg&&(O.fn.text=Jg),pa&&(O.fn.html=pa),Sl&&(O.fn.children=Sl),Dl&&(O.fn.remove=Dl),El&&(O.fn.find=El),qg&&(O.fn.width=qg),Gg&&(O.fn.height=Gg),gD&&(O.fn.filter=gD),Cl&&(O.fn.empty=Cl);var EZ={selector:"p",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},P4=function(e,t){return P4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},P4(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 mt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}P4(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ma=function(){return ma=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},ma.apply(this,arguments)};function Aa(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function Oa(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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function WF(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 Ge(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||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 E8(e){var t=Ge(D.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1),n=t[0];if(n==null)return!1;var r=n[0];if(!se.isElement(r)||r.type==="paragraph"||X.string(r)!=="")return!1;var o=r.children,i=o===void 0?[]:o;return!!oe.isText(i[0])&&(N.setNodes(e,{type:"paragraph"}),!0)}var SZ={renderElems:[CX],elemsToHtml:[xX],parseElemsHtml:[EZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){E8(r)||t(o)},r.deleteForward=function(o){E8(r)||n(o)},r}},DZ=/"/g,CZ=ye("".replace),Pf=function(e,t,n,r){var o=Et(Ir(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+CZ(Et(r),DZ,""")+'"'),i+">"+o+"</"+t+">"},If=function(e){return Ct(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function Jy(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 za(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}rn({target:"String",proto:!0,forced:If("bold")},{bold:function(){return Pf(this,"b","","")}}),rn({target:"String",proto:!0,forced:If("italics")},{italics:function(){return Pf(this,"i","","")}}),rn({target:"String",proto:!0,forced:If("sub")},{sub:function(){return Pf(this,"sub","","")}}),rn({target:"String",proto:!0,forced:If("sup")},{sup:function(){return Pf(this,"sup","","")}});var S8={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},Zy=ZE("span").classList,D8=Zy&&Zy.constructor&&Zy.constructor.prototype,xZ=D8===Object.prototype?void 0:D8,qF=function(e,t){var n=[][e];return!!n&&Ct(function(){n.call(null,t||function(){throw 1},1)})},AZ=c1.forEach,Qy=qF("forEach")?[].forEach:function(e){return AZ(this,e,arguments.length>1?arguments[1]:void 0)},GF=function(e){if(e&&e.forEach!==Qy)try{Pl(e,"forEach",Qy)}catch{e.forEach=Qy}};for(var eb in S8)S8[eb]&&GF(Oe[eb]&&Oe[eb].prototype);function KF(e,t){return e.selection==null||!!Ge(D.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(e,n)},universal:!0}),1)[0]}function OZ(e,t){Object.keys(t).forEach(function(n){n!=="text"&&D.removeMark(e,n)})}GF(xZ),rn({target:"Object",stat:!0,forced:Ct(function(){il(1)})},{keys:function(e){return il(bp(e))}});var Xu=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=D.marks(t);return r?r[n]:!!Ge(D.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return KF(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e}(),_Z='<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>',kZ='<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>',TZ='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',FZ='<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>',BZ='<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>',YF='<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>',XF='<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>',PZ='<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>',IZ='<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>',NZ='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',RZ='<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>',LZ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',jZ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',MZ='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',zZ='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',VZ='<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>',HZ='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',UZ='<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>',WZ='<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>',qZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Z("textStyle.bold"),n.iconSvg=_Z,n.hotkey="mod+b",n}return mt(t,e),t}(Xu),GZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Z("textStyle.code"),n.iconSvg=BZ,n.hotkey="mod+e",n}return mt(t,e),t}(Xu),KZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Z("textStyle.italic"),n.iconSvg=TZ,n.hotkey="mod+i",n}return mt(t,e),t}(Xu),YZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Z("textStyle.through"),n.iconSvg=FZ,n.hotkey="mod+shift+x",n}return mt(t,e),t}(Xu),XZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Z("textStyle.underline"),n.iconSvg=kZ,n.hotkey="mod+u",n}return mt(t,e),t}(Xu),JZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Z("textStyle.sub"),n.iconSvg=WZ,n.hotkey="",n}return mt(t,e),t}(Xu),ZZ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Z("textStyle.sup"),n.iconSvg=UZ,n.hotkey="",n}return mt(t,e),t}(Xu),QZ=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return KF(t)},e.prototype.exec=function(t,n){var r,o,i=D.nodes(t,{match:function(s){return oe.isText(s)},universal:!0});try{for(var a=WF(i),u=a.next();!u.done;u=a.next())OZ(t,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},e}(),eQ={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=Ce("strong",null,c)),a&&(c=Ce("code",null,c)),o&&(c=Ce("em",null,c)),i&&(c=Ce("u",null,c)),u&&(c=Ce("s",null,c)),s&&(c=Ce("sub",null,c)),l&&(c=Ce("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new qZ}},{key:"underline",factory:function(){return new XZ}},{key:"italic",factory:function(){return new KZ}},{key:"through",factory:function(){return new YZ}},{key:"code",factory:function(){return new GZ}},{key:"sub",factory:function(){return new JZ}},{key:"sup",factory:function(){return new ZZ}},{key:"clearStyle",factory:function(){return new QZ}}],styleToHtml:function(e,t){if(!oe.isText(e))return t;if(f5(t))return Jy(e,t);var n=O(t);if(tc(n)==="br")return Jy(e,"<br>");var r=n.html();return r=Jy(e,r),n.html(r),ec(n)},parseStyleHtml:function(e,t,n){var r=O(e);if(!oe.isText(t))return t;var o=t;return za(r,"b,strong")&&(o.bold=!0),za(r,"i,em")&&(o.italic=!0),za(r,"u")&&(o.underline=!0),za(r,"s,strike")&&(o.through=!0),za(r,"sub")&&(o.sub=!0),za(r,"sup")&&(o.sup=!0),za(r,"code")&&(o.code=!0),o}};function Ep(e){return function(t,n,r){return Ce("h"+e,null,n)}}var tQ={type:"header1",renderElem:Ep(1)},nQ={type:"header2",renderElem:Ep(2)},rQ={type:"header3",renderElem:Ep(3)},oQ={type:"header4",renderElem:Ep(4)},iQ={type:"header5",renderElem:Ep(5)},aQ=s1.PROPER,I4=RegExp.prototype,JF=I4.toString,uQ=ye(IF),sQ=Ct(function(){return JF.call({source:"a",flags:"b"})!="/a/b"}),lQ=aQ&&JF.name!="toString";(sQ||lQ)&&Pd(RegExp.prototype,"toString",function(){var e=ur(this),t=Et(e.source),n=e.flags;return"/"+t+"/"+Et(n===void 0&&EF(I4,e)&&!("flags"in I4)?uQ(e):n)},{unsafe:!0});var tb,cQ=Oe.TypeError,ZF=function(e){if(VF(e))throw cQ("The method doesn't accept regular expressions");return e},fQ=fr("match"),QF=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[fQ]=!1,"/./"[e](t)}catch{}}return!1},dQ=QE.f,C8=ye("".startsWith),pQ=ye("".slice),hQ=Math.min,x8=QF("startsWith");function eB(e){var t=Ge(D.nodes(e,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Ge(n,1)[0];return A.getNodeType(r)}function tB(e){return e.selection==null||!Ge(D.nodes(e,{match:function(t){var n=A.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function nB(e,t){t&&N.setNodes(e,{type:t})}rn({target:"String",proto:!0,forced:!!(x8||(tb=dQ(String.prototype,"startsWith"),!tb||tb.writable))&&!x8},{startsWith:function(e){var t=Et(Ir(this));ZF(e);var n=wp(hQ(arguments.length>1?arguments[1]:void 0,t.length)),r=Et(e);return C8?C8(t,r,n):pQ(t,n,n+r.length)===r}});var gQ=function(){function e(){this.title=Z("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(t){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Z("header.text")}],r=this.getValue(t).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return eB(t)},e.prototype.isDisabled=function(t){return tB(t)},e.prototype.exec=function(t,n){nB(t,n.toString())},e}(),Sp=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return eB(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return tB(t)},e.prototype.exec=function(t,n){var r=this.type;nB(t,n===r?"paragraph":r)},e}(),vQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return mt(t,e),t}(Sp),mQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return mt(t,e),t}(Sp),yQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return mt(t,e),t}(Sp),bQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return mt(t,e),t}(Sp),wQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return mt(t,e),t}(Sp),$Q={key:"headerSelect",factory:function(){return new gQ}},EQ={key:"header1",factory:function(){return new vQ}},SQ={key:"header2",factory:function(){return new mQ}},DQ={key:"header3",factory:function(){return new yQ}},CQ={key:"header4",factory:function(){return new bQ}},xQ={key:"header5",factory:function(){return new wQ}};function Kc(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Yc(e){return function(t,n,r){var o=O(t);return(n=n.filter(function(i){return!!oe.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var AQ={renderElems:[tQ,nQ,rQ,oQ,iQ],elemsToHtml:[{type:"header1",elemToHtml:Kc(1)},{type:"header2",elemToHtml:Kc(2)},{type:"header3",elemToHtml:Kc(3)},{type:"header4",elemToHtml:Kc(4)},{type:"header5",elemToHtml:Kc(5)}],parseElemsHtml:[{selector:"h1",parseElemHtml:Yc(1)},{selector:"h2",parseElemHtml:Yc(2)},{selector:"h3",parseElemHtml:Yc(3)},{selector:"h4",parseElemHtml:Yc(4)},{selector:"h5",parseElemHtml:Yc(5)}],menus:[$Q,EQ,SQ,DQ,CQ,xQ],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Ge(D.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(e,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},ws=Object.assign,A8=Object.defineProperty,OQ=ye([].concat),O8=!ws||Ct(function(){if(Xr&&ws({b:1},ws(A8({},"a",{enumerable:!0,get:function(){A8(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),ws({},e)[n]!=7||il(ws({},t)).join("")!=r})?function(e,t){for(var n=bp(e),r=arguments.length,o=1,i=TF.f,a=wF.f;r>o;)for(var u,s=a1(arguments[o++]),l=i?OQ(il(s),i(s)):il(s),c=l.length,f=0;c>f;)u=l[f++],Xr&&!Pt(a,s,u)||(n[u]=s[u]);return n}:ws;function Ru(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}rn({target:"Object",stat:!0,forced:Object.assign!==O8},{assign:O8});var _Q={selector:"font",preParseHtml:function(e){var t=O(e);if(tc(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},rB=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=D.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge(D.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=O('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=O(c).attr("data-value");f==="0"?D.removeMark(t,n):D.addMark(t,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=O('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=O('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=Z("color.default")),n==="bgColor"&&(u=Z("color.clear"));var s=O(`
- <li data-value="0" class="clear">
- <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>
- `+u+`
- </li>
- `);return o.prepend(s),o[0]},e}(),kQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("color.color"),n.iconSvg=PZ,n.mark="color",n}return mt(t,e),t}(rB),TQ=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("color.bgColor"),n.iconSvg=IZ,n.mark="bgColor",n}return mt(t,e),t}(rB),_8=["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)"],FQ={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Ru(i,{color:r}),o&&Ru(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((f5(t)||tc(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),ec(n)):t},preParseHtml:[_Q],parseStyleHtml:function(e,t,n){var r=O(e);if(!oe.isText(t))return t;var o=t,i=Fo(r,"color");i&&(o.color=i);var a=Fo(r,"background-color");return a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new kQ},config:{colors:_8}},{key:"bgColor",factory:function(){return new TQ},config:{colors:_8}}]},BQ=function(e){if(typeof e!="string")return!1;var t=e.match(PQ);if(!t)return!1;var n=t[1];return n?!!(IQ.test(n)||NQ.test(n)):!1},PQ=/^(?:\w+:)?\/\/(\S+)$/,IQ=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,NQ=/^[^\s\.]+\.\S{2,}$/,RQ=_F.includes;function f1(e){return e===void 0&&(e="r"),e+"-"+gk()}function d5(e){return e.replace(/</g,"<").replace(/>/g,">")}function oB(e,t,n,r){return Aa(this,void 0,void 0,function(){var o,i;return Oa(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function iB(e,t,n){return Aa(this,void 0,void 0,function(){var r;return Oa(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 p5(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function nb(e,t){return{type:"link",url:d5(e),children:t?[{text:t}]:[]}}function aB(e,t,n){return Aa(this,void 0,void 0,function(){var r,o,i;return Oa(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),p5(e)?[2]:[4,oB("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,iB("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null?[2]:(L.isCollapsed(o)?(e.insertText(" "),i=nb(r,t),N.insertNodes(e,i),e.insertFragment([{text:" "}])):D.string(e,o)!==t?(e.deleteFragment(),i=nb(r,t),N.insertNodes(e,i)):(i=nb(r),N.wrapNodes(e,i,{split:!0}),N.collapse(e,{edge:"end"})),[2])}})})}rn({target:"Array",proto:!0},{includes:function(e){return RQ(this,e,arguments.length>1?arguments[1]:void 0)}}),zF("includes");var LQ={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Ce("a",{href:o,target:i===void 0?"_blank":i},t)}},jQ={type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}},MQ={selector:"a",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function rb(){return f1("w-e-insert-link")}var zQ=function(){function e(){this.title=Z("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=rb(),this.urlInputId=rb(),this.buttonId=rb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return p5(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Ge(Or(Z("link.text"),o),2),s=u[0],l=u[1],c=O(l),f=Ge(Or(Z("link.url"),i),2),d=f[0],p=f[1],g=O(p),v=Ge(Xl(a,Z("common.ok")),1)[0];if(this.$content==null){var h=O("<div></div>");h.on("click","#"+a,function(m){m.preventDefault();var $=h.find("#"+o).val(),E=h.find("#"+i).val();aB(t,$,E),t.hidePanelOrModal()}),this.$content=h}var y=this.$content;if(y.empty(),y.append(s),y.append(d),y.append(v),n==null||L.isCollapsed(n))c.val("");else{var b=D.string(t,n);c.val(b)}return g.val(""),setTimeout(function(){c.focus()}),y[0]},e}();function k8(){return f1("w-e-update-link")}var VQ=function(){function e(){this.title=Z("link.edit"),this.iconSvg=YF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=k8(),this.buttonId=k8()}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=Ge(Or(Z("link.url"),n),2),i=o[0],a=o[1],u=O(a),s=Ge(Xl(r,Z("common.ok")),1)[0];if(this.$content==null){var l=O("<div></div>");l.on("click","button",function(d){d.preventDefault(),t.restoreSelection();var p=A.getSelectedNodeByType(t,"link"),g=p?X.string(p):"",v=l.find("#"+n).val();(function(h,y,b){Aa(this,void 0,void 0,function(){var m,$;return Oa(this,function(E){switch(E.label){case 0:return b?[4,oB("editLink",h,y,b)]:[2];case 1:return E.sent()?[4,iB("editLink",h,b)]:[2];case 2:return m=E.sent(),$={url:d5(m)},N.setNodes(h,$,{match:function(S){return A.checkNodeType(S,"link")}}),[2]}})})})(t,g,v),t.hidePanelOrModal()}),this.$content=l}var c=this.$content;c.empty(),c.append(i),c.append(s);var f=this.getValue(t);return u.val(f),setTimeout(function(){u.focus()}),c[0]},e}(),HQ=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||N.unwrapNodes(t,{match:function(r){return A.checkNodeType(r,"link")}})},e}(),UQ=function(){function e(){this.title=Z("link.view"),this.iconSvg=XF,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),T8={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},WQ={renderElems:[LQ],elemsToHtml:[jQ],parseElemsHtml:[MQ],menus:[{key:"insertLink",factory:function(){return new zQ},config:T8},{key:"editLink",factory:function(){return new VQ},config:T8},{key:"unLink",factory:function(){return new HQ}},{key:"viewLink",factory:function(){return new UQ}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if(BQ(a)){if(!p5(o)){var u=o.selection;if(u!=null){var s=D.string(o,u);aB(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Ge(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):X.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},qQ=ye(1 .valueOf),GQ=Oe.RangeError,KQ=Oe.RangeError,uB=Oe.String,sB=Math.floor,N4=ye(function(e){var t=Et(Ir(this)),n="",r=Ql(e);if(r<0||r==1/0)throw GQ("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),F8=ye("".slice),Xc=ye(1 .toFixed),Xs=function(e,t,n){return t===0?n:t%2==1?Xs(e,t-1,n*e):Xs(e*e,t/2,n)},$s=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=sB(o/1e7)},ob=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=sB(r/t),r=r%t*1e7},B8=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=uB(e[t]);n=n===""?r:n+N4("0",7-r.length)+r}return n};function lB(e,t){return"w-e-image-container-"+A.findKey(e,t).id}function YQ(e,t,n,r){var o=O("body"),i=lB(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(y){d=function(){var $=O("#"+i);if($.length===0)throw new Error("Cannot find image container elem");return $}(),s=y;var b=d.find("img");if(b.length===0)throw new Error("Cannot find image elem");l=b.width(),c=b.height(),o.on("mousemove",g),o.on("mouseup",v);var m=A.getHoverbar(e);m&&m.hideAndClean()}var g=Tu(function(y){y.preventDefault();var b=y.clientX,m=l+(f?s-b:b-s),$=c*(m/l);d!=null&&(m<=15||$<=15||(d.css("width",m+"px"),d.css("height",$+"px")))},100);function v(y){if(o.off("mousemove",g),d!=null){var b=d.width().toFixed(2),m=d.height().toFixed(2),$={style:ma(ma({},t.style),{width:b+"px",height:m+"px"})};N.setNodes(e,$,{at:A.findPath(e,t)}),o.off("mouseup",v)}}var h={};return a&&(h.width=a),u&&(h.height=u),Ce("div",{id:i,style:h,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(y){var b=O(y.target);b.hasClass("w-e-image-dragger")&&(y.preventDefault(),(b.hasClass("left-top")||b.hasClass("left-bottom"))&&(f=!0),p(y.clientX))}}},n,Ce("div",{className:"w-e-image-dragger left-top"}),Ce("div",{className:"w-e-image-dragger right-top"}),Ce("div",{className:"w-e-image-dragger left-bottom"}),Ce("div",{className:"w-e-image-dragger right-bottom"}))}rn({target:"Number",proto:!0,forced:Ct(function(){return Xc(8e-5,3)!=="0.000"||Xc(.9,0)!=="1"||Xc(1.255,2)!=="1.25"||Xc(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ct(function(){Xc({})})},{toFixed:function(e){var t,n,r,o,i=qQ(this),a=Ql(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw KQ("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return uB(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*Xs(2,69,1))-69)<0?i*Xs(2,-t,1):i/Xs(2,t,1),n*=4503599627370496,(t=52-t)>0){for($s(u,0,n),r=a;r>=7;)$s(u,1e7,0),r-=7;for($s(u,Xs(10,r,1),0),r=t-1;r>=23;)ob(u,1<<23),r-=23;ob(u,1<<r),$s(u,1,1),ob(u,2),l=B8(u)}else $s(u,0,n),$s(u,1<<-t,0),l=B8(u)+N4("0",a);return l=a>0?s+((o=l.length)<=a?"0."+N4("0",a-o)+l:F8(l,0,o-a)+"."+F8(l,o-a)):s+l}});var XQ={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,g=p===void 0?"":p,v=A.isNodeSelected(n,e),h={};d&&(h.width="100%"),g&&(h.height="100%");var y=Ce("img",{style:h,src:o,alt:a,"data-href":s}),b=n.isDisabled();return v&&!b?YQ(n,e,y,{width:d,height:g}):function(m,$,E,S){var x=S.width,B=S.height,I={};x&&(I.width=x),B&&(I.height=B);var H=lB(m,$);return Ce("div",{id:H,style:I,className:"w-e-image-container"},E)}(n,e,y,{width:d,height:g})}},JQ={type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,g="";return f&&(g+="width: "+f+";"),p&&(g+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+g+'"/>'}},ZQ={selector:"img",parseElemHtml:function(e,t,n){var r=O(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Fo(r,"width"),height:Fo(r,"height")},children:[{text:""}]}}};function cB(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Aa(this,void 0,void 0,function(){var i,a;return Oa(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function fB(e,t,n){return Aa(this,void 0,void 0,function(){var r;return Oa(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 vu(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Aa(this,void 0,void 0,function(){var o,i,a;return Oa(this,function(u){switch(u.label){case 0:return[4,cB("insertImage",e,t,n,r)];case 1:return u.sent()?[4,fB("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:d5(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),d1(e)?[2]:(N.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i),[2])}})})}function QQ(e,t,n,r,o){return n===void 0&&(n=""),r===void 0&&(r=""),o===void 0&&(o={}),Aa(this,void 0,void 0,function(){var i,a,u,s,l,c;return Oa(this,function(f){switch(f.label){case 0:return[4,cB("editImage",e,t,n,r)];case 1:return f.sent()?[4,fB("editImage",e,t)]:[2];case 2:return i=f.sent(),(a=A.getSelectedNodeByType(e,"image"))==null?[2]:(u=a.style,s={src:i,alt:n,href:r,style:ma(ma({},u===void 0?{}:u),o)},N.setNodes(e,s,{match:function(d){return A.checkNodeType(d,"image")}}),l=A.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l),[2])}})})}function d1(e){var t=e.selection;return t==null||!L.isCollapsed(t)||!!Ge(D.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!D.isVoid(e,n)},universal:!0}),1)[0]}function Ah(){return f1("w-e-insert-image")}var eee=function(){function e(){this.title=Z("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=Ah(),this.altInputId=Ah(),this.hrefInputId=Ah(),this.buttonId=Ah()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return d1(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Ge(Or(Z("image.src"),o),2),l=s[0],c=s[1],f=O(c),d=Ge(Or(Z("image.desc"),i),2),p=d[0],g=d[1],v=O(g),h=Ge(Or(Z("image.link"),a),2),y=h[0],b=h[1],m=O(b),$=Ge(Xl(u,Z("common.ok")),1)[0];if(this.$content==null){var E=O("<div></div>");E.on("click","#"+u,function(x){x.preventDefault();var B=E.find("#"+o).val().trim(),I=E.find("#"+i).val().trim(),H=E.find("#"+a).val().trim();n.insertImage(t,B,I,H),t.hidePanelOrModal()}),this.$content=E}var S=this.$content;return S.empty(),S.append(l),S.append(p),S.append(y),S.append($),f.val(""),v.val(""),m.val(""),setTimeout(function(){f.focus()}),S[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||vu(t,n,r,o))},e}(),tee=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||N.removeNodes(t,{match:function(r){return A.checkNodeType(r,"image")}})},e}();function Oh(){return f1("w-e-edit-image")}var nee=function(){function e(){this.title=Z("image.edit"),this.iconSvg=YF,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Oh(),this.altInputId=Oh(),this.hrefInputId=Oh(),this.buttonId=Oh()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Ge(Or(Z("image.src"),o),2),c=l[0],f=l[1],d=O(f),p=Ge(Or(Z("image.desc"),i),2),g=p[0],v=p[1],h=O(v),y=Ge(Or(Z("image.link"),a),2),b=y[0],m=y[1],$=O(m),E=Ge(Xl(u,Z("common.ok")),1)[0];if(this.$content==null){var S=O("<div></div>");S.on("click","#"+u,function(ie){ie.preventDefault();var re=S.find("#"+o).val(),ae=S.find("#"+i).val(),me=S.find("#"+a).val();n.updateImage(t,re,ae,me),t.hidePanelOrModal()}),this.$content=S}var x=this.$content;x.empty(),x.append(c),x.append(g),x.append(b),x.append(E);var B=s,I=B.src,H=B.alt,G=H===void 0?"":H,Y=B.href,U=Y===void 0?"":Y;return d.val(I),h.val(G),$.val(U),setTimeout(function(){d.focus()}),x[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||QQ(t,n,r,o,i))},e}(),ree=function(){function e(){this.title=Z("image.viewLink"),this.iconSvg=XF,this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),h5=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=A.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:ma(ma({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e}(),oee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return mt(t,e),t}(h5),iee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return mt(t,e),t}(h5),aee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return mt(t,e),t}(h5),P8={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},uee={renderElems:[XQ],elemsToHtml:[JQ],parseElemsHtml:[ZQ],menus:[{key:"insertImage",factory:function(){return new eee},config:P8},{key:"deleteImage",factory:function(){return new tee}},{key:"editImage",factory:function(){return new nee},config:P8},{key:"viewImageLink",factory:function(){return new ree}},{key:"imageWidth30",factory:function(){return new oee}},{key:"imageWidth50",factory:function(){return new iee}},{key:"imageWidth100",factory:function(){return new aee}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},see={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=e.checked,i=Ce("div",{style:{margin:"5px 0"}},Ce("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ce("input",{type:"checkbox",checked:o,disabled:r,on:{change:function(a){var u=A.findPath(n,e),s={checked:a.target.checked};N.setNodes(n,s,{at:u})}}})),Ce("span",null,t));return i}},lee=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(D.isVoid(t,n)&&D.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","bulleted-list","numbered-list"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);N.setNodes(t,{type:r?"paragraph":"todo"})},e}(),cee={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(i){return!!oe.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},fee={renderElems:[see],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=O(e).find("li"),n=O('<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:[cee],menus:[{key:"todo",factory:function(){return new lee}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(e,"todo");if(i&&X.string(i).length===0)return void N.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},dee={type:"blockquote",renderElem:function(e,t,n){return Ce("blockquote",null,t)}},pee={type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}},hee={selector:"blockquote",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},gee=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Ge(D.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";N.setNodes(t,{type:r},{mode:"highest"})}},e}(),vee={key:"blockquote",factory:function(){return new gee}},mee=ye([].slice),yee=a5("slice"),bee=fr("species"),ib=Oe.Array,wee=Math.max;rn({target:"Array",proto:!0,forced:!yee},{slice:function(e,t){var n,r,o,i=Jl(this),a=l1(i),u=Id(e,a),s=Id(t===void 0?a:t,a);if(w0(i)&&(n=i.constructor,(i5(n)&&(n===ib||w0(n.prototype))||$r(n)&&(n=n[bee])===null)&&(n=void 0),n===ib||n===void 0))return mee(i,u,s);for(r=new(n===void 0?ib:n)(wee(s-u,0)),o=0;u<s;u++,o++)u in i&&HF(r,o,i[u]);return r.length=o,r}});var $ee={renderElems:[dee],elemsToHtml:[pee],parseElemsHtml:[hee],menus:[vee],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=Ge(D.nodes(e,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=A.findPath(e,a),s=D.end(e,u);if(Be.equals(s,o.focus)){var l=X.string(a);if(l&&l.slice(-1)===`
- `)return e.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},Eee=function(){function e(){this.title=Z("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(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge(D.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=O('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=O(a).text();t.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=O("<li>"+i+"</li>");r.append(a)}),r[0]},e}(),See={menus:[{key:"emotion",factory:function(){return new Eee},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Dee={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Cee={selector:"font",preParseHtml:function(e){var t=O(e);if(tc(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Dee[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},xee=ye("".indexOf);rn({target:"String",proto:!0,forced:!QF("includes")},{includes:function(e){return!!~xee(Et(Ir(this)),Et(ZF(e)),arguments.length>1?arguments[1]:void 0)}});var Oi,wg,dB=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=D.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ge(D.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!D.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),Aee=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("fontSize.title"),n.iconSvg=NZ,n.mark="fontSize",n}return mt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:Z("fontSize.default"),value:""}),i.forEach(function(u){r.push({text:u,value:u})});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(dB),_h=function(e){return e&&e.Math==Math&&e},Ie=_h(typeof globalThis=="object"&&globalThis)||_h(typeof window=="object"&&window)||_h(typeof self=="object"&&self)||_h(typeof v0=="object"&&v0)||function(){return this}()||Function("return this")(),g5=Function.prototype,I8=g5.apply,Oee=g5.bind,N8=g5.call,pB=typeof Reflect=="object"&&Reflect.apply||(Oee?N8.bind(I8):function(){return N8.apply(I8,arguments)}),hB=Function.prototype,R4=hB.bind,L4=hB.call,_ee=R4&&R4.bind(L4),It=R4?function(e){return e&&_ee(L4,e)}:function(e){return e&&function(){return L4.apply(e,arguments)}},mn=function(e){return typeof e=="function"},sr=function(e){try{return!!e()}catch{return!0}},Hn=!sr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jc=Function.prototype.call,Wr=Jc.bind?Jc.bind(Jc):function(){return Jc.apply(Jc,arguments)},R8={}.propertyIsEnumerable,L8=Object.getOwnPropertyDescriptor,kee=L8&&!R8.call({1:2},1)?function(e){var t=L8(this,e);return!!t&&t.enumerable}:R8,v5={f:kee},Lu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tee=It({}.toString),Fee=It("".slice),mu=function(e){return Fee(Tee(e),8,-1)},ab=Ie.Object,Bee=It("".split),gB=sr(function(){return!ab("z").propertyIsEnumerable(0)})?function(e){return mu(e)=="String"?Bee(e,""):ab(e)}:ab,Pee=Ie.TypeError,m5=function(e){if(e==null)throw Pee("Can't call method on "+e);return e},jo=function(e){return gB(m5(e))},Er=function(e){return typeof e=="object"?e!==null:mn(e)},br={},j8=function(e){return mn(e)?e:void 0},Dp=function(e,t){return arguments.length<2?j8(br[e])||j8(Ie[e]):br[e]&&br[e][t]||Ie[e]&&Ie[e][t]},vB=It({}.isPrototypeOf),ub=Dp("navigator","userAgent")||"",M8=Ie.process,z8=Ie.Deno,V8=M8&&M8.versions||z8&&z8.version,H8=V8&&V8.v8;H8&&(wg=(Oi=H8.split("."))[0]>0&&Oi[0]<4?1:+(Oi[0]+Oi[1])),!wg&&ub&&(!(Oi=ub.match(/Edge\/(\d+)/))||Oi[1]>=74)&&(Oi=ub.match(/Chrome\/(\d+)/))&&(wg=+Oi[1]);var S0=wg,lo=!!Object.getOwnPropertySymbols&&!sr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&S0&&S0<41}),y5=lo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Iee=Ie.Object,al=y5?function(e){return typeof e=="symbol"}:function(e){var t=Dp("Symbol");return mn(t)&&vB(t.prototype,Iee(e))},Nee=Ie.String,Ree=Ie.TypeError,mB=function(e){if(mn(e))return e;throw Ree(function(t){try{return Nee(t)}catch{return"Object"}}(e)+" is not a function")},Lee=Ie.TypeError,jee=Object.defineProperty,na=Ie["__core-js_shared__"]||function(e,t){try{jee(Ie,e,{value:t,configurable:!0,writable:!0})}catch{Ie[e]=t}return t}("__core-js_shared__",{}),Ju=i1(function(e){(e.exports=function(t,n){return na[t]||(na[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Mee=Ie.Object,Cp=function(e){return Mee(m5(e))},zee=It({}.hasOwnProperty),qe=Object.hasOwn||function(e,t){return zee(Cp(e),t)},Vee=0,Hee=Math.random(),Uee=It(1 .toString),D0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Uee(++Vee+Hee,36)},Zc=Ju("wks"),yu=Ie.Symbol,U8=yu&&yu.for,Wee=y5?yu:yu&&yu.withoutSetter||D0,dr=function(e){if(!qe(Zc,e)||!lo&&typeof Zc[e]!="string"){var t="Symbol."+e;lo&&qe(yu,e)?Zc[e]=yu[e]:Zc[e]=y5&&U8?U8(t):Wee(t)}return Zc[e]},qee=Ie.TypeError,Gee=dr("toPrimitive"),Kee=function(e,t){if(!Er(e)||al(e))return e;var n,r,o=(n=e[Gee])==null?void 0:mB(n);if(o){if(t===void 0&&(t="default"),r=Wr(o,e,t),!Er(r)||al(r))return r;throw qee("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(i,a){var u,s;if(a==="string"&&mn(u=i.toString)&&!Er(s=Wr(u,i))||mn(u=i.valueOf)&&!Er(s=Wr(u,i))||a!=="string"&&mn(u=i.toString)&&!Er(s=Wr(u,i)))return s;throw Lee("Can't convert object to primitive value")}(e,t)},nc=function(e){var t=Kee(e,"string");return al(t)?t:t+""},j4=Ie.document,Yee=Er(j4)&&Er(j4.createElement),yB=function(e){return Yee?j4.createElement(e):{}},bB=!Hn&&!sr(function(){return Object.defineProperty(yB("div"),"a",{get:function(){return 7}}).a!=7}),W8=Object.getOwnPropertyDescriptor,b5={f:Hn?W8:function(e,t){if(e=jo(e),t=nc(t),bB)try{return W8(e,t)}catch{}if(qe(e,t))return Lu(!Wr(v5.f,e,t),e[t])}},Xee=/#|\.prototype\./,xp=function(e,t){var n=Zee[Jee(e)];return n==ete||n!=Qee&&(mn(t)?sr(t):!!t)},Jee=xp.normalize=function(e){return String(e).replace(Xee,".").toLowerCase()},Zee=xp.data={},Qee=xp.NATIVE="N",ete=xp.POLYFILL="P",tte=xp,q8=It(It.bind),wB=function(e,t){return mB(e),t===void 0?e:q8?q8(e,t):function(){return e.apply(t,arguments)}},nte=Ie.String,rte=Ie.TypeError,ju=function(e){if(Er(e))return e;throw rte(nte(e)+" is not an object")},ote=Ie.TypeError,G8=Object.defineProperty,Zu={f:Hn?G8:function(e,t,n){if(ju(e),t=nc(t),ju(n),bB)try{return G8(e,t,n)}catch{}if("get"in n||"set"in n)throw ote("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ho=Hn?function(e,t,n){return Zu.f(e,t,Lu(1,n))}:function(e,t,n){return e[t]=n,e},ite=b5.f,ate=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 pB(e,this,arguments)};return t.prototype=e.prototype,t},zi=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,g=f?Ie:d?Ie[c]:(Ie[c]||{}).prototype,v=f?br:br[c]||ho(br,c,{})[c],h=v.prototype;for(o in t)n=!tte(f?o:c+(d?".":"#")+o,e.forced)&&g&&qe(g,o),a=v[o],n&&(u=e.noTargetGet?(l=ite(g,o))&&l.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?wB(i,Ie):e.wrap&&n?ate(i):p&&mn(i)?It(i):i,(e.sham||i&&i.sham||a&&a.sham)&&ho(s,"sham",!0),ho(v,o,s),p&&(qe(br,r=c+"Prototype")||ho(br,r,{}),ho(br[r],o,i),e.real&&h&&!h[o]&&ho(h,o,i)))},C0=Array.isArray||function(e){return mu(e)=="Array"},ute=Math.ceil,ste=Math.floor,w5=function(e){var t=+e;return t!=t||t===0?0:(t>0?ste:ute)(t)},lte=Math.min,p1=function(e){return(t=e.length)>0?lte(w5(t),9007199254740991):0;var t},M4=function(e,t,n){var r=nc(t);r in e?Zu.f(e,r,Lu(0,n)):e[r]=n},$B={};$B[dr("toStringTag")]="z";var $5=String($B)==="[object z]",cte=dr("toStringTag"),fte=Ie.Object,dte=mu(function(){return arguments}())=="Arguments",h1=$5?mu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=fte(e),cte))=="string"?n:dte?mu(t):(r=mu(t))=="Object"&&mn(t.callee)?"Arguments":r},pte=It(Function.toString);mn(na.inspectSource)||(na.inspectSource=function(e){return pte(e)});var EB=na.inspectSource,SB=function(){},hte=[],DB=Dp("Reflect","construct"),E5=/^\s*(?:class|function)\b/,gte=It(E5.exec),vte=!E5.exec(SB),Qc=function(e){if(!mn(e))return!1;try{return DB(SB,hte,e),!0}catch{return!1}},mte=!DB||sr(function(){var e;return Qc(Qc.call)||!Qc(Object)||!Qc(function(){e=!0})||e})?function(e){if(!mn(e))return!1;switch(h1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return vte||!!gte(E5,EB(e))}:Qc,yte=dr("species"),K8=Ie.Array,CB=function(e,t){return new(function(n){var r;return C0(n)&&(r=n.constructor,(mte(r)&&(r===K8||C0(r.prototype))||Er(r)&&(r=r[yte])===null)&&(r=void 0)),r===void 0?K8:r}(e))(t===0?0:t)},bte=dr("species"),xB=dr("isConcatSpreadable"),Y8=Ie.TypeError,wte=S0>=51||!sr(function(){var e=[];return e[xB]=!1,e.concat()[0]!==e}),$te=function(e){return S0>=51||!sr(function(){var t=[];return(t.constructor={})[bte]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("concat"),Ete=function(e){if(!Er(e))return!1;var t=e[xB];return t!==void 0?!!t:C0(e)};zi({target:"Array",proto:!0,forced:!wte||!$te},{concat:function(e){var t,n,r,o,i,a=Cp(this),u=CB(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Ete(i=t===-1?a:arguments[t])){if(s+(o=p1(i))>9007199254740991)throw Y8("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&M4(u,s,i[n])}else{if(s>=9007199254740991)throw Y8("Maximum allowed index exceeded");M4(u,s++,i)}return u.length=s,u}});var kh,Ste=Ie.String,x0=function(e){if(h1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ste(e)},Dte=Math.max,Cte=Math.min,z4=function(e,t){var n=w5(e);return n<0?Dte(n+t,0):Cte(n,t)},X8=function(e){return function(t,n,r){var o,i=jo(t),a=p1(i),u=z4(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}},xte={includes:X8(!0),indexOf:X8(!1)},Ap={},Ate=xte.indexOf,J8=It([].push),AB=function(e,t){var n,r=jo(e),o=0,i=[];for(n in r)!qe(Ap,n)&&qe(r,n)&&J8(i,n);for(;t.length>o;)qe(r,n=t[o++])&&(~Ate(i,n)||J8(i,n));return i},A0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],S5=Object.keys||function(e){return AB(e,A0)},Ote=Hn?Object.defineProperties:function(e,t){ju(e);for(var n,r=jo(t),o=S5(t),i=o.length,a=0;i>a;)Zu.f(e,n=o[a++],r[n]);return e},_te=Dp("document","documentElement"),Z8=Ju("keys"),g1=function(e){return Z8[e]||(Z8[e]=D0(e))},OB=g1("IE_PROTO"),sb=function(){},_B=function(e){return"<script>"+e+"<\/script>"},Q8=function(e){e.write(_B("")),e.close();var t=e.parentWindow.Object;return e=null,t},$g=function(){try{kh=new ActiveXObject("htmlfile")}catch{}var e,t;$g=typeof document<"u"?document.domain&&kh?Q8(kh):((t=yB("iframe")).style.display="none",_te.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(_B("document.F=Object")),e.close(),e.F):Q8(kh);for(var n=A0.length;n--;)delete $g.prototype[A0[n]];return $g()};Ap[OB]=!0;var O0,Zf,_0,Mu=Object.create||function(e,t){var n;return e!==null?(sb.prototype=ju(e),n=new sb,sb.prototype=null,n[OB]=e):n=$g(),t===void 0?n:Ote(n,t)},kte=A0.concat("length","prototype"),kB={f:Object.getOwnPropertyNames||function(e){return AB(e,kte)}},Tte=Ie.Array,Fte=Math.max,TB=kB.f,FB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bte=function(e){try{return TB(e)}catch{return function(n,r,o){for(var i=p1(n),a=z4(r,i),u=z4(o===void 0?i:o,i),s=Tte(Fte(u-a,0)),l=0;a<u;a++,l++)M4(s,l,n[a]);return s.length=l,s}(FB)}},BB={f:function(e){return FB&&mu(e)=="Window"?Bte(e):TB(jo(e))}},lb={f:Object.getOwnPropertySymbols},Pte=It([].slice),Il=function(e,t,n,r){r&&r.enumerable?e[t]=n:ho(e,t,n)},D5={f:dr},Ite=Zu.f,Nt=function(e){var t=br.Symbol||(br.Symbol={});qe(t,e)||Ite(t,e,{value:D5.f(e)})},Nte=$5?{}.toString:function(){return"[object "+h1(this)+"]"},Rte=Zu.f,eA=dr("toStringTag"),k0=function(e,t,n,r){if(e){var o=n?e:e.prototype;qe(o,eA)||Rte(o,eA,{configurable:!0,value:t}),r&&!$5&&ho(o,"toString",Nte)}},tA=Ie.WeakMap,Lte=mn(tA)&&/native code/.test(EB(tA)),V4=Ie.TypeError,jte=Ie.WeakMap;if(Lte||na.state){var Va=na.state||(na.state=new jte),Mte=It(Va.get),nA=It(Va.has),zte=It(Va.set);O0=function(e,t){if(nA(Va,e))throw new V4("Object already initialized");return t.facade=e,zte(Va,e,t),t},Zf=function(e){return Mte(Va,e)||{}},_0=function(e){return nA(Va,e)}}else{var Es=g1("state");Ap[Es]=!0,O0=function(e,t){if(qe(e,Es))throw new V4("Object already initialized");return t.facade=e,ho(e,Es,t),t},Zf=function(e){return qe(e,Es)?e[Es]:{}},_0=function(e){return qe(e,Es)}}var rc={set:O0,get:Zf,has:_0,enforce:function(e){return _0(e)?Zf(e):O0(e,{})},getterFor:function(e){return function(t){var n;if(!Er(t)||(n=Zf(t)).type!==e)throw V4("Incompatible receiver, "+e+" required");return n}}},rA=It([].push),_i=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=Cp(s),v=gB(g),h=wB(l,c),y=p1(v),b=0,m=f||CB,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:rA($,d)}else switch(e){case 4:return!1;case 7:rA($,d)}return i?-1:r||o?o:$}},v1={forEach:_i(0),map:_i(1),filter:_i(2),some:_i(3),every:_i(4),find:_i(5),findIndex:_i(6),filterReject:_i(7)}.forEach,Mn=g1("hidden"),oA=dr("toPrimitive"),Vte=rc.set,iA=rc.getterFor("Symbol"),qr=Object.prototype,Hi=Ie.Symbol,Ki=Hi&&Hi.prototype,aA=Ie.TypeError,cb=Ie.QObject,ef=Dp("JSON","stringify"),PB=b5.f,Ui=Zu.f,IB=BB.f,Hte=v5.f,NB=It([].push),ai=Ju("symbols"),Op=Ju("op-symbols"),fb=Ju("string-to-symbol-registry"),db=Ju("symbol-to-string-registry"),Ute=Ju("wks"),pb=!cb||!cb.prototype||!cb.prototype.findChild,H4=Hn&&sr(function(){return Mu(Ui({},"a",{get:function(){return Ui(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=PB(qr,t);r&&delete qr[t],Ui(e,t,n),r&&e!==qr&&Ui(qr,t,r)}:Ui,hb=function(e,t){var n=ai[e]=Mu(Ki);return Vte(n,{type:"Symbol",tag:e,description:t}),Hn||(n.description=t),n},T0=function(e,t,n){e===qr&&T0(Op,t,n),ju(e);var r=nc(t);return ju(n),qe(ai,r)?(n.enumerable?(qe(e,Mn)&&e[Mn][r]&&(e[Mn][r]=!1),n=Mu(n,{enumerable:Lu(0,!1)})):(qe(e,Mn)||Ui(e,Mn,Lu(1,{})),e[Mn][r]=!0),H4(e,r,n)):Ui(e,r,n)},uA=function(e,t){ju(e);var n=jo(t),r=S5(n).concat(U4(n));return v1(r,function(o){Hn&&!Wr(RB,n,o)||T0(e,o,n[o])}),e},RB=function(e){var t=nc(e),n=Wr(Hte,this,t);return!(this===qr&&qe(ai,t)&&!qe(Op,t))&&(!(n||!qe(this,t)||!qe(ai,t)||qe(this,Mn)&&this[Mn][t])||n)},sA=function(e,t){var n=jo(e),r=nc(t);if(n!==qr||!qe(ai,r)||qe(Op,r)){var o=PB(n,r);return!o||!qe(ai,r)||qe(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},lA=function(e){var t=IB(jo(e)),n=[];return v1(t,function(r){qe(ai,r)||qe(Ap,r)||NB(n,r)}),n},U4=function(e){var t=e===qr,n=IB(t?Op:jo(e)),r=[];return v1(n,function(o){!qe(ai,o)||t&&!qe(qr,o)||NB(r,ai[o])}),r};if(lo||(Ki=(Hi=function(){if(vB(Ki,this))throw aA("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?x0(arguments[0]):void 0,t=D0(e),n=function(r){this===qr&&Wr(n,Op,r),qe(this,Mn)&&qe(this[Mn],t)&&(this[Mn][t]=!1),H4(this,t,Lu(1,r))};return Hn&&pb&&H4(qr,t,{configurable:!0,set:n}),hb(t,e)}).prototype,Il(Ki,"toString",function(){return iA(this).tag}),Il(Hi,"withoutSetter",function(e){return hb(D0(e),e)}),v5.f=RB,Zu.f=T0,b5.f=sA,kB.f=BB.f=lA,lb.f=U4,D5.f=function(e){return hb(dr(e),e)},Hn&&Ui(Ki,"description",{configurable:!0,get:function(){return iA(this).description}})),zi({global:!0,wrap:!0,forced:!lo,sham:!lo},{Symbol:Hi}),v1(S5(Ute),function(e){Nt(e)}),zi({target:"Symbol",stat:!0,forced:!lo},{for:function(e){var t=x0(e);if(qe(fb,t))return fb[t];var n=Hi(t);return fb[t]=n,db[n]=t,n},keyFor:function(e){if(!al(e))throw aA(e+" is not a symbol");if(qe(db,e))return db[e]},useSetter:function(){pb=!0},useSimple:function(){pb=!1}}),zi({target:"Object",stat:!0,forced:!lo,sham:!Hn},{create:function(e,t){return t===void 0?Mu(e):uA(Mu(e),t)},defineProperty:T0,defineProperties:uA,getOwnPropertyDescriptor:sA}),zi({target:"Object",stat:!0,forced:!lo},{getOwnPropertyNames:lA,getOwnPropertySymbols:U4}),zi({target:"Object",stat:!0,forced:sr(function(){lb.f(1)})},{getOwnPropertySymbols:function(e){return lb.f(Cp(e))}}),ef){var Wte=!lo||sr(function(){var e=Hi();return ef([e])!="[null]"||ef({a:e})!="{}"||ef(Object(e))!="{}"});zi({target:"JSON",stat:!0,forced:Wte},{stringify:function(e,t,n){var r=Pte(arguments),o=t;if((Er(t)||e!==void 0)&&!al(e))return C0(t)||(t=function(i,a){if(mn(o)&&(a=Wr(o,this,i,a)),!al(a))return a}),r[1]=t,pB(ef,null,r)}})}if(!Ki[oA]){var qte=Ki.valueOf;Il(Ki,oA,function(e){return Wr(qte,this)})}k0(Hi,"Symbol"),Ap[Mn]=!0,Nt("asyncIterator"),Nt("hasInstance"),Nt("isConcatSpreadable"),Nt("iterator"),Nt("match"),Nt("matchAll"),Nt("replace"),Nt("search"),Nt("species"),Nt("split"),Nt("toPrimitive"),Nt("toStringTag"),Nt("unscopables"),k0(Ie.JSON,"JSON",!0);var Yi,cA,fA,Gte=br.Symbol,bu={},LB=Function.prototype,Kte=Hn&&Object.getOwnPropertyDescriptor,gb=qe(LB,"name"),Yte={EXISTS:gb,PROPER:gb&&function(){}.name==="something",CONFIGURABLE:gb&&(!Hn||Hn&&Kte(LB,"name").configurable)},Xte=!sr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dA=g1("IE_PROTO"),W4=Ie.Object,Jte=W4.prototype,q4=Xte?W4.getPrototypeOf:function(e){var t=Cp(e);if(qe(t,dA))return t[dA];var n=t.constructor;return mn(n)&&t instanceof n?n.prototype:t instanceof W4?Jte:null},G4=dr("iterator"),jB=!1;[].keys&&("next"in(fA=[].keys())?(cA=q4(q4(fA)))!==Object.prototype&&(Yi=cA):jB=!0);var Zte=Yi==null||sr(function(){var e={};return Yi[G4].call(e)!==e});Yi=Zte?{}:Mu(Yi),mn(Yi[G4])||Il(Yi,G4,function(){return this});var MB={IteratorPrototype:Yi,BUGGY_SAFARI_ITERATORS:jB},Qte=MB.IteratorPrototype,ene=function(){return this};Ie.String,Ie.TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=It(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}}();var tne=Yte.PROPER,Th=MB.BUGGY_SAFARI_ITERATORS,vb=dr("iterator"),nne=function(){return this},zB=function(e,t,n,r,o,i,a){(function(y,b,m,$){var E=b+" Iterator";y.prototype=Mu(Qte,{next:Lu(+!$,m)}),k0(y,E,!1,!0),bu[E]=ene})(n,t,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!Th&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,g=p[vb]||p["@@iterator"]||o&&p[o],v=!Th&&g||c(o),h=t=="Array"&&p.entries||g;if(h&&(u=q4(h.call(new e)))!==Object.prototype&&u.next&&(k0(u,f,!0,!0),bu[f]=nne),tne&&o=="values"&&g&&g.name!=="values"&&(d=!0,v=function(){return Wr(g,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Th||d||!(l in p))&&Il(p,l,s[l]);else zi({target:t,proto:!0,forced:Th||d},s);return a&&p[vb]!==v&&Il(p,vb,v,{name:o}),bu[t]=v,s},rne=rc.set,one=rc.getterFor("Array Iterator");zB(Array,"Array",function(e,t){rne(this,{type:"Array Iterator",target:jo(e),index:0,kind:t})},function(){var e=one(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),bu.Arguments=bu.Array;var pA=dr("toStringTag");for(var mb 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 hA=Ie[mb],yb=hA&&hA.prototype;yb&&h1(yb)!==pA&&ho(yb,pA,mb),bu[mb]=bu.Array}var ine=Gte;Nt("asyncDispose"),Nt("dispose"),Nt("matcher"),Nt("metadata"),Nt("observable"),Nt("patternMatch"),Nt("replaceAll");var Fh=ine,ane=It("".charAt),gA=It("".charCodeAt),une=It("".slice),vA=function(e){return function(t,n){var r,o,i=x0(m5(t)),a=w5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=gA(i,a))<55296||r>56319||a+1===u||(o=gA(i,a+1))<56320||o>57343?e?ane(i,a):r:e?une(i,a,a+2):o-56320+(r-55296<<10)+65536}},sne={codeAt:vA(!1),charAt:vA(!0)}.charAt,lne=rc.set,cne=rc.getterFor("String Iterator");zB(String,"String",function(e){lne(this,{type:"String Iterator",string:x0(e),index:0})},function(){var e,t=cne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=sne(n,r),t.index+=e.length,{value:e,done:!1})});var fne=D5.f("iterator"),dne=i1(function(e){function t(n){return typeof Fh=="function"&&typeof fne=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof Fh=="function"&&r.constructor===Fh&&r!==Fh.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),pne=AX(dne),hne=s1.EXISTS,gne=Zl.f,VB=Function.prototype,vne=ye(VB.toString),HB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mne=ye(HB.exec);Xr&&!hne&&gne(VB,"name",{configurable:!0,get:function(){try{return mne(HB,vne(this))[1]}catch{return""}}});var yne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("fontFamily.title"),n.iconSvg=RZ,n.mark="fontFamily",n.selectPanelWidth=150,n}return mt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:Z("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(pne(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(dB),bne={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Ru(i,{fontSize:r}),o&&Ru(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((f5(t)||tc(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),ec(n)):t},preParseHtml:[Cee],parseStyleHtml:function(e,t,n){var r=O(e);if(!oe.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Fo(r,"font-size");u&&a.includes(u)&&(o.fontSize=u);var s=n.getMenuConfig("fontFamily").fontFamilyList,l=s===void 0?[]:s,c=Fo(r,"font-family");return c&&l.includes(c)&&(o.fontFamily=c),o},menus:[{key:"fontSize",factory:function(){return new Aee},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new yne},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},wne={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=O(e),n=Fo(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]}},UB=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Ge(D.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Ge(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ge(D.nodes(t,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e}(),$ne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("indent.decrease"),n.iconSvg=LZ,n}return mt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return se.isElement(o)}})},t}(UB),Ene=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("indent.increase"),n.iconSvg=jZ,n}return mt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return se.isElement(o)},mode:"highest"})},t}(UB),Sne={renderStyle:function(e,t){if(!se.isElement(e))return t;var n=e.indent,r=t;return n&&Ru(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!se.isElement(e))return t;var n=e.indent;if(!n)return t;var r=O(t);return r.css("text-indent",n),ec(r)},preParseHtml:[wne],parseStyleHtml:function(e,t,n){var r=O(e);if(!se.isElement(t))return t;var o=t,i=Fo(r,"text-indent");return i&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Ene}},{key:"delIndent",factory:function(){return new $ne}}]},m1=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ge(D.nodes(t,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(D.isVoid(t,n)&&D.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),Dne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("justify.left"),n.iconSvg=MZ,n}return mt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return se.isElement(o)&&!n.isInline(o)}})},t}(m1),Cne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("justify.right"),n.iconSvg=zZ,n}return mt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return se.isElement(o)&&!n.isInline(o)}})},t}(m1),xne=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("justify.center"),n.iconSvg=VZ,n}return mt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return se.isElement(o)&&!n.isInline(o)}})},t}(m1),Ane=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Z("justify.justify"),n.iconSvg=HZ,n}return mt(t,e),t.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return se.isElement(o)&&!n.isInline(o)}})},t}(m1),One={renderStyle:function(e,t){if(!se.isElement(e))return t;var n=e.textAlign,r=t;return n&&Ru(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!se.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=O(t);return r.css("text-align",n),ec(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!se.isElement(t))return t;var o=t,i=Fo(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Dne}},{key:"justifyRight",factory:function(){return new Cne}},{key:"justifyCenter",factory:function(){return new xne}},{key:"justifyJustify",factory:function(){return new Ane}}]},_ne=function(){function e(){this.title=Z("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(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:Z("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=Ge(D.nodes(t,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":se.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){N.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),kne={renderStyle:function(e,t){if(!se.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Ru(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!se.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=O(t);return r.css("line-height",n),ec(r)},parseStyleHtml:function(e,t,n){var r=O(e);if(!se.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Fo(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new _ne},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Tne=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),Fne=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),Bne={menus:[{key:"redo",factory:function(){return new Tne}},{key:"undo",factory:function(){return new Fne}}]},Pne={type:"divider",renderElem:function(e,t,n){var r=A.isNodeSelected(n,e);return xl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:r?"true":""},style:{},on:{mousedown:function(o){return o.preventDefault()}}},[xl("hr")])}},Ine={type:"divider",elemToHtml:function(e,t){return"<hr/>"}},Nne={selector:"hr",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}},Rne=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){N.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Lne={renderElems:[Pne],elemsToHtml:[Ine],parseElemsHtml:[Nne],menus:[{key:"divider",factory:function(){return new Rne}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=Ge(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},jne=c1.map;rn({target:"Array",proto:!0,forced:!a5("map")},{map:function(e){return jne(this,e,arguments.length>1?arguments[1]:void 0)}});var Mne=ye([].join),zne=a1!=Object,Vne=qF("join",",");rn({target:"Array",proto:!0,forced:zne||!Vne},{join:function(e){return Mne(Jl(this),e===void 0?",":e)}});var Hne=function(){function e(){this.title=Z("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(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return r==null||A.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=A.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=X.string(n);N.removeNodes(t,{mode:"highest"});var o=r.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=D.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=WF(a),s=u.next();!s.done;s=u.next()){var l=Ge(s.value,1)[0];l&&i.push(X.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};N.insertNodes(t,c,{mode:"highest"})},e}(),Une={key:"codeBlock",factory:function(){return new Hne}};rn({target:"String",proto:!0,forced:If("anchor")},{anchor:function(e){return Pf(this,"a","name",e)}}),l5("match",function(e,t,n){return[function(r){var o=Ir(this),i=r==null?void 0:u1(r,e);return i?Pt(i,r,o):new RegExp(r)[e](Et(o))},function(r){var o=ur(this),i=Et(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Rd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Rd(o,i))!==null;){var f=Et(s[0]);l[c]=f,f===""&&(o.lastIndex=c5(i,wp(o.lastIndex),u)),c++}return c===0?null:l}]});var Wne={type:"pre",renderElem:function(e,t,n){return Ce("pre",null,t)}},qne={type:"code",renderElem:function(e,t,n){return Ce("code",null,t)}},Gne={selector:"pre",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return A.getNodeType(o)==="code"})}}},Kne={menus:[Une],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=X.string(l),p=f.anchor.offset,g=d.slice(0,p).split(`
- `),v=g.length;return v===0?"":g[v-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
- `+s)}}o.insertText(`
- `)}else t()},o.normalizeNode=function(i){var a=Ge(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");D.insertText(o,a)}else r(i)},o},renderElems:[Wne,qne],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=O(e);if(tc(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:O(e)[0].textContent||""}]}}},Gne]},Yne=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Xne={menus:[{key:"fullScreen",factory:function(){return new Yne}}]},Jne=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!L.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(D.start(t,o))}},e}(),Zne=[eQ,FQ,bne,Sne,One,kne,uee,Lne,See,WQ,Kne,$ee,AQ,SZ,fee,Bne,Xne,{menus:[{key:"enter",factory:function(){return new Jne}}]}];Un("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Un("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var mA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function WB(e){var t={exports:{}};return e(t,t.exports),t.exports}var ki,Eg,Bh=function(e){return e&&e.Math==Math&&e},ze=Bh(typeof globalThis=="object"&&globalThis)||Bh(typeof window=="object"&&window)||Bh(typeof self=="object"&&self)||Bh(typeof mA=="object"&&mA)||function(){return this}()||Function("return this")(),yn=function(e){try{return!!e()}catch{return!0}},ya=!yn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),tf=Function.prototype.call,Pn=tf.bind?tf.bind(tf):function(){return tf.apply(tf,arguments)},yA={}.propertyIsEnumerable,bA=Object.getOwnPropertyDescriptor,Qne={f:bA&&!yA.call({1:2},1)?function(e){var t=bA(this,e);return!!t&&t.enumerable}:yA},C5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qB=Function.prototype,K4=qB.bind,Y4=qB.call,ere=K4&&K4.bind(Y4),Xe=K4?function(e){return e&&ere(Y4,e)}:function(e){return e&&function(){return Y4.apply(e,arguments)}},tre=Xe({}.toString),nre=Xe("".slice),wu=function(e){return nre(tre(e),8,-1)},bb=ze.Object,rre=Xe("".split),GB=yn(function(){return!bb("z").propertyIsEnumerable(0)})?function(e){return wu(e)=="String"?rre(e,""):bb(e)}:bb,ore=ze.TypeError,_p=function(e){if(e==null)throw ore("Can't call method on "+e);return e},y1=function(e){return GB(_p(e))},bn=function(e){return typeof e=="function"},Hr=function(e){return typeof e=="object"?e!==null:bn(e)},ire=function(e){return bn(e)?e:void 0},kp=function(e,t){return arguments.length<2?ire(ze[e]):ze[e]&&ze[e][t]},are=Xe({}.isPrototypeOf),wb=kp("navigator","userAgent")||"",wA=ze.process,$A=ze.Deno,EA=wA&&wA.versions||$A&&$A.version,SA=EA&&EA.v8;SA&&(Eg=(ki=SA.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!Eg&&wb&&(!(ki=wb.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=wb.match(/Chrome\/(\d+)/))&&(Eg=+ki[1]);var F0=Eg,X4=!!Object.getOwnPropertySymbols&&!yn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&F0&&F0<41}),x5=X4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ure=ze.Object,J4=x5?function(e){return typeof e=="symbol"}:function(e){var t=kp("Symbol");return bn(t)&&are(t.prototype,ure(e))},sre=ze.String,lre=ze.TypeError,KB=function(e){if(bn(e))return e;throw lre(function(t){try{return sre(t)}catch{return"Object"}}(e)+" is not a function")},YB=function(e,t){var n=e[t];return n==null?void 0:KB(n)},cre=ze.TypeError,fre=Object.defineProperty,A5=function(e,t){try{fre(ze,e,{value:t,configurable:!0,writable:!0})}catch{ze[e]=t}return t},ra=ze["__core-js_shared__"]||A5("__core-js_shared__",{}),O5=WB(function(e){(e.exports=function(t,n){return ra[t]||(ra[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dre=ze.Object,b1=function(e){return dre(_p(e))},pre=Xe({}.hasOwnProperty),kr=Object.hasOwn||function(e,t){return pre(b1(e),t)},hre=0,gre=Math.random(),vre=Xe(1 .toString),XB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vre(++hre+gre,36)},nf=O5("wks"),$u=ze.Symbol,DA=$u&&$u.for,mre=x5?$u:$u&&$u.withoutSetter||XB,Mo=function(e){if(!kr(nf,e)||!X4&&typeof nf[e]!="string"){var t="Symbol."+e;X4&&kr($u,e)?nf[e]=$u[e]:nf[e]=x5&&DA?DA(t):mre(t)}return nf[e]},yre=ze.TypeError,bre=Mo("toPrimitive"),wre=function(e,t){if(!Hr(e)||J4(e))return e;var n,r=YB(e,bre);if(r){if(t===void 0&&(t="default"),n=Pn(r,e,t),!Hr(n)||J4(n))return n;throw yre("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&bn(a=o.toString)&&!Hr(u=Pn(a,o))||bn(a=o.valueOf)&&!Hr(u=Pn(a,o))||i!=="string"&&bn(a=o.toString)&&!Hr(u=Pn(a,o)))return u;throw cre("Can't convert object to primitive value")}(e,t)},_5=function(e){var t=wre(e,"string");return J4(t)?t:t+""},Z4=ze.document,$re=Hr(Z4)&&Hr(Z4.createElement),JB=function(e){return $re?Z4.createElement(e):{}},ZB=!ya&&!yn(function(){return Object.defineProperty(JB("div"),"a",{get:function(){return 7}}).a!=7}),CA=Object.getOwnPropertyDescriptor,QB={f:ya?CA:function(e,t){if(e=y1(e),t=_5(t),ZB)try{return CA(e,t)}catch{}if(kr(e,t))return C5(!Pn(Qne.f,e,t),e[t])}},Ere=ze.String,Sre=ze.TypeError,ba=function(e){if(Hr(e))return e;throw Sre(Ere(e)+" is not an object")},Dre=ze.TypeError,xA=Object.defineProperty,Tp={f:ya?xA:function(e,t,n){if(ba(e),t=_5(t),ba(n),ZB)try{return xA(e,t,n)}catch{}if("get"in n||"set"in n)throw Dre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ld=ya?function(e,t,n){return Tp.f(e,t,C5(1,n))}:function(e,t,n){return e[t]=n,e},Cre=Xe(Function.toString);bn(ra.inspectSource)||(ra.inspectSource=function(e){return Cre(e)});var B0,Qf,P0,k5=ra.inspectSource,AA=ze.WeakMap,xre=bn(AA)&&/native code/.test(k5(AA)),OA=O5("keys"),eP=function(e){return OA[e]||(OA[e]=XB(e))},T5={},Q4=ze.TypeError,Are=ze.WeakMap;if(xre||ra.state){var Ha=ra.state||(ra.state=new Are),Ore=Xe(Ha.get),_A=Xe(Ha.has),_re=Xe(Ha.set);B0=function(e,t){if(_A(Ha,e))throw new Q4("Object already initialized");return t.facade=e,_re(Ha,e,t),t},Qf=function(e){return Ore(Ha,e)||{}},P0=function(e){return _A(Ha,e)}}else{var Ss=eP("state");T5[Ss]=!0,B0=function(e,t){if(kr(e,Ss))throw new Q4("Object already initialized");return t.facade=e,Ld(e,Ss,t),t},Qf=function(e){return kr(e,Ss)?e[Ss]:{}},P0=function(e){return kr(e,Ss)}}var Ph,e$={set:B0,get:Qf,has:P0,enforce:function(e){return P0(e)?Qf(e):B0(e,{})},getterFor:function(e){return function(t){var n;if(!Hr(t)||(n=Qf(t)).type!==e)throw Q4("Incompatible receiver, "+e+" required");return n}}},tP=Function.prototype,kre=ya&&Object.getOwnPropertyDescriptor,$b=kr(tP,"name"),Tre={EXISTS:$b,PROPER:$b&&function(){}.name==="something",CONFIGURABLE:$b&&(!ya||ya&&kre(tP,"name").configurable)},I0=WB(function(e){var t=Tre.CONFIGURABLE,n=e$.get,r=e$.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;bn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kr(u,"name")||t&&u.name!==p)&&Ld(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ze?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ld(i,a,u)):f?i[a]=u:A5(a,u)})(Function.prototype,"toString",function(){return bn(this)&&n(this).source||k5(this)})}),Fre=Math.ceil,Bre=Math.floor,w1=function(e){var t=+e;return t!=t||t===0?0:(t>0?Bre:Fre)(t)},Pre=Math.max,Ire=Math.min,Nre=Math.min,nP=function(e){return e>0?Nre(w1(e),9007199254740991):0},F5=function(e){return nP(e.length)},kA=function(e){return function(t,n,r){var o,i=y1(t),a=F5(i),u=function(s,l){var c=w1(s);return c<0?Pre(c+l,0):Ire(c,l)}(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}},rP={includes:kA(!0),indexOf:kA(!1)},Rre=rP.indexOf,TA=Xe([].push),oP=function(e,t){var n,r=y1(e),o=0,i=[];for(n in r)!kr(T5,n)&&kr(r,n)&&TA(i,n);for(;t.length>o;)kr(r,n=t[o++])&&(~Rre(i,n)||TA(i,n));return i},N0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lre=N0.concat("length","prototype"),jre={f:Object.getOwnPropertyNames||function(e){return oP(e,Lre)}},Mre={f:Object.getOwnPropertySymbols},zre=Xe([].concat),Vre=kp("Reflect","ownKeys")||function(e){var t=jre.f(ba(e)),n=Mre.f;return n?zre(t,n(e)):t},Hre=function(e,t){for(var n=Vre(t),r=Tp.f,o=QB.f,i=0;i<n.length;i++){var a=n[i];kr(e,a)||r(e,a,o(t,a))}},Ure=/#|\.prototype\./,Fp=function(e,t){var n=qre[Wre(e)];return n==Kre||n!=Gre&&(bn(t)?yn(t):!!t)},Wre=Fp.normalize=function(e){return String(e).replace(Ure,".").toLowerCase()},qre=Fp.data={},Gre=Fp.NATIVE="N",Kre=Fp.POLYFILL="P",Yre=Fp,Xre=QB.f,oc=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ze:l?ze[u]||A5(u,{}):(ze[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xre(n,r))&&a.value:n[r],!Yre(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Hre(i,o)}(e.sham||o&&o.sham)&&Ld(i,"sham",!0),I0(n,r,i,e)}},Jre=Object.keys||function(e){return oP(e,N0)},Zre=ya?Object.defineProperties:function(e,t){ba(e);for(var n,r=y1(t),o=Jre(t),i=o.length,a=0;i>a;)Tp.f(e,n=o[a++],r[n]);return e},Qre=kp("document","documentElement"),iP=eP("IE_PROTO"),Eb=function(){},aP=function(e){return"<script>"+e+"<\/script>"},FA=function(e){e.write(aP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Sg=function(){try{Ph=new ActiveXObject("htmlfile")}catch{}var e,t;Sg=typeof document<"u"?document.domain&&Ph?FA(Ph):((t=JB("iframe")).style.display="none",Qre.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(aP("document.F=Object")),e.close(),e.F):FA(Ph);for(var n=N0.length;n--;)delete Sg.prototype[N0[n]];return Sg()};T5[iP]=!0;var uP=Object.create||function(e,t){var n;return e!==null?(Eb.prototype=ba(e),n=new Eb,Eb.prototype=null,n[iP]=e):n=Sg(),t===void 0?n:Zre(n,t)},t$=Mo("unscopables"),n$=Array.prototype;n$[t$]==null&&Tp.f(n$,t$,{configurable:!0,value:uP(null)});var BA,eoe=rP.includes;function sP(e){if(e==="bulleted-list")return"ul";if(e==="numbered-list")return"ol";if(e==="list-item")return"li";throw new Error("list type '"+e+"' is invalid")}function R0(e){var t=A.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function B5(e){return function(t,n,r){var o=sP(e);return Ce(o,null,n)}}oc({target:"Array",proto:!0},{includes:function(e){return eoe(this,e,arguments.length>1?arguments[1]:void 0)}}),BA="includes",n$[t$][BA]=!0;var toe={type:"bulleted-list",renderElem:B5("bulleted-list")},noe={type:"numbered-list",renderElem:B5("numbered-list")},roe={type:"list-item",renderElem:B5("list-item")};function P5(e){var t=sP(e);return function(n,r){return"<"+t+">"+r+"</"+t+">"}}var ooe={type:"bulleted-list",elemToHtml:P5("bulleted-list")},ioe={type:"numbered-list",elemToHtml:P5("numbered-list")},aoe={type:"list-item",elemToHtml:P5("list-item")},PA=Xe(Xe.bind),r$=Array.isArray||function(e){return wu(e)=="Array"},lP={};lP[Mo("toStringTag")]="z";var I5=String(lP)==="[object z]",uoe=Mo("toStringTag"),soe=ze.Object,loe=wu(function(){return arguments}())=="Arguments",N5=I5?wu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=soe(e),uoe))=="string"?n:loe?wu(t):(r=wu(t))=="Object"&&bn(t.callee)?"Arguments":r},cP=function(){},coe=[],fP=kp("Reflect","construct"),R5=/^\s*(?:class|function)\b/,foe=Xe(R5.exec),doe=!R5.exec(cP),rf=function(e){if(!bn(e))return!1;try{return fP(cP,coe,e),!0}catch{return!1}},poe=!fP||yn(function(){var e;return rf(rf.call)||!rf(Object)||!rf(function(){e=!0})||e})?function(e){if(!bn(e))return!1;switch(N5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return doe||!!foe(R5,k5(e))}:rf,hoe=Mo("species"),IA=ze.Array,dP=function(e,t){return new(function(n){var r;return r$(n)&&(r=n.constructor,(poe(r)&&(r===IA||r$(r.prototype))||Hr(r)&&(r=r[hoe])===null)&&(r=void 0)),r===void 0?IA:r}(e))(t===0?0:t)},NA=Xe([].push),Ti=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=b1(s),v=GB(g),h=function(E,S){return KB(E),S===void 0?E:PA?PA(E,S):function(){return E.apply(S,arguments)}}(l,c),y=F5(v),b=0,m=f||dP,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:NA($,d)}else switch(e){case 4:return!1;case 7:NA($,d)}return i?-1:r||o?o:$}},goe={forEach:Ti(0),map:Ti(1),filter:Ti(2),some:Ti(3),every:Ti(4),find:Ti(5),findIndex:Ti(6),filterReject:Ti(7)},voe=Mo("species"),pP=function(e){return F0>=51||!yn(function(){var t=[];return(t.constructor={})[voe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},moe=goe.filter;oc({target:"Array",proto:!0,forced:!pP("filter")},{filter:function(e){return moe(this,e,arguments.length>1?arguments[1]:void 0)}});var yoe=I5?{}.toString:function(){return"[object "+N5(this)+"]"};I5||I0(Object.prototype,"toString",yoe,{unsafe:!0});var RA,Sb,boe=ze.String,go=function(e){if(N5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return boe(e)},woe=function(){var e=ba(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},L5=ze.RegExp,o$=yn(function(){var e=L5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),$oe=o$||yn(function(){return!L5("a","y").sticky}),Eoe={BROKEN_CARET:o$||yn(function(){var e=L5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:$oe,UNSUPPORTED_Y:o$},Soe=ze.RegExp,Doe=yn(function(){var e=Soe(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Coe=ze.RegExp,xoe=yn(function(){var e=Coe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Aoe=e$.get,Ooe=O5("native-string-replace",String.prototype.replace),L0=RegExp.prototype.exec,i$=L0,_oe=Xe("".charAt),koe=Xe("".indexOf),Toe=Xe("".replace),Db=Xe("".slice),Cb=(Sb=/b*/g,Pn(L0,RA=/a/,"a"),Pn(L0,Sb,"a"),RA.lastIndex!==0||Sb.lastIndex!==0),LA=Eoe.BROKEN_CARET,xb=/()??/.exec("")[1]!==void 0;(Cb||xb||LA||Doe||xoe)&&(i$=function(e){var t,n,r,o,i,a,u,s=this,l=Aoe(s),c=go(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Pn(i$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=LA&&s.sticky,g=Pn(woe,s),v=s.source,h=0,y=c;if(p&&(g=Toe(g,"y",""),koe(g,"g")===-1&&(g+="g"),y=Db(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&_oe(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),xb&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Cb&&(r=s.lastIndex),o=Pn(L0,p?n:s,y),p?o?(o.input=Db(o.input,h),o[0]=Db(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Cb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xb&&o&&o.length>1&&Pn(Ooe,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=uP(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var j0=i$;oc({target:"RegExp",proto:!0,forced:/./.exec!==j0},{exec:j0});var j5=Function.prototype,jA=j5.apply,Foe=j5.bind,MA=j5.call,Boe=typeof Reflect=="object"&&Reflect.apply||(Foe?MA.bind(jA):function(){return MA.apply(jA,arguments)}),Poe=Mo("species"),Ab=RegExp.prototype,Ioe=Xe("".charAt),zA=Xe("".charCodeAt),Noe=Xe("".slice),VA=function(e){return function(t,n){var r,o,i=go(_p(t)),a=w1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=zA(i,a))<55296||r>56319||a+1===u||(o=zA(i,a+1))<56320||o>57343?e?Ioe(i,a):r:e?Noe(i,a,a+2):o-56320+(r-55296<<10)+65536}},Roe={codeAt:VA(!1),charAt:VA(!0)}.charAt,Loe=function(e,t,n){return t+(n?Roe(e,t).length:1)},joe=Math.floor,Ob=Xe("".charAt),Moe=Xe("".replace),_b=Xe("".slice),zoe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Voe=/\$([$&'`]|\d{1,2})/g,Hoe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Voe;return o!==void 0&&(o=b1(o),s=zoe),Moe(i,s,function(l,c){var f;switch(Ob(c,0)){case"$":return"$";case"&":return e;case"`":return _b(t,0,n);case"'":return _b(t,a);case"<":f=o[_b(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=joe(d/10);return p===0?l:p<=u?r[p-1]===void 0?Ob(c,1):r[p-1]+Ob(c,1):l}f=r[d-1]}return f===void 0?"":f})},Uoe=ze.TypeError,Woe=function(e,t){var n=e.exec;if(bn(n)){var r=Pn(n,e,t);return r!==null&&ba(r),r}if(wu(e)==="RegExp")return Pn(j0,e,t);throw Uoe("RegExp#exec called on incompatible receiver")},a$=Mo("replace"),qoe=Math.max,Goe=Math.min,Koe=Xe([].concat),kb=Xe([].push),HA=Xe("".indexOf),UA=Xe("".slice),Yoe="a".replace(/./,"$0")==="$0",WA=!!/./[a$]&&/./[a$]("a","$0")==="";(function(e,t,n,r){var o=Mo(e),i=!yn(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!yn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Poe]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Xe(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=Xe(l),v=c.exec;return v===j0||v===Ab.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});I0(String.prototype,e,s[0]),I0(Ab,o,s[1])}r&&Ld(Ab[o],"sham",!0)})("replace",function(e,t,n){var r=WA?"$":"$0";return[function(o,i){var a=_p(this),u=o==null?void 0:YB(o,a$);return u?Pn(u,o,a,i):Pn(t,go(a),o,i)},function(o,i){var a=ba(this),u=go(o);if(typeof i=="string"&&HA(i,r)===-1&&HA(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=bn(i);l||(i=go(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Woe(a,u);if(p===null||(kb(d,p),!c))break;go(p[0])===""&&(a.lastIndex=Loe(u,nP(a.lastIndex),f))}for(var g,v="",h=0,y=0;y<d.length;y++){for(var b=go((p=d[y])[0]),m=qoe(Goe(w1(p.index),u.length),0),$=[],E=1;E<p.length;E++)kb($,(g=p[E])===void 0?g:String(g));var S=p.groups;if(l){var x=Koe([b],$,m,u);S!==void 0&&kb(x,S);var B=go(Boe(i,void 0,x))}else B=Hoe(b,u,m,$,S,i);m>=h&&(v+=UA(u,h,m)+B,h=m+b.length)}return v+UA(u,h)}]},!!yn(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Yoe||WA),oc({global:!0},{globalThis:ze});var Xoe={selector:"li",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",children:t}}},Joe={selector:"ul",parseElemHtml:function(e,t,n){return{type:"bulleted-list",children:t.filter(function(r){return A.getNodeType(r)==="list-item"})}}},Zoe={selector:"ol",parseElemHtml:function(e,t,n){return{type:"numbered-list",children:t.filter(function(r){return A.getNodeType(r)==="list-item"})}}},u$=function(e,t){return u$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},u$(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 hP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u$(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function s$(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||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 qA,gP=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return A.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!this.getListNode(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(D.isVoid(t,n)&&D.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.getMatchListType=function(t){var n=s$(D.nodes(t,{match:function(i){return R0(i)},universal:!0}),1),r=n[0];if(r==null)return"";var o=s$(r,1)[0];return A.getNodeType(o)},e.prototype.exec=function(t,n){var r=this.type,o=this.isActive(t);N.unwrapNodes(t,{match:function(u){return R0(u)},split:!0}),N.setNodes(t,{type:o?"paragraph":"list-item"});var i={type:r,children:[]};o||N.wrapNodes(t,i);var a=this.getMatchListType(t);a!=""&&a!==r&&N.wrapNodes(t,i)},e}(),Qoe='<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>',eie='<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>',tie=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="bulleted-list",n.title=Z("listModule.unOrderedList"),n.iconSvg=Qoe,n}return hP(t,e),t}(gP),nie=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="numbered-list",n.title=Z("listModule.orderedList"),n.iconSvg=eie,n}return hP(t,e),t}(gP),rie={key:"bulletedList",factory:function(){return new tie}},oie={key:"numberedList",factory:function(){return new nie}},iie=/"/g,aie=Xe("".replace);oc({target:"String",proto:!0,forced:(qA="anchor",yn(function(){var e=""[qA]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,o=go(_p(this)),i="<"+t,n!==""&&(i+=" "+n+'="'+aie(go(r),iie,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var GA=function(e,t,n){var r=_5(t);r in e?Tp.f(e,r,C5(0,n)):e[r]=n},vP=Mo("isConcatSpreadable"),KA=ze.TypeError,uie=F0>=51||!yn(function(){var e=[];return e[vP]=!1,e.concat()[0]!==e}),sie=pP("concat"),lie=function(e){if(!Hr(e))return!1;var t=e[vP];return t!==void 0?!!t:r$(e)};oc({target:"Array",proto:!0,forced:!uie||!sie},{concat:function(e){var t,n,r,o,i,a=b1(this),u=dP(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(lie(i=t===-1?a:arguments[t])){if(s+(o=F5(i))>9007199254740991)throw KA("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&GA(u,s,i[n])}else{if(s>=9007199254740991)throw KA("Maximum allowed index exceeded");GA(u,s++,i)}return u.length=s,u}});var cie={renderElems:[toe,noe,roe],elemsToHtml:[ooe,ioe,aoe],parseElemsHtml:[Xoe,Zoe,Joe],menus:[rie,oie],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward;e.insertNode;var r=e;return r.insertBreak=function(){var o=r.selection;if(o!=null){var i=A.getSelectedNodeByType(r,"list-item");if(i!=null){var a=A.getParentNode(r,i),u=(a==null?void 0:a.children)||[];if(i===u[u.length-1]&&X.string(i)===""){N.removeNodes(r,{match:function(l){return A.checkNodeType(l,"list-item")}});var s=[o.anchor.path[0]+1];return N.insertNodes(r,A.genEmptyParagraph(),{at:s}),void r.select({path:s.concat(0),offset:0})}t()}else t()}else t()},r.deleteBackward=function(o){var i=function(a){var u=s$(D.nodes(a,{match:function(c){return a.children[0]===c},mode:"highest"}),1),s=u[0];if(s==null)return!1;var l=s[0];return!(!se.isElement(l)||X.string(l)||!R0(l)||(N.unwrapNodes(a,{match:function(c){return R0(c)},split:!0}),N.setNodes(a,{type:"paragraph"}),0))}(r);i||n(o)},r}},mP=j3(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,u="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",g="[object GeneratorFunction]",v="[object Map]",h="[object Number]",y="[object Null]",b="[object Object]",m="[object Promise]",$="[object Proxy]",E="[object RegExp]",S="[object Set]",x="[object String]",B="[object Symbol]",I="[object Undefined]",H="[object WeakMap]",G="[object ArrayBuffer]",Y="[object DataView]",U="[object Float32Array]",ie="[object Float64Array]",re="[object Int8Array]",ae="[object Int16Array]",me="[object Int32Array]",De="[object Uint8Array]",$e="[object Uint8ClampedArray]",le="[object Uint16Array]",Me="[object Uint32Array]",T=/[\\^$.*+?()[\]{}|]/g,_=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,R={};R[U]=R[ie]=R[re]=R[ae]=R[me]=R[De]=R[$e]=R[le]=R[Me]=!0,R[u]=R[s]=R[G]=R[c]=R[Y]=R[f]=R[d]=R[p]=R[v]=R[h]=R[b]=R[E]=R[S]=R[x]=R[H]=!1;var q=typeof St=="object"&&St&&St.Object===Object&&St,j=typeof self=="object"&&self&&self.Object===Object&&self,ue=q||j||Function("return this")(),be=t&&!t.nodeType&&t,Pe=be&&!0&&e&&!e.nodeType&&e,Je=Pe&&Pe.exports===be,V=Je&&q.process,rt=function(){try{return V&&V.binding&&V.binding("util")}catch{}}(),ke=rt&&rt.isTypedArray;function ve(w,C){for(var k=-1,M=w==null?0:w.length,_e=0,he=[];++k<M;){var He=w[k];C(He,k,w)&&(he[_e++]=He)}return he}function Te(w,C){for(var k=-1,M=C.length,_e=w.length;++k<M;)w[_e+k]=C[k];return w}function qn(w,C){for(var k=-1,M=w==null?0:w.length;++k<M;)if(C(w[k],k,w))return!0;return!1}function st(w,C){for(var k=-1,M=Array(w);++k<w;)M[k]=C(k);return M}function At(w){return function(C){return w(C)}}function Tt(w,C){return w.has(C)}function In(w,C){return w==null?void 0:w[C]}function Ft(w){var C=-1,k=Array(w.size);return w.forEach(function(M,_e){k[++C]=[_e,M]}),k}function pr(w,C){return function(k){return w(C(k))}}function Gn(w){var C=-1,k=Array(w.size);return w.forEach(function(M){k[++C]=M}),k}var Nn=Array.prototype,eo=Function.prototype,to=Object.prototype,Kn=ue["__core-js_shared__"],no=eo.toString,kn=to.hasOwnProperty,hr=function(){var w=/[^.]+$/.exec(Kn&&Kn.keys&&Kn.keys.IE_PROTO||"");return w?"Symbol(src)_1."+w:""}(),es=to.toString,ac=RegExp("^"+no.call(kn).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zo=Je?ue.Buffer:void 0,pi=ue.Symbol,ts=ue.Uint8Array,hi=to.propertyIsEnumerable,Vo=Nn.splice,Yn=pi?pi.toStringTag:void 0,gi=Object.getOwnPropertySymbols,uc=zo?zo.isBuffer:void 0,Fa=pr(Object.keys,Object),sc=Uo(ue,"DataView"),Ba=Uo(ue,"Map"),lc=Uo(ue,"Promise"),cc=Uo(ue,"Set"),fc=Uo(ue,"WeakMap"),vi=Uo(Object,"create"),Gp=Tn(sc),Ho=Tn(Ba),z1=Tn(lc),V1=Tn(cc),H1=Tn(fc),Kp=pi?pi.prototype:void 0,dc=Kp?Kp.valueOf:void 0;function cn(w){var C=-1,k=w==null?0:w.length;for(this.clear();++C<k;){var M=w[C];this.set(M[0],M[1])}}function U1(){this.__data__=vi?vi(null):{},this.size=0}function W1(w){var C=this.has(w)&&delete this.__data__[w];return this.size-=C?1:0,C}function q1(w){var C=this.__data__;if(vi){var k=C[w];return k===r?void 0:k}return kn.call(C,w)?C[w]:void 0}function G1(w){var C=this.__data__;return vi?C[w]!==void 0:kn.call(C,w)}function K1(w,C){var k=this.__data__;return this.size+=this.has(w)?0:1,k[w]=vi&&C===void 0?r:C,this}cn.prototype.clear=U1,cn.prototype.delete=W1,cn.prototype.get=q1,cn.prototype.has=G1,cn.prototype.set=K1;function $n(w){var C=-1,k=w==null?0:w.length;for(this.clear();++C<k;){var M=w[C];this.set(M[0],M[1])}}function Y1(){this.__data__=[],this.size=0}function X1(w){var C=this.__data__,k=os(C,w);if(k<0)return!1;var M=C.length-1;return k==M?C.pop():Vo.call(C,k,1),--this.size,!0}function J1(w){var C=this.__data__,k=os(C,w);return k<0?void 0:C[k][1]}function Z1(w){return os(this.__data__,w)>-1}function Q1(w,C){var k=this.__data__,M=os(k,w);return M<0?(++this.size,k.push([w,C])):k[M][1]=C,this}$n.prototype.clear=Y1,$n.prototype.delete=X1,$n.prototype.get=J1,$n.prototype.has=Z1,$n.prototype.set=Q1;function Rn(w){var C=-1,k=w==null?0:w.length;for(this.clear();++C<k;){var M=w[C];this.set(M[0],M[1])}}function em(){this.size=0,this.__data__={hash:new cn,map:new(Ba||$n),string:new cn}}function tm(w){var C=Lr(this,w).delete(w);return this.size-=C?1:0,C}function nm(w){return Lr(this,w).get(w)}function rm(w){return Lr(this,w).has(w)}function om(w,C){var k=Lr(this,w),M=k.size;return k.set(w,C),this.size+=k.size==M?0:1,this}Rn.prototype.clear=em,Rn.prototype.delete=tm,Rn.prototype.get=nm,Rn.prototype.has=rm,Rn.prototype.set=om;function ns(w){var C=-1,k=w==null?0:w.length;for(this.__data__=new Rn;++C<k;)this.add(w[C])}function Yp(w){return this.__data__.set(w,r),this}function rs(w){return this.__data__.has(w)}ns.prototype.add=ns.prototype.push=Yp,ns.prototype.has=rs;function ro(w){var C=this.__data__=new $n(w);this.size=C.size}function pc(){this.__data__=new $n,this.size=0}function im(w){var C=this.__data__,k=C.delete(w);return this.size=C.size,k}function am(w){return this.__data__.get(w)}function um(w){return this.__data__.has(w)}function sm(w,C){var k=this.__data__;if(k instanceof $n){var M=k.__data__;if(!Ba||M.length<n-1)return M.push([w,C]),this.size=++k.size,this;k=this.__data__=new Rn(M)}return k.set(w,C),this.size=k.size,this}ro.prototype.clear=pc,ro.prototype.delete=im,ro.prototype.get=am,ro.prototype.has=um,ro.prototype.set=sm;function lm(w,C){var k=is(w),M=!k&&eh(w),_e=!k&&!M&&as(w),he=!k&&!M&&!_e&&rh(w),He=k||M||_e||he,Ke=He?st(w.length,String):[],zt=Ke.length;for(var ot in w)(C||kn.call(w,ot))&&!(He&&(ot=="length"||_e&&(ot=="offset"||ot=="parent")||he&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||mm(ot,zt)))&&Ke.push(ot);return Ke}function os(w,C){for(var k=w.length;k--;)if(Qp(w[k][0],C))return k;return-1}function hc(w,C,k){var M=C(w);return is(w)?M:Te(M,k(w))}function Pa(w){return w==null?w===void 0?I:y:Yn&&Yn in Object(w)?Wo(w):Zp(w)}function Xp(w){return io(w)&&Pa(w)==u}function Jp(w,C,k,M,_e){return w===C?!0:w==null||C==null||!io(w)&&!io(C)?w!==w&&C!==C:cm(w,C,k,M,Jp,_e)}function cm(w,C,k,M,_e,he){var He=is(w),Ke=is(C),zt=He?s:oo(w),ot=Ke?s:oo(C);zt=zt==u?b:zt,ot=ot==u?b:ot;var En=zt==b,Ln=ot==b,Zt=zt==ot;if(Zt&&as(w)){if(!as(C))return!1;He=!0,En=!1}if(Zt&&!En)return he||(he=new ro),He||rh(w)?gc(w,C,k,M,_e,he):hm(w,C,zt,k,M,_e,he);if(!(k&o)){var Sn=En&&kn.call(w,"__wrapped__"),fn=Ln&&kn.call(C,"__wrapped__");if(Sn||fn){var mi=Sn?w.value():w,qo=fn?C.value():C;return he||(he=new ro),_e(mi,qo,k,M,he)}}return Zt?(he||(he=new ro),gm(w,C,k,M,_e,he)):!1}function fm(w){if(!nh(w)||bm(w))return!1;var C=th(w)?ac:_;return C.test(Tn(w))}function dm(w){return io(w)&&mc(w.length)&&!!R[Pa(w)]}function pm(w){if(!wm(w))return Fa(w);var C=[];for(var k in Object(w))kn.call(w,k)&&k!="constructor"&&C.push(k);return C}function gc(w,C,k,M,_e,he){var He=k&o,Ke=w.length,zt=C.length;if(Ke!=zt&&!(He&&zt>Ke))return!1;var ot=he.get(w);if(ot&&he.get(C))return ot==C;var En=-1,Ln=!0,Zt=k&i?new ns:void 0;for(he.set(w,C),he.set(C,w);++En<Ke;){var Sn=w[En],fn=C[En];if(M)var mi=He?M(fn,Sn,En,C,w,he):M(Sn,fn,En,w,C,he);if(mi!==void 0){if(mi)continue;Ln=!1;break}if(Zt){if(!qn(C,function(qo,Na){if(!Tt(Zt,Na)&&(Sn===qo||_e(Sn,qo,k,M,he)))return Zt.push(Na)})){Ln=!1;break}}else if(!(Sn===fn||_e(Sn,fn,k,M,he))){Ln=!1;break}}return he.delete(w),he.delete(C),Ln}function hm(w,C,k,M,_e,he,He){switch(k){case Y:if(w.byteLength!=C.byteLength||w.byteOffset!=C.byteOffset)return!1;w=w.buffer,C=C.buffer;case G:return!(w.byteLength!=C.byteLength||!he(new ts(w),new ts(C)));case c:case f:case h:return Qp(+w,+C);case d:return w.name==C.name&&w.message==C.message;case E:case x:return w==C+"";case v:var Ke=Ft;case S:var zt=M&o;if(Ke||(Ke=Gn),w.size!=C.size&&!zt)return!1;var ot=He.get(w);if(ot)return ot==C;M|=i,He.set(w,C);var En=gc(Ke(w),Ke(C),M,_e,he,He);return He.delete(w),En;case B:if(dc)return dc.call(w)==dc.call(C)}return!1}function gm(w,C,k,M,_e,he){var He=k&o,Ke=Ia(w),zt=Ke.length,ot=Ia(C),En=ot.length;if(zt!=En&&!He)return!1;for(var Ln=zt;Ln--;){var Zt=Ke[Ln];if(!(He?Zt in C:kn.call(C,Zt)))return!1}var Sn=he.get(w);if(Sn&&he.get(C))return Sn==C;var fn=!0;he.set(w,C),he.set(C,w);for(var mi=He;++Ln<zt;){Zt=Ke[Ln];var qo=w[Zt],Na=C[Zt];if(M)var ES=He?M(Na,qo,Zt,C,w,he):M(qo,Na,Zt,w,C,he);if(!(ES===void 0?qo===Na||_e(qo,Na,k,M,he):ES)){fn=!1;break}mi||(mi=Zt=="constructor")}if(fn&&!mi){var oh=w.constructor,ih=C.constructor;oh!=ih&&"constructor"in w&&"constructor"in C&&!(typeof oh=="function"&&oh instanceof oh&&typeof ih=="function"&&ih instanceof ih)&&(fn=!1)}return he.delete(w),he.delete(C),fn}function Ia(w){return hc(w,yc,vm)}function Lr(w,C){var k=w.__data__;return ym(C)?k[typeof C=="string"?"string":"hash"]:k.map}function Uo(w,C){var k=In(w,C);return fm(k)?k:void 0}function Wo(w){var C=kn.call(w,Yn),k=w[Yn];try{w[Yn]=void 0;var M=!0}catch{}var _e=es.call(w);return M&&(C?w[Yn]=k:delete w[Yn]),_e}var vm=gi?function(w){return w==null?[]:(w=Object(w),ve(gi(w),function(C){return hi.call(w,C)}))}:Em,oo=Pa;(sc&&oo(new sc(new ArrayBuffer(1)))!=Y||Ba&&oo(new Ba)!=v||lc&&oo(lc.resolve())!=m||cc&&oo(new cc)!=S||fc&&oo(new fc)!=H)&&(oo=function(w){var C=Pa(w),k=C==b?w.constructor:void 0,M=k?Tn(k):"";if(M)switch(M){case Gp:return Y;case Ho:return v;case z1:return m;case V1:return S;case H1:return H}return C});function mm(w,C){return C=C??a,!!C&&(typeof w=="number"||F.test(w))&&w>-1&&w%1==0&&w<C}function ym(w){var C=typeof w;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?w!=="__proto__":w===null}function bm(w){return!!hr&&hr in w}function wm(w){var C=w&&w.constructor,k=typeof C=="function"&&C.prototype||to;return w===k}function Zp(w){return es.call(w)}function Tn(w){if(w!=null){try{return no.call(w)}catch{}try{return w+""}catch{}}return""}function Qp(w,C){return w===C||w!==w&&C!==C}var eh=Xp(function(){return arguments}())?Xp:function(w){return io(w)&&kn.call(w,"callee")&&!hi.call(w,"callee")},is=Array.isArray;function vc(w){return w!=null&&mc(w.length)&&!th(w)}var as=uc||Sm;function $m(w,C){return Jp(w,C)}function th(w){if(!nh(w))return!1;var C=Pa(w);return C==p||C==g||C==l||C==$}function mc(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=a}function nh(w){var C=typeof w;return w!=null&&(C=="object"||C=="function")}function io(w){return w!=null&&typeof w=="object"}var rh=ke?At(ke):dm;function yc(w){return vc(w)?lm(w):pm(w)}function Em(){return[]}function Sm(){return!1}e.exports=$m});Un("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"}}),Un("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var YA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yP(e){var t={exports:{}};return e(t,t.exports),t.exports}var Fi,Dg,Ih=function(e){return e&&e.Math==Math&&e},Re=Ih(typeof globalThis=="object"&&globalThis)||Ih(typeof window=="object"&&window)||Ih(typeof self=="object"&&self)||Ih(typeof YA=="object"&&YA)||function(){return this}()||Function("return this")(),Xt=function(e){try{return!!e()}catch{return!0}},wa=!Xt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),of=Function.prototype.call,Gt=of.bind?of.bind(of):function(){return of.apply(of,arguments)},XA={}.propertyIsEnumerable,JA=Object.getOwnPropertyDescriptor,fie={f:JA&&!XA.call({1:2},1)?function(e){var t=JA(this,e);return!!t&&t.enumerable}:XA},M5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bP=Function.prototype,l$=bP.bind,c$=bP.call,die=l$&&l$.bind(c$),je=l$?function(e){return e&&die(c$,e)}:function(e){return e&&function(){return c$.apply(e,arguments)}},pie=je({}.toString),hie=je("".slice),oa=function(e){return hie(pie(e),8,-1)},Tb=Re.Object,gie=je("".split),wP=Xt(function(){return!Tb("z").propertyIsEnumerable(0)})?function(e){return oa(e)=="String"?gie(e,""):Tb(e)}:Tb,vie=Re.TypeError,$a=function(e){if(e==null)throw vie("Can't call method on "+e);return e},Bp=function(e){return wP($a(e))},wn=function(e){return typeof e=="function"},Sr=function(e){return typeof e=="object"?e!==null:wn(e)},mie=function(e){return wn(e)?e:void 0},Pp=function(e,t){return arguments.length<2?mie(Re[e]):Re[e]&&Re[e][t]},$P=je({}.isPrototypeOf),Fb=Pp("navigator","userAgent")||"",ZA=Re.process,QA=Re.Deno,e7=ZA&&ZA.versions||QA&&QA.version,t7=e7&&e7.v8;t7&&(Dg=(Fi=t7.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!Dg&&Fb&&(!(Fi=Fb.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=Fb.match(/Chrome\/(\d+)/))&&(Dg=+Fi[1]);var f$=Dg,d$=!!Object.getOwnPropertySymbols&&!Xt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&f$&&f$<41}),z5=d$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yie=Re.Object,p$=z5?function(e){return typeof e=="symbol"}:function(e){var t=Pp("Symbol");return wn(t)&&$P(t.prototype,yie(e))},bie=Re.String,EP=function(e){try{return bie(e)}catch{return"Object"}},wie=Re.TypeError,SP=function(e){if(wn(e))return e;throw wie(EP(e)+" is not a function")},V5=function(e,t){var n=e[t];return n==null?void 0:SP(n)},$ie=Re.TypeError,Eie=Object.defineProperty,H5=function(e,t){try{Eie(Re,e,{value:t,configurable:!0,writable:!0})}catch{Re[e]=t}return t},ia=Re["__core-js_shared__"]||H5("__core-js_shared__",{}),U5=yP(function(e){(e.exports=function(t,n){return ia[t]||(ia[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Sie=Re.Object,W5=function(e){return Sie($a(e))},Die=je({}.hasOwnProperty),Tr=Object.hasOwn||function(e,t){return Die(W5(e),t)},Cie=0,xie=Math.random(),Aie=je(1 .toString),DP=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Aie(++Cie+xie,36)},af=U5("wks"),Eu=Re.Symbol,n7=Eu&&Eu.for,Oie=z5?Eu:Eu&&Eu.withoutSetter||DP,Rr=function(e){if(!Tr(af,e)||!d$&&typeof af[e]!="string"){var t="Symbol."+e;d$&&Tr(Eu,e)?af[e]=Eu[e]:af[e]=z5&&n7?n7(t):Oie(t)}return af[e]},_ie=Re.TypeError,kie=Rr("toPrimitive"),Tie=function(e,t){if(!Sr(e)||p$(e))return e;var n,r=V5(e,kie);if(r){if(t===void 0&&(t="default"),n=Gt(r,e,t),!Sr(n)||p$(n))return n;throw _ie("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&wn(a=o.toString)&&!Sr(u=Gt(a,o))||wn(a=o.valueOf)&&!Sr(u=Gt(a,o))||i!=="string"&&wn(a=o.toString)&&!Sr(u=Gt(a,o)))return u;throw $ie("Can't convert object to primitive value")}(e,t)},q5=function(e){var t=Tie(e,"string");return p$(t)?t:t+""},h$=Re.document,Fie=Sr(h$)&&Sr(h$.createElement),G5=function(e){return Fie?h$.createElement(e):{}},CP=!wa&&!Xt(function(){return Object.defineProperty(G5("div"),"a",{get:function(){return 7}}).a!=7}),r7=Object.getOwnPropertyDescriptor,xP={f:wa?r7:function(e,t){if(e=Bp(e),t=q5(t),CP)try{return r7(e,t)}catch{}if(Tr(e,t))return M5(!Gt(fie.f,e,t),e[t])}},Bie=Re.String,Pie=Re.TypeError,Nr=function(e){if(Sr(e))return e;throw Pie(Bie(e)+" is not an object")},Iie=Re.TypeError,o7=Object.defineProperty,Ip={f:wa?o7:function(e,t,n){if(Nr(e),t=q5(t),Nr(n),CP)try{return o7(e,t,n)}catch{}if("get"in n||"set"in n)throw Iie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Nl=wa?function(e,t,n){return Ip.f(e,t,M5(1,n))}:function(e,t,n){return e[t]=n,e},Nie=je(Function.toString);wn(ia.inspectSource)||(ia.inspectSource=function(e){return Nie(e)});var M0,ed,z0,K5=ia.inspectSource,i7=Re.WeakMap,Rie=wn(i7)&&/native code/.test(K5(i7)),a7=U5("keys"),AP=function(e){return a7[e]||(a7[e]=DP(e))},Y5={},g$=Re.TypeError,Lie=Re.WeakMap;if(Rie||ia.state){var Ua=ia.state||(ia.state=new Lie),jie=je(Ua.get),u7=je(Ua.has),Mie=je(Ua.set);M0=function(e,t){if(u7(Ua,e))throw new g$("Object already initialized");return t.facade=e,Mie(Ua,e,t),t},ed=function(e){return jie(Ua,e)||{}},z0=function(e){return u7(Ua,e)}}else{var Ds=AP("state");Y5[Ds]=!0,M0=function(e,t){if(Tr(e,Ds))throw new g$("Object already initialized");return t.facade=e,Nl(e,Ds,t),t},ed=function(e){return Tr(e,Ds)?e[Ds]:{}},z0=function(e){return Tr(e,Ds)}}var v$={set:M0,get:ed,has:z0,enforce:function(e){return z0(e)?ed(e):M0(e,{})},getterFor:function(e){return function(t){var n;if(!Sr(t)||(n=ed(t)).type!==e)throw g$("Incompatible receiver, "+e+" required");return n}}},OP=Function.prototype,zie=wa&&Object.getOwnPropertyDescriptor,Bb=Tr(OP,"name"),X5={EXISTS:Bb,PROPER:Bb&&function(){}.name==="something",CONFIGURABLE:Bb&&(!wa||wa&&zie(OP,"name").configurable)},jd=yP(function(e){var t=X5.CONFIGURABLE,n=v$.get,r=v$.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;wn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Tr(u,"name")||t&&u.name!==p)&&Nl(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Re?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Nl(i,a,u)):f?i[a]=u:H5(a,u)})(Function.prototype,"toString",function(){return wn(this)&&n(this).source||K5(this)})}),Vie=Math.ceil,Hie=Math.floor,$1=function(e){var t=+e;return t!=t||t===0?0:(t>0?Hie:Vie)(t)},Uie=Math.max,Wie=Math.min,Md=function(e,t){var n=$1(e);return n<0?Uie(n+t,0):Wie(n,t)},qie=Math.min,J5=function(e){return e>0?qie($1(e),9007199254740991):0},E1=function(e){return J5(e.length)},s7=function(e){return function(t,n,r){var o,i=Bp(t),a=E1(i),u=Md(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}},Gie={includes:s7(!0),indexOf:s7(!1)}.indexOf,l7=je([].push),_P=function(e,t){var n,r=Bp(e),o=0,i=[];for(n in r)!Tr(Y5,n)&&Tr(r,n)&&l7(i,n);for(;t.length>o;)Tr(r,n=t[o++])&&(~Gie(i,n)||l7(i,n));return i},V0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kie=V0.concat("length","prototype"),Yie={f:Object.getOwnPropertyNames||function(e){return _P(e,Kie)}},Xie={f:Object.getOwnPropertySymbols},Jie=je([].concat),Zie=Pp("Reflect","ownKeys")||function(e){var t=Yie.f(Nr(e)),n=Xie.f;return n?Jie(t,n(e)):t},Qie=function(e,t){for(var n=Zie(t),r=Ip.f,o=xP.f,i=0;i<n.length;i++){var a=n[i];Tr(e,a)||r(e,a,o(t,a))}},eae=/#|\.prototype\./,Np=function(e,t){var n=nae[tae(e)];return n==oae||n!=rae&&(wn(t)?Xt(t):!!t)},tae=Np.normalize=function(e){return String(e).replace(eae,".").toLowerCase()},nae=Np.data={},rae=Np.NATIVE="N",oae=Np.POLYFILL="P",iae=Np,aae=xP.f,Ea=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Re:l?Re[u]||H5(u,{}):(Re[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=aae(n,r))&&a.value:n[r],!iae(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Qie(i,o)}(e.sham||o&&o.sham)&&Nl(i,"sham",!0),jd(n,r,i,e)}},kP={};kP[Rr("toStringTag")]="z";var c7,Z5=String(kP)==="[object z]",uae=Rr("toStringTag"),sae=Re.Object,lae=oa(function(){return arguments}())=="Arguments",Q5=Z5?oa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=sae(e),uae))=="string"?n:lae?oa(t):(r=oa(t))=="Object"&&wn(t.callee)?"Arguments":r},cae=Re.String,An=function(e){if(Q5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cae(e)},fae=/"/g,dae=je("".replace);Ea({target:"String",proto:!0,forced:(c7="anchor",Xt(function(){var e=""[c7]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t="a",n="name",r=e,o=An($a(this)),i="<"+t,n!==""&&(i+=" "+n+'="'+dae(An(r),fae,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var Nh,TP=function(){var e=Nr(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},e6=Re.RegExp,m$=Xt(function(){var e=e6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),pae=m$||Xt(function(){return!e6("a","y").sticky}),FP={BROKEN_CARET:m$||Xt(function(){var e=e6("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:pae,UNSUPPORTED_Y:m$},hae=Object.keys||function(e){return _P(e,V0)},gae=wa?Object.defineProperties:function(e,t){Nr(e);for(var n,r=Bp(t),o=hae(t),i=o.length,a=0;i>a;)Ip.f(e,n=o[a++],r[n]);return e},vae=Pp("document","documentElement"),BP=AP("IE_PROTO"),Pb=function(){},PP=function(e){return"<script>"+e+"<\/script>"},f7=function(e){e.write(PP("")),e.close();var t=e.parentWindow.Object;return e=null,t},Cg=function(){try{Nh=new ActiveXObject("htmlfile")}catch{}var e,t;Cg=typeof document<"u"?document.domain&&Nh?f7(Nh):((t=G5("iframe")).style.display="none",vae.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(PP("document.F=Object")),e.close(),e.F):f7(Nh);for(var n=V0.length;n--;)delete Cg.prototype[V0[n]];return Cg()};Y5[BP]=!0;var d7,Ib,IP=Object.create||function(e,t){var n;return e!==null?(Pb.prototype=Nr(e),n=new Pb,Pb.prototype=null,n[BP]=e):n=Cg(),t===void 0?n:gae(n,t)},mae=Re.RegExp,yae=Xt(function(){var e=mae(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),bae=Re.RegExp,wae=Xt(function(){var e=bae("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),$ae=v$.get,Eae=U5("native-string-replace",String.prototype.replace),H0=RegExp.prototype.exec,y$=H0,Sae=je("".charAt),Dae=je("".indexOf),Cae=je("".replace),Nb=je("".slice),Rb=(Ib=/b*/g,Gt(H0,d7=/a/,"a"),Gt(H0,Ib,"a"),d7.lastIndex!==0||Ib.lastIndex!==0),p7=FP.BROKEN_CARET,Lb=/()??/.exec("")[1]!==void 0;(Rb||Lb||p7||yae||wae)&&(y$=function(e){var t,n,r,o,i,a,u,s=this,l=$ae(s),c=An(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Gt(y$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=p7&&s.sticky,g=Gt(TP,s),v=s.source,h=0,y=c;if(p&&(g=Cae(g,"y",""),Dae(g,"g")===-1&&(g+="g"),y=Nb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Sae(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),Lb&&(n=new RegExp("^"+v+"$(?!\\s)",g)),Rb&&(r=s.lastIndex),o=Gt(H0,p?n:s,y),p?o?(o.input=Nb(o.input,h),o[0]=Nb(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Rb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lb&&o&&o.length>1&&Gt(Eae,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=IP(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var zd=y$;Ea({target:"RegExp",proto:!0,forced:/./.exec!==zd},{exec:zd});var U0=Array.isArray||function(e){return oa(e)=="Array"},NP=function(){},xae=[],RP=Pp("Reflect","construct"),t6=/^\s*(?:class|function)\b/,Aae=je(t6.exec),Oae=!t6.exec(NP),uf=function(e){if(!wn(e))return!1;try{return RP(NP,xae,e),!0}catch{return!1}},n6=!RP||Xt(function(){var e;return uf(uf.call)||!uf(Object)||!uf(function(){e=!0})||e})?function(e){if(!wn(e))return!1;switch(Q5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Oae||!!Aae(t6,K5(e))}:uf,LP=function(e,t,n){var r=q5(t);r in e?Ip.f(e,r,M5(0,n)):e[r]=n},_ae=Rr("species"),r6=function(e){return f$>=51||!Xt(function(){var t=[];return(t.constructor={})[_ae]=function(){return{foo:1}},t[e](Boolean).foo!==1})},kae=je([].slice),Tae=r6("slice"),Fae=Rr("species"),jb=Re.Array,Bae=Math.max;function Jr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||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 h7(e){var t=e.selection;if(t==null)return!1;var n=Jr(D.nodes(e,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Jr(n,2)[1],o=D.start(e,r);if(Be.equals(t.anchor,o))return!0}return!1}function g7(e,t){var n,r,o=D.nodes(e,{at:t,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=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}Ea({target:"Array",proto:!0,forced:!Tae},{slice:function(e,t){var n,r,o,i=Bp(this),a=E1(i),u=Md(e,a),s=Md(t===void 0?a:t,a);if(U0(i)&&(n=i.constructor,(n6(n)&&(n===jb||U0(n.prototype))||Sr(n)&&(n=n[Fae])===null)&&(n=void 0),n===jb||n===void 0))return kae(i,u,s);for(r=new(n===void 0?jb:n)(Bae(s-u,0)),o=0;u<s;u++,o++)u in i&&LP(r,o,i[u]);return r.length=o,r}});var v7=je(je.bind),Pae=Rr("species"),m7=Re.Array,Iae=function(e,t){return new(function(n){var r;return U0(n)&&(r=n.constructor,(n6(r)&&(r===m7||U0(r.prototype))||Sr(r)&&(r=r[Pae])===null)&&(r=void 0)),r===void 0?m7:r}(e))(t===0?0:t)},y7=je([].push),Bi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=W5(s),v=wP(g),h=function(E,S){return SP(E),S===void 0?E:v7?v7(E,S):function(){return E.apply(S,arguments)}}(l,c),y=E1(v),b=0,m=f||Iae,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:y7($,d)}else switch(e){case 4:return!1;case 7:y7($,d)}return i?-1:r||o?o:$}},S1={forEach:Bi(0),map:Bi(1),filter:Bi(2),some:Bi(3),every:Bi(4),find:Bi(5),findIndex:Bi(6),filterReject:Bi(7)},Nae=S1.map;Ea({target:"Array",proto:!0,forced:!r6("map")},{map:function(e){return Nae(this,e,arguments.length>1?arguments[1]:void 0)}});var Rae=Z5?{}.toString:function(){return"[object "+Q5(this)+"]"};function D1(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function jP(e){return D1(e).every(function(t){return!!t.isHeader})}Z5||jd(Object.prototype,"toString",Rae,{unsafe:!0});var Lae=X5.PROPER,b$=RegExp.prototype,MP=b$.toString,jae=je(TP),Mae=Xt(function(){return MP.call({source:"a",flags:"b"})!="/a/b"}),zae=Lae&&MP.name!="toString";(Mae||zae)&&jd(RegExp.prototype,"toString",function(){var e=Nr(this),t=An(e.source),n=e.flags;return"/"+t+"/"+An(n===void 0&&$P(b$,e)&&!("flags"in b$)?jae(e):n)},{unsafe:!0});var w$=Rr("unscopables"),$$=Array.prototype;$$[w$]==null&&Ip.f($$,w$,{configurable:!0,value:IP(null)});var b7,Vae=S1.find,w7=!0;"find"in[]&&Array(1).find(function(){w7=!1}),Ea({target:"Array",proto:!0,forced:w7},{find:function(e){return Vae(this,e,arguments.length>1?arguments[1]:void 0)}}),b7="find",$$[w$][b7]=!0;var o6=Function.prototype,$7=o6.apply,Hae=o6.bind,E7=o6.call,zP=typeof Reflect=="object"&&Reflect.apply||(Hae?E7.bind($7):function(){return E7.apply($7,arguments)}),Uae=Rr("species"),Mb=RegExp.prototype,VP=function(e,t,n,r){var o=Rr(e),i=!Xt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Xt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Uae]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=je(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=je(l),v=c.exec;return v===zd||v===Mb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});jd(String.prototype,e,s[0]),jd(Mb,o,s[1])}r&&Nl(Mb[o],"sham",!0)},Wae=Rr("match"),qae=Re.TypeError,Gae=Rr("species"),Kae=function(e,t){var n,r=Nr(e).constructor;return r===void 0||(n=Nr(r)[Gae])==null?t:function(o){if(n6(o))return o;throw qae(EP(o)+" is not a constructor")}(n)},Yae=je("".charAt),S7=je("".charCodeAt),Xae=je("".slice),D7=function(e){return function(t,n){var r,o,i=An($a(t)),a=$1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=S7(i,a))<55296||r>56319||a+1===u||(o=S7(i,a+1))<56320||o>57343?e?Yae(i,a):r:e?Xae(i,a,a+2):o-56320+(r-55296<<10)+65536}},Jae={codeAt:D7(!1),charAt:D7(!0)}.charAt,HP=function(e,t,n){return t+(n?Jae(e,t).length:1)},Zae=Re.Array,Qae=Math.max,C7=function(e,t,n){for(var r=E1(e),o=Md(t,r),i=Md(n===void 0?r:n,r),a=Zae(Qae(i-o,0)),u=0;o<i;o++,u++)LP(a,u,e[o]);return a.length=u,a},eue=Re.TypeError,E$=function(e,t){var n=e.exec;if(wn(n)){var r=Gt(n,e,t);return r!==null&&Nr(r),r}if(oa(e)==="RegExp")return Gt(zd,e,t);throw eue("RegExp#exec called on incompatible receiver")},Cs=FP.UNSUPPORTED_Y,tue=Math.min,UP=[].push,nue=je(/./.exec),xs=je(UP),sf=je("".slice);VP("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=An($a(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Sr(a=o)||!((u=a[Wae])!==void 0?u:oa(a)=="RegExp"))return Gt(t,s,o,l);for(var c,f,d,p=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,h=new RegExp(o.source,g+"g");(c=Gt(zd,h,s))&&!((f=h.lastIndex)>v&&(xs(p,sf(s,v,c.index)),c.length>1&&c.index<s.length&&zP(UP,p,C7(c,1)),d=c[0].length,v=f,p.length>=l));)h.lastIndex===c.index&&h.lastIndex++;return v===s.length?!d&&nue(h,"")||xs(p,""):xs(p,sf(s,v)),p.length>l?C7(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Gt(t,this,o,i)}:t,[function(o,i){var a=$a(this),u=o==null?void 0:V5(o,e);return u?Gt(u,o,a,i):Gt(r,An(a),o,i)},function(o,i){var a=Nr(this),u=An(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=Kae(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Cs?"g":"y"),d=new l(Cs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return E$(d,u)===null?[u]:[];for(var g=0,v=0,h=[];v<u.length;){d.lastIndex=Cs?0:v;var y,b=E$(d,Cs?sf(u,v):u);if(b===null||(y=tue(J5(d.lastIndex+(Cs?v:0)),u.length))===g)v=HP(u,v,c);else{if(xs(h,sf(u,g,v)),h.length===p)return h;for(var m=1;m<=b.length-1;m++)if(xs(h,b[m]),h.length===p)return h;v=g=y}}return xs(h,sf(u,g)),h}]},!!Xt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Cs);var S$=`
- \v\f\r \u2028\u2029\uFEFF`,x7=je("".replace),W0="["+S$+"]",rue=RegExp("^"+W0+W0+"*"),oue=RegExp(W0+W0+"*$"),zb=function(e){return function(t){var n=An($a(t));return 1&e&&(n=x7(n,rue,"")),2&e&&(n=x7(n,oue,"")),n}},iue={start:zb(1),end:zb(2),trim:zb(3)},aue=X5.PROPER,uue=iue.trim;function WP(e){return e.length?e[0].tagName.toLowerCase():""}Ea({target:"String",proto:!0,forced:function(e){return Xt(function(){return!!S$[e]()||"
"[e]()!=="
"||aue&&S$[e].name!==e})}("trim")},{trim:function(){return uue(this)}}),Ea({global:!0},{globalThis:Re}),To&&(O.fn.append=To),ko&&(O.fn.on=ko),ha&&(O.fn.focus=ha),Oo&&(O.fn.attr=Oo),_o&&(O.fn.val=_o),pa&&(O.fn.html=pa),wl&&(O.fn.dataset=wl),ml&&(O.fn.addClass=ml),yl&&(O.fn.removeClass=yl),Sl&&(O.fn.children=Sl),Xg&&(O.fn.each=Xg),El&&(O.fn.find=El);var Vd=!1,qP=0,GP=0,Hd=null,Ud=null,td=O("body");function KP(e){Vd=!1,Ud=null,Hd=null,td.off("mousemove",YP),td.off("mouseup",KP)}td.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Vd=!0;var n=e.clientX;qP=n;var r=t.getBoundingClientRect().width;GP=r,td.on("mousemove",YP),td.on("mouseup",KP)}});var YP=Tu(function(e){if(Vd&&Ud!=null&&Hd!=null){e.preventDefault();var t=e.clientX,n=GP+(t-qP);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(Ud,{width:n.toString()},{at:Hd})}},100),sue={type:"table",renderElem:function(e,t,n){var r=function(l,c){if(l.isDisabled())return!1;var f=l.selection;if(f==null||L.isCollapsed(f))return!0;var d=f.anchor,p=f.focus,g=A.findPath(l,c),v=D.start(l,g),h=D.end(l,g),y=Be.compare(d,h)<=0&&Be.compare(d,v)>=0,b=Be.compare(p,h)<=0&&Be.compare(p,v)>=0;return!!(y&&b&&P.equals(d.path.slice(0,3),p.path.slice(0,3)))}(n,e),o=e.width,i=o===void 0?"auto":o,a=A.isNodeSelected(n,e),u=D1(e),s=Ce("div",{className:"table-container","data-selected":a,on:{mousedown:function(l){l.target.tagName==="DIV"&&l.preventDefault();var c=A.findPath(n,e),f=D.start(n,c),d=n.selection;d!=null?d.anchor.path[0]!==c[0]&&n.select(f):n.select(f)}}},Ce("table",{width:i,contentEditable:r},Ce("colgroup",null,u.map(function(l){var c=l.width;return Ce("col",{width:c===void 0?"auto":c})})),Ce("tbody",null,t)));return s}},lue={type:"table-row",renderElem:function(e,t,n){return Ce("tr",null,t)}},cue={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var g=A.getParentNode(d,p);if(g==null)return!1;var v=A.getParentNode(d,g);return v!=null&&D1(v).some(function(h){return h===p})}(n,e),o=e,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return Ce("td",{colSpan:a,rowSpan:s},t);var f=Ce(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Tu(function(d){var p=this.elm;if(p!=null){var g=p.getBoundingClientRect(),v=g.left,h=g.width,y=g.top,b=g.height,m=d.clientX,$=d.clientY;Vd||(m>v+h-5&&m<v+h&&$>y&&$<y+b?(p.style.cursor="col-resize",Ud=n,Hd=A.findPath(n,e)):Vd||(p.style.cursor="auto",Ud=null,Hd=null))}},100)}},t);return f}},fue={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},due={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},pue={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}},hue={selector:"table",preParseHtml:function(e){var t=O(e);if(WP(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},gue=S1.filter;Ea({target:"Array",proto:!0,forced:!r6("filter")},{filter:function(e){return gue(this,e,arguments.length>1?arguments[1]:void 0)}});var vue=Math.floor,Vb=je("".charAt),mue=je("".replace),Hb=je("".slice),yue=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bue=/\$([$&'`]|\d{1,2})/g,wue=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=bue;return o!==void 0&&(o=W5(o),s=yue),mue(i,s,function(l,c){var f;switch(Vb(c,0)){case"$":return"$";case"&":return e;case"`":return Hb(t,0,n);case"'":return Hb(t,a);case"<":f=o[Hb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=vue(d/10);return p===0?l:p<=u?r[p-1]===void 0?Vb(c,1):r[p-1]+Vb(c,1):l}f=r[d-1]}return f===void 0?"":f})},D$=Rr("replace"),$ue=Math.max,Eue=Math.min,Sue=je([].concat),Ub=je([].push),A7=je("".indexOf),O7=je("".slice),Due="a".replace(/./,"$0")==="$0",_7=!!/./[D$]&&/./[D$]("a","$0")==="";VP("replace",function(e,t,n){var r=_7?"$":"$0";return[function(o,i){var a=$a(this),u=o==null?void 0:V5(o,D$);return u?Gt(u,o,a,i):Gt(t,An(a),o,i)},function(o,i){var a=Nr(this),u=An(o);if(typeof i=="string"&&A7(i,r)===-1&&A7(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=wn(i);l||(i=An(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=E$(a,u);if(p===null||(Ub(d,p),!c))break;An(p[0])===""&&(a.lastIndex=HP(u,J5(a.lastIndex),f))}for(var g,v="",h=0,y=0;y<d.length;y++){for(var b=An((p=d[y])[0]),m=$ue(Eue($1(p.index),u.length),0),$=[],E=1;E<p.length;E++)Ub($,(g=p[E])===void 0?g:String(g));var S=p.groups;if(l){var x=Sue([b],$,m,u);S!==void 0&&Ub(x,S);var B=An(zP(i,void 0,x))}else B=wue(b,u,m,$,S,i);m>=h&&(v+=O7(u,h,m)+B,h=m+b.length)}return v+O7(u,h)}]},!!Xt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Due||_7);var Cue={selector:"td,th",parseElemHtml:function(e,t,n){var r=O(e);(t=t.filter(function(u){return!!oe.isText(u)||!!n.isInline(u)})).length===0&&(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:WP(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},xue={selector:"tr",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Aue={selector:"table",parseElemHtml:function(e,t,n){var r=O(e),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()===a&&(u=d[1].trim())}}return u}(r,"width")==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Oue=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=O('<div class="w-e-panel-content-table"></div>'),o=O("<span>0 × 0</span>"),i=O("<table></table>"),a=0;a<10;a++){for(var u=O("<tr></tr>"),s=0;s<10;s++){var l=O("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=O(f).dataset(),p=d.x,g=d.y;o[0].innerHTML=p+1+" × "+(g+1),i.children().each(function(v){O(v).children().each(function(h){var y=O(h),b=y.dataset(),m=b.x,$=b.y;m<=p&&$<=g?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=O(f).dataset(),p=d.x,g=d.y;n.insertTable(t,g+1,p+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){var a=A.getSelectedNodeByType(t,"paragraph");a&&X.string(a)===""&&N.removeNodes(t,{mode:"highest"});var u=function(s,l){for(var c=[],f=0;f<s;f++){for(var d=[],p=0;p<l;p++){var g={type:"table-cell",children:[{text:""}]};f===0&&(g.isHeader=!0),d.push(g)}c.push({type:"table-row",children:d})}return{type:"table",width:"auto",children:c}}(o,i);N.insertNodes(t,u,{mode:"highest"})}},e}(),_ue=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||N.removeNodes(t,{mode:"highest"})},e}(),kue=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(D.nodes(t,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=P.parent(a),d=P.next(f);N.insertNodes(t,l,{at:d})}}},e}(),Tue=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(D.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(t,{mode:"highest"}):N.removeNodes(t,{at:a})}},e}(),k7={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},Wb=G5("span").classList,T7=Wb&&Wb.constructor&&Wb.constructor.prototype,Fue=T7===Object.prototype?void 0:T7,Bue=S1.forEach,Pue=function(e,t){var n=[][e];return!!n&&Xt(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),qb=Pue?[].forEach:function(e){return Bue(this,e,arguments.length>1?arguments[1]:void 0)},XP=function(e){if(e&&e.forEach!==qb)try{Nl(e,"forEach",qb)}catch{e.forEach=qb}};for(var Gb in k7)k7[Gb]&&XP(Re[Gb]&&Re[Gb].prototype);XP(Fue);var Iue=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(D.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){se.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(t,f);if(d.length===a.length&&mP(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&jP(s)&&(p.isHeader=!0),N.insertNodes(t,p,{at:d})}})})}}},e}(),Nue=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Jr(D.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Jr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){se.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(t,f);d.length===a.length&&mP(d.slice(-1),a.slice(-1))&&N.removeNodes(t,{at:d})})})}}},e}(),Rue=function(){function e(){this.title=Z("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(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&jP(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=A.getSelectedNodeByType(t,"table");o!=null&&D1(o).forEach(function(i){return N.setNodes(t,{isHeader:r},{at:A.findPath(t,i)})})}},e}(),Lue=function(){function e(){this.title=Z("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(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};N.setNodes(t,r,{mode:"highest"})}},e}(),jue={renderElems:[sue,lue,cue],elemsToHtml:[fue,due,pue],preParseHtml:[hue],parseElemsHtml:[Cue,xue,Aue],menus:[{key:"insertTable",factory:function(){return new Oue}},{key:"deleteTable",factory:function(){return new _ue}},{key:"insertTableRow",factory:function(){return new kue}},{key:"deleteTableRow",factory:function(){return new Tue}},{key:"insertTableCol",factory:function(){return new Iue}},{key:"deleteTableCol",factory:function(){return new Nue}},{key:"tableHeader",factory:function(){return new Rue}},{key:"tableFullWidth",factory:function(){return new Lue}}],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(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
- `)},s.deleteBackward=function(l){if(!h7(s)){var c=s.selection;if(c){var f=D.before(s,c);if(f){var d=g7(s,f),p=g7(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=D.above(e);A.checkNodeType(c[0],"table-cell")&&N.select(e,c[1]);var f=D.next(e);if(f)f[0]&&f[0].text&&(f=(l=D.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(e,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var g=A.genEmptyParagraph();N.insertNodes(s,g,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){h7(s)||r(l)},s.normalizeNode=function(l){var c=Jr(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
- `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):D.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(P.equals(f.path.slice(0,3),d.path.slice(0,3)))if(X.string(c).length!==0){var p=A.findPath(s,c),g={anchor:D.start(s,p),focus:D.end(s,p)};s.select(g)}else u();else u()}else u()}else u()},s}};Un("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"video source",insertPlaceHolder:"video file url, or third-party <iframe>",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Un("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",insertPlaceHolder:"视频文件 url 或第三方 <iframe>",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 q0=function(){return q0=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},q0.apply(this,arguments)};function C1(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function x1(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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Mue(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 ul(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||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 zue(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Mue(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var F7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i6(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pi,xg,Rh=function(e){return e&&e.Math==Math&&e},Q=Rh(typeof globalThis=="object"&&globalThis)||Rh(typeof window=="object"&&window)||Rh(typeof self=="object"&&self)||Rh(typeof F7=="object"&&F7)||function(){return this}()||Function("return this")(),pt=function(e){try{return!!e()}catch{return!0}},Bo=!pt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),lf=Function.prototype.call,ct=lf.bind?lf.bind(lf):function(){return lf.apply(lf,arguments)},B7={}.propertyIsEnumerable,P7=Object.getOwnPropertyDescriptor,Vue={f:P7&&!B7.call({1:2},1)?function(e){var t=P7(this,e);return!!t&&t.enumerable}:B7},A1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},JP=Function.prototype,C$=JP.bind,x$=JP.call,Hue=C$&&C$.bind(x$),xe=C$?function(e){return e&&Hue(x$,e)}:function(e){return e&&function(){return x$.apply(e,arguments)}},Uue=xe({}.toString),Wue=xe("".slice),Co=function(e){return Wue(Uue(e),8,-1)},Kb=Q.Object,que=xe("".split),a6=pt(function(){return!Kb("z").propertyIsEnumerable(0)})?function(e){return Co(e)=="String"?que(e,""):Kb(e)}:Kb,Gue=Q.TypeError,Rp=function(e){if(e==null)throw Gue("Can't call method on "+e);return e},_a=function(e){return a6(Rp(e))},at=function(e){return typeof e=="function"},ht=function(e){return typeof e=="object"?e!==null:at(e)},Kue=function(e){return at(e)?e:void 0},zu=function(e,t){return arguments.length<2?Kue(Q[e]):Q[e]&&Q[e][t]},Wd=xe({}.isPrototypeOf),sl=zu("navigator","userAgent")||"",I7=Q.process,N7=Q.Deno,R7=I7&&I7.versions||N7&&N7.version,L7=R7&&R7.v8;L7&&(xg=(Pi=L7.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!xg&&sl&&(!(Pi=sl.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=sl.match(/Chrome\/(\d+)/))&&(xg=+Pi[1]);var qd=xg,A$=!!Object.getOwnPropertySymbols&&!pt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qd&&qd<41}),u6=A$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yue=Q.Object,O$=u6?function(e){return typeof e=="symbol"}:function(e){var t=zu("Symbol");return at(t)&&Wd(t.prototype,Yue(e))},Xue=Q.String,G0=function(e){try{return Xue(e)}catch{return"Object"}},Jue=Q.TypeError,Sa=function(e){if(at(e))return e;throw Jue(G0(e)+" is not a function")},Gd=function(e,t){var n=e[t];return n==null?void 0:Sa(n)},Zue=Q.TypeError,Que=Object.defineProperty,s6=function(e,t){try{Que(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},aa=Q["__core-js_shared__"]||s6("__core-js_shared__",{}),l6=i6(function(e){(e.exports=function(t,n){return aa[t]||(aa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ese=Q.Object,O1=function(e){return ese(Rp(e))},tse=xe({}.hasOwnProperty),Kt=Object.hasOwn||function(e,t){return tse(O1(e),t)},nse=0,rse=Math.random(),ose=xe(1 .toString),c6=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ose(++nse+rse,36)},cf=l6("wks"),Su=Q.Symbol,j7=Su&&Su.for,ise=u6?Su:Su&&Su.withoutSetter||c6,jt=function(e){if(!Kt(cf,e)||!A$&&typeof cf[e]!="string"){var t="Symbol."+e;A$&&Kt(Su,e)?cf[e]=Su[e]:cf[e]=u6&&j7?j7(t):ise(t)}return cf[e]},ase=Q.TypeError,use=jt("toPrimitive"),sse=function(e,t){if(!ht(e)||O$(e))return e;var n,r=Gd(e,use);if(r){if(t===void 0&&(t="default"),n=ct(r,e,t),!ht(n)||O$(n))return n;throw ase("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&at(a=o.toString)&&!ht(u=ct(a,o))||at(a=o.valueOf)&&!ht(u=ct(a,o))||i!=="string"&&at(a=o.toString)&&!ht(u=ct(a,o)))return u;throw Zue("Can't convert object to primitive value")}(e,t)},f6=function(e){var t=sse(e,"string");return O$(t)?t:t+""},_$=Q.document,lse=ht(_$)&&ht(_$.createElement),Kd=function(e){return lse?_$.createElement(e):{}},ZP=!Bo&&!pt(function(){return Object.defineProperty(Kd("div"),"a",{get:function(){return 7}}).a!=7}),M7=Object.getOwnPropertyDescriptor,d6={f:Bo?M7:function(e,t){if(e=_a(e),t=f6(t),ZP)try{return M7(e,t)}catch{}if(Kt(e,t))return A1(!ct(Vue.f,e,t),e[t])}},cse=Q.String,fse=Q.TypeError,sn=function(e){if(ht(e))return e;throw fse(cse(e)+" is not an object")},dse=Q.TypeError,z7=Object.defineProperty,ci={f:Bo?z7:function(e,t,n){if(sn(e),t=f6(t),sn(n),ZP)try{return z7(e,t,n)}catch{}if("get"in n||"set"in n)throw dse("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ni=Bo?function(e,t,n){return ci.f(e,t,A1(1,n))}:function(e,t,n){return e[t]=n,e},pse=xe(Function.toString);at(aa.inspectSource)||(aa.inspectSource=function(e){return pse(e)});var K0,nd,Y0,_1=aa.inspectSource,V7=Q.WeakMap,QP=at(V7)&&/native code/.test(_1(V7)),H7=l6("keys"),p6=function(e){return H7[e]||(H7[e]=c6(e))},k1={},k$=Q.TypeError,hse=Q.WeakMap;if(QP||aa.state){var Wa=aa.state||(aa.state=new hse),gse=xe(Wa.get),U7=xe(Wa.has),vse=xe(Wa.set);K0=function(e,t){if(U7(Wa,e))throw new k$("Object already initialized");return t.facade=e,vse(Wa,e,t),t},nd=function(e){return gse(Wa,e)||{}},Y0=function(e){return U7(Wa,e)}}else{var As=p6("state");k1[As]=!0,K0=function(e,t){if(Kt(e,As))throw new k$("Object already initialized");return t.facade=e,ni(e,As,t),t},nd=function(e){return Kt(e,As)?e[As]:{}},Y0=function(e){return Kt(e,As)}}var lr={set:K0,get:nd,has:Y0,enforce:function(e){return Y0(e)?nd(e):K0(e,{})},getterFor:function(e){return function(t){var n;if(!ht(t)||(n=nd(t)).type!==e)throw k$("Incompatible receiver, "+e+" required");return n}}},eI=Function.prototype,mse=Bo&&Object.getOwnPropertyDescriptor,Yb=Kt(eI,"name"),ic={EXISTS:Yb,PROPER:Yb&&function(){}.name==="something",CONFIGURABLE:Yb&&(!Bo||Bo&&mse(eI,"name").configurable)},rr=i6(function(e){var t=ic.CONFIGURABLE,n=lr.get,r=lr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;at(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kt(u,"name")||t&&u.name!==p)&&ni(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Q?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ni(i,a,u)):f?i[a]=u:s6(a,u)})(Function.prototype,"toString",function(){return at(this)&&n(this).source||_1(this)})}),yse=Math.ceil,bse=Math.floor,T1=function(e){var t=+e;return t!=t||t===0?0:(t>0?bse:yse)(t)},wse=Math.max,$se=Math.min,Yd=function(e,t){var n=T1(e);return n<0?wse(n+t,0):$se(n,t)},Ese=Math.min,tI=function(e){return e>0?Ese(T1(e),9007199254740991):0},Lp=function(e){return tI(e.length)},W7=function(e){return function(t,n,r){var o,i=_a(t),a=Lp(i),u=Yd(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}},nI={includes:W7(!0),indexOf:W7(!1)},Sse=nI.indexOf,q7=xe([].push),rI=function(e,t){var n,r=_a(e),o=0,i=[];for(n in r)!Kt(k1,n)&&Kt(r,n)&&q7(i,n);for(;t.length>o;)Kt(r,n=t[o++])&&(~Sse(i,n)||q7(i,n));return i},X0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dse=X0.concat("length","prototype"),J0={f:Object.getOwnPropertyNames||function(e){return rI(e,Dse)}},Cse={f:Object.getOwnPropertySymbols},xse=xe([].concat),Ase=zu("Reflect","ownKeys")||function(e){var t=J0.f(sn(e)),n=Cse.f;return n?xse(t,n(e)):t},Ose=function(e,t){for(var n=Ase(t),r=ci.f,o=d6.f,i=0;i<n.length;i++){var a=n[i];Kt(e,a)||r(e,a,o(t,a))}},_se=/#|\.prototype\./,jp=function(e,t){var n=Tse[kse(e)];return n==Bse||n!=Fse&&(at(t)?pt(t):!!t)},kse=jp.normalize=function(e){return String(e).replace(_se,".").toLowerCase()},Tse=jp.data={},Fse=jp.NATIVE="N",Bse=jp.POLYFILL="P",Z0=jp,Pse=d6.f,zn=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Q:l?Q[u]||s6(u,{}):(Q[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Pse(n,r))&&a.value:n[r],!Z0(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ose(i,o)}(e.sham||o&&o.sham)&&ni(i,"sham",!0),rr(n,r,i,e)}},oI={};oI[jt("toStringTag")]="z";var ff,h6=String(oI)==="[object z]",Ise=jt("toStringTag"),Nse=Q.Object,Rse=Co(function(){return arguments}())=="Arguments",F1=h6?Co:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Nse(e),Ise))=="string"?n:Rse?Co(t):(r=Co(t))=="Object"&&at(t.callee)?"Arguments":r},Lse=Q.String,wr=function(e){if(F1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Lse(e)},T$=`
- \v\f\r \u2028\u2029\uFEFF`,G7=xe("".replace),Q0="["+T$+"]",jse=RegExp("^"+Q0+Q0+"*"),Mse=RegExp(Q0+Q0+"*$"),Xb=function(e){return function(t){var n=wr(Rp(t));return 1&e&&(n=G7(n,jse,"")),2&e&&(n=G7(n,Mse,"")),n}},zse={start:Xb(1),end:Xb(2),trim:Xb(3)},Vse=ic.PROPER,Hse=zse.trim;function K7(e){return e.length?e[0].tagName.toLowerCase():""}function iI(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=O(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}zn({target:"String",proto:!0,forced:(ff="trim",pt(function(){return!!T$[ff]()||"
"[ff]()!=="
"||Vse&&T$[ff].name!==ff}))},{trim:function(){return Hse(this)}}),zn({global:!0},{globalThis:Q}),To&&(O.fn.append=To),ko&&(O.fn.on=ko),ha&&(O.fn.focus=ha),Oo&&(O.fn.attr=Oo),_o&&(O.fn.val=_o),pa&&(O.fn.html=pa),Zg&&(O.fn.parent=Zg),bl&&(O.fn.hasClass=bl),Cl&&(O.fn.empty=Cl);var Use={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=i===void 0?"":i,u=o.width,s=u===void 0?"auto":u,l=o.height,c=l===void 0?"auto":l,f=A.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0){var d=iI(a,s,c);r=Ce("div",{className:"w-e-textarea-video-container","data-selected":f?"true":"",innerHTML:d})}else{var p=Ce("video",{controls:!0},Ce("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- 抱歉,浏览器不支持 video 视频`);s!=="auto"&&(p.data.width=s),c!=="auto"&&(p.data.height=c),r=Ce("div",{className:"w-e-textarea-video-container","data-selected":f?"true":""},p)}return xl("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},Lh,Wse={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=r===void 0?"":r,i=n.width,a=i===void 0?"auto":i,u=n.height,s=u===void 0?"auto":u,l=`<div data-w-e-type="video" data-w-e-is-void>
- `;return o.trim().indexOf("<iframe ")===0?l+=iI(o,a,s):l+='<video controls="true" width="'+a+'" height="'+s+'"><source src="'+o+'" type="video/mp4"/></video>',l+=`
- </div>`}},qse=Object.keys||function(e){return rI(e,X0)},Gse=Bo?Object.defineProperties:function(e,t){sn(e);for(var n,r=_a(t),o=qse(t),i=o.length,a=0;i>a;)ci.f(e,n=o[a++],r[n]);return e},F$=zu("document","documentElement"),aI=p6("IE_PROTO"),Jb=function(){},uI=function(e){return"<script>"+e+"<\/script>"},Y7=function(e){e.write(uI("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ag=function(){try{Lh=new ActiveXObject("htmlfile")}catch{}var e,t;Ag=typeof document<"u"?document.domain&&Lh?Y7(Lh):((t=Kd("iframe")).style.display="none",F$.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(uI("document.F=Object")),e.close(),e.F):Y7(Lh);for(var n=X0.length;n--;)delete Ag.prototype[X0[n]];return Ag()};k1[aI]=!0;var g6=Object.create||function(e,t){var n;return e!==null?(Jb.prototype=sn(e),n=new Jb,Jb.prototype=null,n[aI]=e):n=Ag(),t===void 0?n:Gse(n,t)},B$=jt("unscopables"),P$=Array.prototype;P$[B$]==null&&ci.f(P$,B$,{configurable:!0,value:g6(null)});var rd=function(e){P$[B$][e]=!0},Kse=nI.includes;zn({target:"Array",proto:!0},{includes:function(e){return Kse(this,e,arguments.length>1?arguments[1]:void 0)}}),rd("includes");var Yse={selector:"iframe,video,p",preParseHtml:function(e){var t=O(e),n=t;if(K7(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=O(o))}}var a=K7(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=O('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},X7=xe(xe.bind),Xd=function(e,t){return Sa(e),t===void 0?e:X7?X7(e,t):function(){return e.apply(t,arguments)}},ev=Array.isArray||function(e){return Co(e)=="Array"},sI=function(){},Xse=[],lI=zu("Reflect","construct"),v6=/^\s*(?:class|function)\b/,Jse=xe(v6.exec),Zse=!v6.exec(sI),df=function(e){if(!at(e))return!1;try{return lI(sI,Xse,e),!0}catch{return!1}},m6=!lI||pt(function(){var e;return df(df.call)||!df(Object)||!df(function(){e=!0})||e})?function(e){if(!at(e))return!1;switch(F1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Zse||!!Jse(v6,_1(e))}:df,Qse=jt("species"),J7=Q.Array,ele=function(e,t){return new(function(n){var r;return ev(n)&&(r=n.constructor,(m6(r)&&(r===J7||ev(r.prototype))||ht(r)&&(r=r[Qse])===null)&&(r=void 0)),r===void 0?J7:r}(e))(t===0?0:t)},Z7=xe([].push),Ii=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=O1(s),v=a6(g),h=Xd(l,c),y=Lp(v),b=0,m=f||ele,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:Z7($,d)}else switch(e){case 4:return!1;case 7:Z7($,d)}return i?-1:r||o?o:$}},y6={forEach:Ii(0),map:Ii(1),filter:Ii(2),some:Ii(3),every:Ii(4),find:Ii(5),findIndex:Ii(6),filterReject:Ii(7)},tle=y6.find,Q7=!0;"find"in[]&&Array(1).find(function(){Q7=!1}),zn({target:"Array",proto:!0,forced:Q7},{find:function(e){return tle(this,e,arguments.length>1?arguments[1]:void 0)}}),rd("find");var nle=h6?{}.toString:function(){return"[object "+F1(this)+"]"};function e9(e,t,n){return t===void 0&&(t="auto"),n===void 0&&(n="auto"),{type:"video",src:e,width:t,height:n,children:[{text:""}]}}h6||rr(Object.prototype,"toString",nle,{unsafe:!0});var t9,Zb,rle={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=O(e),o="",i="auto",a="auto",u=r.find("iframe");if(u.length>0)return i=u.attr("width")||"auto",a=u.attr("height")||"auto",e9(o=u[0].outerHTML,i,a);var s=r.find("video");return(o=s.attr("src")||"")||s.length>0&&(o=s.find("source").attr("src")||""),e9(o,i=s.attr("width")||"auto",a=s.attr("height")||"auto")}},cI=function(){var e=sn(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},b6=Q.RegExp,I$=pt(function(){var e=b6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),ole=I$||pt(function(){return!b6("a","y").sticky}),ile={BROKEN_CARET:I$||pt(function(){var e=b6("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:ole,UNSUPPORTED_Y:I$},ale=Q.RegExp,ule=pt(function(){var e=ale(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),sle=Q.RegExp,lle=pt(function(){var e=sle("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),cle=lr.get,fle=l6("native-string-replace",String.prototype.replace),tv=RegExp.prototype.exec,N$=tv,dle=xe("".charAt),ple=xe("".indexOf),hle=xe("".replace),Qb=xe("".slice),e2=(Zb=/b*/g,ct(tv,t9=/a/,"a"),ct(tv,Zb,"a"),t9.lastIndex!==0||Zb.lastIndex!==0),n9=ile.BROKEN_CARET,t2=/()??/.exec("")[1]!==void 0;(e2||t2||n9||ule||lle)&&(N$=function(e){var t,n,r,o,i,a,u,s=this,l=cle(s),c=wr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ct(N$,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=n9&&s.sticky,g=ct(cI,s),v=s.source,h=0,y=c;if(p&&(g=hle(g,"y",""),ple(g,"g")===-1&&(g+="g"),y=Qb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&dle(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),t2&&(n=new RegExp("^"+v+"$(?!\\s)",g)),e2&&(r=s.lastIndex),o=ct(tv,p?n:s,y),p?o?(o.input=Qb(o.input,h),o[0]=Qb(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:e2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),t2&&o&&o.length>1&&ct(fle,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=g6(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var nv=N$;zn({target:"RegExp",proto:!0,forced:/./.exec!==nv},{exec:nv});var w6=Function.prototype,r9=w6.apply,gle=w6.bind,o9=w6.call,fI=typeof Reflect=="object"&&Reflect.apply||(gle?o9.bind(r9):function(){return o9.apply(r9,arguments)}),vle=jt("species"),n2=RegExp.prototype,mle=xe("".charAt),i9=xe("".charCodeAt),yle=xe("".slice),a9=function(e){return function(t,n){var r,o,i=wr(Rp(t)),a=T1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=i9(i,a))<55296||r>56319||a+1===u||(o=i9(i,a+1))<56320||o>57343?e?mle(i,a):r:e?yle(i,a,a+2):o-56320+(r-55296<<10)+65536}},dI={codeAt:a9(!1),charAt:a9(!0)},ble=dI.charAt,wle=function(e,t,n){return t+(n?ble(e,t).length:1)},$le=Math.floor,r2=xe("".charAt),Ele=xe("".replace),o2=xe("".slice),Sle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dle=/\$([$&'`]|\d{1,2})/g,Cle=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Dle;return o!==void 0&&(o=O1(o),s=Sle),Ele(i,s,function(l,c){var f;switch(r2(c,0)){case"$":return"$";case"&":return e;case"`":return o2(t,0,n);case"'":return o2(t,a);case"<":f=o[o2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=$le(d/10);return p===0?l:p<=u?r[p-1]===void 0?r2(c,1):r[p-1]+r2(c,1):l}f=r[d-1]}return f===void 0?"":f})},xle=Q.TypeError,Ale=function(e,t){var n=e.exec;if(at(n)){var r=ct(n,e,t);return r!==null&&sn(r),r}if(Co(e)==="RegExp")return ct(nv,e,t);throw xle("RegExp#exec called on incompatible receiver")},R$=jt("replace"),Ole=Math.max,_le=Math.min,kle=xe([].concat),i2=xe([].push),u9=xe("".indexOf),s9=xe("".slice),Tle="a".replace(/./,"$0")==="$0",l9=!!/./[R$]&&/./[R$]("a","$0")==="";function pI(e){return e===void 0&&(e="r"),e+"-"+gk()}(function(e,t,n,r){var o=jt(e),i=!pt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!pt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[vle]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=xe(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=xe(l),v=c.exec;return v===nv||v===n2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});rr(String.prototype,e,s[0]),rr(n2,o,s[1])}r&&ni(n2[o],"sham",!0)})("replace",function(e,t,n){var r=l9?"$":"$0";return[function(o,i){var a=Rp(this),u=o==null?void 0:Gd(o,R$);return u?ct(u,o,a,i):ct(t,wr(a),o,i)},function(o,i){var a=sn(this),u=wr(o);if(typeof i=="string"&&u9(i,r)===-1&&u9(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=at(i);l||(i=wr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ale(a,u);if(p===null||(i2(d,p),!c))break;wr(p[0])===""&&(a.lastIndex=wle(u,tI(a.lastIndex),f))}for(var g,v="",h=0,y=0;y<d.length;y++){for(var b=wr((p=d[y])[0]),m=Ole(_le(T1(p.index),u.length),0),$=[],E=1;E<p.length;E++)i2($,(g=p[E])===void 0?g:String(g));var S=p.groups;if(l){var x=kle([b],$,m,u);S!==void 0&&i2(x,S);var B=wr(fI(i,void 0,x))}else B=Cle(b,u,m,$,S,i);m>=h&&(v+=s9(u,h,m)+B,h=m+b.length)}return v+s9(u,h)}]},!!pt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Tle||l9);var rv=Q.Promise,ov=function(e,t,n){for(var r in t)rr(e,r,t[r],n);return e},Fle=Q.String,Ble=Q.TypeError,Rl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=xe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return sn(r),function(i){if(typeof i=="object"||at(i))return i;throw Ble("Can't set "+Fle(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Ple=ci.f,c9=jt("toStringTag"),iv=function(e,t,n){e&&!Kt(e=n?e:e.prototype,c9)&&Ple(e,c9,{configurable:!0,value:t})},f9=jt("species"),Ile=Q.TypeError,$6=function(e,t){if(Wd(t,e))return e;throw Ile("Incorrect invocation")},Ll={},Nle=jt("iterator"),Rle=Array.prototype,Lle=jt("iterator"),d9=function(e){if(e!=null)return Gd(e,Lle)||Gd(e,"@@iterator")||Ll[F1(e)]},jle=Q.TypeError,p9=function(e,t,n){var r,o;sn(e);try{if(!(r=Gd(e,"return"))){if(t==="throw")throw n;return n}r=ct(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return sn(r),n},Mle=Q.TypeError,Og=function(e,t){this.stopped=e,this.result=t},h9=Og.prototype,av=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),g=!(!n||!n.INTERRUPTED),v=Xd(t,f),h=function(b){return r&&p9(r,"normal",b),new Og(!0,b)},y=function(b){return d?(sn(b),g?v(b[0],b[1],h):v(b[0],b[1])):g?v(b,h):v(b)};if(p)r=e;else{if(!(o=d9(e)))throw Mle(G0(e)+" is not iterable");if((c=o)!==void 0&&(Ll.Array===c||Rle[Nle]===c)){for(i=0,a=Lp(e);a>i;i++)if((u=y(e[i]))&&Wd(h9,u))return u;return new Og(!1)}r=function(b,m){var $=arguments.length<2?d9(b):m;if(Sa($))return sn(ct($,b));throw jle(G0(b)+" is not iterable")}(e,o)}for(s=r.next;!(l=ct(s,r)).done;){try{u=y(l.value)}catch(b){p9(r,"throw",b)}if(typeof u=="object"&&u&&Wd(h9,u))return u}return new Og(!1)},hI=jt("iterator"),gI=!1;try{var zle=0,g9={next:function(){return{done:!!zle++}},return:function(){gI=!0}};g9[hI]=function(){return this},Array.from(g9,function(){throw 2})}catch{}var Jd,Os,v9,a2,vI=function(e,t){if(!t&&!gI)return!1;var n=!1;try{var r={};r[hI]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Vle=Q.TypeError,Hle=jt("species"),Ule=function(e,t){var n,r=sn(e).constructor;return r===void 0||(n=sn(r)[Hle])==null?t:function(o){if(m6(o))return o;throw Vle(G0(o)+" is not a constructor")}(n)},mI=xe([].slice),yI=/(?:ipad|iphone|ipod).*applewebkit/i.test(sl),ua=Co(Q.process)=="process",L$=Q.setImmediate,j$=Q.clearImmediate,Wle=Q.process,u2=Q.Dispatch,qle=Q.Function,m9=Q.MessageChannel,Gle=Q.String,s2=0,od={};try{Jd=Q.location}catch{}var E6=function(e){if(Kt(od,e)){var t=od[e];delete od[e],t()}},l2=function(e){return function(){E6(e)}},y9=function(e){E6(e.data)},b9=function(e){Q.postMessage(Gle(e),Jd.protocol+"//"+Jd.host)};L$&&j$||(L$=function(e){var t=mI(arguments,1);return od[++s2]=function(){fI(at(e)?e:qle(e),void 0,t)},Os(s2),s2},j$=function(e){delete od[e]},ua?Os=function(e){Wle.nextTick(l2(e))}:u2&&u2.now?Os=function(e){u2.now(l2(e))}:m9&&!yI?(a2=(v9=new m9).port2,v9.port1.onmessage=y9,Os=Xd(a2.postMessage,a2)):Q.addEventListener&&at(Q.postMessage)&&!Q.importScripts&&Jd&&Jd.protocol!=="file:"&&!pt(b9)?(Os=b9,Q.addEventListener("message",y9,!1)):Os="onreadystatechange"in Kd("script")?function(e){F$.appendChild(Kd("script")).onreadystatechange=function(){F$.removeChild(this),E6(e)}}:function(e){setTimeout(l2(e),0)});var pf,iu,id,Us,c2,f2,d2,w9,bI={set:L$,clear:j$},Kle=/ipad|iphone|ipod/i.test(sl)&&Q.Pebble!==void 0,Yle=/web0s(?!.*chrome)/i.test(sl),Xle=d6.f,p2=bI.set,$9=Q.MutationObserver||Q.WebKitMutationObserver,E9=Q.document,S9=Q.process,jh=Q.Promise,D9=Xle(Q,"queueMicrotask"),wI=D9&&D9.value;wI||(pf=function(){var e,t;for(ua&&(e=S9.domain)&&e.exit();iu;){t=iu.fn,iu=iu.next;try{t()}catch(n){throw iu?Us():id=void 0,n}}id=void 0,e&&e.enter()},yI||ua||Yle||!$9||!E9?!Kle&&jh&&jh.resolve?((d2=jh.resolve(void 0)).constructor=jh,w9=Xd(d2.then,d2),Us=function(){w9(pf)}):ua?Us=function(){S9.nextTick(pf)}:(p2=Xd(p2,Q),Us=function(){p2(pf)}):(c2=!0,f2=E9.createTextNode(""),new $9(pf).observe(f2,{characterData:!0}),Us=function(){f2.data=c2=!c2}));var h2,C9,$I,x9,EI=wI||function(e){var t={fn:e,next:void 0};id&&(id.next=t),iu||(iu=t,Us()),id=t},Jle=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Sa(t),this.reject=Sa(n)},S6={f:function(e){return new Jle(e)}},M$=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Zle=typeof window=="object",SI=bI.set,Qle=jt("species"),vo="Promise",A9=lr.getterFor(vo),ece=lr.set,tce=lr.getterFor(vo),Qa=rv&&rv.prototype,$o=rv,hf=Qa,DI=Q.TypeError,z$=Q.document,D6=Q.process,ll=S6.f,nce=ll,rce=!!(z$&&z$.createEvent&&Q.dispatchEvent),CI=at(Q.PromiseRejectionEvent),xI=!1,ad=Z0(vo,function(){var e=_1($o),t=e!==String($o);if(!t&&qd===66)return!0;if(qd>=51&&/native code/.test(e))return!1;var n=new $o(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Qle]=r,!(xI=n.then(function(){})instanceof r)||!t&&Zle&&!CI}),oce=ad||!vI(function(e){$o.all(e).catch(function(){})}),AI=function(e){var t;return!(!ht(e)||!at(t=e.then))&&t},C6=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;EI(function(){for(var r=e.value,o=e.state==1,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||(e.rejection===2&&ace(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(DI("Promise-chain cycle")):(u=AI(a))?ct(u,a,f,d):f(a)):d(r)}catch(g){p&&!s&&p.exit(),d(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ice(e)})}},OI=function(e,t,n){var r,o;rce?((r=z$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!CI&&(o=Q["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=Q.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},ice=function(e){ct(SI,Q,function(){var t,n=e.facade,r=e.value;if(O9(e)&&(t=M$(function(){ua?D6.emit("unhandledRejection",r,n):OI("unhandledrejection",n,r)}),e.rejection=ua||O9(e)?2:1,t.error))throw t.value})},O9=function(e){return e.rejection!==1&&!e.parent},ace=function(e){ct(SI,Q,function(){var t=e.facade;ua?D6.emit("rejectionHandled",t):OI("rejectionhandled",t,e.value)})},Js=function(e,t,n){return function(r){e(t,r,n)}},cl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,C6(e,!0))},V$=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw DI("Promise can't be resolved itself");var r=AI(t);r?EI(function(){var o={done:!1};try{ct(r,t,Js(V$,o,e),Js(cl,o,e))}catch(i){cl(o,i,e)}}):(e.value=t,e.state=1,C6(e,!1))}catch(o){cl({done:!1},o,e)}}};if(ad&&(hf=($o=function(e){$6(this,hf),Sa(e),ct(h2,this);var t=A9(this);try{e(Js(V$,t),Js(cl,t))}catch(n){cl(t,n)}}).prototype,(h2=function(e){ece(this,{type:vo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ov(hf,{then:function(e,t){var n=tce(this),r=n.reactions,o=ll(Ule(this,$o));return o.ok=!at(e)||e,o.fail=at(t)&&t,o.domain=ua?D6.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&C6(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),C9=function(){var e=new h2,t=A9(e);this.promise=e,this.resolve=Js(V$,t),this.reject=Js(cl,t)},S6.f=ll=function(e){return e===$o||e===$I?new C9(e):nce(e)},at(rv)&&Qa!==Object.prototype)){x9=Qa.then,xI||(rr(Qa,"then",function(e,t){var n=this;return new $o(function(r,o){ct(x9,n,r,o)}).then(e,t)},{unsafe:!0}),rr(Qa,"catch",hf.catch,{unsafe:!0}));try{delete Qa.constructor}catch{}Rl&&Rl(Qa,hf)}function Zd(e,t){return C1(this,void 0,void 0,function(){var n,r,o,i,a,u,s;return x1(this,function(l){switch(l.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),r=n.onInsertedVideo,o=n.checkVideo,i=n.parseVideoSrc,[4,o(t)]):[2];case 1:return typeof(a=l.sent())=="string"?(e.alert(a,"error"),[2]):a==null?[2]:[4,i(t)];case 2:return(u=l.sent()).trim().indexOf("<iframe ")!==0&&(u=u.replace(/</g,"<").replace(/>/g,">")),s={type:"video",src:u,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(e,s)}),r(s),[2]}})})}function _9(){return pI("w-e-insert-video")}zn({global:!0,wrap:!0,forced:ad},{Promise:$o}),iv($o,vo,!1),function(e){var t=zu(e),n=ci.f;Bo&&t&&!t[f9]&&n(t,f9,{configurable:!0,get:function(){return this}})}(vo),$I=zu(vo),zn({target:vo,stat:!0,forced:ad},{reject:function(e){var t=ll(this);return ct(t.reject,void 0,e),t.promise}}),zn({target:vo,stat:!0,forced:ad},{resolve:function(e){return function(t,n){if(sn(t),ht(n)&&n.constructor===t)return n;var r=S6.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),zn({target:vo,stat:!0,forced:oce},{all:function(e){var t=this,n=ll(t),r=n.resolve,o=n.reject,i=M$(function(){var a=Sa(t.resolve),u=[],s=0,l=1;av(e,function(c){var f=s++,d=!1;l++,ct(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ll(t),r=n.reject,o=M$(function(){var i=Sa(t.resolve);av(e,function(a){ct(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var uce=function(){function e(){this.title=Z("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=_9(),this.buttonId=_9()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){return A.getNodeType(r)==="pre"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this.srcInputId,o=this.buttonId,i=ul(Or(Z("videoModule.videoSrc"),r,Z("videoModule.insertPlaceHolder")),2),a=i[0],u=i[1],s=O(u),l=ul(Xl(o,Z("videoModule.ok")),1)[0];if(this.$content==null){var c=O("<div></div>");c.on("click","#"+o,function(d){return C1(n,void 0,void 0,function(){var p;return x1(this,function(g){switch(g.label){case 0:return d.preventDefault(),p=c.find("#"+r).val().trim(),[4,Zd(t,p)];case 1:return g.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=c}var f=this.$content;return f.empty(),f.append(a),f.append(l),s.val(""),setTimeout(function(){s.focus()}),f[0]},e}(),sce=xe([].join),lce=a6!=Object,cce=function(e,t){var n=[][e];return!!n&&pt(function(){n.call(null,t||function(){throw 1},1)})}("join",",");zn({target:"Array",proto:!0,forced:lce||!cce},{join:function(e){return sce(_a(this),e===void 0?",":e)}});var Du,k9,T9,fce=!pt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),F9=p6("IE_PROTO"),H$=Q.Object,dce=H$.prototype,uv=fce?H$.getPrototypeOf:function(e){var t=O1(e);if(Kt(t,F9))return t[F9];var n=t.constructor;return at(n)&&t instanceof n?n.prototype:t instanceof H$?dce:null},U$=jt("iterator"),_I=!1;[].keys&&("next"in(T9=[].keys())?(k9=uv(uv(T9)))!==Object.prototype&&(Du=k9):_I=!0);var pce=Du==null||pt(function(){var e={};return Du[U$].call(e)!==e});pce&&(Du={}),at(Du[U$])||rr(Du,U$,function(){return this});var x6={IteratorPrototype:Du,BUGGY_SAFARI_ITERATORS:_I},hce=x6.IteratorPrototype,gce=function(){return this},vce=ic.PROPER,mce=ic.CONFIGURABLE,B9=x6.IteratorPrototype,Mh=x6.BUGGY_SAFARI_ITERATORS,gf=jt("iterator"),yce=function(){return this},kI=function(e,t,n,r,o,i,a){(function(y,b,m,$){var E=b+" Iterator";y.prototype=g6(hce,{next:A1(+!$,m)}),iv(y,E,!1),Ll[E]=gce})(n,t,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!Mh&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,g=p[gf]||p["@@iterator"]||o&&p[o],v=!Mh&&g||c(o),h=t=="Array"&&p.entries||g;if(h&&(u=uv(h.call(new e)))!==Object.prototype&&u.next&&(uv(u)!==B9&&(Rl?Rl(u,B9):at(u[gf])||rr(u,gf,yce)),iv(u,f,!0)),vce&&o=="values"&&g&&g.name!=="values"&&(mce?ni(p,"name","values"):(d=!0,v=function(){return ct(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Mh||d||!(l in p))&&rr(p,l,s[l]);else zn({target:t,proto:!0,forced:Mh||d},s);return p[gf]!==v&&rr(p,gf,v,{name:o}),Ll[t]=v,s},bce=lr.set,wce=lr.getterFor("Array Iterator"),Nf=kI(Array,"Array",function(e,t){bce(this,{type:"Array Iterator",target:_a(e),index:0,kind:t})},function(){var e=wce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Ll.Arguments=Ll.Array,rd("keys"),rd("values"),rd("entries");var $ce=dI.charAt,Ece=lr.set,Sce=lr.getterFor("String Iterator");kI(String,"String",function(e){Ece(this,{type:"String Iterator",string:wr(e),index:0})},function(){var e,t=Sce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$ce(n,r),t.index+=e.length,{value:e,done:!1})});var TI=function(e,t,n){var r=f6(t);r in e?ci.f(e,r,A1(0,n)):e[r]=n},Dce=Q.Array,Cce=Math.max,FI=J0.f,BI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xce=function(e){try{return FI(e)}catch{return function(n,r,o){for(var i=Lp(n),a=Yd(r,i),u=Yd(o===void 0?i:o,i),s=Dce(Cce(u-a,0)),l=0;a<u;a++,l++)TI(s,l,n[a]);return s.length=l,s}(BI)}},Ace={f:function(e){return BI&&Co(e)=="Window"?xce(e):FI(_a(e))}},P9=pt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),zh=Object.isExtensible,lu=pt(function(){zh(1)})||P9?function(e){return!!ht(e)&&(!P9||Co(e)!="ArrayBuffer")&&(!zh||zh(e))}:zh,Oce=!pt(function(){return Object.isExtensible(Object.preventExtensions({}))}),A6=i6(function(e){var t=ci.f,n=!1,r=c6("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=J0.f,s=xe([].splice),l={};l[r]=1,u(l).length&&(J0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},zn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ace.f}))},fastKey:function(u,s){if(!ht(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Kt(u,r)){if(!lu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Kt(u,r)){if(!lu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Oce&&n&&lu(u)&&!Kt(u,r)&&i(u),u}};k1[r]=!0}),Vh=A6.getWeakData,_ce=lr.set,kce=lr.getterFor,Tce=y6.find,Fce=y6.findIndex,Bce=xe([].splice),Pce=0,Hh=function(e){return e.frozen||(e.frozen=new PI)},PI=function(){this.entries=[]},g2=function(e,t){return Tce(e.entries,function(n){return n[0]===t})};PI.prototype={get:function(e){var t=g2(this,e);if(t)return t[1]},has:function(e){return!!g2(this,e)},set:function(e,t){var n=g2(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Fce(this.entries,function(n){return n[0]===e});return~t&&Bce(this.entries,t,1),!!~t}};var vf,II={getConstructor:function(e,t,n,r){var o=e(function(s,l){$6(s,i),_ce(s,{type:t,id:Pce++,frozen:void 0}),l!=null&&av(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=kce(t),u=function(s,l,c){var f=a(s),d=Vh(sn(l),!0);return d===!0?Hh(f).set(l,c):d[f.id]=c,s};return ov(i,{delete:function(s){var l=a(this);if(!ht(s))return!1;var c=Vh(s);return c===!0?Hh(l).delete(s):c&&Kt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ht(s))return!1;var c=Vh(s);return c===!0?Hh(l).has(s):c&&Kt(c,l.id)}}),ov(i,n?{get:function(s){var l=a(this);if(ht(s)){var c=Vh(s);return c===!0?Hh(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Uh=lr.enforce,Ice=!Q.ActiveXObject&&"ActiveXObject"in Q,NI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Nce=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=Q[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=xe(u[h]);rr(u,h,h=="add"?function(b){return y(this,b===0?0:b),this}:h=="delete"?function(b){return!(o&&!ht(b))&&y(this,b===0?0:b)}:h=="get"?function(b){return o&&!ht(b)?void 0:y(this,b===0?0:b)}:h=="has"?function(b){return!(o&&!ht(b))&&y(this,b===0?0:b)}:function(b,m){return y(this,b===0?0:b,m),this})};if(Z0(e,!at(a)||!(o||u.forEach&&!pt(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),A6.enable();else if(Z0(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=pt(function(){f.has(1)}),g=vI(function(h){new a(h)}),v=!o&&pt(function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)});g||((s=t(function(h,y){$6(h,u);var b=function(m,$,E){var S,x;return Rl&&at(S=$.constructor)&&S!==E&&ht(x=S.prototype)&&x!==E.prototype&&Rl(m,x),m}(new a,h,s);return y!=null&&av(y,b[i],{that:b,AS_ENTRIES:r}),b})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,zn({global:!0,forced:s!=a},l),iv(s,e),o||n.setStrong(s,e,r),s}("WeakMap",NI,II);if(QP&&Ice){vf=II.getConstructor(NI,"WeakMap",!0),A6.enable();var mf=Nce.prototype,I9=xe(mf.delete),Wh=xe(mf.has),N9=xe(mf.get),R9=xe(mf.set);ov(mf,{delete:function(e){if(ht(e)&&!lu(e)){var t=Uh(this);return t.frozen||(t.frozen=new vf),I9(this,e)||t.frozen.delete(e)}return I9(this,e)},has:function(e){if(ht(e)&&!lu(e)){var t=Uh(this);return t.frozen||(t.frozen=new vf),Wh(this,e)||t.frozen.has(e)}return Wh(this,e)},get:function(e){if(ht(e)&&!lu(e)){var t=Uh(this);return t.frozen||(t.frozen=new vf),Wh(this,e)?N9(this,e):t.frozen.get(e)}return N9(this,e)},set:function(e,t){if(ht(e)&&!lu(e)){var n=Uh(this);n.frozen||(n.frozen=new vf),Wh(this,e)?R9(this,e,t):n.frozen.set(e,t)}else R9(this,e,t);return this}})}var RI={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},v2=Kd("span").classList,L9=v2&&v2.constructor&&v2.constructor.prototype,Rce=L9===Object.prototype?void 0:L9,m2=jt("iterator"),j9=jt("toStringTag"),y2=Nf.values,LI=function(e,t){if(e){if(e[m2]!==y2)try{ni(e,m2,y2)}catch{e[m2]=y2}if(e[j9]||ni(e,j9,t),RI[t]){for(var n in Nf)if(e[n]!==Nf[n])try{ni(e,n,Nf[n])}catch{e[n]=Nf[n]}}}};for(var b2 in RI)LI(Q[b2]&&Q[b2].prototype,b2);LI(Rce,"DOMTokenList");var Lce=ic.EXISTS,jce=ci.f,jI=Function.prototype,Mce=xe(jI.toString),MI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zce=xe(MI.exec);Bo&&!Lce&&jce(jI,"name",{configurable:!0,get:function(){try{return zce(MI,Mce(this))[1]}catch{return""}}});var Vce=jt("species"),Hce=function(e){return qd>=51||!pt(function(){var t=[];return(t.constructor={})[Vce]=function(){return{foo:1}},t[e](Boolean).foo!==1})}("slice"),Uce=jt("species"),w2=Q.Array,Wce=Math.max;function zI(e){return e.getMenuConfig("uploadVideo")}zn({target:"Array",proto:!0,forced:!Hce},{slice:function(e,t){var n,r,o,i=_a(this),a=Lp(i),u=Yd(e,a),s=Yd(t===void 0?a:t,a);if(ev(i)&&(n=i.constructor,(m6(n)&&(n===w2||ev(n.prototype))||ht(n)&&(n=n[Uce])===null)&&(n=void 0),n===w2||n===void 0))return mI(i,u,s);for(r=new(n===void 0?w2:n)(Wce(s-u,0)),o=0;u<s;u++,o++)u in i&&TI(r,o,i[u]);return r.length=o,r}});var M9=new WeakMap;function qce(e,t){return C1(this,void 0,void 0,function(){var n,r,o,i;return x1(this,function(a){switch(a.label){case 0:return n=function(u){var s=M9.get(u);if(s!=null)return s;var l=zI(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,g=l.onError;return s=vF(q0(q0({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,h){if(p)p(h,function(S){return Zd(u,S)});else{var y=h.errno,b=y===void 0?1:y,m=h.data,$=m===void 0?{}:m;if(b!==0)return console.error("'"+v.name+"' upload failed",h),void d(v,h);var E=$.url;Zd(u,E===void 0?"":E),c(v,h)}},onError:function(v,h,y){var b=v.name;console.error("'"+b+" upload error",h,y),g&&g(v,h,y)}})),M9.set(u,s),s}(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 Gce=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c){return Zd(t,c)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=O("body"),l=O('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,g;C1(this,void 0,void 0,function(){var v,h,y,b,m,$;return x1(this,function(E){switch(E.label){case 0:if(d==null)return[2];v=Array.prototype.slice.call(d),h=zI(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),y=zue(v),E.label=2;case 2:return[4,y.next()];case 3:return(b=E.sent()).done?[3,8]:(m=b.value,h?[4,h(m,function(S){return Zd(f,S)})]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,qce(f,m)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return $=E.sent(),p={error:$},[3,15];case 10:return E.trys.push([10,,13,14]),b&&!b.done&&(g=y.return)?[4,g.call(y)]:[3,12];case 11:E.sent(),E.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){return A.getNodeType(r)==="pre"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),Kce=ic.PROPER,W$=RegExp.prototype,VI=W$.toString,Yce=xe(cI),Xce=pt(function(){return VI.call({source:"a",flags:"b"})!="/a/b"}),Jce=Kce&&VI.name!="toString";function $2(){return pI("w-e-insert-video")}(Xce||Jce)&&rr(RegExp.prototype,"toString",function(){var e=sn(this),t=wr(e.source),n=e.flags;return"/"+t+"/"+wr(n===void 0&&Wd(W$,e)&&!("flags"in W$)?Yce(e):n)},{unsafe:!0});var Zce=function(){function e(){this.title=Z("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=$2(),this.heightInputId=$2(),this.buttonId=$2()}return e.prototype.getSelectedVideoNode=function(t){return A.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=ul(Or(Z("videoModule.width"),r,"auto"),2),u=a[0],s=a[1],l=O(s),c=ul(Or(Z("videoModule.height"),o,"auto"),2),f=c[0],d=c[1],p=O(d),g=ul(Xl(i,Z("videoModule.ok")),1)[0];if(this.$content==null){var v=O("<div></div>");v.on("click","#"+i,function(S){S.preventDefault();var x=v.find("#"+r).val().trim(),B=v.find("#"+o).val().trim(),I=parseInt(x),H=parseInt(B),G=I?I.toString():"auto",Y=H?H.toString():"auto";t.restoreSelection(),N.setNodes(t,{width:G,height:Y},{match:function(U){return A.checkNodeType(U,"video")}}),t.hidePanelOrModal()}),this.$content=v}var h=this.$content;h.empty(),h.append(u),h.append(f),h.append(g);var y=this.getSelectedVideoNode(t);if(y==null)return h[0];var b=y.width,m=b===void 0?"auto":b,$=y.height,E=$===void 0?"auto":$;return l.val(m),p.val(E),setTimeout(function(){l.focus()}),h[0]},e}(),Qce={renderElems:[Use],elemsToHtml:[Wse],preParseHtml:[Yse],parseElemsHtml:[rle],menus:[{key:"insertVideo",factory:function(){return new uce},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Gce},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){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new Zce}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=ul(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Un("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Un("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var z9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O6(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ni,_g,qh=function(e){return e&&e.Math==Math&&e},J=qh(typeof globalThis=="object"&&globalThis)||qh(typeof window=="object"&&window)||qh(typeof self=="object"&&self)||qh(typeof z9=="object"&&z9)||function(){return this}()||Function("return this")(),gt=function(e){try{return!!e()}catch{return!0}},Po=!gt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yf=Function.prototype.call,tt=yf.bind?yf.bind(yf):function(){return yf.apply(yf,arguments)},V9={}.propertyIsEnumerable,H9=Object.getOwnPropertyDescriptor,efe={f:H9&&!V9.call({1:2},1)?function(e){var t=H9(this,e);return!!t&&t.enumerable}:V9},B1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},HI=Function.prototype,q$=HI.bind,G$=HI.call,tfe=q$&&q$.bind(G$),Ne=q$?function(e){return e&&tfe(G$,e)}:function(e){return e&&function(){return G$.apply(e,arguments)}},nfe=Ne({}.toString),rfe=Ne("".slice),Yr=function(e){return rfe(nfe(e),8,-1)},E2=J.Object,ofe=Ne("".split),_6=gt(function(){return!E2("z").propertyIsEnumerable(0)})?function(e){return Yr(e)=="String"?ofe(e,""):E2(e)}:E2,ife=J.TypeError,Qd=function(e){if(e==null)throw ife("Can't call method on "+e);return e},ka=function(e){return _6(Qd(e))},ut=function(e){return typeof e=="function"},dt=function(e){return typeof e=="object"?e!==null:ut(e)},afe=function(e){return ut(e)?e:void 0},Vu=function(e,t){return arguments.length<2?afe(J[e]):J[e]&&J[e][t]},ep=Ne({}.isPrototypeOf),fl=Vu("navigator","userAgent")||"",U9=J.process,W9=J.Deno,q9=U9&&U9.versions||W9&&W9.version,G9=q9&&q9.v8;G9&&(_g=(Ni=G9.split("."))[0]>0&&Ni[0]<4?1:+(Ni[0]+Ni[1])),!_g&&fl&&(!(Ni=fl.match(/Edge\/(\d+)/))||Ni[1]>=74)&&(Ni=fl.match(/Chrome\/(\d+)/))&&(_g=+Ni[1]);var tp=_g,K$=!!Object.getOwnPropertySymbols&&!gt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tp&&tp<41}),k6=K$&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ufe=J.Object,Y$=k6?function(e){return typeof e=="symbol"}:function(e){var t=Vu("Symbol");return ut(t)&&ep(t.prototype,ufe(e))},sfe=J.String,sv=function(e){try{return sfe(e)}catch{return"Object"}},lfe=J.TypeError,Da=function(e){if(ut(e))return e;throw lfe(sv(e)+" is not a function")},np=function(e,t){var n=e[t];return n==null?void 0:Da(n)},cfe=J.TypeError,ffe=Object.defineProperty,T6=function(e,t){try{ffe(J,e,{value:t,configurable:!0,writable:!0})}catch{J[e]=t}return t},sa=J["__core-js_shared__"]||T6("__core-js_shared__",{}),F6=O6(function(e){(e.exports=function(t,n){return sa[t]||(sa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dfe=J.Object,B6=function(e){return dfe(Qd(e))},pfe=Ne({}.hasOwnProperty),Yt=Object.hasOwn||function(e,t){return pfe(B6(e),t)},hfe=0,gfe=Math.random(),vfe=Ne(1 .toString),P6=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vfe(++hfe+gfe,36)},bf=F6("wks"),Cu=J.Symbol,K9=Cu&&Cu.for,mfe=k6?Cu:Cu&&Cu.withoutSetter||P6,Mt=function(e){if(!Yt(bf,e)||!K$&&typeof bf[e]!="string"){var t="Symbol."+e;K$&&Yt(Cu,e)?bf[e]=Cu[e]:bf[e]=k6&&K9?K9(t):mfe(t)}return bf[e]},yfe=J.TypeError,bfe=Mt("toPrimitive"),wfe=function(e,t){if(!dt(e)||Y$(e))return e;var n,r=np(e,bfe);if(r){if(t===void 0&&(t="default"),n=tt(r,e,t),!dt(n)||Y$(n))return n;throw yfe("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&ut(a=o.toString)&&!dt(u=tt(a,o))||ut(a=o.valueOf)&&!dt(u=tt(a,o))||i!=="string"&&ut(a=o.toString)&&!dt(u=tt(a,o)))return u;throw cfe("Can't convert object to primitive value")}(e,t)},I6=function(e){var t=wfe(e,"string");return Y$(t)?t:t+""},X$=J.document,$fe=dt(X$)&&dt(X$.createElement),rp=function(e){return $fe?X$.createElement(e):{}},UI=!Po&&!gt(function(){return Object.defineProperty(rp("div"),"a",{get:function(){return 7}}).a!=7}),Y9=Object.getOwnPropertyDescriptor,N6={f:Po?Y9:function(e,t){if(e=ka(e),t=I6(t),UI)try{return Y9(e,t)}catch{}if(Yt(e,t))return B1(!tt(efe.f,e,t),e[t])}},Efe=J.String,Sfe=J.TypeError,ln=function(e){if(dt(e))return e;throw Sfe(Efe(e)+" is not an object")},Dfe=J.TypeError,X9=Object.defineProperty,fi={f:Po?X9:function(e,t,n){if(ln(e),t=I6(t),ln(n),UI)try{return X9(e,t,n)}catch{}if("get"in n||"set"in n)throw Dfe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xo=Po?function(e,t,n){return fi.f(e,t,B1(1,n))}:function(e,t,n){return e[t]=n,e},Cfe=Ne(Function.toString);ut(sa.inspectSource)||(sa.inspectSource=function(e){return Cfe(e)});var lv,ud,cv,P1=sa.inspectSource,J9=J.WeakMap,WI=ut(J9)&&/native code/.test(P1(J9)),Z9=F6("keys"),R6=function(e){return Z9[e]||(Z9[e]=P6(e))},I1={},J$=J.TypeError,xfe=J.WeakMap;if(WI||sa.state){var qa=sa.state||(sa.state=new xfe),Afe=Ne(qa.get),Q9=Ne(qa.has),Ofe=Ne(qa.set);lv=function(e,t){if(Q9(qa,e))throw new J$("Object already initialized");return t.facade=e,Ofe(qa,e,t),t},ud=function(e){return Afe(qa,e)||{}},cv=function(e){return Q9(qa,e)}}else{var _s=R6("state");I1[_s]=!0,lv=function(e,t){if(Yt(e,_s))throw new J$("Object already initialized");return t.facade=e,xo(e,_s,t),t},ud=function(e){return Yt(e,_s)?e[_s]:{}},cv=function(e){return Yt(e,_s)}}var cr={set:lv,get:ud,has:cv,enforce:function(e){return cv(e)?ud(e):lv(e,{})},getterFor:function(e){return function(t){var n;if(!dt(t)||(n=ud(t)).type!==e)throw J$("Incompatible receiver, "+e+" required");return n}}},qI=Function.prototype,_fe=Po&&Object.getOwnPropertyDescriptor,S2=Yt(qI,"name"),Mp={EXISTS:S2,PROPER:S2&&function(){}.name==="something",CONFIGURABLE:S2&&(!Po||Po&&_fe(qI,"name").configurable)},or=O6(function(e){var t=Mp.CONFIGURABLE,n=cr.get,r=cr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ut(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yt(u,"name")||t&&u.name!==p)&&xo(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==J?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:xo(i,a,u)):f?i[a]=u:T6(a,u)})(Function.prototype,"toString",function(){return ut(this)&&n(this).source||P1(this)})}),kfe=Math.ceil,Tfe=Math.floor,L6=function(e){var t=+e;return t!=t||t===0?0:(t>0?Tfe:kfe)(t)},Ffe=Math.max,Bfe=Math.min,op=function(e,t){var n=L6(e);return n<0?Ffe(n+t,0):Bfe(n,t)},Pfe=Math.min,GI=function(e){return e>0?Pfe(L6(e),9007199254740991):0},zp=function(e){return GI(e.length)},eO=function(e){return function(t,n,r){var o,i=ka(t),a=zp(i),u=op(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}},Ife={includes:eO(!0),indexOf:eO(!1)}.indexOf,tO=Ne([].push),KI=function(e,t){var n,r=ka(e),o=0,i=[];for(n in r)!Yt(I1,n)&&Yt(r,n)&&tO(i,n);for(;t.length>o;)Yt(r,n=t[o++])&&(~Ife(i,n)||tO(i,n));return i},fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nfe=fv.concat("length","prototype"),dv={f:Object.getOwnPropertyNames||function(e){return KI(e,Nfe)}},Rfe={f:Object.getOwnPropertySymbols},Lfe=Ne([].concat),jfe=Vu("Reflect","ownKeys")||function(e){var t=dv.f(ln(e)),n=Rfe.f;return n?Lfe(t,n(e)):t},Mfe=function(e,t){for(var n=jfe(t),r=fi.f,o=N6.f,i=0;i<n.length;i++){var a=n[i];Yt(e,a)||r(e,a,o(t,a))}},zfe=/#|\.prototype\./,Vp=function(e,t){var n=Hfe[Vfe(e)];return n==Wfe||n!=Ufe&&(ut(t)?gt(t):!!t)},Vfe=Vp.normalize=function(e){return String(e).replace(zfe,".").toLowerCase()},Hfe=Vp.data={},Ufe=Vp.NATIVE="N",Wfe=Vp.POLYFILL="P",pv=Vp,qfe=N6.f,Eo=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?J:l?J[u]||T6(u,{}):(J[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=qfe(n,r))&&a.value:n[r],!pv(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Mfe(i,o)}(e.sham||o&&o.sham)&&xo(i,"sham",!0),or(n,r,i,e)}},hv=Array.isArray||function(e){return Yr(e)=="Array"},YI={};YI[Mt("toStringTag")]="z";var nO,j6=String(YI)==="[object z]",Gfe=Mt("toStringTag"),Kfe=J.Object,Yfe=Yr(function(){return arguments}())=="Arguments",N1=j6?Yr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Kfe(e),Gfe))=="string"?n:Yfe?Yr(t):(r=Yr(t))=="Object"&&ut(t.callee)?"Arguments":r},XI=function(){},Xfe=[],JI=Vu("Reflect","construct"),M6=/^\s*(?:class|function)\b/,Jfe=Ne(M6.exec),Zfe=!M6.exec(XI),wf=function(e){if(!ut(e))return!1;try{return JI(XI,Xfe,e),!0}catch{return!1}},z6=!JI||gt(function(){var e;return wf(wf.call)||!wf(Object)||!wf(function(){e=!0})||e})?function(e){if(!ut(e))return!1;switch(N1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Zfe||!!Jfe(M6,P1(e))}:wf,ZI=function(e,t,n){var r=I6(t);r in e?fi.f(e,r,B1(0,n)):e[r]=n},Qfe=Mt("species"),QI=Ne([].slice),ede=(nO="slice",tp>=51||!gt(function(){var e=[];return(e.constructor={})[Qfe]=function(){return{foo:1}},e[nO](Boolean).foo!==1})),tde=Mt("species"),D2=J.Array,nde=Math.max;Eo({target:"Array",proto:!0,forced:!ede},{slice:function(e,t){var n,r,o,i=ka(this),a=zp(i),u=op(e,a),s=op(t===void 0?a:t,a);if(hv(i)&&(n=i.constructor,(z6(n)&&(n===D2||hv(n.prototype))||dt(n)&&(n=n[tde])===null)&&(n=void 0),n===D2||n===void 0))return QI(i,u,s);for(r=new(n===void 0?D2:n)(nde(s-u,0)),o=0;u<s;u++,o++)u in i&&ZI(r,o,i[u]);return r.length=o,r}});var rde=j6?{}.toString:function(){return"[object "+N1(this)+"]"};j6||or(Object.prototype,"toString",rde,{unsafe:!0});var Gh,ode=J.String,la=function(e){if(N1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ode(e)},eN=function(){var e=ln(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},V6=J.RegExp,Z$=gt(function(){var e=V6("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),ide=Z$||gt(function(){return!V6("a","y").sticky}),tN={BROKEN_CARET:Z$||gt(function(){var e=V6("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:ide,UNSUPPORTED_Y:Z$},ade=Object.keys||function(e){return KI(e,fv)},ude=Po?Object.defineProperties:function(e,t){ln(e);for(var n,r=ka(t),o=ade(t),i=o.length,a=0;i>a;)fi.f(e,n=o[a++],r[n]);return e},Q$=Vu("document","documentElement"),nN=R6("IE_PROTO"),C2=function(){},rN=function(e){return"<script>"+e+"<\/script>"},rO=function(e){e.write(rN("")),e.close();var t=e.parentWindow.Object;return e=null,t},kg=function(){try{Gh=new ActiveXObject("htmlfile")}catch{}var e,t;kg=typeof document<"u"?document.domain&&Gh?rO(Gh):((t=rp("iframe")).style.display="none",Q$.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(rN("document.F=Object")),e.close(),e.F):rO(Gh);for(var n=fv.length;n--;)delete kg.prototype[fv[n]];return kg()};I1[nN]=!0;var oO,x2,H6=Object.create||function(e,t){var n;return e!==null?(C2.prototype=ln(e),n=new C2,C2.prototype=null,n[nN]=e):n=kg(),t===void 0?n:ude(n,t)},sde=J.RegExp,lde=gt(function(){var e=sde(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),cde=J.RegExp,fde=gt(function(){var e=cde("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dde=cr.get,pde=F6("native-string-replace",String.prototype.replace),gv=RegExp.prototype.exec,e3=gv,hde=Ne("".charAt),gde=Ne("".indexOf),vde=Ne("".replace),A2=Ne("".slice),O2=(x2=/b*/g,tt(gv,oO=/a/,"a"),tt(gv,x2,"a"),oO.lastIndex!==0||x2.lastIndex!==0),iO=tN.BROKEN_CARET,_2=/()??/.exec("")[1]!==void 0;(O2||_2||iO||lde||fde)&&(e3=function(e){var t,n,r,o,i,a,u,s=this,l=dde(s),c=la(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tt(e3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=iO&&s.sticky,g=tt(eN,s),v=s.source,h=0,y=c;if(p&&(g=vde(g,"y",""),gde(g,"g")===-1&&(g+="g"),y=A2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hde(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),_2&&(n=new RegExp("^"+v+"$(?!\\s)",g)),O2&&(r=s.lastIndex),o=tt(gv,p?n:s,y),p?o?(o.input=A2(o.input,h),o[0]=A2(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:O2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_2&&o&&o.length>1&&tt(pde,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=H6(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ip=e3;Eo({target:"RegExp",proto:!0,forced:/./.exec!==ip},{exec:ip});var U6=Function.prototype,aO=U6.apply,mde=U6.bind,uO=U6.call,oN=typeof Reflect=="object"&&Reflect.apply||(mde?uO.bind(aO):function(){return uO.apply(aO,arguments)}),yde=Mt("species"),k2=RegExp.prototype,bde=Mt("match"),wde=J.TypeError,$de=Mt("species"),iN=function(e,t){var n,r=ln(e).constructor;return r===void 0||(n=ln(r)[$de])==null?t:function(o){if(z6(o))return o;throw wde(sv(o)+" is not a constructor")}(n)},Ede=Ne("".charAt),sO=Ne("".charCodeAt),Sde=Ne("".slice),lO=function(e){return function(t,n){var r,o,i=la(Qd(t)),a=L6(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=sO(i,a))<55296||r>56319||a+1===u||(o=sO(i,a+1))<56320||o>57343?e?Ede(i,a):r:e?Sde(i,a,a+2):o-56320+(r-55296<<10)+65536}},aN={codeAt:lO(!1),charAt:lO(!0)},Dde=aN.charAt,Cde=function(e,t,n){return t+(n?Dde(e,t).length:1)},xde=J.Array,Ade=Math.max,t3=function(e,t,n){for(var r=zp(e),o=op(t,r),i=op(n===void 0?r:n,r),a=xde(Ade(i-o,0)),u=0;o<i;o++,u++)ZI(a,u,e[o]);return a.length=u,a},Ode=J.TypeError,cO=function(e,t){var n=e.exec;if(ut(n)){var r=tt(n,e,t);return r!==null&&ln(r),r}if(Yr(e)==="RegExp")return tt(ip,e,t);throw Ode("RegExp#exec called on incompatible receiver")},ks=tN.UNSUPPORTED_Y,_de=Math.min,uN=[].push,kde=Ne(/./.exec),Ts=Ne(uN),$f=Ne("".slice);(function(e,t,n,r){var o=Mt(e),i=!gt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!gt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[yde]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ne(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=Ne(l),v=c.exec;return v===ip||v===k2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});or(String.prototype,e,s[0]),or(k2,o,s[1])}r&&xo(k2[o],"sham",!0)})("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=la(Qd(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!dt(a=o)||!((u=a[bde])!==void 0?u:Yr(a)=="RegExp"))return tt(t,s,o,l);for(var c,f,d,p=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,h=new RegExp(o.source,g+"g");(c=tt(ip,h,s))&&!((f=h.lastIndex)>v&&(Ts(p,$f(s,v,c.index)),c.length>1&&c.index<s.length&&oN(uN,p,t3(c,1)),d=c[0].length,v=f,p.length>=l));)h.lastIndex===c.index&&h.lastIndex++;return v===s.length?!d&&kde(h,"")||Ts(p,""):Ts(p,$f(s,v)),p.length>l?t3(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:tt(t,this,o,i)}:t,[function(o,i){var a=Qd(this),u=o==null?void 0:np(o,e);return u?tt(u,o,a,i):tt(r,la(a),o,i)},function(o,i){var a=ln(this),u=la(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=iN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ks?"g":"y"),d=new l(ks?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return cO(d,u)===null?[u]:[];for(var g=0,v=0,h=[];v<u.length;){d.lastIndex=ks?0:v;var y,b=cO(d,ks?$f(u,v):u);if(b===null||(y=_de(GI(d.lastIndex+(ks?v:0)),u.length))===g)v=Cde(u,v,c);else{if(Ts(h,$f(u,g,v)),h.length===p)return h;for(var m=1;m<=b.length-1;m++)if(Ts(h,b[m]),h.length===p)return h;v=g=y}}return Ts(h,$f(u,g)),h}]},!!gt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),ks);/*! *****************************************************************************
- 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 vv=function(){return vv=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},vv.apply(this,arguments)};function W6(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function q6(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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Tde(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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 Fde(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Tde(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var n3=Mt("unscopables"),r3=Array.prototype;r3[n3]==null&&fi.f(r3,n3,{configurable:!0,value:H6(null)});var xu,fO,dO,T2=function(e){r3[n3][e]=!0},jl={},Bde=!gt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),pO=R6("IE_PROTO"),o3=J.Object,Pde=o3.prototype,mv=Bde?o3.getPrototypeOf:function(e){var t=B6(e);if(Yt(t,pO))return t[pO];var n=t.constructor;return ut(n)&&t instanceof n?n.prototype:t instanceof o3?Pde:null},i3=Mt("iterator"),sN=!1;[].keys&&("next"in(dO=[].keys())?(fO=mv(mv(dO)))!==Object.prototype&&(xu=fO):sN=!0);var Ide=xu==null||gt(function(){var e={};return xu[i3].call(e)!==e});Ide&&(xu={}),ut(xu[i3])||or(xu,i3,function(){return this});var G6={IteratorPrototype:xu,BUGGY_SAFARI_ITERATORS:sN},Nde=fi.f,hO=Mt("toStringTag"),yv=function(e,t,n){e&&!Yt(e=n?e:e.prototype,hO)&&Nde(e,hO,{configurable:!0,value:t})},Rde=G6.IteratorPrototype,Lde=function(){return this},jde=J.String,Mde=J.TypeError,Ml=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ln(r),function(i){if(typeof i=="object"||ut(i))return i;throw Mde("Can't set "+jde(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),zde=Mp.PROPER,Vde=Mp.CONFIGURABLE,gO=G6.IteratorPrototype,Kh=G6.BUGGY_SAFARI_ITERATORS,Ef=Mt("iterator"),Hde=function(){return this},lN=function(e,t,n,r,o,i,a){(function(y,b,m,$){var E=b+" Iterator";y.prototype=H6(Rde,{next:B1(+!$,m)}),yv(y,E,!1),jl[E]=Lde})(n,t,r);var u,s,l,c=function(y){if(y===o&&v)return v;if(!Kh&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,g=p[Ef]||p["@@iterator"]||o&&p[o],v=!Kh&&g||c(o),h=t=="Array"&&p.entries||g;if(h&&(u=mv(h.call(new e)))!==Object.prototype&&u.next&&(mv(u)!==gO&&(Ml?Ml(u,gO):ut(u[Ef])||or(u,Ef,Hde)),yv(u,f,!0)),zde&&o=="values"&&g&&g.name!=="values"&&(Vde?xo(p,"name","values"):(d=!0,v=function(){return tt(g,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(Kh||d||!(l in p))&&or(p,l,s[l]);else Eo({target:t,proto:!0,forced:Kh||d},s);return p[Ef]!==v&&or(p,Ef,v,{name:o}),jl[t]=v,s},Ude=cr.set,Wde=cr.getterFor("Array Iterator"),Rf=lN(Array,"Array",function(e,t){Ude(this,{type:"Array Iterator",target:ka(e),index:0,kind:t})},function(){var e=Wde(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");jl.Arguments=jl.Array,T2("keys"),T2("values"),T2("entries");var qde=aN.charAt,Gde=cr.set,Kde=cr.getterFor("String Iterator");lN(String,"String",function(e){Gde(this,{type:"String Iterator",string:la(e),index:0})},function(){var e,t=Kde(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qde(n,r),t.index+=e.length,{value:e,done:!1})});var bv=function(e,t,n){for(var r in t)or(e,r,t[r],n);return e},vO=dv.f,mO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Yde={f:function(e){return mO&&Yr(e)=="Window"?function(t){try{return vO(t)}catch{return t3(mO)}}(e):vO(ka(e))}},yO=gt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Yh=Object.isExtensible,cu=gt(function(){Yh(1)})||yO?function(e){return!!dt(e)&&(!yO||Yr(e)!="ArrayBuffer")&&(!Yh||Yh(e))}:Yh,Xde=!gt(function(){return Object.isExtensible(Object.preventExtensions({}))}),K6=O6(function(e){var t=fi.f,n=!1,r=P6("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=dv.f,s=Ne([].splice),l={};l[r]=1,u(l).length&&(dv.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Eo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Yde.f}))},fastKey:function(u,s){if(!dt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Yt(u,r)){if(!cu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Yt(u,r)){if(!cu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Xde&&n&&cu(u)&&!Yt(u,r)&&i(u),u}};I1[r]=!0}),bO=Ne(Ne.bind),ap=function(e,t){return Da(e),t===void 0?e:bO?bO(e,t):function(){return e.apply(t,arguments)}},Jde=Mt("iterator"),Zde=Array.prototype,Qde=Mt("iterator"),wO=function(e){if(e!=null)return np(e,Qde)||np(e,"@@iterator")||jl[N1(e)]},epe=J.TypeError,$O=function(e,t,n){var r,o;ln(e);try{if(!(r=np(e,"return"))){if(t==="throw")throw n;return n}r=tt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ln(r),n},tpe=J.TypeError,Tg=function(e,t){this.stopped=e,this.result=t},EO=Tg.prototype,wv=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),g=!(!n||!n.INTERRUPTED),v=ap(t,f),h=function(b){return r&&$O(r,"normal",b),new Tg(!0,b)},y=function(b){return d?(ln(b),g?v(b[0],b[1],h):v(b[0],b[1])):g?v(b,h):v(b)};if(p)r=e;else{if(!(o=wO(e)))throw tpe(sv(e)+" is not iterable");if((c=o)!==void 0&&(jl.Array===c||Zde[Jde]===c)){for(i=0,a=zp(e);a>i;i++)if((u=y(e[i]))&&ep(EO,u))return u;return new Tg(!1)}r=function(b,m){var $=arguments.length<2?wO(b):m;if(Da($))return ln(tt($,b));throw epe(sv(b)+" is not iterable")}(e,o)}for(s=r.next;!(l=tt(s,r)).done;){try{u=y(l.value)}catch(b){$O(r,"throw",b)}if(typeof u=="object"&&u&&ep(EO,u))return u}return new Tg(!1)},npe=J.TypeError,Y6=function(e,t){if(ep(t,e))return e;throw npe("Incorrect invocation")},cN=Mt("iterator"),fN=!1;try{var rpe=0,SO={next:function(){return{done:!!rpe++}},return:function(){fN=!0}};SO[cN]=function(){return this},Array.from(SO,function(){throw 2})}catch{}var dN=function(e,t){if(!t&&!fN)return!1;var n=!1;try{var r={};r[cN]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},ope=Mt("species"),DO=J.Array,ipe=function(e,t){return new(function(n){var r;return hv(n)&&(r=n.constructor,(z6(r)&&(r===DO||hv(r.prototype))||dt(r)&&(r=r[ope])===null)&&(r=void 0)),r===void 0?DO:r}(e))(t===0?0:t)},CO=Ne([].push),Ri=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=B6(s),v=_6(g),h=ap(l,c),y=zp(v),b=0,m=f||ipe,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:CO($,d)}else switch(e){case 4:return!1;case 7:CO($,d)}return i?-1:r||o?o:$}},X6={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},Xh=K6.getWeakData,ape=cr.set,upe=cr.getterFor,spe=X6.find,lpe=X6.findIndex,cpe=Ne([].splice),fpe=0,Jh=function(e){return e.frozen||(e.frozen=new pN)},pN=function(){this.entries=[]},F2=function(e,t){return spe(e.entries,function(n){return n[0]===t})};pN.prototype={get:function(e){var t=F2(this,e);if(t)return t[1]},has:function(e){return!!F2(this,e)},set:function(e,t){var n=F2(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=lpe(this.entries,function(n){return n[0]===e});return~t&&cpe(this.entries,t,1),!!~t}};var Sf,hN={getConstructor:function(e,t,n,r){var o=e(function(s,l){Y6(s,i),ape(s,{type:t,id:fpe++,frozen:void 0}),l!=null&&wv(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=upe(t),u=function(s,l,c){var f=a(s),d=Xh(ln(l),!0);return d===!0?Jh(f).set(l,c):d[f.id]=c,s};return bv(i,{delete:function(s){var l=a(this);if(!dt(s))return!1;var c=Xh(s);return c===!0?Jh(l).delete(s):c&&Yt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!dt(s))return!1;var c=Xh(s);return c===!0?Jh(l).has(s):c&&Yt(c,l.id)}}),bv(i,n?{get:function(s){var l=a(this);if(dt(s)){var c=Xh(s);return c===!0?Jh(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Zh=cr.enforce,dpe=!J.ActiveXObject&&"ActiveXObject"in J,gN=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ppe=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=J[e],u=a&&a.prototype,s=a,l={},c=function(h){var y=Ne(u[h]);or(u,h,h=="add"?function(b){return y(this,b===0?0:b),this}:h=="delete"?function(b){return!(o&&!dt(b))&&y(this,b===0?0:b)}:h=="get"?function(b){return o&&!dt(b)?void 0:y(this,b===0?0:b)}:h=="has"?function(b){return!(o&&!dt(b))&&y(this,b===0?0:b)}:function(b,m){return y(this,b===0?0:b,m),this})};if(pv(e,!ut(a)||!(o||u.forEach&&!gt(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),K6.enable();else if(pv(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=gt(function(){f.has(1)}),g=dN(function(h){new a(h)}),v=!o&>(function(){for(var h=new a,y=5;y--;)h[i](y,y);return!h.has(-0)});g||((s=t(function(h,y){Y6(h,u);var b=function(m,$,E){var S,x;return Ml&&ut(S=$.constructor)&&S!==E&&dt(x=S.prototype)&&x!==E.prototype&&Ml(m,x),m}(new a,h,s);return y!=null&&wv(y,b[i],{that:b,AS_ENTRIES:r}),b})).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Eo({global:!0,forced:s!=a},l),yv(s,e),o||n.setStrong(s,e,r),s}("WeakMap",gN,hN);if(WI&&dpe){Sf=hN.getConstructor(gN,"WeakMap",!0),K6.enable();var Df=ppe.prototype,xO=Ne(Df.delete),Qh=Ne(Df.has),AO=Ne(Df.get),OO=Ne(Df.set);bv(Df,{delete:function(e){if(dt(e)&&!cu(e)){var t=Zh(this);return t.frozen||(t.frozen=new Sf),xO(this,e)||t.frozen.delete(e)}return xO(this,e)},has:function(e){if(dt(e)&&!cu(e)){var t=Zh(this);return t.frozen||(t.frozen=new Sf),Qh(this,e)||t.frozen.has(e)}return Qh(this,e)},get:function(e){if(dt(e)&&!cu(e)){var t=Zh(this);return t.frozen||(t.frozen=new Sf),Qh(this,e)?AO(this,e):t.frozen.get(e)}return AO(this,e)},set:function(e,t){if(dt(e)&&!cu(e)){var n=Zh(this);n.frozen||(n.frozen=new Sf),Qh(this,e)?OO(this,e,t):n.frozen.set(e,t)}else OO(this,e,t);return this}})}var $v={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},B2=rp("span").classList,_O=B2&&B2.constructor&&B2.constructor.prototype,vN=_O===Object.prototype?void 0:_O,P2=Mt("iterator"),kO=Mt("toStringTag"),I2=Rf.values,mN=function(e,t){if(e){if(e[P2]!==I2)try{xo(e,P2,I2)}catch{e[P2]=I2}if(e[kO]||xo(e,kO,t),$v[t]){for(var n in Rf)if(e[n]!==Rf[n])try{xo(e,n,Rf[n])}catch{e[n]=Rf[n]}}}};for(var N2 in $v)mN(J[N2]&&J[N2].prototype,N2);mN(vN,"DOMTokenList");var hpe=Mp.EXISTS,gpe=fi.f,yN=Function.prototype,vpe=Ne(yN.toString),bN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mpe=Ne(bN.exec);Po&&!hpe&&gpe(yN,"name",{configurable:!0,get:function(){try{return mpe(bN,vpe(this))[1]}catch{return""}}});var wN=function(e,t){var n=[][e];return!!n&>(function(){n.call(null,t||function(){throw 1},1)})},ype=X6.forEach,R2=wN("forEach")?[].forEach:function(e){return ype(this,e,arguments.length>1?arguments[1]:void 0)},$N=function(e){if(e&&e.forEach!==R2)try{xo(e,"forEach",R2)}catch{e.forEach=R2}};for(var L2 in $v)$v[L2]&&$N(J[L2]&&J[L2].prototype);$N(vN);var up,Fs,TO,j2,Ev=J.Promise,FO=Mt("species"),EN=/(?:ipad|iphone|ipod).*applewebkit/i.test(fl),ca=Yr(J.process)=="process",a3=J.setImmediate,u3=J.clearImmediate,bpe=J.process,M2=J.Dispatch,wpe=J.Function,BO=J.MessageChannel,$pe=J.String,z2=0,sd={};try{up=J.location}catch{}var J6=function(e){if(Yt(sd,e)){var t=sd[e];delete sd[e],t()}},V2=function(e){return function(){J6(e)}},PO=function(e){J6(e.data)},IO=function(e){J.postMessage($pe(e),up.protocol+"//"+up.host)};a3&&u3||(a3=function(e){var t=QI(arguments,1);return sd[++z2]=function(){oN(ut(e)?e:wpe(e),void 0,t)},Fs(z2),z2},u3=function(e){delete sd[e]},ca?Fs=function(e){bpe.nextTick(V2(e))}:M2&&M2.now?Fs=function(e){M2.now(V2(e))}:BO&&!EN?(j2=(TO=new BO).port2,TO.port1.onmessage=PO,Fs=ap(j2.postMessage,j2)):J.addEventListener&&ut(J.postMessage)&&!J.importScripts&&up&&up.protocol!=="file:"&&!gt(IO)?(Fs=IO,J.addEventListener("message",PO,!1)):Fs="onreadystatechange"in rp("script")?function(e){Q$.appendChild(rp("script")).onreadystatechange=function(){Q$.removeChild(this),J6(e)}}:function(e){setTimeout(V2(e),0)});var Cf,au,ld,Ws,H2,U2,W2,NO,SN={set:a3,clear:u3},Epe=/ipad|iphone|ipod/i.test(fl)&&J.Pebble!==void 0,Spe=/web0s(?!.*chrome)/i.test(fl),Dpe=N6.f,q2=SN.set,RO=J.MutationObserver||J.WebKitMutationObserver,LO=J.document,jO=J.process,eg=J.Promise,MO=Dpe(J,"queueMicrotask"),DN=MO&&MO.value;DN||(Cf=function(){var e,t;for(ca&&(e=jO.domain)&&e.exit();au;){t=au.fn,au=au.next;try{t()}catch(n){throw au?Ws():ld=void 0,n}}ld=void 0,e&&e.enter()},EN||ca||Spe||!RO||!LO?!Epe&&eg&&eg.resolve?((W2=eg.resolve(void 0)).constructor=eg,NO=ap(W2.then,W2),Ws=function(){NO(Cf)}):ca?Ws=function(){jO.nextTick(Cf)}:(q2=ap(q2,J),Ws=function(){q2(Cf)}):(H2=!0,U2=LO.createTextNode(""),new RO(Cf).observe(U2,{characterData:!0}),Ws=function(){U2.data=H2=!H2}));var G2,zO,CN,VO,xN=DN||function(e){var t={fn:e,next:void 0};ld&&(ld.next=t),au||(au=t,Ws()),ld=t},Cpe=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Da(t),this.reject=Da(n)},Z6={f:function(e){return new Cpe(e)}},s3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},xpe=typeof window=="object",AN=SN.set,Ape=Mt("species"),mo="Promise",HO=cr.getterFor(mo),Ope=cr.set,_pe=cr.getterFor(mo),eu=Ev&&Ev.prototype,So=Ev,xf=eu,ON=J.TypeError,l3=J.document,Q6=J.process,dl=Z6.f,kpe=dl,Tpe=!!(l3&&l3.createEvent&&J.dispatchEvent),_N=ut(J.PromiseRejectionEvent),kN=!1,cd=pv(mo,function(){var e=P1(So),t=e!==String(So);if(!t&&tp===66)return!0;if(tp>=51&&/native code/.test(e))return!1;var n=new So(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Ape]=r,!(kN=n.then(function(){})instanceof r)||!t&&xpe&&!_N}),Fpe=cd||!dN(function(e){So.all(e).catch(function(){})}),TN=function(e){var t;return!(!dt(e)||!ut(t=e.then))&&t},eS=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;xN(function(){for(var r=e.value,o=e.state==1,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||(e.rejection===2&&Ppe(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(ON("Promise-chain cycle")):(u=TN(a))?tt(u,a,f,d):f(a)):d(r)}catch(g){p&&!s&&p.exit(),d(g)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bpe(e)})}},FN=function(e,t,n){var r,o;Tpe?((r=l3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),J.dispatchEvent(r)):r={promise:t,reason:n},!_N&&(o=J["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=J.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Bpe=function(e){tt(AN,J,function(){var t,n=e.facade,r=e.value;if(UO(e)&&(t=s3(function(){ca?Q6.emit("unhandledRejection",r,n):FN("unhandledrejection",n,r)}),e.rejection=ca||UO(e)?2:1,t.error))throw t.value})},UO=function(e){return e.rejection!==1&&!e.parent},Ppe=function(e){tt(AN,J,function(){var t=e.facade;ca?Q6.emit("rejectionHandled",t):FN("rejectionhandled",t,e.value)})},Zs=function(e,t,n){return function(r){e(t,r,n)}},pl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,eS(e,!0))},c3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw ON("Promise can't be resolved itself");var r=TN(t);r?xN(function(){var o={done:!1};try{tt(r,t,Zs(c3,o,e),Zs(pl,o,e))}catch(i){pl(o,i,e)}}):(e.value=t,e.state=1,eS(e,!1))}catch(o){pl({done:!1},o,e)}}};if(cd&&(xf=(So=function(e){Y6(this,xf),Da(e),tt(G2,this);var t=HO(this);try{e(Zs(c3,t),Zs(pl,t))}catch(n){pl(t,n)}}).prototype,(G2=function(e){Ope(this,{type:mo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=bv(xf,{then:function(e,t){var n=_pe(this),r=n.reactions,o=dl(iN(this,So));return o.ok=!ut(e)||e,o.fail=ut(t)&&t,o.domain=ca?Q6.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&eS(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),zO=function(){var e=new G2,t=HO(e);this.promise=e,this.resolve=Zs(c3,t),this.reject=Zs(pl,t)},Z6.f=dl=function(e){return e===So||e===CN?new zO(e):kpe(e)},ut(Ev)&&eu!==Object.prototype)){VO=eu.then,kN||(or(eu,"then",function(e,t){var n=this;return new So(function(r,o){tt(VO,n,r,o)}).then(e,t)},{unsafe:!0}),or(eu,"catch",xf.catch,{unsafe:!0}));try{delete eu.constructor}catch{}Ml&&Ml(eu,xf)}Eo({global:!0,wrap:!0,forced:cd},{Promise:So}),yv(So,mo,!1),function(e){var t=Vu(e),n=fi.f;Po&&t&&!t[FO]&&n(t,FO,{configurable:!0,get:function(){return this}})}(mo),CN=Vu(mo),Eo({target:mo,stat:!0,forced:cd},{reject:function(e){var t=dl(this);return tt(t.reject,void 0,e),t.promise}}),Eo({target:mo,stat:!0,forced:cd},{resolve:function(e){return function(t,n){if(ln(t),dt(n)&&n.constructor===t)return n;var r=Z6.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Eo({target:mo,stat:!0,forced:Fpe},{all:function(e){var t=this,n=dl(t),r=n.resolve,o=n.reject,i=s3(function(){var a=Da(t.resolve),u=[],s=0,l=1;wv(e,function(c){var f=s++,d=!1;l++,tt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=dl(t),r=n.reject,o=s3(function(){var i=Da(t.resolve);wv(e,function(a){tt(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ipe=Mp.PROPER,f3=RegExp.prototype,BN=f3.toString,Npe=Ne(eN),Rpe=gt(function(){return BN.call({source:"a",flags:"b"})!="/a/b"}),Lpe=Ipe&&BN.name!="toString";(Rpe||Lpe)&&or(RegExp.prototype,"toString",function(){var e=ln(this),t=la(e.source),n=e.flags;return"/"+t+"/"+la(n===void 0&&ep(f3,e)&&!("flags"in f3)?Npe(e):n)},{unsafe:!0});var WO=new WeakMap;function PN(e){return e.getMenuConfig("uploadImage")}function jpe(e,t){return W6(this,void 0,void 0,function(){return q6(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;vu(e,a,t.name,u),r("ok")}}})]})})}function Mpe(e,t){return W6(this,void 0,void 0,function(){var n,r,o,i;return q6(this,function(a){switch(a.label){case 0:return n=function(u){var s=WO.get(u);if(s!=null)return s;var l=PN(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,g=l.onError;return s=vF(vv(vv({},l),{onProgress:function(v){u.showProgressBar(v),f&&f(v)},onSuccess:function(v,h){if(p)p(h,function(H,G,Y){return vu(u,H,G,Y)});else{var y=h.errno,b=y===void 0?1:y,m=h.data,$=m===void 0?{}:m;if(b!==0)return console.error("'"+v.name+"' upload failed",h),void d(v,h);if(Array.isArray($))$.forEach(function(H){var G=H.url,Y=G===void 0?"":G,U=H.alt,ie=U===void 0?"":U,re=H.href;vu(u,Y,ie,re===void 0?"":re)});else{var E=$.url,S=E===void 0?"":E,x=$.alt,B=x===void 0?"":x,I=$.href;vu(u,S,B,I===void 0?"":I)}c(v,h)}},onError:function(v,h,y){var b=v.name;console.error("'"+b+" upload error",h,y),g&&g(v,h,y)}})),WO.set(u,s),s}(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 IN(e,t){var n,r;return W6(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return q6(this,function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=PN(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Fde(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,jpe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(g,v,h){return vu(e,g,v,h)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Mpe(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 zpe=Ne([].join),Vpe=_6!=Object,Hpe=wN("join",",");Eo({target:"Array",proto:!0,forced:Vpe||!Hpe},{join:function(e){return zpe(ka(this),e===void 0?",":e)}});To&&(O.fn.append=To),ko&&(O.fn.on=ko),Dl&&(O.fn.remove=Dl),_o&&(O.fn.val=_o),yD&&(O.fn.click=yD),$l&&(O.fn.hide=$l);var Upe=function(){function e(){this.title=Z("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(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return d1(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,d){return vu(t,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=O("body"),l=O('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;IN(t,c)})}},e}(),Wpe={menus:[{key:"uploadImage",factory:function(){return new Upe},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){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(d1(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(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?IN(e,o):t(r)}},n}};Un("en",{highLightModule:{selectLang:"Language"}}),Un("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Sv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tS(e){var t={exports:{}};return e(t,t.exports),t.exports}var Li,Fg,tg=function(e){return e&&e.Math==Math&&e},Le=tg(typeof globalThis=="object"&&globalThis)||tg(typeof window=="object"&&window)||tg(typeof self=="object"&&self)||tg(typeof Sv=="object"&&Sv)||function(){return this}()||Function("return this")(),qpe=Object.defineProperty,nS=function(e,t){try{qpe(Le,e,{value:t,configurable:!0,writable:!0})}catch{Le[e]=t}return t},fa=Le["__core-js_shared__"]||nS("__core-js_shared__",{}),rS=tS(function(e){(e.exports=function(t,n){return fa[t]||(fa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),NN=Function.prototype,d3=NN.bind,p3=NN.call,Gpe=d3&&d3.bind(p3),nt=d3?function(e){return e&&Gpe(p3,e)}:function(e){return e&&function(){return p3.apply(e,arguments)}},Kpe=Le.TypeError,zl=function(e){if(e==null)throw Kpe("Can't call method on "+e);return e},Ype=Le.Object,oS=function(e){return Ype(zl(e))},Xpe=nt({}.hasOwnProperty),Fr=Object.hasOwn||function(e,t){return Xpe(oS(e),t)},Jpe=0,Zpe=Math.random(),Qpe=nt(1 .toString),RN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qpe(++Jpe+Zpe,36)},On=function(e){return typeof e=="function"},ehe=function(e){return On(e)?e:void 0},Hp=function(e,t){return arguments.length<2?ehe(Le[e]):Le[e]&&Le[e][t]},K2=Hp("navigator","userAgent")||"",qO=Le.process,GO=Le.Deno,KO=qO&&qO.versions||GO&&GO.version,YO=KO&&KO.v8;YO&&(Fg=(Li=YO.split("."))[0]>0&&Li[0]<4?1:+(Li[0]+Li[1])),!Fg&&K2&&(!(Li=K2.match(/Edge\/(\d+)/))||Li[1]>=74)&&(Li=K2.match(/Chrome\/(\d+)/))&&(Fg=+Li[1]);var XO=Fg,un=function(e){try{return!!e()}catch{return!0}},h3=!!Object.getOwnPropertySymbols&&!un(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&XO&&XO<41}),iS=h3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Af=rS("wks"),Au=Le.Symbol,JO=Au&&Au.for,the=iS?Au:Au&&Au.withoutSetter||RN,Ta=function(e){if(!Fr(Af,e)||!h3&&typeof Af[e]!="string"){var t="Symbol."+e;h3&&Fr(Au,e)?Af[e]=Au[e]:Af[e]=iS&&JO?JO(t):the(t)}return Af[e]},LN={};LN[Ta("toStringTag")]="z";var aS=String(LN)==="[object z]",Io=!un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ur=function(e){return typeof e=="object"?e!==null:On(e)},g3=Le.document,nhe=Ur(g3)&&Ur(g3.createElement),uS=function(e){return nhe?g3.createElement(e):{}},jN=!Io&&!un(function(){return Object.defineProperty(uS("div"),"a",{get:function(){return 7}}).a!=7}),rhe=Le.String,ohe=Le.TypeError,Zr=function(e){if(Ur(e))return e;throw ohe(rhe(e)+" is not an object")},Of=Function.prototype.call,nn=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},MN=nt({}.isPrototypeOf),ihe=Le.Object,v3=iS?function(e){return typeof e=="symbol"}:function(e){var t=Hp("Symbol");return On(t)&&MN(t.prototype,ihe(e))},ahe=Le.String,zN=function(e){try{return ahe(e)}catch{return"Object"}},uhe=Le.TypeError,VN=function(e){if(On(e))return e;throw uhe(zN(e)+" is not a function")},HN=function(e,t){var n=e[t];return n==null?void 0:VN(n)},she=Le.TypeError,lhe=Le.TypeError,che=Ta("toPrimitive"),fhe=function(e,t){if(!Ur(e)||v3(e))return e;var n,r=HN(e,che);if(r){if(t===void 0&&(t="default"),n=nn(r,e,t),!Ur(n)||v3(n))return n;throw lhe("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(o,i){var a,u;if(i==="string"&&On(a=o.toString)&&!Ur(u=nn(a,o))||On(a=o.valueOf)&&!Ur(u=nn(a,o))||i!=="string"&&On(a=o.toString)&&!Ur(u=nn(a,o)))return u;throw she("Can't convert object to primitive value")}(e,t)},sS=function(e){var t=fhe(e,"string");return v3(t)?t:t+""},dhe=Le.TypeError,ZO=Object.defineProperty,R1={f:Io?ZO:function(e,t,n){if(Zr(e),t=sS(t),Zr(n),jN)try{return ZO(e,t,n)}catch{}if("get"in n||"set"in n)throw dhe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},lS=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Vl=Io?function(e,t,n){return R1.f(e,t,lS(1,n))}:function(e,t,n){return e[t]=n,e},phe=nt(Function.toString);On(fa.inspectSource)||(fa.inspectSource=function(e){return phe(e)});var Dv,fd,Cv,cS=fa.inspectSource,QO=Le.WeakMap,hhe=On(QO)&&/native code/.test(cS(QO)),e_=rS("keys"),UN=function(e){return e_[e]||(e_[e]=RN(e))},fS={},m3=Le.TypeError,ghe=Le.WeakMap;if(hhe||fa.state){var Ga=fa.state||(fa.state=new ghe),vhe=nt(Ga.get),t_=nt(Ga.has),mhe=nt(Ga.set);Dv=function(e,t){if(t_(Ga,e))throw new m3("Object already initialized");return t.facade=e,mhe(Ga,e,t),t},fd=function(e){return vhe(Ga,e)||{}},Cv=function(e){return t_(Ga,e)}}else{var Bs=UN("state");fS[Bs]=!0,Dv=function(e,t){if(Fr(e,Bs))throw new m3("Object already initialized");return t.facade=e,Vl(e,Bs,t),t},fd=function(e){return Fr(e,Bs)?e[Bs]:{}},Cv=function(e){return Fr(e,Bs)}}var y3={set:Dv,get:fd,has:Cv,enforce:function(e){return Cv(e)?fd(e):Dv(e,{})},getterFor:function(e){return function(t){var n;if(!Ur(t)||(n=fd(t)).type!==e)throw m3("Incompatible receiver, "+e+" required");return n}}},WN=Function.prototype,yhe=Io&&Object.getOwnPropertyDescriptor,Y2=Fr(WN,"name"),qN={EXISTS:Y2,PROPER:Y2&&function(){}.name==="something",CONFIGURABLE:Y2&&(!Io||Io&&yhe(WN,"name").configurable)},sp=tS(function(e){var t=qN.CONFIGURABLE,n=y3.get,r=y3.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;On(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Fr(u,"name")||t&&u.name!==p)&&Vl(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Le?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Vl(i,a,u)):f?i[a]=u:nS(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||cS(this)})}),bhe=nt({}.toString),whe=nt("".slice),da=function(e){return whe(bhe(e),8,-1)},$he=Ta("toStringTag"),Ehe=Le.Object,She=da(function(){return arguments}())=="Arguments",dS=aS?da:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Ehe(e),$he))=="string"?n:She?da(t):(r=da(t))=="Object"&&On(t.callee)?"Arguments":r},Dhe=aS?{}.toString:function(){return"[object "+dS(this)+"]"};aS||sp(Object.prototype,"toString",Dhe,{unsafe:!0});var Che,n_,r_={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},X2=uS("span").classList,o_=X2&&X2.constructor&&X2.constructor.prototype,xhe=o_===Object.prototype?void 0:o_,i_=nt(nt.bind),J2=Le.Object,Ahe=nt("".split),pS=un(function(){return!J2("z").propertyIsEnumerable(0)})?function(e){return da(e)=="String"?Ahe(e,""):J2(e)}:J2,Ohe=Math.ceil,_he=Math.floor,hS=function(e){var t=+e;return t!=t||t===0?0:(t>0?_he:Ohe)(t)},khe=Math.min,GN=function(e){return e>0?khe(hS(e),9007199254740991):0},gS=function(e){return GN(e.length)},a_=Array.isArray||function(e){return da(e)=="Array"},KN=function(){},The=[],YN=Hp("Reflect","construct"),vS=/^\s*(?:class|function)\b/,Fhe=nt(vS.exec),Bhe=!vS.exec(KN),_f=function(e){if(!On(e))return!1;try{return YN(KN,The,e),!0}catch{return!1}},XN=!YN||un(function(){var e;return _f(_f.call)||!_f(Object)||!_f(function(){e=!0})||e})?function(e){if(!On(e))return!1;switch(dS(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bhe||!!Fhe(vS,cS(e))}:_f,Phe=Ta("species"),u_=Le.Array,Ihe=function(e,t){return new(function(n){var r;return a_(n)&&(r=n.constructor,(XN(r)&&(r===u_||a_(r.prototype))||Ur(r)&&(r=r[Phe])===null)&&(r=void 0)),r===void 0?u_:r}(e))(t===0?0:t)},s_=nt([].push),ji=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,g=oS(s),v=pS(g),h=function(E,S){return VN(E),S===void 0?E:i_?i_(E,S):function(){return E.apply(S,arguments)}}(l,c),y=gS(v),b=0,m=f||Ihe,$=t?m(s,y):n||a?m(s,0):void 0;y>b;b++)if((u||b in v)&&(p=h(d=v[b],b,g),e))if(t)$[b]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:s_($,d)}else switch(e){case 4:return!1;case 7:s_($,d)}return i?-1:r||o?o:$}},Nhe={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)}.forEach,Z2=(n_=[].forEach)&&un(function(){n_.call(null,Che||function(){throw 1},1)})?[].forEach:function(e){return Nhe(this,e,arguments.length>1?arguments[1]:void 0)},JN=function(e){if(e&&e.forEach!==Z2)try{Vl(e,"forEach",Z2)}catch{e.forEach=Z2}};for(var Q2 in r_)r_[Q2]&&JN(Le[Q2]&&Le[Q2].prototype);JN(xhe);var l_={}.propertyIsEnumerable,c_=Object.getOwnPropertyDescriptor,ZN={f:c_&&!l_.call({1:2},1)?function(e){var t=c_(this,e);return!!t&&t.enumerable}:l_},L1=function(e){return pS(zl(e))},f_=Object.getOwnPropertyDescriptor,QN={f:Io?f_:function(e,t){if(e=L1(e),t=sS(t),jN)try{return f_(e,t)}catch{}if(Fr(e,t))return lS(!nn(ZN.f,e,t),e[t])}},Rhe=Math.max,Lhe=Math.min,b3=function(e,t){var n=hS(e);return n<0?Rhe(n+t,0):Lhe(n,t)},d_=function(e){return function(t,n,r){var o,i=L1(t),a=gS(i),u=b3(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}},jhe={includes:d_(!0),indexOf:d_(!1)}.indexOf,p_=nt([].push),eR=function(e,t){var n,r=L1(e),o=0,i=[];for(n in r)!Fr(fS,n)&&Fr(r,n)&&p_(i,n);for(;t.length>o;)Fr(r,n=t[o++])&&(~jhe(i,n)||p_(i,n));return i},xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mhe=xv.concat("length","prototype"),zhe={f:Object.getOwnPropertyNames||function(e){return eR(e,Mhe)}},tR={f:Object.getOwnPropertySymbols},Vhe=nt([].concat),Hhe=Hp("Reflect","ownKeys")||function(e){var t=zhe.f(Zr(e)),n=tR.f;return n?Vhe(t,n(e)):t},Uhe=function(e,t){for(var n=Hhe(t),r=R1.f,o=QN.f,i=0;i<n.length;i++){var a=n[i];Fr(e,a)||r(e,a,o(t,a))}},Whe=/#|\.prototype\./,Up=function(e,t){var n=Ghe[qhe(e)];return n==Yhe||n!=Khe&&(On(t)?un(t):!!t)},qhe=Up.normalize=function(e){return String(e).replace(Whe,".").toLowerCase()},Ghe=Up.data={},Khe=Up.NATIVE="N",Yhe=Up.POLYFILL="P",Xhe=Up,Jhe=QN.f,j1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Le:l?Le[u]||nS(u,{}):(Le[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Jhe(n,r))&&a.value:n[r],!Xhe(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Uhe(i,o)}(e.sham||o&&o.sham)&&Vl(i,"sham",!0),sp(n,r,i,e)}},Bg=Object.keys||function(e){return eR(e,xv)},Ps=Object.assign,h_=Object.defineProperty,Zhe=nt([].concat),g_=!Ps||un(function(){if(Io&&Ps({b:1},Ps(h_({},"a",{enumerable:!0,get:function(){h_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),Ps({},e)[n]!=7||Bg(Ps({},t)).join("")!=r})?function(e,t){for(var n=oS(e),r=arguments.length,o=1,i=tR.f,a=ZN.f;r>o;)for(var u,s=pS(arguments[o++]),l=i?Zhe(Bg(s),i(s)):Bg(s),c=l.length,f=0;c>f;)u=l[f++],Io&&!nn(a,s,u)||(n[u]=s[u]);return n}:Ps;j1({target:"Object",stat:!0,forced:Object.assign!==g_},{assign:g_});var v_=tS(function(e){var t=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function h(y){return y instanceof u?new u(y.type,h(y.content),y.alias):Array.isArray(y)?y.map(h):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(h){return Object.prototype.toString.call(h).slice(8,-1)},objId:function(h){return h.__id||Object.defineProperty(h,"__id",{value:++o}),h.__id},clone:function h(y,b){var m,$;switch(b=b||{},a.util.type(y)){case"Object":if($=a.util.objId(y),b[$])return b[$];for(var E in m={},b[$]=m,y)y.hasOwnProperty(E)&&(m[E]=h(y[E],b));return m;case"Array":return $=a.util.objId(y),b[$]?b[$]:(m=[],b[$]=m,y.forEach(function(S,x){m[x]=h(S,b)}),m);default:return y}},getLanguage:function(h){for(;h&&!r.test(h.className);)h=h.parentElement;return h?(h.className.match(r)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(m){var h=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(m.stack)||[])[1];if(h){var y=document.getElementsByTagName("script");for(var b in y)if(y[b].src==h)return y[b]}return null}},isActive:function(h,y,b){for(var m="no-"+y;h;){var $=h.classList;if($.contains(y))return!0;if($.contains(m))return!1;h=h.parentElement}return!!b}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(h,y){var b=a.util.clone(a.languages[h]);for(var m in y)b[m]=y[m];return b},insertBefore:function(h,y,b,m){var $=(m=m||a.languages)[h],E={};for(var S in $)if($.hasOwnProperty(S)){if(S==y)for(var x in b)b.hasOwnProperty(x)&&(E[x]=b[x]);b.hasOwnProperty(S)||(E[S]=$[S])}var B=m[h];return m[h]=E,a.languages.DFS(a.languages,function(I,H){H===B&&I!=h&&(this[I]=E)}),E},DFS:function h(y,b,m,$){$=$||{};var E=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){b.call(y,S,y[S],m||S);var x=y[S],B=a.util.type(x);B!=="Object"||$[E(x)]?B!=="Array"||$[E(x)]||($[E(x)]=!0,h(x,b,S,$)):($[E(x)]=!0,h(x,b,null,$))}}},plugins:{},highlightAll:function(h,y){a.highlightAllUnder(document,h,y)},highlightAllUnder:function(h,y,b){var m={callback:b,container:h,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",m),m.elements=Array.prototype.slice.apply(m.container.querySelectorAll(m.selector)),a.hooks.run("before-all-elements-highlight",m);for(var $,E=0;$=m.elements[E++];)a.highlightElement($,y===!0,m.callback)},highlightElement:function(h,y,b){var m=a.util.getLanguage(h),$=a.languages[m];h.className=h.className.replace(r,"").replace(/\s+/g," ")+" language-"+m;var E=h.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(r,"").replace(/\s+/g," ")+" language-"+m);var S={element:h,language:m,grammar:$,code:h.textContent};function x(I){S.highlightedCode=I,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),b&&b.call(S.element)}if(a.hooks.run("before-sanity-check",S),(E=S.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(b&&b.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var B=new Worker(a.filename);B.onmessage=function(I){x(I.data)},B.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else x(a.highlight(S.code,S.grammar,S.language));else x(a.util.encode(S.code))},highlight:function(h,y,b){var m={code:h,grammar:y,language:b};return a.hooks.run("before-tokenize",m),m.tokens=a.tokenize(m.code,m.grammar),a.hooks.run("after-tokenize",m),u.stringify(a.util.encode(m.tokens),m.language)},tokenize:function(h,y){var b=y.rest;if(b){for(var m in b)y[m]=b[m];delete y.rest}var $=new c;return f($,$.head,h),l(h,$,y,$.head,0),function(E){for(var S=[],x=E.head.next;x!==E.tail;)S.push(x.value),x=x.next;return S}($)},hooks:{all:{},add:function(h,y){var b=a.hooks.all;b[h]=b[h]||[],b[h].push(y)},run:function(h,y){var b=a.hooks.all[h];if(b&&b.length)for(var m,$=0;m=b[$++];)m(y)}},Token:u};function u(h,y,b,m){this.type=h,this.content=y,this.alias=b,this.length=0|(m||"").length}function s(h,y,b,m){h.lastIndex=y;var $=h.exec(b);if($&&m&&$[1]){var E=$[1].length;$.index+=E,$[0]=$[0].slice(E)}return $}function l(h,y,b,m,$,E){for(var S in b)if(b.hasOwnProperty(S)&&b[S]){var x=b[S];x=Array.isArray(x)?x:[x];for(var B=0;B<x.length;++B){if(E&&E.cause==S+","+B)return;var I=x[B],H=I.inside,G=!!I.lookbehind,Y=!!I.greedy,U=I.alias;if(Y&&!I.pattern.global){var ie=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,ie+"g")}for(var re=I.pattern||I,ae=m.next,me=$;ae!==y.tail&&!(E&&me>=E.reach);me+=ae.value.length,ae=ae.next){var De=ae.value;if(y.length>h.length)return;if(!(De instanceof u)){var $e,le=1;if(Y){if(!($e=s(re,me,h,G)))break;var Me=$e.index,T=$e.index+$e[0].length,_=me;for(_+=ae.value.length;Me>=_;)_+=(ae=ae.next).value.length;if(me=_-=ae.value.length,ae.value instanceof u)continue;for(var F=ae;F!==y.tail&&(_<T||typeof F.value=="string");F=F.next)le++,_+=F.value.length;le--,De=h.slice(me,_),$e.index-=me}else if(!($e=s(re,0,De,G)))continue;Me=$e.index;var R=$e[0],q=De.slice(0,Me),j=De.slice(Me+R.length),ue=me+De.length;E&&ue>E.reach&&(E.reach=ue);var be=ae.prev;if(q&&(be=f(y,be,q),me+=q.length),d(y,be,le),ae=f(y,be,new u(S,H?a.tokenize(R,H):R,U,R)),j&&f(y,ae,j),le>1){var Pe={cause:S+","+B,reach:ue};l(h,y,b,ae.prev,me,Pe),E&&Pe.reach>E.reach&&(E.reach=Pe.reach)}}}}}}function c(){var h={value:null,prev:null,next:null},y={value:null,prev:h,next:null};h.next=y,this.head=h,this.tail=y,this.length=0}function f(h,y,b){var m=y.next,$={value:b,prev:y,next:m};return y.next=$,m.prev=$,h.length++,$}function d(h,y,b){for(var m=y.next,$=0;$<b&&m!==h.tail;$++)m=m.next;y.next=m,m.prev=y,h.length-=$}if(n.Prism=a,u.stringify=function h(y,b){if(typeof y=="string")return y;if(Array.isArray(y)){var m="";return y.forEach(function(B){m+=h(B,b)}),m}var $={type:y.type,content:h(y.content,b),tag:"span",classes:["token",y.type],attributes:{},language:b},E=y.alias;E&&(Array.isArray(E)?Array.prototype.push.apply($.classes,E):$.classes.push(E)),a.hooks.run("wrap",$);var S="";for(var x in $.attributes)S+=" "+x+'="'+($.attributes[x]||"").replace(/"/g,""")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+S+">"+$.content+"</"+$.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(h){var y=JSON.parse(h.data),b=y.language,m=y.code,$=y.immediateClose;n.postMessage(a.highlight(m,a.languages[b],b)),$&&n.close()},!1)),a;var p=a.util.currentScript();function g(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var v=document.readyState;v==="loading"||v==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&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),Sv!==void 0&&(Sv.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(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},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(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(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(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o="loading",i="loaded",a='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',u=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(c){c.selector+=", "+a}),t.hooks.add("before-sanity-check",function(c){var f=c.element;if(f.matches(a)){c.code="",f.setAttribute(r,o);var d=f.appendChild(document.createElement("CODE"));d.textContent="Loading…";var p=f.getAttribute("data-src"),g=c.language;if(g==="none"){var v=(/\.(\w+)$/.exec(p)||[,"none"])[1];g=n[v]||v}l(d,g),l(f,g);var h=t.plugins.autoloader;h&&h.loadLanguages(g);var y=new XMLHttpRequest;y.open("GET",p,!0),y.onreadystatechange=function(){var b,m;y.readyState==4&&(y.status<400&&y.responseText?(f.setAttribute(r,i),d.textContent=y.responseText,t.highlightElement(d)):(f.setAttribute(r,"failed"),y.status>=400?d.textContent=(b=y.status,m=y.statusText,"✖ Error "+b+" while fetching file: "+m):d.textContent="✖ Error: File does not exist or is empty"))},y.send(null)}}),t.plugins.fileHighlight={highlight:function(c){for(var f,d=(c||document).querySelectorAll(a),p=0;f=d[p++];)t.highlightElement(f)}};var s=!1;t.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function l(c,f){var d=c.className;d=d.replace(u," ")+" language-"+f,c.className=d.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(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=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(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.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){e.type==="entity"&&(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(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(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(T,_){return T.replace(/<<(\d+)>>/g,function(F,R){return"(?:"+_[+R]+")"})}function n(T,_,F){return RegExp(t(T,_),F||"")}function r(T,_){for(var F=0;F<_;F++)T=T.replace(/<<self>>/g,function(){return"(?:"+T+")"});return T.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(T){return"\\b(?:"+T.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),g=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,h=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,h]),b=/\[\s*(?:,\s*)*\]/.source,m=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,b]),$=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,g,b]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[$]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,b]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},B=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,I=/"(?:\\.|[^\\"\r\n])*"/.source,H=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[H]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:RegExp(B),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,h]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:x}],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,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:x}}},"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,h,v,S,c.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:x},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 G=I+"|"+B,Y=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[G]),U=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Y]),2),ie=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,re=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,U]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ie,re]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[ie]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[U]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ae=/:[^}\r\n]+/.source,me=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Y]),2),De=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[me,ae]),$e=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[G]),2),le=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[$e,ae]);function Me(T,_){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[T]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[_,ae]),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,[De]),lookbehind:!0,greedy:!0,inside:Me(De,me)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:Me(le,$e)}]})}(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]*)?(?:\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(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),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(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var g=f[d];if(g.type==="code"){var v=g.content[1],h=g.content[3];if(v&&h&&v.type==="code-language"&&h.type==="code-block"&&typeof v.content=="string"){var y=v.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),b="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());h.alias?typeof h.alias=="string"?h.alias=[h.alias,b]:h.alias.push(b):h.alias=[b]}}else c(g.content)}}(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],g=/language-(.+)/.exec(p);if(g){c=g[1];break}}var v=e.languages[c];if(v)l.content=e.highlight(function(y){var b=y.replace(a,"");return b=b.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,$){var E;if(($=$.toLowerCase())[0]==="#")return E=$[1]==="x"?parseInt($.slice(2),16):Number($.slice(1)),s(E);var S=u[$];return S||m})}(l.content),v,c);else if(c&&c!=="none"&&e.plugins.autoloader){var h="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=h,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(h);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});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);var Qhe=["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 nR(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+nR(n)},0)}var ng,ege=Le.String,ri=function(e){if(dS(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ege(e)},rR=function(){var e=Zr(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},mS=Le.RegExp,w3=un(function(){var e=mS("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),tge=w3||un(function(){return!mS("a","y").sticky}),oR={BROKEN_CARET:w3||un(function(){var e=mS("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:tge,UNSUPPORTED_Y:w3},nge=Io?Object.defineProperties:function(e,t){Zr(e);for(var n,r=L1(t),o=Bg(t),i=o.length,a=0;i>a;)R1.f(e,n=o[a++],r[n]);return e},rge=Hp("document","documentElement"),iR=UN("IE_PROTO"),ew=function(){},aR=function(e){return"<script>"+e+"<\/script>"},m_=function(e){e.write(aR("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pg=function(){try{ng=new ActiveXObject("htmlfile")}catch{}var e,t;Pg=typeof document<"u"?document.domain&&ng?m_(ng):((t=uS("iframe")).style.display="none",rge.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(aR("document.F=Object")),e.close(),e.F):m_(ng);for(var n=xv.length;n--;)delete Pg.prototype[xv[n]];return Pg()};fS[iR]=!0;var y_,tw,oge=Object.create||function(e,t){var n;return e!==null?(ew.prototype=Zr(e),n=new ew,ew.prototype=null,n[iR]=e):n=Pg(),t===void 0?n:nge(n,t)},ige=Le.RegExp,age=un(function(){var e=ige(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),uge=Le.RegExp,sge=un(function(){var e=uge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),lge=y3.get,cge=rS("native-string-replace",String.prototype.replace),Av=RegExp.prototype.exec,$3=Av,fge=nt("".charAt),dge=nt("".indexOf),pge=nt("".replace),nw=nt("".slice),rw=(tw=/b*/g,nn(Av,y_=/a/,"a"),nn(Av,tw,"a"),y_.lastIndex!==0||tw.lastIndex!==0),b_=oR.BROKEN_CARET,ow=/()??/.exec("")[1]!==void 0;(rw||ow||b_||age||sge)&&($3=function(e){var t,n,r,o,i,a,u,s=this,l=lge(s),c=ri(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=nn($3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=b_&&s.sticky,g=nn(rR,s),v=s.source,h=0,y=c;if(p&&(g=pge(g,"y",""),dge(g,"g")===-1&&(g+="g"),y=nw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&fge(c,s.lastIndex-1)!==`
- `)&&(v="(?: "+v+")",y=" "+y,h++),n=new RegExp("^(?:"+v+")",g)),ow&&(n=new RegExp("^"+v+"$(?!\\s)",g)),rw&&(r=s.lastIndex),o=nn(Av,p?n:s,y),p?o?(o.input=nw(o.input,h),o[0]=nw(o[0],h),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:rw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ow&&o&&o.length>1&&nn(cge,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=oge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var lp=$3;j1({target:"RegExp",proto:!0,forced:/./.exec!==lp},{exec:lp});var yS=Function.prototype,w_=yS.apply,hge=yS.bind,$_=yS.call,gge=typeof Reflect=="object"&&Reflect.apply||(hge?$_.bind(w_):function(){return $_.apply(w_,arguments)}),vge=Ta("species"),iw=RegExp.prototype,mge=Ta("match"),yge=Le.TypeError,bge=Ta("species"),wge=function(e,t){var n,r=Zr(e).constructor;return r===void 0||(n=Zr(r)[bge])==null?t:function(o){if(XN(o))return o;throw yge(zN(o)+" is not a constructor")}(n)},$ge=nt("".charAt),E_=nt("".charCodeAt),Ege=nt("".slice),S_=function(e){return function(t,n){var r,o,i=ri(zl(t)),a=hS(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=E_(i,a))<55296||r>56319||a+1===u||(o=E_(i,a+1))<56320||o>57343?e?$ge(i,a):r:e?Ege(i,a,a+2):o-56320+(r-55296<<10)+65536}},Sge={codeAt:S_(!1),charAt:S_(!0)}.charAt,Dge=function(e,t,n){return t+(n?Sge(e,t).length:1)},Cge=Le.Array,xge=Math.max,D_=function(e,t,n){for(var r,o,i,a,u=gS(e),s=b3(t,u),l=b3(n===void 0?u:n,u),c=Cge(xge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=sS(o))in r?R1.f(r,a,lS(0,i)):r[a]=i;return c.length=f,c},Age=Le.TypeError,C_=function(e,t){var n=e.exec;if(On(n)){var r=nn(n,e,t);return r!==null&&Zr(r),r}if(da(e)==="RegExp")return nn(lp,e,t);throw Age("RegExp#exec called on incompatible receiver")},Is=oR.UNSUPPORTED_Y,Oge=Math.min,uR=[].push,_ge=nt(/./.exec),Ns=nt(uR),kf=nt("".slice);(function(e,t,n,r){var o=Ta(e),i=!un(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!un(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[vge]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=nt(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var g=nt(l),v=c.exec;return v===lp||v===iw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});sp(String.prototype,e,s[0]),sp(iw,o,s[1])}r&&Vl(iw[o],"sham",!0)})("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=ri(zl(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Ur(a=o)||!((u=a[mge])!==void 0?u:da(a)=="RegExp"))return nn(t,s,o,l);for(var c,f,d,p=[],g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),v=0,h=new RegExp(o.source,g+"g");(c=nn(lp,h,s))&&!((f=h.lastIndex)>v&&(Ns(p,kf(s,v,c.index)),c.length>1&&c.index<s.length&&gge(uR,p,D_(c,1)),d=c[0].length,v=f,p.length>=l));)h.lastIndex===c.index&&h.lastIndex++;return v===s.length?!d&&_ge(h,"")||Ns(p,""):Ns(p,kf(s,v)),p.length>l?D_(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:nn(t,this,o,i)}:t,[function(o,i){var a=zl(this),u=o==null?void 0:HN(o,e);return u?nn(u,o,a,i):nn(r,ri(a),o,i)},function(o,i){var a=Zr(this),u=ri(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=wge(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Is?"g":"y"),d=new l(Is?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return C_(d,u)===null?[u]:[];for(var g=0,v=0,h=[];v<u.length;){d.lastIndex=Is?0:v;var y,b=C_(d,Is?kf(u,v):u);if(b===null||(y=Oge(GN(d.lastIndex+(Is?v:0)),u.length))===g)v=Dge(u,v,c);else{if(Ns(h,kf(u,g,v)),h.length===p)return h;for(var m=1;m<=b.length-1;m++)if(Ns(h,b[m]),h.length===p)return h;v=g=y}}return Ns(h,kf(u,g)),h}]},!!un(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Is),j1({global:!0},{globalThis:Le}),Oo&&(O.fn.attr=Oo);var kge=qN.PROPER,E3=RegExp.prototype,sR=E3.toString,Tge=nt(rR),Fge=un(function(){return sR.call({source:"a",flags:"b"})!="/a/b"}),Bge=kge&&sR.name!="toString";(Fge||Bge)&&sp(RegExp.prototype,"toString",function(){var e=Zr(this),t=ri(e.source),n=e.flags;return"/"+t+"/"+ri(n===void 0&&MN(E3,e)&&!("flags"in E3)?Tge(e):n)},{unsafe:!0});var Pge=function(){function e(){this.title=Z("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(t){var n=[],r=t.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!se.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};N.setNodes(t,r,{match:function(o){return A.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return se.isElement(r)?r.type!=="pre"?null:n:null},e}(),Ige={renderStyle:function(e,t){var n=e,r=t,o="";return Qhe.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=O(e);if(!se.isElement(t)||A.getNodeType(t)!=="code")return t;var o=t,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Pge},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:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Nge=/"/g,Rge=nt("".replace);j1({target:"String",proto:!0,forced:function(e){return un(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}("anchor")},{anchor:function(e){return t="a",n="name",r=e,o=ri(zl(this)),i="<"+t,n!==""&&(i+=" "+n+'="'+Rge(ri(r),Nge,""")+'"'),i+">"+o+"</"+t+">";var t,n,r,o,i}});var lR=function(e){var t,n,r,o=function(y,b){var m=typeof Symbol=="function"&&y[Symbol.iterator];if(!m)return y;var $,E,S=m.call(y),x=[];try{for(;(b===void 0||b-- >0)&&!($=S.next()).done;)x.push($.value)}catch(B){E={error:B}}finally{try{$&&!$.done&&(m=S.return)&&m.call(S)}finally{if(E)throw E.error}}return x}(e,2),i=o[0],a=o[1],u=[],s=function(y){if(!oe.isText(y))return null;var b=A.getParentNode(null,y);if(b&&A.getNodeType(b)==="code"){var m=A.getParentNode(null,b);if(m&&A.getNodeType(m)==="pre")return b}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,b){if(!b)return[];var m=v_.languages[b];return m?v_.tokenize(y.text,m):[]}(i,c),d=0;try{for(var p=function(y){var b=typeof Symbol=="function"&&Symbol.iterator,m=b&&y[b],$=0;if(m)return m.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&$>=y.length&&(y=void 0),{value:y&&y[$++],done:!y}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),g=p.next();!g.done;g=p.next()){var v=g.value,h=d+nR(v);typeof v!="string"&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:h},r)),d=h}}catch(y){t={error:y}}finally{try{g&&!g.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u};/*! *****************************************************************************
- 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 kt=function(){return kt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},kt.apply(this,arguments)},on=function(){function e(){throw new Error(`不能实例化
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=kt(kt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=kt(kt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=kt(kt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=kt(kt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){rK(t,n)},e.registerRenderElem=function(t){OY(t)},e.registerRenderStyle=function(t){AY(t)},e.registerElemToHtml=function(t){yK(t)},e.registerStyleToHtml=function(t){mK(t)},e.registerPreParseHtml=function(t){RK(t)},e.registerParseElemHtml=function(t){jK(t)},e.registerParseStyleHtml=function(t){LK(t)},e.registerModule=function(t){Qu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Qu(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(c){return on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}Zne.forEach(function(e){return Qu(e)});Qu(cie);Qu(jue);Qu(Qce);Qu(Wpe);Qu(Ige);var Lge='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',jge='<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>',cR='<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>',Mge='<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>',zge='<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>';function Vge(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Z("editor.more"),iconSvg:Mge,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Z("editor.justify"),iconSvg:jge,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Z("editor.indent"),iconSvg:Lge,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Z("editor.image"),iconSvg:cR,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Z("editor.video"),iconSvg:zge,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function Hge(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Z("editor.image"),iconSvg:cR,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]}var fR={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"]}};function Uge(){return kt(kt({},fR),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})}function Wge(){return fR}function qge(){return{hoverbarKeys:Uge()}}function Gge(){return{hoverbarKeys:Wge()}}function Kge(){return{toolbarKeys:Vge()}}function Yge(){return{toolbarKeys:Hge()}}var Xge=qge();on.setEditorConfig(kt(kt({},Xge),{decorate:lR}));var Jge=Gge();on.setSimpleEditorConfig(kt(kt({},Jge),{decorate:lR}));var Zge=Kge();on.setToolbarConfig(Zge);var Qge=Yge();on.setSimpleToolbarConfig(Qge);function e0e(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=s===void 0?"default":s,c=l==="simple"?on.simpleEditorConfig:on.editorConfig,f=kt(kt({},c.hoverbarKeys||{}),u.hoverbarKeys||{}),d=YY({selector:n,config:kt(kt(kt({},c),u),{hoverbarKeys:f}),content:o,html:i,plugins:on.plugins});return d}function t0e(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?on.simpleToolbarConfig:on.toolbarConfig,s=tX(n,{selector:t,config:kt(kt({},u),o)});return s}var n0e=Object.defineProperty,r0e=Object.defineProperties,o0e=Object.getOwnPropertyDescriptors,x_=Object.getOwnPropertySymbols,i0e=Object.prototype.hasOwnProperty,a0e=Object.prototype.propertyIsEnumerable,A_=(e,t,n)=>t in e?n0e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u0e=(e,t)=>{for(var n in t||(t={}))i0e.call(t,n)&&A_(e,n,t[n]);if(x_)for(var n of x_(t))a0e.call(t,n)&&A_(e,n,t[n]);return e},s0e=(e,t)=>r0e(e,o0e(t));function Mi(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
- Please use '@${e}' event instead of props`,t}var dR=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const l0e=Wn({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=Dr(null),r=L_(null),o=Dr(""),i=()=>{if(!n.value)return;const u=gw(e.defaultContent);e0e({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:s0e(u0e({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Mi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Mi("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Mi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Mi("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Mi("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Mi("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Mi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Mi("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return Ul(()=>{i()}),Hu(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),c0e={ref:"box",style:{height:"100%"}};function f0e(e,t,n,r,o,i){return z(),pe("div",c0e,null,512)}var d0e=dR(l0e,[["render",f0e]]);const p0e=Wn({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=Dr(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||t0e({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return kR(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),h0e={ref:"selector"};function g0e(e,t,n,r,o,i){return z(),pe("div",h0e,null,512)}var v0e=dR(p0e,[["render",g0e]]);const m0e=Wn({__name:"editor",props:{height:{default:"320px"},mode:{default:"default"},placeholder:{default:"请输入内容..."},modelValue:{default:""},toolbarConfig:{default:()=>({})},editorConfig:{default:()=>({})},editorStyle:{default:()=>({})},style:{default:()=>({})}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,o=H_(),i=L_(),a=Cr({mounted:!1,value:r.modelValue?r.modelValue:"<p></p>",editorConfig:r.editorConfig,editorStyle:r.editorStyle});Ul(()=>{EX(o.lang.defaultLang=="zh-cn"?"zh-CN":o.lang.defaultLang),a.editorConfig.placeholder=r.placeholder,a.editorConfig.MENU_CONF={},a.editorConfig.MENU_CONF.uploadImage={fieldName:"file",maxFileSize:10*1024*1024,onProgress(){yi.inc()},async customUpload(c,f){yi.configure({showSpinner:!0}),yi.start();let d=new FormData;d.append("file",c),vw(d).then(p=>{p.code==1&&f(p.data.file.full_url,p.data.file.name,p.data.file.full_url),yi.done()})}},a.editorConfig.MENU_CONF.uploadVideo={fieldName:"file",onProgress(){yi.inc()},async customUpload(c,f){yi.configure({showSpinner:!0}),yi.start();let d=new FormData;d.append("file",c),vw(d).then(p=>{p.code==1&&f(p.data.file.full_url),yi.done()})}},a.editorStyle.height=r.height,a.editorStyle["overflow-y"]="hidden",a.mounted=!0}),TR(()=>{i.value!=null&&i.value.destroy()});const u=c=>{i.value=c},s=()=>{n("update:modelValue",i.value.getHtml())};return t({getRef:()=>i.value}),Hu(()=>r.modelValue,c=>{a.value=c||"<p></p>"}),(c,f)=>a.mounted?(z(),pe("div",{key:0,style:j_(e.style),class:"ba-editor wangeditor"},[te(W(v0e),{class:"wangeditor-toolbar",editor:W(i),defaultConfig:e.toolbarConfig,mode:e.mode},null,8,["editor","defaultConfig","mode"]),te(W(d0e),Qn({style:a.editorStyle,modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=d=>a.value=d),defaultConfig:a.editorConfig,mode:e.mode,onOnCreated:u,onOnChange:s},c.$attrs),null,16,["style","modelValue","defaultConfig","mode"])],4)):we("",!0)}});const y0e=Ro(m0e,[["__scopeId","data-v-275c7c5f"]]),Ot=()=>({null:!1,primaryKey:!1,unsigned:!1,autoIncrement:!1}),u1e={string:{type:"varchar",length:200,precision:0,default:"empty string",...Ot()},password:{type:"varchar",length:32,precision:0,default:"empty string",...Ot()},number:{type:"int",length:10,precision:0,default:"0",...Ot()},radio:{type:"enum",length:0,precision:0,default:"",...Ot()},checkbox:{type:"set",length:0,precision:0,default:"",...Ot()},switch:{type:"tinyint",length:1,precision:0,default:"1",...Ot(),unsigned:!0},textarea:{type:"varchar",length:255,precision:0,default:"empty string",...Ot()},array:{type:"varchar",length:255,precision:0,default:"empty string",...Ot()},datetime:{type:"bigint",length:16,precision:0,default:"null",...Ot(),null:!0,unsigned:!0},year:{type:"year",length:4,precision:0,default:"null",...Ot(),null:!0},date:{type:"date",length:0,precision:0,default:"null",...Ot(),null:!0},time:{type:"time",length:0,precision:0,default:"null",...Ot(),null:!0},select:{type:"enum",length:0,precision:0,default:"",...Ot()},selects:{type:"varchar",length:100,precision:0,default:"empty string",...Ot()},remoteSelect:{type:"int",length:10,precision:0,default:"0",...Ot(),unsigned:!0},editor:{type:"text",length:0,precision:0,default:"null",...Ot(),null:!0},city:{type:"varchar",length:100,precision:0,default:"empty string",...Ot()},image:{type:"varchar",length:200,precision:0,default:"empty string",...Ot()},images:{type:"varchar",length:255,precision:0,default:"empty string",...Ot()},file:{type:"varchar",length:200,precision:0,default:"empty string",...Ot()},files:{type:"varchar",length:255,precision:0,default:"empty string",...Ot()},icon:{type:"varchar",length:50,precision:0,default:"empty string",...Ot()},color:{type:"varchar",length:30,precision:0,default:"empty string",...Ot()}},O_=e=>typeof e=="string"?e==""?[]:e.split(","):e,b0e=Wn({name:"Column",props:{attr:{type:Object,required:!0}},setup(e,{slots:t}){const n=Cr(e.attr);return n["column-key"]=n["column-key"]?n["column-key"]:n.prop||el(),()=>te(FR,n,t.default)}}),w0e={key:2,class:"ba-render-image"},$0e={key:3,class:"ba-render-image"},E0e={key:4},S0e={key:5},D0e={key:6},C0e={key:7},x0e={key:8},A0e=["innerHTML"],O0e={key:11},_0e={key:0,class:"table-operate-text"},k0e={key:0,class:"table-operate-text"},T0e={key:0,class:"table-operate-text"},F0e={class:"ml-6"},B0e={key:0,class:"table-operate-text"},P0e={key:0,class:"table-operate-text"},I0e={key:0,class:"table-operate-text"},N0e={key:0,class:"table-operate-text"},R0e=Wn({__name:"index",props:{row:null,field:null,column:null,index:null},setup(e){const t=e,{t:n}=_3(),r=Bv("baTable"),o=Dr(t.field.prop),i=Dr(o.value?t.row[o.value]:"");if(o.value&&o.value.indexOf(".")>-1){let l=o.value.split("."),c=Dr(t.row[l[0]]);for(let f=1;f<l.length;f++)c.value=c.value?c.value[l[f]]??"":"";i.value=c.value}t.field.renderFormatter&&typeof t.field.renderFormatter=="function"&&(i.value=t.field.renderFormatter(t.row,t.field,i.value,t.column,t.index));const a=l=>{r.onTableAction("field-change",{value:l,...t})},u=l=>{if(typeof l.click=="function"){l.click(t.row,t.field);return}r.onTableAction(l.name,t)},s=(l,c)=>c&&c[l]?c[l]:"";return(l,c)=>{const f=de("Icon"),d=de("el-switch"),p=de("el-image"),g=de("el-tag"),v=de("el-button"),h=de("el-input"),y=de("el-tooltip"),b=de("el-popconfirm"),m=Ou("blur"),$=Ou("auth");return z(),pe($t,null,[e.field.render=="icon"?(z(),ge(f,{key:0,class:"ba-icon-dark",name:i.value?i.value:e.field.default??""},null,8,["name"])):we("",!0),e.field.render=="switch"?(z(),ge(d,{key:1,onChange:a,"model-value":i.value.toString(),loading:e.row.loading,"active-value":"1","inactive-value":"0"},null,8,["model-value","loading"])):we("",!0),e.field.render=="image"&&i.value?(z(),pe("div",w0e,[te(p,{"hide-on-click-modal":!0,"preview-teleported":!0,"preview-src-list":[W(Vf)(i.value)],src:W(Vf)(i.value)},null,8,["preview-src-list","src"])])):we("",!0),e.field.render=="images"?(z(),pe("div",$0e,[Array.isArray(i.value)&&i.value.length?(z(!0),pe($t,{key:0},xr(i.value,(E,S)=>(z(),ge(p,{key:S,"initial-index":S,"preview-teleported":!0,"preview-src-list":W(ug)(i.value),class:"images-item",src:W(Vf)(E),"hide-on-click-modal":!0},null,8,["initial-index","preview-src-list","src"]))),128)):we("",!0)])):we("",!0),e.field.render=="tag"&&i.value!==""?(z(),pe("div",E0e,[te(g,{type:s(i.value,e.field.custom),effect:e.field.effect??"light",size:e.field.size??"default"},{default:ne(()=>[Do(Ze(e.field.replaceValue?e.field.replaceValue[i.value]:i.value),1)]),_:1},8,["type","effect","size"])])):we("",!0),e.field.render=="tags"?(z(),pe("div",S0e,[Array.isArray(i.value)?(z(!0),pe($t,{key:0},xr(i.value,(E,S)=>(z(),pe($t,{key:S},[E?(z(),ge(g,{key:0,class:"m-10",type:s(E,e.field.custom),effect:e.field.effect??"light",size:e.field.size??"default"},{default:ne(()=>[Do(Ze(e.field.replaceValue?e.field.replaceValue[E]??E:E),1)]),_:2},1032,["type","effect","size"])):we("",!0)],64))),128)):(z(),pe($t,{key:1},[i.value!==""?(z(),ge(g,{key:0,class:"m-10",type:s(i.value,e.field.custom),effect:e.field.effect??"light",size:e.field.size??"default"},{default:ne(()=>[Do(Ze(e.field.replaceValue?e.field.replaceValue[i.value]??i.value:i.value),1)]),_:1},8,["type","effect","size"])):we("",!0)],64))])):we("",!0),e.field.render=="url"&&i.value?(z(),pe("div",D0e,[te(h,{"model-value":i.value,placeholder:W(n)("Link address")},{append:ne(()=>[te(v,{onClick:c[0]||(c[0]=E=>typeof e.field.click=="function"?e.field.click(e.row,e.field,i.value,e.column,e.index):W(GR)(i.value,e.field))},{default:ne(()=>[te(f,{color:"#606266",name:"el-icon-Position"})]),_:1})]),_:1},8,["model-value","placeholder"])])):we("",!0),e.field.render=="datetime"?(z(),pe("div",C0e,Ze(i.value?W(KR)(i.value,e.field.timeFormat??void 0):"-"),1)):we("",!0),e.field.render=="color"?(z(),pe("div",x0e,[We("div",{style:j_({background:i.value}),class:"ba-render-color"},null,4)])):we("",!0),e.field.render=="customTemplate"?(z(),pe("div",{key:9,innerHTML:e.field.customTemplate?e.field.customTemplate(e.row,e.field,i.value,e.column,e.index):""},null,8,A0e)):we("",!0),e.field.render=="customRender"?(z(),ge(M_(e.field.customRender),{key:10,renderRow:e.row,renderField:e.field,renderValue:i.value,renderColumn:e.column,renderIndex:e.index},null,8,["renderRow","renderField","renderValue","renderColumn","renderIndex"])):we("",!0),e.field.render=="buttons"&&e.field.buttons?(z(),pe("div",O0e,[(z(!0),pe($t,null,xr(e.field.buttons,(E,S)=>(z(),pe($t,{key:S},[!E.display||E.display(e.row,e.field)?(z(),pe($t,{key:0},[E.render=="basicButton"?hn((z(),ge(v,Qn({key:0,onClick:x=>u(E),class:[E.class,"table-operate"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",_0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["onClick","class","type","disabled"])),[[m]]):we("",!0),E.render=="tipButton"?(z(),ge(y,{key:1,disabled:!(E.title&&!E.disabledTip),content:E.title?W(n)(E.title):"",placement:"top"},{default:ne(()=>[E.name=="edit"?hn((z(),ge(v,Qn({key:0,onClick:x=>u(E),class:[E.class,"table-operate"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",k0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["onClick","class","type","disabled"])),[[$,"edit"],[m]]):hn((z(),ge(v,Qn({key:1,onClick:x=>u(E),class:[E.class,"table-operate"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",T0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["onClick","class","type","disabled"])),[[m]])]),_:2},1032,["disabled","content"])):we("",!0),E.render=="confirmButton"?(z(),ge(b,Qn({key:2,disabled:E.disabled&&E.disabled(e.row,e.field)},E.popconfirm,{onConfirm:x=>u(E)}),{reference:ne(()=>[We("div",F0e,[te(y,{disabled:!E.title,content:E.title?W(n)(E.title):"",placement:"top"},{default:ne(()=>[E.name=="delete"?hn((z(),ge(v,Qn({key:0,class:[E.class,"table-operate"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",B0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["class","type","disabled"])),[[$,"del"],[m]]):hn((z(),ge(v,Qn({key:1,class:[E.class,"table-operate"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",P0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["class","type","disabled"])),[[m]])]),_:2},1032,["disabled","content"])])]),_:2},1040,["disabled","onConfirm"])):we("",!0),E.render=="moveButton"?(z(),ge(y,{key:3,disabled:!(E.title&&!E.disabledTip),content:E.title?W(n)(E.title):"",placement:"top"},{default:ne(()=>[E.name=="weigh-sort"?hn((z(),ge(v,Qn({key:0,class:[E.class,"table-operate move-button"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",I0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["class","type","disabled"])),[[$,"sortable"]]):hn((z(),ge(v,Qn({key:1,class:[E.class,"table-operate move-button"],type:E.type,disabled:E.disabled&&E.disabled(e.row,e.field)},E.attr),{default:ne(()=>[te(f,{name:E.icon},null,8,["name"]),E.text?(z(),pe("div",N0e,Ze(E.text),1)):we("",!0)]),_:2},1040,["class","type","disabled"])),[[m]])]),_:2},1032,["disabled","content"])):we("",!0)],64)):we("",!0)],64))),128))])):we("",!0)],64)}}});const L0e=Ro(R0e,[["__scopeId","data-v-9686a55d"]]),j0e={key:0,class:"table-pagination"},M0e=Wn({__name:"index",props:{pagination:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=e,r=H_(),o=Dr(),i=Bv("baTable"),a=m=>{i.onTableAction("page-size-change",{size:m})},u=m=>{i.onTableAction("current-page-change",{page:m})},s=({order:m,prop:$})=>{i.onTableAction("sort-change",{prop:$,order:m?m=="ascending"?"asc":"desc":""})},l=fo(()=>{let m=[10,20,50,100];return i.table.filter.limit&&(m.includes(i.table.filter.limit)||m.push(i.table.filter.limit)),m}),c=m=>{var $;f(m.map(E=>E[i.table.pk].toString()))?m.map(E=>{E.children&&d(E.children,!0)}):($=o.value)==null||$.clearSelection()},f=m=>{let $=i.table.data;for(const E in $)return m.includes($[E][i.table.pk].toString());return!1},d=(m,$)=>{m.map(E=>{p(E,$),E.children&&d(E.children,$)})},p=(m,$)=>{m&&gl(()=>{var E;(E=o.value)==null||E.toggleRowSelection(m,$)})},g=(m,$)=>{m.some(E=>$[i.table.pk]===E[i.table.pk])?$.children&&d($.children,!0):$.children&&d($.children,!1)},v=m=>{i.onTableAction("selection-change",m)},h=(m,$)=>{var E;for(const S in m)(E=o.value)==null||E.toggleRowExpansion(m[S],$),m[S].children&&h(m[S].children,$)};return t({unFoldAll:m=>{h(i.table.data,m)},getRef:()=>o.value}),(m,$)=>{const E=de("el-table"),S=de("el-pagination"),x=Ou("loading");return z(),pe("div",null,[bo(m.$slots,"neck",{},void 0,!0),hn((z(),ge(E,Qn({ref_key:"tableRef",ref:o,class:"ba-data-table w100","header-cell-class-name":"table-header-cell","default-expand-all":W(i).table.expandAll,data:W(i).table.data,"row-key":W(i).table.pk,border:!0,stripe:"",onSelectAll:c,onSelect:g,onSelectionChange:v,onSortChange:s,onRowDblclick:W(i).onTableDblclick},m.$attrs),{default:ne(()=>[bo(m.$slots,"columnPrepend",{},void 0,!0),(z(!0),pe($t,null,xr(W(i).table.column,(B,I)=>(z(),pe($t,null,[B.show!==!1?(z(),ge(b0e,{attr:B,key:I+"-column"},z_({_:2},[B.render?{name:"default",fn:ne(H=>[(z(),ge(L0e,{field:B,row:H.row,column:H.column,index:H.$index,key:I+"-"+H.$index+"-"+B.render+"-"+(B.prop?"-"+B.prop+"-"+H.row[B.prop]:"")},null,8,["field","row","column","index"]))]),key:"0"}:void 0]),1032,["attr"])):we("",!0)],64))),256)),bo(m.$slots,"columnAppend",{},void 0,!0)]),_:3},16,["default-expand-all","data","row-key","onRowDblclick"])),[[x,W(i).table.loading]]),n.pagination?(z(),pe("div",j0e,[te(S,{currentPage:W(i).table.filter.page,"page-size":W(i).table.filter.limit,"page-sizes":W(l),background:"",layout:W(r).layout.shrink?"prev, next, jumper":"sizes,total, ->, prev, pager, next, jumper",total:W(i).table.total,onSizeChange:a,onCurrentChange:u},null,8,["currentPage","page-size","page-sizes","layout","total"])])):we("",!0),bo(m.$slots,"footer",{},void 0,!0)])}}});const z0e=Ro(M0e,[["__scopeId","data-v-60e45ae6"]]),V0e={class:"table-com-search"},H0e={class:"com-search-col"},U0e={class:"com-search-col-label w16"},W0e={class:"com-search-col-input-range w83"},q0e={class:"com-search-col"},G0e={class:"com-search-col-label"},K0e={key:0,class:"com-search-col-input-range"},Y0e={class:"range-separator"},X0e={key:1,class:"com-search-col-input"},J0e={key:2,class:"com-search-col-input"},Z0e={class:"com-search-col pl-20"},Q0e=Wn({__name:"index",setup(e){const t=Bv("baTable"),n=()=>{let o=[];for(const i in t.comSearch.form){if(!t.comSearch.fieldData.has(i))continue;let a="",u=t.comSearch.fieldData.get(i);if(u.render=="datetime"&&(u.operator=="RANGE"||u.operator=="NOT RANGE"))t.comSearch.form[i]&&t.comSearch.form[i].length>=2&&(u.comSearchRender=="date"?a=t.comSearch.form[i][0]+" 00:00:00,"+t.comSearch.form[i][1]+" 23:59:59":a=t.comSearch.form[i][0]+","+t.comSearch.form[i][1]);else if(u.operator=="RANGE"||u.operator=="NOT RANGE"){if(!t.comSearch.form[i+"-start"]&&!t.comSearch.form[i+"-end"])continue;a=t.comSearch.form[i+"-start"]+","+t.comSearch.form[i+"-end"]}else t.comSearch.form[i]&&(a=t.comSearch.form[i]);a&&o.push({field:i,val:a,operator:u.operator,render:u.render})}t.onTableAction("com-search",o)},r=()=>{for(const o in t.comSearch.form)t.comSearch.form[o]=""};return(o,i)=>{const a=de("el-date-picker"),u=de("el-col"),s=de("el-input"),l=de("el-checkbox"),c=de("el-option"),f=de("el-select"),d=de("el-button"),p=de("el-row"),g=de("el-form"),v=Ou("blur");return z(),ge(A3,{name:"el-fade-in"},{default:ne(()=>[We("div",V0e,[te(g,{onSubmit:i[1]||(i[1]=md(()=>{},["prevent"])),onKeyup:BR(n,["enter"]),"label-position":"top",model:W(t).comSearch.form},{default:ne(()=>[te(p,null,{default:ne(()=>[(z(!0),pe($t,null,xr(W(t).table.column,(h,y)=>(z(),pe($t,{key:y},[h.operator!==!1?(z(),pe($t,{key:0},[h.render=="datetime"&&(h.operator=="RANGE"||h.operator=="NOT RANGE")?(z(),ge(u,{key:0,xs:24,sm:12},{default:ne(()=>[We("div",H0e,[We("div",U0e,Ze(h.label),1),We("div",W0e,[te(a,{class:"datetime-picker",modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,"default-value":W(t).comSearch.form[h.prop+"-default"]?W(t).comSearch.form[h.prop+"-default"]:[new Date,new Date],type:h.comSearchRender=="date"?"daterange":"datetimerange","range-separator":o.$t("to"),"start-placeholder":o.$t("el.datepicker.startDate"),"end-placeholder":o.$t("el.datepicker.endDate"),"value-format":h.comSearchRender=="date"?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","onUpdate:modelValue","default-value","type","range-separator","start-placeholder","end-placeholder","value-format"])])])]),_:2},1024)):(z(),ge(u,{key:1,xs:24,sm:6},{default:ne(()=>[We("div",q0e,[We("div",G0e,Ze(h.label),1),h.operator=="RANGE"||h.operator=="NOT RANGE"?(z(),pe("div",K0e,[te(s,{placeholder:h.operatorPlaceholder,type:"string",modelValue:W(t).comSearch.form[h.prop+"-start"],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop+"-start"]=b,clearable:!0},null,8,["placeholder","modelValue","onUpdate:modelValue"]),We("div",Y0e,Ze(o.$t("to")),1),te(s,{placeholder:h.operatorPlaceholder,type:"string",modelValue:W(t).comSearch.form[h.prop+"-end"],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop+"-end"]=b,clearable:!0},null,8,["placeholder","modelValue","onUpdate:modelValue"])])):h.operator=="NULL"||h.operator=="NOT NULL"?(z(),pe("div",X0e,[te(l,{modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,label:h.operator,size:"large"},null,8,["modelValue","onUpdate:modelValue","label"])])):h.operator?(z(),pe("div",J0e,[h.render=="datetime"||h.comSearchRender=="date"?(z(),ge(a,{key:0,class:"datetime-picker",modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,type:h.comSearchRender=="date"?"date":"datetime","value-format":h.comSearchRender=="date"?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",placeholder:h.operatorPlaceholder,"default-value":W(t).comSearch.form[h.prop+"-default"]?W(t).comSearch.form[h.prop+"-default"]:new Date},null,8,["modelValue","onUpdate:modelValue","type","value-format","placeholder","default-value"])):(h.render=="tag"||h.render=="tags"||h.comSearchRender=="select")&&h.replaceValue?(z(),ge(f,{key:1,class:"w100",placeholder:h.operatorPlaceholder,modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,clearable:!0},{default:ne(()=>[(z(!0),pe($t,null,xr(h.replaceValue,(b,m)=>(z(),ge(c,{key:h.prop+m,label:b,value:m},null,8,["label","value"]))),128))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])):h.comSearchRender=="remoteSelect"?(z(),ge(Gve,{key:2,type:"remoteSelect",modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,attr:h.remote,placeholder:h.operatorPlaceholder},null,8,["modelValue","onUpdate:modelValue","attr","placeholder"])):h.comSearchRender=="customRender"?(z(),ge(M_(h.comSearchCustomRender),{key:3,renderRow:h,renderField:h.prop,renderValue:W(t).comSearch.form[h.prop]},null,8,["renderRow","renderField","renderValue"])):h.render=="switch"?(z(),ge(f,{key:4,placeholder:h.operatorPlaceholder,modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,clearable:!0,class:"w100"},{default:ne(()=>[W(O3)(h.replaceValue)?(z(),pe($t,{key:1},[te(c,{label:o.$t("utils.open"),value:"1"},null,8,["label"]),te(c,{label:o.$t("utils.close"),value:"0"},null,8,["label"])],64)):(z(!0),pe($t,{key:0},xr(h.replaceValue,(b,m)=>(z(),ge(c,{key:h.prop+m,label:b,value:m},null,8,["label","value"]))),128))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])):(z(),ge(s,{key:5,placeholder:h.operatorPlaceholder,type:"string",modelValue:W(t).comSearch.form[h.prop],"onUpdate:modelValue":b=>W(t).comSearch.form[h.prop]=b,clearable:!0},null,8,["placeholder","modelValue","onUpdate:modelValue"]))])):we("",!0)])]),_:2},1024))],64)):we("",!0)],64))),128)),te(u,{xs:24,sm:6},{default:ne(()=>[We("div",Z0e,[hn((z(),ge(d,{onClick:n,type:"primary"},{default:ne(()=>[Do(Ze(o.$t("search")),1)]),_:1})),[[v]]),te(d,{onClick:i[0]||(i[0]=h=>r())},{default:ne(()=>[Do(Ze(o.$t("Reset")),1)]),_:1})])]),_:1})]),_:1})]),_:1},8,["onKeyup","model"])])]),_:1})}}});const eve=Ro(Q0e,[["__scopeId","data-v-bda67d27"]]),tve={class:"table-header-operate-text"},nve={class:"table-header-operate-text"},rve={class:"mlr-12"},ove={class:"table-header-operate-text"},ive={class:"table-header-operate-text"},ave={class:"table-search"},uve={key:1,class:"table-search-button-group"},sve=Wn({__name:"index",props:{buttons:{default:()=>["refresh","add","edit","delete"]},quickSearchPlaceholder:{default:""}},setup(e){const t=e,{t:n}=_3(),r=Bv("baTable"),o=Cr({quickSearch:""}),i=fo(()=>{let c=[];for(let f of r.table.column)f.type==="selection"||f.render==="buttons"||f.enableColumnDisplayControl===!1||c.push(f);return c}),a=fo(()=>r.table.selection.length>0),u=(c,f={})=>{r.onTableHeaderAction(c,f)},s=()=>{r.onTableHeaderAction("quick-search",{keyword:o.quickSearch})},l=(c,f)=>{r.onTableHeaderAction("change-show-column",{field:f,value:c})};return(c,f)=>{const d=de("Icon"),p=de("el-button"),g=de("el-tooltip"),v=de("el-popconfirm"),h=de("el-input"),y=de("el-checkbox"),b=de("el-dropdown-item"),m=de("el-dropdown-menu"),$=de("el-dropdown"),E=Ou("blur");return z(),pe($t,null,[te(A3,{name:"el-zoom-in-bottom",mode:"out-in"},{default:ne(()=>[hn(te(eve,null,null,512),[[PR,t.buttons.includes("comSearch")&&W(r).table.showComSearch]])]),_:1}),We("div",Qn(c.$attrs,{class:"table-header ba-scroll-style"}),[t.buttons.includes("refresh")?(z(),ge(g,{key:0,content:W(n)("refresh"),placement:"top"},{default:ne(()=>[hn((z(),ge(p,{onClick:f[0]||(f[0]=S=>u("refresh",{loading:!0})),color:"#40485b",class:"table-header-operate",type:"info"},{default:ne(()=>[te(d,{name:"fa fa-refresh"})]),_:1})),[[E]])]),_:1},8,["content"])):we("",!0),t.buttons.includes("add")&&W(Dm)("add")?(z(),ge(g,{key:1,content:W(n)("add"),placement:"top"},{default:ne(()=>[hn((z(),ge(p,{onClick:f[1]||(f[1]=S=>u("add")),class:"table-header-operate",type:"primary"},{default:ne(()=>[te(d,{name:"fa fa-plus"}),We("span",tve,Ze(W(n)("add")),1)]),_:1})),[[E]])]),_:1},8,["content"])):we("",!0),t.buttons.includes("edit")&&W(Dm)("edit")?(z(),ge(g,{key:2,content:W(n)("Edit selected row"),placement:"top"},{default:ne(()=>[hn((z(),ge(p,{onClick:f[2]||(f[2]=S=>u("edit")),disabled:!W(a),class:"table-header-operate",type:"primary"},{default:ne(()=>[te(d,{name:"fa fa-pencil"}),We("span",nve,Ze(W(n)("edit")),1)]),_:1},8,["disabled"])),[[E]])]),_:1},8,["content"])):we("",!0),t.buttons.includes("delete")&&W(Dm)("del")?(z(),ge(v,{key:3,onConfirm:f[3]||(f[3]=S=>u("delete")),"confirm-button-text":W(n)("delete"),"cancel-button-text":W(n)("Cancel"),confirmButtonType:"danger",title:W(n)("Are you sure to delete the selected record?"),disabled:!W(a)},{reference:ne(()=>[We("div",rve,[te(g,{content:W(n)("Delete selected row"),placement:"top"},{default:ne(()=>[hn((z(),ge(p,{disabled:!W(a),class:"table-header-operate",type:"danger"},{default:ne(()=>[te(d,{name:"fa fa-trash"}),We("span",ove,Ze(W(n)("delete")),1)]),_:1},8,["disabled"])),[[E]])]),_:1},8,["content"])])]),_:1},8,["confirm-button-text","cancel-button-text","title","disabled"])):we("",!0),t.buttons.includes("unfold")?(z(),ge(g,{key:4,content:(W(r).table.expandAll?W(n)("shrink"):W(n)("open"))+W(n)("All submenus"),placement:"top"},{default:ne(()=>[hn((z(),ge(p,{onClick:f[4]||(f[4]=S=>W(r).onTableHeaderAction("unfold",{unfold:!W(r).table.expandAll})),class:"table-header-operate",type:W(r).table.expandAll?"danger":"warning"},{default:ne(()=>[We("span",ive,Ze(W(r).table.expandAll?W(n)("Shrink all"):W(n)("Expand all")),1)]),_:1},8,["type"])),[[E]])]),_:1},8,["content"])):we("",!0),bo(c.$slots,"default",{},void 0,!0),We("div",ave,[bo(c.$slots,"prefixQuickSearch",{},void 0,!0),t.buttons.includes("quickSearch")?(z(),ge(h,{key:0,modelValue:o.quickSearch,"onUpdate:modelValue":f[5]||(f[5]=S=>o.quickSearch=S),class:"xs-hidden quick-search",onInput:f[6]||(f[6]=S=>W(YR)(s,500)()),placeholder:e.quickSearchPlaceholder?e.quickSearchPlaceholder:W(n)("search")},null,8,["modelValue","placeholder"])):we("",!0),t.buttons.includes("columnDisplay")||t.buttons.includes("comSearch")?(z(),pe("div",uve,[t.buttons.includes("columnDisplay")?(z(),ge($,{key:0,"max-height":380,"hide-on-click":!1},{dropdown:ne(()=>[te(m,null,{default:ne(()=>[(z(!0),pe($t,null,xr(W(i),(S,x)=>(z(),ge(b,{key:x},{default:ne(()=>[S.prop?(z(),ge(y,{key:0,onChange:B=>l(B,S.prop),checked:!S.show,"model-value":S.show,size:"small",label:S.label},null,8,["onChange","checked","model-value","label"])):we("",!0)]),_:2},1024))),128))]),_:1})]),default:ne(()=>[te(p,{class:js(["table-search-button-item",t.buttons.includes("comSearch")?"right-border":""]),color:"#dcdfe6",plain:""},{default:ne(()=>[te(d,{size:"14",name:"el-icon-Grid"})]),_:1},8,["class"])]),_:1})):we("",!0),t.buttons.includes("comSearch")?(z(),ge(g,{key:1,disabled:W(r).table.showComSearch,content:W(n)("Expand generic search"),placement:"top"},{default:ne(()=>[te(p,{class:"table-search-button-item",onClick:f[7]||(f[7]=S=>W(r).table.showComSearch=!W(r).table.showComSearch),color:"#dcdfe6",plain:""},{default:ne(()=>[te(d,{size:"14",name:"el-icon-Search"})]),_:1})]),_:1},8,["disabled","content"])):we("",!0)])):we("",!0)])],16)],64)}}});const lve=Ro(sve,[["__scopeId","data-v-88a9359b"]]);/**!
- * Sortable 1.15.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function __(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?__(Object(n),!0).forEach(function(r){cve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ig(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ig=function(t){return typeof t}:Ig=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(e)}function cve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(){return ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui.apply(this,arguments)}function fve(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function dve(e,t){if(e==null)return{};var n=fve(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var pve="1.15.0";function oi(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var di=oi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Wp=oi(/Edge/i),k_=oi(/firefox/i),dd=oi(/safari/i)&&!oi(/chrome/i)&&!oi(/android/i),pR=oi(/iP(ad|od|hone)/i),hR=oi(/chrome/i)&&oi(/android/i),gR={capture:!1,passive:!1};function et(e,t,n){e.addEventListener(t,n,!di&&gR)}function Ye(e,t,n){e.removeEventListener(t,n,!di&&gR)}function Ov(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function hve(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function co(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Ov(e,t):Ov(e,t))||r&&e===n)return e;if(e===n)break}while(e=hve(e))}return null}var T_=/\s+/g;function Jn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(T_," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(T_," ")}}function Ee(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function hl(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ee(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function vR(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Ao(){var e=document.scrollingElement;return e||document.documentElement}function en(e,t,n,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,u,s,l,c,f;if(e!==window&&e.parentNode&&e!==Ao()?(i=e.getBoundingClientRect(),a=i.top,u=i.left,s=i.bottom,l=i.right,c=i.height,f=i.width):(a=0,u=0,s=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!di))do if(o&&o.getBoundingClientRect&&(Ee(o,"transform")!=="none"||n&&Ee(o,"position")!=="static")){var d=o.getBoundingClientRect();a-=d.top+parseInt(Ee(o,"border-top-width")),u-=d.left+parseInt(Ee(o,"border-left-width")),s=a+i.height,l=u+i.width;break}while(o=o.parentNode);if(r&&e!==window){var p=hl(o||e),g=p&&p.a,v=p&&p.d;p&&(a/=v,u/=g,f/=g,c/=v,s=a+c,l=u+f)}return{top:a,left:u,bottom:s,right:l,width:f,height:c}}}function F_(e,t,n){for(var r=Xi(e,!0),o=en(e)[t];r;){var i=en(r)[n],a=void 0;if(n==="top"||n==="left"?a=o>=i:a=o<=i,!a)return r;if(r===Ao())break;r=Xi(r,!1)}return!1}function Hl(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Se.ghost&&(r||a[i]!==Se.dragged)&&co(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function bS(e,t){for(var n=e.lastElementChild;n&&(n===Se.ghost||Ee(n,"display")==="none"||t&&!Ov(n,t));)n=n.previousElementSibling;return n||null}function yr(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Se.clone&&(!t||Ov(e,t))&&n++;return n}function B_(e){var t=0,n=0,r=Ao();if(e)do{var o=hl(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function gve(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Xi(e,t){if(!e||!e.getBoundingClientRect)return Ao();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Ee(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ao();if(r||t)return n;r=!0}}while(n=n.parentNode);return Ao()}function vve(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function aw(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var pd;function mR(e,t){return function(){if(!pd){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),pd=setTimeout(function(){pd=void 0},t)}}}function mve(){clearTimeout(pd),pd=void 0}function yR(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function bR(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var nr="Sortable"+new Date().getTime();function yve(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(Ee(o,"display")==="none"||o===Se.ghost)){e.push({target:o,rect:en(o)});var i=No({},e[e.length-1].rect);if(o.thisAnimationDuration){var a=hl(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(gve(e,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var i=!1,a=0;e.forEach(function(u){var s=0,l=u.target,c=l.fromRect,f=en(l),d=l.prevFromRect,p=l.prevToRect,g=u.rect,v=hl(l,!0);v&&(f.top-=v.f,f.left-=v.e),l.toRect=f,l.thisAnimationDuration&&aw(d,f)&&!aw(c,f)&&(g.top-f.top)/(g.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(s=wve(g,d,p,o.options)),aw(f,c)||(l.prevFromRect=c,l.prevToRect=f,s||(s=o.options.animation),o.animate(l,g,f,s)),s&&(i=!0,a=Math.max(a,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.thisAnimationDuration=s)}),clearTimeout(t),i?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,o,i,a){if(a){Ee(r,"transition",""),Ee(r,"transform","");var u=hl(this.el),s=u&&u.a,l=u&&u.d,c=(o.left-i.left)/(s||1),f=(o.top-i.top)/(l||1);r.animatingX=!!c,r.animatingY=!!f,Ee(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=bve(r),Ee(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Ee(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ee(r,"transition",""),Ee(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function bve(e){return e.offsetWidth}function wve(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Rs=[],uw={initializeByDefault:!0},qp={mount:function(t){for(var n in uw)uw.hasOwnProperty(n)&&!(n in t)&&(t[n]=uw[n]);Rs.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Rs.push(t)},pluginEvent:function(t,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=t+"Global";Rs.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][i]&&n[a.pluginName][i](No({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](No({sortable:n},r)))})},initializePlugins:function(t,n,r,o){Rs.forEach(function(u){var s=u.pluginName;if(!(!t.options[s]&&!u.initializeByDefault)){var l=new u(t,n,t.options);l.sortable=t,l.options=t.options,t[s]=l,ui(r,l.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);typeof a<"u"&&(t.options[i]=a)}},getEventProperties:function(t,n){var r={};return Rs.forEach(function(o){typeof o.eventProperties=="function"&&ui(r,o.eventProperties.call(n[o.pluginName],t))}),r},modifyOption:function(t,n,r){var o;return Rs.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(t[i.pluginName],r))}),o}};function $ve(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,u=e.fromEl,s=e.oldIndex,l=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,p=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[nr],!!t){var v,h=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!di&&!Wp?v=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(r,!0,!0)),v.to=a||n,v.from=u||n,v.item=o||n,v.clone=i,v.oldIndex=s,v.newIndex=l,v.oldDraggableIndex=c,v.newDraggableIndex=f,v.originalEvent=d,v.pullMode=p?p.lastPutMode:void 0;var b=No(No({},g),qp.getEventProperties(r,t));for(var m in b)v[m]=b[m];n&&n.dispatchEvent(v),h[y]&&h[y].call(t,v)}}var Eve=["evt"],jn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=dve(r,Eve);qp.pluginEvent.bind(Se)(t,n,No({dragEl:ee,parentEl:Bt,ghostEl:Fe,rootEl:wt,nextEl:tu,lastDownEl:Ng,cloneEl:_t,cloneHidden:Wi,dragStarted:Lf,putSortable:pn,activeSortable:Se.active,originalEvent:o,oldIndex:Qs,oldDraggableIndex:hd,newIndex:Zn,newDraggableIndex:Vi,hideGhostForTarget:SR,unhideGhostForTarget:DR,cloneNowHidden:function(){Wi=!0},cloneNowShown:function(){Wi=!1},dispatchSortableEvent:function(u){Fn({sortable:n,name:u,originalEvent:o})}},i))};function Fn(e){$ve(No({putSortable:pn,cloneEl:_t,targetEl:ee,rootEl:wt,oldIndex:Qs,oldDraggableIndex:hd,newIndex:Zn,newDraggableIndex:Vi},e))}var ee,Bt,Fe,wt,tu,Ng,_t,Wi,Qs,Zn,hd,Vi,rg,pn,qs=!1,_v=!1,kv=[],Ka,jr,sw,lw,P_,I_,Lf,Ls,gd,vd=!1,og=!1,Rg,Cn,cw=[],S3=!1,Tv=[],M1=typeof document<"u",ig=pR,N_=Wp||di?"cssFloat":"float",Sve=M1&&!hR&&!pR&&"draggable"in document.createElement("div"),wR=function(){if(M1){if(di)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),$R=function(t,n){var r=Ee(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Hl(t,0,n),a=Hl(t,1,n),u=i&&Ee(i),s=a&&Ee(a),l=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+en(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+en(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&u.float&&u.float!=="none"){var f=u.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return i&&(u.display==="block"||u.display==="flex"||u.display==="table"||u.display==="grid"||l>=o&&r[N_]==="none"||a&&r[N_]==="none"&&l+c>o)?"vertical":"horizontal"},Dve=function(t,n,r){var o=r?t.left:t.top,i=r?t.right:t.bottom,a=r?t.width:t.height,u=r?n.left:n.top,s=r?n.right:n.bottom,l=r?n.width:n.height;return o===u||i===s||o+a/2===u+l/2},Cve=function(t,n){var r;return kv.some(function(o){var i=o[nr].options.emptyInsertThreshold;if(!(!i||bS(o))){var a=en(o),u=t>=a.left-i&&t<=a.right+i,s=n>=a.top-i&&n<=a.bottom+i;if(u&&s)return r=o}}),r},ER=function(t){function n(i,a){return function(u,s,l,c){var f=u.options.group.name&&s.options.group.name&&u.options.group.name===s.options.group.name;if(i==null&&(a||f))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(u,s,l,c),a)(u,s,l,c);var d=(a?u:s).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var r={},o=t.group;(!o||Ig(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,t.group=r},SR=function(){!wR&&Fe&&Ee(Fe,"display","none")},DR=function(){!wR&&Fe&&Ee(Fe,"display","")};M1&&!hR&&document.addEventListener("click",function(e){if(_v)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_v=!1,!1},!0);var Ya=function(t){if(ee){t=t.touches?t.touches[0]:t;var n=Cve(t.clientX,t.clientY);if(n){var r={};for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[nr]._onDragOver(r)}}},xve=function(t){ee&&ee.parentNode[nr]._isOutsideThisEl(t.target)};function Se(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ui({},t),e[nr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $R(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,u){a.setData("Text",u.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Se.supportPointer!==!1&&"PointerEvent"in window&&!dd,emptyInsertThreshold:5};qp.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);ER(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:Sve,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?et(e,"pointerdown",this._onTapStart):(et(e,"mousedown",this._onTapStart),et(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(et(e,"dragover",this),et(e,"dragenter",this)),kv.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ui(this,yve())}Se.prototype={constructor:Se,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ls=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,ee):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,o=this.options,i=o.preventOnFilter,a=t.type,u=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(u||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=o.filter;if(Pve(r),!ee&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&dd&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=co(s,o.draggable,r,!1),!(s&&s.animated)&&Ng!==s)){if(Qs=yr(s),hd=yr(s,o.draggable),typeof c=="function"){if(c.call(this,t,s,this)){Fn({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),jn("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=co(l,f.trim(),r,!1),f)return Fn({sortable:n,rootEl:f,name:"filter",targetEl:s,fromEl:r,toEl:r}),jn("filter",n,{evt:t}),!0}),c)){i&&t.cancelable&&t.preventDefault();return}o.handle&&!co(l,o.handle,r,!1)||this._prepareDragStart(t,u,s)}}},_prepareDragStart:function(t,n,r){var o=this,i=o.el,a=o.options,u=i.ownerDocument,s;if(r&&!ee&&r.parentNode===i){var l=en(r);if(wt=i,ee=r,Bt=ee.parentNode,tu=ee.nextSibling,Ng=r,rg=a.group,Se.dragged=ee,Ka={target:ee,clientX:(n||t).clientX,clientY:(n||t).clientY},P_=Ka.clientX-l.left,I_=Ka.clientY-l.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,ee.style["will-change"]="all",s=function(){if(jn("delayEnded",o,{evt:t}),Se.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!k_&&o.nativeDraggable&&(ee.draggable=!0),o._triggerDragStart(t,n),Fn({sortable:o,name:"choose",originalEvent:t}),Jn(ee,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){vR(ee,c.trim(),fw)}),et(u,"dragover",Ya),et(u,"mousemove",Ya),et(u,"touchmove",Ya),et(u,"mouseup",o._onDrop),et(u,"touchend",o._onDrop),et(u,"touchcancel",o._onDrop),k_&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ee.draggable=!0),jn("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Wp||di))){if(Se.eventCanceled){this._onDrop();return}et(u,"mouseup",o._disableDelayedDrag),et(u,"touchend",o._disableDelayedDrag),et(u,"touchcancel",o._disableDelayedDrag),et(u,"mousemove",o._delayedDragTouchMoveHandler),et(u,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&et(u,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ee&&fw(ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ye(t,"mouseup",this._disableDelayedDrag),Ye(t,"touchend",this._disableDelayedDrag),Ye(t,"touchcancel",this._disableDelayedDrag),Ye(t,"mousemove",this._delayedDragTouchMoveHandler),Ye(t,"touchmove",this._delayedDragTouchMoveHandler),Ye(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?et(document,"pointermove",this._onTouchMove):n?et(document,"touchmove",this._onTouchMove):et(document,"mousemove",this._onTouchMove):(et(ee,"dragend",this),et(wt,"dragstart",this._onDragStart));try{document.selection?Lg(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(qs=!1,wt&&ee){jn("dragStarted",this,{evt:n}),this.nativeDraggable&&et(document,"dragover",xve);var r=this.options;!t&&Jn(ee,r.dragClass,!1),Jn(ee,r.ghostClass,!0),Se.active=this,t&&this._appendGhost(),Fn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(jr){this._lastX=jr.clientX,this._lastY=jr.clientY,SR();for(var t=document.elementFromPoint(jr.clientX,jr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(jr.clientX,jr.clientY),t!==n);)n=t;if(ee.parentNode[nr]._isOutsideThisEl(t),n)do{if(n[nr]){var r=void 0;if(r=n[nr]._onDragOver({clientX:jr.clientX,clientY:jr.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);DR()}},_onTouchMove:function(t){if(Ka){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=t.touches?t.touches[0]:t,a=Fe&&hl(Fe,!0),u=Fe&&a&&a.a,s=Fe&&a&&a.d,l=ig&&Cn&&B_(Cn),c=(i.clientX-Ka.clientX+o.x)/(u||1)+(l?l[0]-cw[0]:0)/(u||1),f=(i.clientY-Ka.clientY+o.y)/(s||1)+(l?l[1]-cw[1]:0)/(s||1);if(!Se.active&&!qs){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Fe){a?(a.e+=c-(sw||0),a.f+=f-(lw||0)):a={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Ee(Fe,"webkitTransform",d),Ee(Fe,"mozTransform",d),Ee(Fe,"msTransform",d),Ee(Fe,"transform",d),sw=c,lw=f,jr=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Fe){var t=this.options.fallbackOnBody?document.body:wt,n=en(ee,!0,ig,!0,t),r=this.options;if(ig){for(Cn=t;Ee(Cn,"position")==="static"&&Ee(Cn,"transform")==="none"&&Cn!==document;)Cn=Cn.parentNode;Cn!==document.body&&Cn!==document.documentElement?(Cn===document&&(Cn=Ao()),n.top+=Cn.scrollTop,n.left+=Cn.scrollLeft):Cn=Ao(),cw=B_(Cn)}Fe=ee.cloneNode(!0),Jn(Fe,r.ghostClass,!1),Jn(Fe,r.fallbackClass,!0),Jn(Fe,r.dragClass,!0),Ee(Fe,"transition",""),Ee(Fe,"transform",""),Ee(Fe,"box-sizing","border-box"),Ee(Fe,"margin",0),Ee(Fe,"top",n.top),Ee(Fe,"left",n.left),Ee(Fe,"width",n.width),Ee(Fe,"height",n.height),Ee(Fe,"opacity","0.8"),Ee(Fe,"position",ig?"absolute":"fixed"),Ee(Fe,"zIndex","100000"),Ee(Fe,"pointerEvents","none"),Se.ghost=Fe,t.appendChild(Fe),Ee(Fe,"transform-origin",P_/parseInt(Fe.style.width)*100+"% "+I_/parseInt(Fe.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,o=t.dataTransfer,i=r.options;if(jn("dragStart",this,{evt:t}),Se.eventCanceled){this._onDrop();return}jn("setupClone",this),Se.eventCanceled||(_t=bR(ee),_t.removeAttribute("id"),_t.draggable=!1,_t.style["will-change"]="",this._hideClone(),Jn(_t,this.options.chosenClass,!1),Se.clone=_t),r.cloneId=Lg(function(){jn("clone",r),!Se.eventCanceled&&(r.options.removeCloneOnHide||wt.insertBefore(_t,ee),r._hideClone(),Fn({sortable:r,name:"clone"}))}),!n&&Jn(ee,i.dragClass,!0),n?(_v=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Ye(document,"mouseup",r._onDrop),Ye(document,"touchend",r._onDrop),Ye(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,ee)),et(document,"drop",r),Ee(ee,"transform","translateZ(0)")),qs=!0,r._dragStartId=Lg(r._dragStarted.bind(r,n,t)),et(document,"selectstart",r),Lf=!0,dd&&Ee(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,o,i,a,u=this.options,s=u.group,l=Se.active,c=rg===s,f=u.sort,d=pn||l,p,g=this,v=!1;if(S3)return;function h(De,$e){jn(De,g,No({evt:t,isOwner:c,axis:p?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:f,fromSortable:d,target:r,completed:b,onMove:function(Me,T){return ag(wt,n,ee,o,Me,en(Me),t,T)},changed:m},$e))}function y(){h("dragOverAnimationCapture"),g.captureAnimationState(),g!==d&&d.captureAnimationState()}function b(De){return h("dragOverCompleted",{insertion:De}),De&&(c?l._hideClone():l._showClone(g),g!==d&&(Jn(ee,pn?pn.options.ghostClass:l.options.ghostClass,!1),Jn(ee,u.ghostClass,!0)),pn!==g&&g!==Se.active?pn=g:g===Se.active&&pn&&(pn=null),d===g&&(g._ignoreWhileAnimating=r),g.animateAll(function(){h("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===ee&&!ee.animated||r===n&&!r.animated)&&(Ls=null),!u.dragoverBubble&&!t.rootEl&&r!==document&&(ee.parentNode[nr]._isOutsideThisEl(t.target),!De&&Ya(t)),!u.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function m(){Zn=yr(ee),Vi=yr(ee,u.draggable),Fn({sortable:g,name:"change",toEl:n,newIndex:Zn,newDraggableIndex:Vi,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=co(r,u.draggable,n,!0),h("dragOver"),Se.eventCanceled)return v;if(ee.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r)return b(!1);if(_v=!1,l&&!u.disabled&&(c?f||(a=Bt!==wt):pn===this||(this.lastPutMode=rg.checkPull(this,l,ee,t))&&s.checkPut(this,l,ee,t))){if(p=this._getDirection(t,r)==="vertical",o=en(ee),h("dragOverValid"),Se.eventCanceled)return v;if(a)return Bt=wt,y(),this._hideClone(),h("revert"),Se.eventCanceled||(tu?wt.insertBefore(ee,tu):wt.appendChild(ee)),b(!0);var $=bS(n,u.draggable);if(!$||kve(t,p,this)&&!$.animated){if($===ee)return b(!1);if($&&n===t.target&&(r=$),r&&(i=en(r)),ag(wt,n,ee,o,r,i,t,!!r)!==!1)return y(),$&&$.nextSibling?n.insertBefore(ee,$.nextSibling):n.appendChild(ee),Bt=n,m(),b(!0)}else if($&&_ve(t,p,this)){var E=Hl(n,0,u,!0);if(E===ee)return b(!1);if(r=E,i=en(r),ag(wt,n,ee,o,r,i,t,!1)!==!1)return y(),n.insertBefore(ee,E),Bt=n,m(),b(!0)}else if(r.parentNode===n){i=en(r);var S=0,x,B=ee.parentNode!==n,I=!Dve(ee.animated&&ee.toRect||o,r.animated&&r.toRect||i,p),H=p?"top":"left",G=F_(r,"top","top")||F_(ee,"top","top"),Y=G?G.scrollTop:void 0;Ls!==r&&(x=i[H],vd=!1,og=!I&&u.invertSwap||B),S=Tve(t,r,i,p,I?1:u.swapThreshold,u.invertedSwapThreshold==null?u.swapThreshold:u.invertedSwapThreshold,og,Ls===r);var U;if(S!==0){var ie=yr(ee);do ie-=S,U=Bt.children[ie];while(U&&(Ee(U,"display")==="none"||U===Fe))}if(S===0||U===r)return b(!1);Ls=r,gd=S;var re=r.nextElementSibling,ae=!1;ae=S===1;var me=ag(wt,n,ee,o,r,i,t,ae);if(me!==!1)return(me===1||me===-1)&&(ae=me===1),S3=!0,setTimeout(Ove,30),y(),ae&&!re?n.appendChild(ee):r.parentNode.insertBefore(ee,ae?re:r),G&&yR(G,0,Y-G.scrollTop),Bt=ee.parentNode,x!==void 0&&!og&&(Rg=Math.abs(x-en(r)[H])),m(),b(!0)}if(n.contains(ee))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ye(document,"mousemove",this._onTouchMove),Ye(document,"touchmove",this._onTouchMove),Ye(document,"pointermove",this._onTouchMove),Ye(document,"dragover",Ya),Ye(document,"mousemove",Ya),Ye(document,"touchmove",Ya)},_offUpEvents:function(){var t=this.el.ownerDocument;Ye(t,"mouseup",this._onDrop),Ye(t,"touchend",this._onDrop),Ye(t,"pointerup",this._onDrop),Ye(t,"touchcancel",this._onDrop),Ye(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(Zn=yr(ee),Vi=yr(ee,r.draggable),jn("drop",this,{evt:t}),Bt=ee&&ee.parentNode,Zn=yr(ee),Vi=yr(ee,r.draggable),Se.eventCanceled){this._nulling();return}qs=!1,og=!1,vd=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),D3(this.cloneId),D3(this._dragStartId),this.nativeDraggable&&(Ye(document,"drop",this),Ye(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),dd&&Ee(document.body,"user-select",""),Ee(ee,"transform",""),t&&(Lf&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),(wt===Bt||pn&&pn.lastPutMode!=="clone")&&_t&&_t.parentNode&&_t.parentNode.removeChild(_t),ee&&(this.nativeDraggable&&Ye(ee,"dragend",this),fw(ee),ee.style["will-change"]="",Lf&&!qs&&Jn(ee,pn?pn.options.ghostClass:this.options.ghostClass,!1),Jn(ee,this.options.chosenClass,!1),Fn({sortable:this,name:"unchoose",toEl:Bt,newIndex:null,newDraggableIndex:null,originalEvent:t}),wt!==Bt?(Zn>=0&&(Fn({rootEl:Bt,name:"add",toEl:Bt,fromEl:wt,originalEvent:t}),Fn({sortable:this,name:"remove",toEl:Bt,originalEvent:t}),Fn({rootEl:Bt,name:"sort",toEl:Bt,fromEl:wt,originalEvent:t}),Fn({sortable:this,name:"sort",toEl:Bt,originalEvent:t})),pn&&pn.save()):Zn!==Qs&&Zn>=0&&(Fn({sortable:this,name:"update",toEl:Bt,originalEvent:t}),Fn({sortable:this,name:"sort",toEl:Bt,originalEvent:t})),Se.active&&((Zn==null||Zn===-1)&&(Zn=Qs,Vi=hd),Fn({sortable:this,name:"end",toEl:Bt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){jn("nulling",this),wt=ee=Bt=Fe=tu=_t=Ng=Wi=Ka=jr=Lf=Zn=Vi=Qs=hd=Ls=gd=pn=rg=Se.dragged=Se.ghost=Se.clone=Se.active=null,Tv.forEach(function(t){t.checked=!0}),Tv.length=sw=lw=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ee&&(this._onDragOver(t),Ave(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,o=0,i=r.length,a=this.options;o<i;o++)n=r[o],co(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||Bve(n));return t},sort:function(t,n){var r={},o=this.el;this.toArray().forEach(function(i,a){var u=o.children[a];co(u,this.options.draggable,o,!1)&&(r[i]=u)},this),n&&this.captureAnimationState(),t.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return co(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var o=qp.modifyOption(this,t,n);typeof o<"u"?r[t]=o:r[t]=n,t==="group"&&ER(r)},destroy:function(){jn("destroy",this);var t=this.el;t[nr]=null,Ye(t,"mousedown",this._onTapStart),Ye(t,"touchstart",this._onTapStart),Ye(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ye(t,"dragover",this),Ye(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),kv.splice(kv.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Wi){if(jn("hideClone",this),Se.eventCanceled)return;Ee(_t,"display","none"),this.options.removeCloneOnHide&&_t.parentNode&&_t.parentNode.removeChild(_t),Wi=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Wi){if(jn("showClone",this),Se.eventCanceled)return;ee.parentNode==wt&&!this.options.group.revertClone?wt.insertBefore(_t,ee):tu?wt.insertBefore(_t,tu):wt.appendChild(_t),this.options.group.revertClone&&this.animate(ee,_t),Ee(_t,"display",""),Wi=!1}}};function Ave(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ag(e,t,n,r,o,i,a,u){var s,l=e[nr],c=l.options.onMove,f;return window.CustomEvent&&!di&&!Wp?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||en(t),s.willInsertAfter=u,s.originalEvent=a,e.dispatchEvent(s),c&&(f=c.call(l,s,a)),f}function fw(e){e.draggable=!1}function Ove(){S3=!1}function _ve(e,t,n){var r=en(Hl(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function kve(e,t,n){var r=en(bS(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function Tve(e,t,n,r,o,i,a,u){var s=r?e.clientY:e.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a){if(u&&Rg<l*o){if(!vd&&(gd===1?s>c+l*i/2:s<f-l*i/2)&&(vd=!0),vd)d=!0;else if(gd===1?s<c+Rg:s>f-Rg)return-gd}else if(s>c+l*(1-o)/2&&s<f-l*(1-o)/2)return Fve(t)}return d=d||a,d&&(s<c+l*i/2||s>f-l*i/2)?s>c+l/2?1:-1:0}function Fve(e){return yr(ee)<yr(e)?1:-1}function Bve(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Pve(e){Tv.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Tv.push(r)}}function Lg(e){return setTimeout(e,0)}function D3(e){return clearTimeout(e)}M1&&et(document,"touchmove",function(e){(Se.active||qs)&&e.cancelable&&e.preventDefault()});Se.utils={on:et,off:Ye,css:Ee,find:vR,is:function(t,n){return!!co(t,n,t,!1)},extend:vve,throttle:mR,closest:co,toggleClass:Jn,clone:bR,index:yr,nextTick:Lg,cancelNextTick:D3,detectDirection:$R,getChild:Hl};Se.get=function(e){return e[nr]};Se.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Se.utils=No(No({},Se.utils),r.utils)),qp.mount(r)})};Se.create=function(e,t){return new Se(e,t)};Se.version=pve;var Ut=[],jf,C3,x3=!1,dw,pw,Fv,Mf;function Ive(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?et(document,"dragover",this._handleAutoScroll):this.options.supportPointer?et(document,"pointermove",this._handleFallbackAutoScroll):r.touches?et(document,"touchmove",this._handleFallbackAutoScroll):et(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Ye(document,"dragover",this._handleAutoScroll):(Ye(document,"pointermove",this._handleFallbackAutoScroll),Ye(document,"touchmove",this._handleFallbackAutoScroll),Ye(document,"mousemove",this._handleFallbackAutoScroll)),R_(),jg(),mve()},nulling:function(){Fv=C3=jf=x3=Mf=dw=pw=null,Ut.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,u=document.elementFromPoint(i,a);if(Fv=n,r||this.options.forceAutoScrollFallback||Wp||di||dd){hw(n,this.options,u,r);var s=Xi(u,!0);x3&&(!Mf||i!==dw||a!==pw)&&(Mf&&R_(),Mf=setInterval(function(){var l=Xi(document.elementFromPoint(i,a),!0);l!==s&&(s=l,jg()),hw(n,o.options,l,r)},10),dw=i,pw=a)}else{if(!this.options.bubbleScroll||Xi(u,!0)===Ao()){jg();return}hw(n,this.options,Xi(u,!1),!1)}}},ui(e,{pluginName:"scroll",initializeByDefault:!0})}function jg(){Ut.forEach(function(e){clearInterval(e.pid)}),Ut=[]}function R_(){clearInterval(Mf)}var hw=mR(function(e,t,n,r){if(t.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,u=t.scrollSpeed,s=Ao(),l=!1,c;C3!==n&&(C3=n,jg(),jf=t.scroll,c=t.scrollFn,jf===!0&&(jf=Xi(n,!0)));var f=0,d=jf;do{var p=d,g=en(p),v=g.top,h=g.bottom,y=g.left,b=g.right,m=g.width,$=g.height,E=void 0,S=void 0,x=p.scrollWidth,B=p.scrollHeight,I=Ee(p),H=p.scrollLeft,G=p.scrollTop;p===s?(E=m<x&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),S=$<B&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(E=m<x&&(I.overflowX==="auto"||I.overflowX==="scroll"),S=$<B&&(I.overflowY==="auto"||I.overflowY==="scroll"));var Y=E&&(Math.abs(b-o)<=a&&H+m<x)-(Math.abs(y-o)<=a&&!!H),U=S&&(Math.abs(h-i)<=a&&G+$<B)-(Math.abs(v-i)<=a&&!!G);if(!Ut[f])for(var ie=0;ie<=f;ie++)Ut[ie]||(Ut[ie]={});(Ut[f].vx!=Y||Ut[f].vy!=U||Ut[f].el!==p)&&(Ut[f].el=p,Ut[f].vx=Y,Ut[f].vy=U,clearInterval(Ut[f].pid),(Y!=0||U!=0)&&(l=!0,Ut[f].pid=setInterval(function(){r&&this.layer===0&&Se.active._onTouchMove(Fv);var re=Ut[this.layer].vy?Ut[this.layer].vy*u:0,ae=Ut[this.layer].vx?Ut[this.layer].vx*u:0;typeof c=="function"&&c.call(Se.dragged.parentNode[nr],ae,re,e,Fv,Ut[this.layer].el)!=="continue"||yR(Ut[this.layer].el,ae,re)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==s&&(d=Xi(d,!1)));x3=l}},30),CR=function(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,i=t.activeSortable,a=t.dispatchSortableEvent,u=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(n){var l=r||i;u();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(f)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function wS(){}wS.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Hl(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:CR};ui(wS,{pluginName:"revertOnSpill"});function $S(){}$S.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:CR};ui($S,{pluginName:"removeOnSpill"});Se.mount(new Ive);Se.mount($S,wS);class Nve{constructor(t,n,r={},o={},i={}){Qt(this,"api");Qt(this,"table",Cr({ref:void 0,pk:"id",data:[],remark:null,loading:!1,selection:[],column:[],total:0,filter:{},dragSortLimitField:"pid",acceptQuery:!0,showComSearch:!1,dblClickNotEditColumn:[void 0],expandAll:!1,extend:{}}));Qt(this,"form",Cr({ref:void 0,labelWidth:160,operate:"",operateIds:[],items:{},submitLoading:!1,defaultItems:{},loading:!1,extend:{}}));Qt(this,"before");Qt(this,"after");Qt(this,"comSearch",Cr({form:{},fieldData:new Map}));Qt(this,"getIndex",()=>{if(this.runBefore("getIndex")!==!1)return this.table.loading=!0,this.api.index(this.table.filter).then(t=>{this.table.data=t.data.list,this.table.total=t.data.total,this.table.remark=t.data.remark,this.runAfter("getIndex",{res:t})}).finally(()=>{this.table.loading=!1})});Qt(this,"postDel",t=>{this.runBefore("postDel",{ids:t})!==!1&&this.api.del(t).then(n=>{this.onTableHeaderAction("refresh",{}),this.runAfter("postDel",{res:n})})});Qt(this,"requestEdit",t=>{if(this.runBefore("requestEdit",{id:t})!==!1)return this.form.loading=!0,this.form.items={},this.api.edit({[this.table.pk]:t}).then(n=>{this.form.items=n.data.row,this.runAfter("requestEdit",{res:n})}).catch(n=>{this.toggleForm(),this.runAfter("requestEdit",{err:n})}).finally(()=>{this.form.loading=!1})});Qt(this,"onTableDblclick",(t,n)=>{if(!this.table.dblClickNotEditColumn.includes("all")&&!this.table.dblClickNotEditColumn.includes(n.property)){if(this.runBefore("onTableDblclick",{row:t,column:n})===!1)return;this.toggleForm("edit",[t[this.table.pk]]),this.runAfter("onTableDblclick",{row:t,column:n})}});Qt(this,"toggleForm",(t="",n=[])=>{if(this.runBefore("toggleForm",{operate:t,operateIds:n})!==!1){if(this.form.ref&&this.form.ref.resetFields(),t=="edit"){if(!n.length)return!1;this.requestEdit(n[0])}else t=="add"&&(this.form.items=V_(this.form.defaultItems));this.form.operate=t,this.form.operateIds=n,this.runAfter("toggleForm",{operate:t,operateIds:n})}});Qt(this,"onSubmit",(t=void 0)=>{if(this.runBefore("onSubmit",{formEl:t,operate:this.form.operate,items:this.form.items})===!1)return;Object.keys(this.form.items).forEach(r=>{this.form.items[r]===null&&delete this.form.items[r]});const n=()=>{this.form.submitLoading=!0,this.api.postData(this.form.operate,this.form.items).then(r=>{var o;this.onTableHeaderAction("refresh",{}),(o=this.form.operateIds)==null||o.shift(),this.form.operateIds.length>0?this.toggleForm("edit",this.form.operateIds):this.toggleForm(),this.runAfter("onSubmit",{res:r})}).finally(()=>{this.form.submitLoading=!1})};t?(this.form.ref=t,t.validate(r=>{r&&n()})):n()});Qt(this,"onTableAction",(t,n)=>{if(this.runBefore("onTableAction",{event:t,data:n})===!1)return;const r=new Map([["selection-change",()=>{this.table.selection=n}],["page-size-change",()=>{this.table.filter.limit=n.size,this.getIndex()}],["current-page-change",()=>{this.table.filter.page=n.page,this.getIndex()}],["sort-change",()=>{let i;n.prop&&n.order&&(i=n.prop+","+n.order),i!=this.table.filter.order&&(this.table.filter.order=i,this.getIndex())}],["edit",()=>{this.toggleForm("edit",[n.row[this.table.pk]])}],["delete",()=>{this.postDel([n.row[this.table.pk]])}],["field-change",()=>{if(n.field.render=="switch"){if(!n.field||!n.field.prop)return;n.row.loading=!0,this.api.postData("edit",{[this.table.pk]:n.row[this.table.pk],[n.field.prop]:n.value}).then(()=>{n.row.loading=!1,n.row[n.field.prop]=n.value}).catch(()=>{n.row.loading=!1})}}],["com-search",()=>{this.table.filter.search=n,this.getIndex()}],["default",()=>{console.warn("No action defined")}]]);return(r.get(t)||r.get("default")).call(this),this.runAfter("onTableAction",{event:t,data:n})});Qt(this,"onTableHeaderAction",(t,n)=>{if(this.runBefore("onTableHeaderAction",{event:t,data:n})===!1)return;const r=new Map([["refresh",()=>{this.table.data=[],this.getIndex()}],["add",()=>{this.toggleForm("add")}],["edit",()=>{this.toggleForm("edit",this.getSelectionIds())}],["delete",()=>{this.postDel(this.getSelectionIds())}],["unfold",()=>{if(!this.table.ref){console.warn("Collapse/expand failed because table ref is not defined. Please assign table ref when onMounted");return}this.table.expandAll=n.unfold,this.table.ref.unFoldAll(n.unfold)}],["quick-search",()=>{this.table.filter.quick_search=n.keyword,this.getIndex()}],["change-show-column",()=>{const i=zf(this.table.column,"prop",n.field);this.table.column[i].show=n.value}],["default",()=>{console.warn("No action defined")}]]);return(r.get(t)||r.get("default")).call(this),this.runAfter("onTableHeaderAction",{event:t,data:n})});Qt(this,"initSort",()=>{var t;if(this.table.defaultOrder&&this.table.defaultOrder.prop){if(!this.table.ref){console.warn("Failed to initialize default sorting because table ref is not defined. Please assign table ref when onMounted");return}const n=this.table.defaultOrder.prop+","+this.table.defaultOrder.order;this.table.filter&&this.table.filter.order!=n&&(this.table.filter.order=n,(t=this.table.ref.getRef())==null||t.sort(this.table.defaultOrder.prop,this.table.defaultOrder.order=="desc"?"descending":"ascending"))}});Qt(this,"dragSort",()=>{var i;const t=zf(this.table.column,"render","buttons");if(t===!1)return;const n=zf((i=this.table.column[t])==null?void 0:i.buttons,"render","moveButton");if(n===!1)return;if(!this.table.ref){console.warn("Failed to initialize drag sort because table ref is not defined. Please assign table ref when onMounted");return}const r=this.table.ref.getRef().$el.querySelector(".el-table__body-wrapper .el-table__body tbody"),o=this.table.column[t].buttons[n].disabledTip;Se.create(r,{animation:200,handle:".table-row-weigh-sort",ghostClass:"ba-table-row",onStart:()=>{this.table.column[t].buttons[n].disabledTip=!0},onEnd:a=>{this.table.column[t].buttons[n].disabledTip=o;const u=DS(this.table.data,a.oldIndex),s=DS(this.table.data,a.newIndex);if(this.table.dragSortLimitField&&u[this.table.dragSortLimitField]!=s[this.table.dragSortLimitField]){this.onTableHeaderAction("refresh",{}),NR({type:"error",message:XR.global.t("utils.The moving position is beyond the movable range!")});return}this.api.sortableApi(u[this.table.pk],s[this.table.pk]).finally(()=>{this.onTableHeaderAction("refresh",{})})}})});Qt(this,"mount",()=>{this.runBefore("mount")!==!1&&RR(t=>{this.initComSearch(t.query),this.getIndex()})});Qt(this,"initComSearch",(t={})=>{const n={},r=this.table.column;if(!(r.length<=0)){for(const o in r){if(r[o].operator===!1)continue;const i=r[o].prop;if(typeof r[o].operator>"u"&&(r[o].operator="="),i){if(r[o].operator=="RANGE"||r[o].operator=="NOT RANGE"?(n[i]="",n[i+"-start"]="",n[i+"-end"]=""):r[o].operator=="NULL"||r[o].operator=="NOT NULL"?n[i]=!1:n[i]="",this.table.acceptQuery&&typeof t[i]<"u"){const a=t[i]??"";if(r[o].operator=="RANGE"||r[o].operator=="NOT RANGE"){const u=a.split(",");r[o].render=="datetime"?u&&u.length>=2&&(n[i+"-default"]=[new Date(u[0]),new Date(u[1])]):(n[i+"-start"]=u[0]??"",n[i+"-end"]=u[1]??"")}else r[o].operator=="NULL"||r[o].operator=="NOT NULL"?n[i]=!!a:r[o].render=="datetime"?n[i+"-default"]=new Date(a):n[i]=a}this.comSearch.fieldData.set(i,{operator:r[o].operator,render:r[o].render,comSearchRender:r[o].comSearchRender})}}if(this.table.acceptQuery){const o=[];for(const i in t){const a=this.comSearch.fieldData.get(i);a&&o.push({field:i,val:t[i],operator:a.operator,render:a.render})}this.table.filter.search=o}this.comSearch.form=Object.assign(this.comSearch.form,n)}});this.api=t,this.form=Object.assign(this.form,r),this.table=Object.assign(this.table,n),this.before=o,this.after=i;const a=LR();this.initComSearch(IR(a)?{}:a.query)}runBefore(t,n={}){return this.before&&this.before[t]&&typeof this.before[t]=="function"?this.before[t]({...n})!==!1:!0}runAfter(t,n={}){return this.after&&this.after[t]&&typeof this.after[t]=="function"?this.after[t]({...n})!==!1:!0}getSelectionIds(){var n;const t=[];return(n=this.table.selection)==null||n.forEach(r=>{t.push(r[this.table.pk])}),t}}const Rve={class:"table-header-operate-text"},Lve={key:0,class:"ml-10"},jve={class:"selection-count"},Mve=Wn({__name:"selectFile",props:{type:{default:"file"},limit:{default:0},modelValue:{type:Boolean,default:!1},returnFullUrl:{type:Boolean,default:!1}},emits:["update:modelValue","choice"],setup(e,{emit:t}){const n=e,r=Dr(),{t:o}=_3(),i=Cr({ready:!1,tableSelectable:!0}),a=[{render:"tipButton",name:"choice",text:o("utils.choice"),type:"primary",icon:"fa fa-check",class:"table-row-choice",disabledTip:!1,click:f=>{r.value.getRef().clearSelection(),t("choice",n.returnFullUrl?[f.full_url]:[f.url])}}],u=new Nve(new JR(eL),{column:[{type:"selection",selectable:f=>{if(n.limit==0)return!0;if(u.table.selection){for(const d in u.table.selection)if(f.id==u.table.selection[d].id)return!0}return i.tableSelectable},align:"center",operator:!1},{label:o("id"),prop:"id",align:"center",operator:"LIKE",operatorPlaceholder:o("Fuzzy query"),width:70},{label:o("utils.Breakdown"),prop:"topic",align:"center",operator:"LIKE",operatorPlaceholder:o("Fuzzy query")},{label:o("utils.preview"),prop:"suffix",align:"center",renderFormatter:tL,render:"image",operator:!1},{label:o("utils.type"),prop:"mimetype",align:"center",operator:"LIKE","show-overflow-tooltip":!0,operatorPlaceholder:o("Fuzzy query")},{label:o("utils.size"),prop:"size",align:"center",formatter:(f,d,p)=>{var g=parseFloat(p),v=Math.floor(Math.log(g)/Math.log(1024));return parseInt((g/Math.pow(1024,v)).toFixed(v<2?0:2))*1+" "+["B","KB","MB","GB","TB"][v]},operator:"RANGE",sortable:"custom",operatorPlaceholder:"bytes"},{label:o("utils.Last upload time"),prop:"lastuploadtime",align:"center",render:"datetime",operator:"RANGE",width:160,sortable:"custom"},{show:!1,label:o("utils.Upload (Reference) times"),prop:"quote",align:"center",width:150,operator:"RANGE",sortable:"custom"},{label:o("utils.Original name"),prop:"name",align:"center","show-overflow-tooltip":!0,operator:"LIKE",operatorPlaceholder:o("Fuzzy query")},{label:o("operate"),align:"center",width:"100",render:"buttons",buttons:a,operator:!1}],defaultOrder:{prop:"lastuploadtime",order:"desc"}});jR("baTable",u);const s=()=>{var f;n.type=="image"&&(u.table.filter.search=[{field:"mimetype",val:"image",operator:"LIKE"}]),u.table.ref=r.value,u.table.filter.limit=8,(f=u.getIndex())==null||f.then(()=>{u.initSort()}),i.ready=!0},l=()=>{var f;if((f=u.table.selection)!=null&&f.length){let d=[];for(const g in u.table.selection)d.push(n.returnFullUrl?u.table.selection[g].full_url:u.table.selection[g].url);t("choice",d),r.value.getRef().clearSelection()}},c=f=>{n.limit!=0&&(f.length>n.limit&&r.value.getRef().toggleRowSelection(f[f.length-1],!1),i.tableSelectable=!(f.length>=n.limit))};return Ul(()=>{u.mount()}),Hu(()=>n.modelValue,f=>{f&&!i.ready&&gl(()=>{s()})}),(f,d)=>{const p=de("Icon"),g=de("el-button"),v=de("el-tooltip"),h=de("el-dialog"),y=Ou("blur");return z(),pe("div",null,[te(h,{onClose:d[0]||(d[0]=b=>t("update:modelValue",!1)),width:"60%","model-value":e.modelValue,class:"ba-upload-select-dialog",title:W(o)("utils.Select File"),"append-to-body":!0,"destroy-on-close":!0,top:"4vh"},{default:ne(()=>[te(lve,{buttons:["refresh","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":W(o)("quick Search Placeholder",{fields:W(o)("utils.Original name")})},{default:ne(()=>[te(v,{content:W(o)("utils.choice"),placement:"top"},{default:ne(()=>[hn((z(),ge(g,{onClick:l,disabled:!(W(u).table.selection.length>0),class:"table-header-operate",type:"primary"},{default:ne(()=>[te(p,{name:"fa fa-check"}),We("span",Rve,Ze(W(o)("utils.choice")),1)]),_:1},8,["disabled"])),[[y]])]),_:1},8,["content"]),e.limit!==0?(z(),pe("div",Lve,[Do(Ze(W(o)("utils.You can also select"))+" ",1),We("span",jve,Ze(e.limit-W(u).table.selection.length),1),Do(" "+Ze(W(o)("utils.items")),1)])):we("",!0)]),_:1},8,["quick-search-placeholder"]),te(z0e,{ref_key:"tableRef",ref:r,onSelectionChange:c},null,512)]),_:1},8,["model-value","title"])])}}});const zve={class:"w100"},Vve={class:"ba-upload-preview-scroll ba-scroll-style"},Hve=["src"],Uve=Wn({__name:"baUpload",props:{type:{default:"image"},data:{default:()=>({})},modelValue:{default:()=>[]},returnFullUrl:{type:Boolean,default:!1},hideSelectFile:{type:Boolean,default:!1},attr:{default:()=>({})}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=e,o=MR(),i=Dr(),a=Cr({key:el(),defaultReturnType:"string",preview:{show:!1,url:""},fileList:[],attr:{},uploading:0,selectFile:{show:!1,type:"file",returnFullUrl:r.returnFullUrl},events:[]}),u=m=>{if(!m||!m.raw||typeof a.events.beforeUpload=="function"&&a.events.beforeUpload(m)===!1)return;let $=new FormData;$.append("file",m.raw),$=h($),a.uploading++,vw($,{uuid:el()}).then(E=>{if(E.code==1){m.serverUrl=E.data.file.url,m.status="success";const S=v();typeof a.events.onSuccess=="function"&&a.events.onSuccess(E,m,S),n("update:modelValue",S)}else m.status="fail",a.fileList.splice(a.fileList.indexOf(m),1),typeof a.events.onError=="function"&&a.events.onError(E,m,v())}).catch(E=>{m.status="fail",a.fileList.splice(a.fileList.indexOf(m),1),typeof a.events.onError=="function"&&a.events.onError(E,m,v())}).finally(()=>{a.uploading--,typeof a.events.onChange=="function"&&a.events.onChange(m,v())})},s=(m,$)=>!(typeof a.events.beforeRemove=="function"&&a.events.beforeRemove(m,$)===!1),l=m=>{const $=v();typeof a.events.onRemove=="function"&&a.events.onRemove(m,$),n("update:modelValue",$)},c=m=>{if(typeof a.events.onPreview=="function"&&a.events.onPreview(m),!(!m||!m.url)){if(r.type=="file"||r.type=="files"){window.open(Vf(m.url));return}a.preview.show=!0,a.preview.url=m.url}},f=m=>{const $=m[0];$.uid=zR(),i.value.handleStart($),typeof a.events.onExceed=="function"&&a.events.onExceed($,m)},d=m=>{m=v("array").concat(m),g(m);const E=v();n("update:modelValue",E),typeof a.events.onChange=="function"&&a.events.onChange(m,E),a.selectFile.show=!1};Ul(()=>{r.type=="image"||r.type=="file"?a.attr={...a.attr,limit:1}:a.attr={...a.attr,multiple:!0},(r.type=="image"||r.type=="images")&&(a.selectFile.type="image",a.attr={...a.attr,accept:"image/*",listType:"picture-card"});const m={},$=["onPreview","onRemove","onSuccess","onError","onChange","onExceed","beforeUpload","beforeRemove","onProgress"];for(const E in r.attr)$.includes(E)?a.events[E]=r.attr[E]:m[E]=r.attr[E];a.attr={...a.attr,...m},a.attr.limit&&(a.selectFile.limit=a.attr.limit),g(r.modelValue)}),Hu(()=>r.modelValue,m=>{if(a.uploading>0)return;if(m===void 0)return g("");let $=ug(O_(V_(m))),E=ug(v("array"));$.sort().toString()!=E.sort().toString()&&g(m)});const p=()=>a.attr.limit&&a.fileList.length>a.attr.limit?(a.fileList=a.fileList.slice(a.fileList.length-a.attr.limit),!0):!1,g=m=>{let $=O_(m);a.fileList=[],a.defaultReturnType=typeof m=="string"||r.type=="file"||r.type=="image"?"string":"array";for(const E in $)a.fileList.push({name:ZR($[E]),url:Vf($[E]),serverUrl:$[E]});(p()||r.returnFullUrl)&&n("update:modelValue",v()),a.key=el()},v=(m=a.defaultReturnType)=>{p();let $=[];for(const E in a.fileList)a.fileList[E].serverUrl&&$.push(a.fileList[E].serverUrl);return r.returnFullUrl&&($=ug($)),m==="string"?$.join(","):$},h=m=>{if(r.data&&!O3(r.data))for(const $ in r.data)m.append($,r.data[$]);return m};return t({getUploadRef:()=>i.value,showSelectFile:()=>{a.selectFile.show=!0}}),(m,$)=>{const E=de("Icon"),S=de("el-button"),x=de("el-upload"),B=de("el-dialog");return z(),pe("div",zve,[(z(),ge(x,Qn({ref_key:"upload",ref:i,class:["ba-upload",e.type],"file-list":a.fileList,"onUpdate:fileList":$[2]||($[2]=I=>a.fileList=I),"auto-upload":!1,onChange:u,onRemove:l,onPreview:c,onExceed:f,"before-remove":s},a.attr,{key:a.key}),z_({_:2},[W(o).default?{name:"default",fn:ne(()=>[bo(m.$slots,"default",{},void 0,!0)]),key:"0"}:{name:"default",fn:ne(()=>[e.type=="image"||e.type=="images"?(z(),pe($t,{key:0},[e.hideSelectFile?we("",!0):(z(),pe("div",{key:0,onClick:$[0]||($[0]=md(I=>a.selectFile.show=!0,["stop"])),class:"ba-upload-select-image"},Ze(m.$t("utils.choice")),1)),te(E,{class:"ba-upload-icon",name:"el-icon-Plus",size:"30",color:"#c0c4cc"})],64)):(z(),pe($t,{key:1},[te(S,{type:"primary"},{default:ne(()=>[te(E,{name:"el-icon-Plus",color:"#ffffff"}),We("span",null,Ze(m.$t("Upload")),1)]),_:1}),e.hideSelectFile?we("",!0):(z(),ge(S,{key:0,onClick:$[1]||($[1]=md(I=>a.selectFile.show=!0,["stop"])),type:"success"},{default:ne(()=>[te(E,{name:"fa fa-th-list",size:"14px",color:"#ffffff"}),We("span",{class:"ml-6"},Ze(m.$t("utils.choice")),1)]),_:1}))],64))]),key:"1"},W(o).trigger?{name:"trigger",fn:ne(()=>[bo(m.$slots,"trigger",{},void 0,!0)]),key:"2"}:void 0,W(o).tip?{name:"tip",fn:ne(()=>[bo(m.$slots,"tip",{},void 0,!0)]),key:"3"}:void 0,W(o).file?{name:"file",fn:ne(()=>[bo(m.$slots,"file",{},void 0,!0)]),key:"4"}:void 0]),1040,["class","file-list"])),te(B,{modelValue:a.preview.show,"onUpdate:modelValue":$[3]||($[3]=I=>a.preview.show=I),class:"ba-upload-preview"},{default:ne(()=>[We("div",Vve,[We("img",{src:a.preview.url,class:"ba-upload-preview-img",alt:""},null,8,Hve)])]),_:1},8,["modelValue"]),te(Mve,Qn({modelValue:a.selectFile.show,"onUpdate:modelValue":$[4]||($[4]=I=>a.selectFile.show=I)},a.selectFile,{onChoice:d}),null,16,["modelValue"])])}}});const Wve=Ro(Uve,[["__scopeId","data-v-fb04ae1b"]]),qve=Wn({name:"baInput",props:{type:{type:String,required:!0,validator:e=>mL.includes(e)},modelValue:{type:null,required:!0},attr:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(e,{emit:t}){const n=f=>{t("update:modelValue",f)};let r=e.data&&e.data.childrenAttr?e.data.childrenAttr:{};const o=()=>()=>te(de("el-input"),{type:e.type=="string"?"text":e.type,...e.attr,modelValue:e.modelValue,"onUpdate:modelValue":n}),i=()=>{(!e.data||!e.data.content)&&console.warn("请传递 "+e.type+"的 content");let f=[];for(const d in e.data.content)f.push(te(de("el-"+e.type),{label:d,...r},()=>e.data.content[d]));return()=>{const d=fo(()=>{if(e.type=="radio")return e.modelValue==null?"":""+e.modelValue;{let p=[];for(const g in e.modelValue)p[g]=""+e.modelValue[g];return p}});return te(de("el-"+e.type+"-group"),{...e.attr,modelValue:d.value,"onUpdate:modelValue":n},()=>f)}},a=()=>{let f=[];(!e.data||!e.data.content)&&console.warn("请传递 "+e.type+"的 content");for(const d in e.data.content)f.push(te(de("el-option"),{key:d,label:e.data.content[d],value:d,...r}));return()=>{const d=fo(()=>{if(e.type=="select")return e.modelValue==null?"":""+e.modelValue;{let p=[];for(const g in e.modelValue)p[g]=""+e.modelValue[g];return p}});return te(de("el-select"),{class:"w100",multiple:e.type!="select",clearable:!0,...e.attr,modelValue:d.value,"onUpdate:modelValue":n},()=>f)}},u=()=>{let f="YYYY-MM-DD HH:mm:ss";switch(e.type){case"date":f="YYYY-MM-DD";break;case"year":f="YYYY";break}return()=>te(de("el-date-picker"),{class:"w100",type:e.type,"value-format":f,...e.attr,modelValue:e.modelValue,"onUpdate:modelValue":n})},s=()=>()=>te(Wve,{modelValue:e.modelValue,"onUpdate:modelValue":n,type:e.type,attr:e.attr,...e.attr}),l=new Map([["string",o],["number",o],["textarea",o],["password",o],["radio",i],["checkbox",i],["switch",()=>{const f=fo(()=>typeof e.modelValue),d=fo(()=>{if(f.value==="boolean")return e.modelValue;{let p=parseInt(e.modelValue);return!(isNaN(p)||p<=0)}});return()=>te(de("el-switch"),{...e.attr,modelValue:d.value,"onUpdate:modelValue":p=>{let g=p;switch(f.value){case"string":g=p?"1":"0";break;case"number":g=p?1:0}t("update:modelValue",g)}})}],["datetime",u],["year",()=>()=>{const f=fo(()=>e.modelValue?""+e.modelValue:null);return te(de("el-date-picker"),{class:"w100",type:e.type,"value-format":"YYYY",...e.attr,modelValue:f.value,"onUpdate:modelValue":n})}],["date",u],["time",()=>{const f=fo(()=>{if(e.modelValue instanceof Date)return e.modelValue;if(e.modelValue){let d=new Date;return new Date(d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate()+" "+e.modelValue)}else return""});return()=>te(de("el-time-picker"),{class:"w100",clearable:!0,format:"HH:mm:ss",...e.attr,modelValue:f.value,"onUpdate:modelValue":n})}],["select",a],["selects",a],["array",()=>()=>te(bL,{modelValue:e.modelValue,"onUpdate:modelValue":n,...e.attr})],["remoteSelect",()=>()=>te($L,{modelValue:e.modelValue,"onUpdate:modelValue":n,...e.attr})],["city",()=>{let f=e.data&&e.data.level?e.data.level-1:2;const d=Cr({value:"ready",nodes:[],key:"",currentRequest:null});let p={};const g=(h,y)=>p[h]&&p[h][y]?p[h][y]:!1,v=(h,y,b=[])=>{p[h]||(p[h]={}),p[h][y]=b};return()=>te(de("el-cascader"),{modelValue:e.modelValue,"onUpdate:modelValue":n,class:"w100",clearable:!0,props:{lazy:!0,lazyLoad(h,y){const{level:b,pathValues:m}=h;let $=m.join(",");$=$||"init";let E=g(b,$);if(E)return y(E);if(d.key==$&&d.value==e.modelValue)return d.currentRequest?d.currentRequest:y(d.nodes);let S=[];d.key=$,d.value=e.modelValue,d.currentRequest=QR(m).then(x=>{let B=!1;e.modelValue&&typeof e.modelValue[0]=="string"&&(B=!0);for(const I in x.data)B&&(x.data[I].value=x.data[I].value.toString()),x.data[I].leaf=b>=f,S.push(x.data[I]);d.nodes=S,d.currentRequest=null,v(b,$,S),y(S)})}},...e.attr})}],["image",s],["images",s],["file",s],["files",s],["icon",()=>()=>te(vL,{modelValue:e.modelValue,"onUpdate:modelValue":n,...e.attr})],["color",()=>()=>te(de("el-color-picker"),{modelValue:e.modelValue,"onUpdate:modelValue":n,...e.attr})],["editor",()=>()=>te(y0e,{modelValue:e.modelValue,"onUpdate:modelValue":n,...e.attr})],["default",()=>{console.warn("暂不支持"+e.type+"的输入框类型,你可以自行在 BaInput 组件内添加逻辑")}]]);return(l.get(e.type)||l.get("default")).call(this)}});const Gve=Ro(qve,[["__scopeId","data-v-2048c79c"]]);export{Gve as B,vL as I,Se as S,lve as T,z0e as a,Nve as b,u1e as f,mL as i,Ot as n};
|