Files
yakpanel-core/YakPanel/static/vite/js/index-legacy-DAohjula.js
2026-04-07 02:04:22 +05:30

150 lines
1.0 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
System.register(["./index-legacy-Cv0QQQJ6.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./campaign-legacy-DoNavHj-.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BE9USJGi.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./index-legacy-CyPaW9gY.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./mail-legacy-BX4bHMTA.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BBkGleHZ.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./upload-legacy-DqNl3OiM.js?v=1773287522785","./index-legacy-CdzM8gmn.js?v=1773287522785","./index-legacy-BJO1GMTD.js?v=1773287522785","./file-legacy-Bt6Hxu9s.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtQUnlS_.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-CvnE2rtV.js?v=1773287522785","./index-legacy-DEYz4m3y.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,t){"use strict";var n,r,o,i,a,u,l,s,c,d,f,p,h,v,g,y,m,b,w,x,E,C,D,S,k,_,O,A,T,B,P,F,j,I,M,N,L,R,z,U,H,$,V,W,K,q,G,X,Y,Z,J,Q,ee,te,ne,re,oe,ie,ae,ue,le,se,ce,de,fe,pe,he,ve,ge,ye,me,be,we,xe,Ee,Ce,De,Se,ke,_e,Oe,Ae,Te,Be,Pe,Fe,je,Ie,Me,Ne,Le,Re,ze,Ue,He,$e,Ve,We,Ke,qe,Ge,Xe,Ye,Ze,Je,Qe,et,tt,nt,rt,ot,it,at,ut,lt,st,ct,dt,ft,pt,ht,vt,gt,yt,mt,bt,wt,xt,Et,Ct,Dt,St,kt,_t,Ot,At,Tt,Bt,Pt,Ft,jt,It,Mt,Nt,Lt,Rt,zt,Ut,Ht,$t,Vt,Wt,Kt,qt,Gt,Xt,Yt,Zt,Jt,Qt,en,tn,nn,rn,on,an,un,ln,sn,cn,dn,fn,pn,hn,vn,gn,yn,mn,bn,wn,xn,En,Cn;return{setters:[e=>{n=e._},e=>{r=e.bo,o=e.i,i=e.w,a=e.ce,u=e.cf,l=e.cg,s=e.ch,c=e.ci,d=e.t,f=e.Q,p=e.c,h=e.n,v=e.c2,g=e._,y=e.aK,m=e.p,b=e.aq,w=e.cj,x=e.k,E=e.P,C=e.m,D=e.h,S=e.ap,k=e.v,_=e.x,O=e.l,A=e.as,T=e.a3},e=>{B=e.r,P=e.k,F=e.an,j=e.$,I=e.Z,M=e.F,N=e.a0,L=e.a9,R=e._,z=e.a6,U=e.X,H=e.S,$=e.j,V=e.ak,W=e.e,K=e.aa,q=e.a8,G=e.R,X=e.al,Y=e.ap,Z=e.o,J=e.w,Q=e.c,ee=e.n,te=e.ao,ne=e.L,re=e.q,oe=e.a4,ie=e.N,ae=e.t,ue=e.b,le=e.K,se=e.l,ce=e.v,de=e.H,fe=e.a3,pe=e.i,he=e.p,ve=e.y,ge=e.aj,ye=e.x,me=e.P,be=e.ad,we=e.u,xe=e.s,Ee=e.am},e=>{Ce=e.d,De=e.s,Se=e.f,ke=e.a,_e=e.c,Oe=e.h,Ae=e.i,Te=e.j,Be=e.k,Pe=e.l,Fe=e.m,je=e.n,Ie=e.o,Me=e.p,Ne=e.q,Le=e.r,Re=e.t,ze=e.u,Ue=e.v,He=e.w,$e=e.x,Ve=e.y,We=e.z,Ke=e.A,qe=e.B,Ge=e.C,Xe=e.D,Ye=e.E,Ze=e.F,Je=e.G,Qe=e.H,et=e.I,tt=e.J,nt=e.K,rt=e.L,ot=e.M,it=e.N,at=e.O,ut=e.P,lt=e.Q,st=e.R,ct=e.S,dt=e.g,ft=e.T,pt=e.U},e=>{ht=e._},e=>{vt=e.a3,gt=e.ag,yt=e.ah,mt=e.B,bt=e.n,wt=e.a8,xt=e.a9,Et=e.an,Ct=e.am,Dt=e.a6,St=e.a1,kt=e.b,_t=e.p,Ot=e.aO,At=e.a4,Tt=e._,Bt=e.aP,Pt=e.aM,Ft=e.aD,jt=e.aq,It=e.as,Mt=e.au,Nt=e.av,Lt=e.Z,Rt=e.$,zt=e.aC,Ut=e.ac,Ht=e.a7,$t=e.k,Vt=e.a2,Wt=e.m},e=>{Kt=e._},e=>{qt=e.u},e=>{Gt=e._},e=>{Xt=e._},e=>{Yt=e._},e=>{Zt=e.u},e=>{Jt=e.b,Qt=e.c,en=e.a,tn=e.i,nn=e.d,rn=e.e,on=e.s,an=e.f,un=e.h},e=>{ln=e._},e=>{sn=e.u,cn=e.g},e=>{dn=e._},e=>{fn=e.c,pn=e.g},e=>{hn=e._},e=>{vn=e.o},e=>{gn=e.g},e=>{yn=e._},e=>{mn=e.g},e=>{bn=e._},e=>{wn=e.a},e=>{xn=e._},e=>{En=e._},e=>{Cn=e.c},null,null,null],execute:function(){var Dn=document.createElement("style");function Sn(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}Dn.textContent='.rate-box[data-v-a72fecba]{margin-top:16px;display:flex;justify-content:space-between;gap:16px}.rate-box .rate-list[data-v-a72fecba]{background:var(--mailserver-overview-bg);flex:1 1 0%;padding:16px;text-align:center;border-radius:4px;border:1px solid var(--color-border)}.rate-box .rate-title[data-v-a72fecba]{font-size:12px;color:var(--color-text-3)}.rate-box .rate-text[data-v-a72fecba]{margin-top:8px;font-size:20px;color:var(--color-text-2);font-weight:700}.n-data-table[data-v-be528f51]{--n-merged-th-color: transparent;--n-border-color: var(--color-border)}.n-data-table[data-v-be528f51] .n-data-table-td.n-data-table-td--last-row{border-bottom-color:transparent}.total-list[data-v-1decb7ed]{display:flex;flex-wrap:wrap;margin-bottom:16px;width:100%}.total-list .total-item[data-v-1decb7ed]{width:22%;text-align:center;border-right:1px dashed var(--color-border)}.total-list .total-failed[data-v-1decb7ed]{flex:1;display:flex}.total-list .total-failed .failed-item[data-v-1decb7ed]:first-of-type{width:40%;text-align:center}.total-list .total-label[data-v-1decb7ed]{display:flex;align-items:center;justify-content:center;height:16px;margin-bottom:6px;font-size:12px;color:var(--color-text-2)}.total-list .total-value[data-v-1decb7ed]{display:flex;align-items:center;justify-content:center;height:28px;font-size:14px}.overview-card[data-v-430df597]{padding:14px 16px;border:1px solid var(--color-border);border-radius:4px}.form-card[data-v-87a7687c]{border:1px solid var(--color-border);border-radius:4px}[data-v-9c8b6936] .n-progress-graph-line-indicator{text-align:center!important}.block-toolbar[data-v-091fc6b8]{position:absolute;bottom:-36px;right:0;display:flex;background-color:#1890ff;border-radius:4px 4px 0 0;z-index:101}.block-toolbar .tool-btn[data-v-091fc6b8]{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;background:transparent;color:#fff;cursor:pointer;transition:background-color .2s}.block-toolbar .tool-btn svg[data-v-091fc6b8]{width:16px;height:16px}.block-toolbar .tool-btn[data-v-091fc6b8]:hover{background-color:rgba(0,0,0,.1)}.block-base[data-v-24248443]{position:relative}.block-base .block-section[data-v-24248443]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;user-select:none}.block-base .block-section[data-v-24248443]:after{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;background-color:transparent;z-index:100;pointer-events:none}.block-base .block-section[data-v-24248443]:hover:after{opacity:1;border:2px solid #4eaef8}.block-base .block-section:hover .drag-handle[data-v-24248443]{opacity:1}.block-base.is-selected>.block-section[data-v-24248443]:after{opacity:1;border:2px solid #0871c2}.block-base.is-selected>.block-section .drag-handle[data-v-24248443]{opacity:1}.block-base.is-dragging[data-v-24248443]{opacity:.4}.block-base .block-content[data-v-24248443]{margin:0 auto}.block-base .block-type-hint[data-v-24248443]{position:absolute;bottom:-24px;left:0;background:rgba(0,0,0,.6);color:#fff;padding:2px 8px;border-radius:3px;font-size:12px;opacity:.8;pointer-events:none;z-index:102}.block-base .drag-handle[data-v-24248443]{position:absolute;right:-12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:3px;background-color:#fff;border:1px solid #e8e8e8;cursor:grab;z-index:101;color:#909399;opacity:0;transition:opacity .2s}.block-base .drag-handle.columns-drag-handle[data-v-24248443]{right:0}.block-base .drag-handle[data-v-24248443]:hover{color:#1890ff}.block-base .drag-handle .drag-icon[data-v-24248443]{font-style:normal;font-size:16px}:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.12);position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.12);display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.12);left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.12);margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px rgba(0,0,0,.12);color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}.editor-box[data-v-ca4c9ef8]{position:relative;width:100%}.toolbar[data-v-ca4c9ef8]{position:fixed;top:-100px;left:0;z-index:200;display:flex;flex-direction:column}.toolbar[data-v-ca4c9ef8] .w-e-toolbar{max-width:500px;padding:0 4px;border:1px solid #ccc;margin:0 auto}.toolbar[data-v-ca4c9ef8] .w-e-toolbar .w-e-bar{overflow:hidden}.toolbar[data-v-ca4c9ef8] .w-e-toolbar .w-e-bar-item{display:inline-flex;padding:4px 2px}.toolbar[data-v-ca4c9ef8] .w-e-toolbar .w-e-bar-item button .title{height:auto;border-bottom:none}.editor[data-v-ca4c9ef8] .w-e-text-container{background:none;color:inherit}.editor[data-v-ca4c9ef8] .w-e-text-container [data-slate-editor]{padding:0;border-top:none}.editor[data-v-ca4c9ef8] .w-e-text-container p{margin:0;line-height:inherit}.editor[data-v-ca4c9ef8] .w-e-modal{z-index:100}.block-none[data-v-1e66913b]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100px;padding:10px;background-color:#f9f9f9;border:1px solid #d4d4d4;border-radius:4px;color:#a8a8a8;font-size:14px}img[data-v-8d5a55cb]{width:100%}.cell-container.drop-active[data-v-36bdbe4c]{background-color:rgba(24,144,255,.05)!important;border:1px dashed #1890ff!important}.cell-container .cell-content[data-v-36bdbe4c]{display:flex;flex-direction:column}.cell-container .block-item[data-v-36bdbe4c]{position:relative;transition:transform .2s}.cell-container .block-item[data-v-36bdbe4c]:hover{z-index:1}.cell-container .block-placeholder[data-v-36bdbe4c]{display:flex;align-items:center;justify-content:center;height:0;overflow:hidden;transition:height .3s;background-color:transparent;border:1px dashed transparent;border-radius:4px}.cell-container .block-placeholder.active[data-v-36bdbe4c]{height:50px;background-color:rgba(24,144,255,.05);border-color:#1890ff}.cell-container .block-placeholder .placeholder-content[data-v-36bdbe4c]{color:#1890ff;display:flex;flex-direction:column;align-items:center}.cell-container .column-placeholder[data-v-36bdbe4c]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100px;background-color:rgba(62,158,212,.15);border:1px dashed rgba(62,158,212,.5);color:#0079d6;font-size:14px;text-align:center;transition:all .3s}.cell-container .column-placeholder.active[data-v-36bdbe4c]{color:#1890ff}.columns-layout[data-v-50d34a0a]{position:relative;display:flex;margin:0 auto}.columns-layout .column-divider[data-v-50d34a0a]{position:relative;width:2px}.columns-layout .column-divider[data-v-50d34a0a]:after{content:"";display:block;position:absolute;top:0;left:50%;width:2px;height:100%;transform:translate(-50%);background-color:#0871c2;opacity:.5;transition:all .2s ease;cursor:col-resize}.columns-layout .column-divider[data-v-50d34a0a]:hover:after,.columns-layout .column-divider.active[data-v-50d34a0a]:after{width:4px;opacity:1}.canvas-area[data-v-0ed9adc7]{position:relative;width:100%;height:100%;background-color:#f4f7fa}.canvas-container[data-v-0ed9adc7]{position:absolute;top:24px;left:24px;right:24px;bottom:24px;box-shadow:0 4px 12px #ebedf0;background-color:#fff;overflow-y:auto}.block-columns-wrapper[data-v-0ed9adc7]{position:relative}.block-placeholder[data-v-0ed9adc7]{display:flex;align-items:center;justify-content:center;height:104px;border:2px dashed #1890ff;background-color:rgba(24,144,255,.05);border-radius:4px;transition:all .2s ease}.block-placeholder .placeholder-content[data-v-0ed9adc7]{color:#1890ff;font-size:14px;text-align:center}.block-placeholder .placeholder-content span[data-v-0ed9adc7]{display:block}.empty-container[data-v-0ed9adc7]{display:flex;align-items:center;justify-content:center;height:calc(100% - 32px)}.empty-container .empty-message[data-v-0ed9adc7]{color:#999;font-size:16px;text-align:center;padding:24px;border:2px dashed #e8e8e8;border-radius:4px;background-color:#fafafa}.editor-tools[data-v-428569d7]{display:flex;align-items:center;justify-content:space-between;height:40px;min-height:40px;padding:0 16px;border-bottom:1px solid #d8dee8}.tools-view[data-v-428569d7]{display:flex;align-items:center;gap:4px;height:28px;padding:2px;border:1px solid #d9d9d9;border-radius:4px}.tools-view .view-item[data-v-428569d7]{display:flex;align-items:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;height:24px;padding:0 4px;border-radius:2px;cursor:pointer}.tools-view .view-item.checked[data-v-428569d7]{background-color:#f8f8f8;color:#3e8bf2}.editor-container[data-v-b95fec5b]{display:flex;flex-direction:column;flex:1}.block-item[data-v-ea0cad5e]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:74px;border:1px solid var(--color-border);background-color:var(--color-bg-2);border-radius:2px;text-align:center;font-weight:500;cursor:grab;transition:box-shadow .1s}.block-item .text[data-v-ea0cad5e]{margin-top:6px}.block-item[data-v-ea0cad5e]:hover{box-shadow:rgba(0,0,0,.17) -2px 7px 20px;border:1px solid #eeeeee}.block-panel[data-v-2cd77b18]{width:100%;height:100%;overflow:auto}.block-title[data-v-2cd77b18]{display:flex;align-items:center;justify-content:center;height:32px;margin-top:8px;margin-bottom:8px;font-size:14px;font-weight:700;color:var(--color-text-1)}.block-list[data-v-2cd77b18]{display:grid;grid-template-columns:74px 74px 74px;padding:16px;grid-gap:12px}.editor-menu[data-v-7b19c6e6]{width:280px;border-right:1px solid var(--color-border);background-color:var(--color-bg-2);overflow:hidden}.n-collapse[data-v-be0a8b1b]{--n-title-padding: 0;--n-item-margin: 0;--n-text-color: var(--color-text-2);--n-arrow-color: #d4d4d4;--n-title-text-color: var(--color-text-1);--n-divider-color: var(--color-border)}.n-collapse[data-v-be0a8b1b] .n-collapse-item{background-color:var(--color-bg-2)}.n-collapse[data-v-be0a8b1b] .n-collapse-item>.n-collapse-item__header:hover{background-color:var(--color-bg-3)}.n-collapse[data-v-be0a8b1b] .n-collapse-item>.n-collapse-item__header .n-collapse-item__header-main{justify-content:space-between;padding:12px 16px;font-weight:700}.n-collapse[data-v-be0a8b1b] .n-collapse-item .n-collapse-item__content-inner{padding:16px}.layout-grid[data-v-8fe129c8]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.layout-option[data-v-8fe129c8]{border:1px solid var(--color-border);background-color:var(--color-bg-1);border-radius:4px;cursor:pointer}.layout-option[data-v-8fe129c8]:hover,.layout-option.active[data-v-8fe129c8]{border-color:#333;background-color:var(--color-bg-2)}.layout-option:hover .column[data-v-8fe129c8],.layout-option.active .column[data-v-8fe129c8]{border-left-color:#333}.layout-option:hover .column .text[data-v-8fe129c8],.layout-option.active .column .text[data-v-8fe129c8]{visibility:visible}.layout-preview[data-v-8fe129c8]{display:flex;width:100%;height:36px;border-radius:4px;overflow:hidden}.column[data-v-8fe129c8]{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--color-text-2)}.column+.column[data-v-8fe129c8]{border-left:1px solid var(--color-border)}.column .text[data-v-8fe129c8]{visibility:hidden}.style-container[data-v-351aa9d1]{padding:16px 0;border-top:1px solid var(--color-border)}.style-container[data-v-351aa9d1]:first-of-type{padding-top:0;border-top:none}.style-container[data-v-351aa9d1]:last-of-type{padding-bottom:0}.style-container .style-rows[data-v-351aa9d1]{display:flex;align-items:flex-start;justify-content:space-between}.style-container .style-rows .style-label[data-v-351aa9d1]{display:flex;align-items:center;min-height:32px;line-height:24px;font-weight:500}.style-container .style-rows .style-value[data-v-351aa9d1]{display:flex;align-items:center;min-height:32px}.n-tabs[data-v-3229e000]{--n-tab-padding: 13px 16px 11px;--n-tab-gap: 0;--n-pane-padding-top: 0;--n-tab-font-size: 12px}.n-tab-pane[data-v-3229e000]{flex:1;overflow:auto}.link-items[data-v-e4eac8d4]{display:flex;align-items:center;width:100%;padding:12px;gap:8px;border:1px solid #e5e7eb;border-top:none}.link-items[data-v-e4eac8d4]:first-child{border-top:1px solid #e5e7eb;border-top-left-radius:4px;border-top-right-radius:4px}.link-items[data-v-e4eac8d4]:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.link-group[data-v-f35858c9]{display:flex;flex-direction:column;width:100%;padding-left:0;margin:0}.n-tabs[data-v-83e94fc5]{--n-tab-padding: 16px 12px 14px;--n-tab-gap: 0;--n-pane-padding-top: 0;--n-tab-font-size: 14px;height:100%}.n-tabs[data-v-83e94fc5]>.n-tabs-nav .n-tabs-wrapper{width:100%}.n-tabs[data-v-83e94fc5]>.n-tabs-nav .n-tabs-wrapper .n-tabs-tab-wrapper{flex:1}.n-tabs[data-v-83e94fc5]>.n-tabs-nav .n-tabs-wrapper .n-tabs-tab{width:100%;justify-content:center}.n-tab-pane[data-v-83e94fc5]{flex:1;overflow:auto}.editor-sidebar[data-v-584e5790]{height:100%;width:320px;border-left:1px solid var(--color-border);background-color:var(--color-bg-2);overflow:hidden}.email-editor[data-v-a2ccb84d]{display:flex;height:720px;border:1px solid var(--color-border)}.ul-style[data-v-258f8949]{margin:0 auto;display:flex;align-items:center;justify-content:center;gap:48px;font-size:16px}.ul-style li[data-v-258f8949]{display:flex;align-items:center}.n-image[data-v-258f8949] img{width:100%}.template-list[data-v-5af2dd72]{display:flex;gap:16px}.template-list .template-item[data-v-5af2dd72]{width:260px;border:1px solid #cccccc;border-radius:4px;padding:16px;cursor:pointer}.template-list .template-item.active[data-v-5af2dd72]{border:1px solid #20A53A;background-color:#e8f6eb}.template-list .template-item .template-title[data-v-5af2dd72]{font-weight:700;color:#555}.template-list .template-item .template-desc[data-v-5af2dd72]{margin-top:8px;color:#666}\n/*$vite$:1*/',document.head.appendChild(Dn);const kn=r("menu-mail-market","overview"),_n=B(null),On=B(!1),An=B(-1);class Tn{static instance;constructor(){}static getInstance(){return Tn.instance||(Tn.instance=u()),Tn.instance}}const Bn=B(!1),Pn=B(""),Fn=B({type:"today",data:function(){const{start:e,end:t}=a(new Date);return[e.getTime(),t.getTime()]}()});function jn(){const e=Tn.getInstance();function t(){return{...Pn.value?{domain:Pn.value}:{},start_time:Math.floor(Fn.value.data[0]/1e3),end_time:Math.floor(Fn.value.data[1]/1e3)}}return{getRate:e=>e>=0?`${e}%`:"--",getChartTime:(e,t)=>{let n=new Date;return"hourly"===e?(n.setMinutes(0),n.setSeconds(0),n.setHours(t)):"daily"===e&&(n=new Date(1e3*t)),i(n)},getOverview:async function(){try{Bn.value=!0;const{message:n}=await Ce(t());o(n)&&e.trigger(n)}finally{Bn.value=!1}},getParams:t,onResult:e.on}}const In={class:"w-240px ml-8px"},Mn=P({__name:"date",props:{type:{},typeModifiers:{},value:{default:()=>[]},valueModifiers:{}},emits:["update:type","update:value"],setup(e){const t=F(e,"type"),n=F(e,"value");function r(e=new Date){const t=s(e),n=c(e);return[t.getTime(),n.getTime()]}const o=e=>{switch(e){case"today":n.value=r();break;case"yesterday":n.value=r(l(new Date,-1));break;case"7day":n.value=(()=>{const e=new Date,t=c(e);return[s(l(e,-6)).getTime(),t.getTime()]})()}},i=e=>{const t=new Date,n=l(t,-30);return s(n).getTime()>e||c(t).getTime()<e},a=e=>{t.value="custom",n.value=[s(e[0]).getTime(),c(e[1]).getTime()]};return(e,r)=>{const u=gt,l=vt,s=yt;return j(),I(M,null,[N(l,{value:t.value,"onUpdate:value":[r[0]||(r[0]=e=>t.value=e),o]},{default:L((()=>[N(u,{label:e.$t("Public.Search.Today"),value:"today"},null,8,["label"]),N(u,{label:e.$t("Public.Search.Yesterday"),value:"yesterday"},null,8,["label"]),N(u,{label:e.$t("Public.Search.Last7"),value:"7day"},null,8,["label"])])),_:1},8,["value"]),R("div",In,[N(s,{value:n.value,type:"daterange","is-date-disabled":i,"onUpdate:value":a},null,8,["value"])])],64)}}}),Nn={class:"flex items-center justify-between"},Ln={class:"flex items-center gap-16px"},Rn={class:"w-240px"},zn={key:0},Un={class:"flex items-center"},Hn=P({__name:"index",setup(e){const t=d(),{getOverview:n}=jn(),{isFree:r}=z(t),o=()=>{f({source:324})},i=()=>{n()},a=()=>{n()};return(e,t)=>{const n=mt;return j(),I("div",Nn,[R("div",Ln,[R("div",Rn,[N(ht,{value:H(Pn),"onUpdate:value":[t[0]||(t[0]=e=>U(Pn)?Pn.value=e:null),i]},null,8,["value"])]),H(r)?(j(),I("div",zn,[t[4]||(t[4]=R("span",{class:"mr-8px"},"Upgrade to Pro Edition to unlock all reports immediately",-1)),N(n,{type:"primary",size:"small",ghost:"",onClick:o},{default:L((()=>t[3]||(t[3]=[$("Upgrade Now")]))),_:1,__:[3]})])):V("",!0)]),R("div",Un,[N(Mn,{type:H(Fn).type,"onUpdate:type":t[1]||(t[1]=e=>H(Fn).type=e),value:H(Fn).data,"onUpdate:value":[t[2]||(t[2]=e=>H(Fn).data=e),a]},null,8,["type","value"])])])}}}),$n={class:"rate-box"},Vn={class:"rate-list"},Wn={class:"rate-text"},Kn={class:"rate-list"},qn={class:"rate-text"},Gn={class:"rate-list"},Xn={class:"rate-text"},Yn={class:"rate-list"},Zn={class:"rate-text"},Jn=p(P({__name:"index",setup(e){const{onResult:t,getRate:n}=jn(),r=W({delivery:0,open:0,click:0,bounce:0});return t((e=>{r.delivery=e.dashboard.delivery_rate,r.open=e.dashboard.open_rate,r.click=e.dashboard.click_rate,r.bounce=e.dashboard.bounce_rate})),(e,t)=>(j(),I("div",$n,[R("div",Vn,[t[0]||(t[0]=R("div",{class:"rate-title"},"Delivered",-1)),R("div",Wn,K(`${H(r).delivery}%`),1)]),R("div",Kn,[t[1]||(t[1]=R("div",{class:"rate-title"},"Open",-1)),R("div",qn,K(H(n)(H(r).open)),1)]),R("div",Gn,[t[2]||(t[2]=R("div",{class:"rate-title"},"Click",-1)),R("div",Xn,K(H(n)(H(r).click)),1)]),R("div",Yn,[t[3]||(t[3]=R("div",{class:"rate-title"},"Bounce",-1)),R("div",Zn,K(H(n)(H(r).bounce)),1)])]))}}),[["__scopeId","data-v-a72fecba"]]),Qn=p(P({__name:"index",setup(e){const{getRate:t,onResult:n}=jn(),{table:r,columns:o}=qt([{key:"mail_provider",title:"Mail Provider",ellipsis:{tooltip:!0}},{key:"delivery_rate",title:"Delivered",render:e=>t(e.delivery_rate)},{key:"open_rate",title:"Open",render:e=>t(e.open_rate)},{key:"click_rate",title:"Click",render:e=>t(e.click_rate)},{key:"bounce_rate",title:"Bounce",render:e=>t(e.bounce_rate)}]);return n((e=>{r.data=e.mail_providers})),(e,t)=>{const n=Kt;return j(),q(n,{"min-height":276,"max-height":276,bordered:!1,loading:H(Bn),data:H(r).data,columns:H(o)},null,8,["loading","data","columns"])}}}),[["__scopeId","data-v-be528f51"]]),er={class:"p-20px"},tr=P({__name:"error",setup(e){const{t:t}=G(),{getParams:n}=jn(),{loading:r,setLoading:o}=Zt(),{table:i,columns:a}=qt([{key:"recipient",title:t("Mail.Mass.index_50"),width:160,render:e=>N(bt,{class:e.tooltip?"":"break-all!","line-clamp":e.tooltip?999:1,tooltip:!1},{default:()=>[e.recipient]})},{key:"dsn",title:"Dsn",width:60},{key:"delay",title:t("Mail.Mass.index_51"),width:70},{key:"delays",title:t("Mail.Mass.index_52"),width:150},{key:"status",title:t("Public.Table.Status"),width:100,ellipsis:{tooltip:!0},render:e=>e.status},{key:"relay",title:t("Mail.Mass.index_53"),width:200,render:e=>N(bt,{class:e.tooltip?"":"break-all!","line-clamp":e.tooltip?9999:1,tooltip:!1},{default:()=>[e.relay]})},{key:"description",title:t("Public.Btn.Details"),render:e=>N(bt,{class:e.tooltip?"":"break-all!","line-clamp":e.tooltip?9999:1,tooltip:!1},{default:()=>[e.description]})}]),u=e=>({onMousemove:()=>{e.tooltip=!0},onMouseleave:()=>{e.tooltip=!1}});return(async()=>{try{o(!0);const e=n(),{message:t}=await Jt({...e.domain?{domain:e.domain}:{},start:e.start_time,end:e.end_time});i.data=h(t)?t.map((e=>({...e,tooltip:!1}))):[]}finally{o(!1)}})(),(e,t)=>{const n=Kt,o=Yt;return j(),I("div",er,[N(o,null,{table:L((()=>[N(n,{"max-height":600,loading:H(r),data:H(i).data,columns:H(a),"row-props":u},null,8,["loading","data","columns"])])),_:1})])}}}),nr={class:"total-list"},rr={class:"total-item"},or={class:"total-value text-primary"},ir={class:"total-item"},ar={class:"total-value text-primary"},ur={class:"total-failed"},lr={class:"failed-item"},sr={class:"total-value"},cr={class:"failed-item"},dr={class:"total-label"},fr={class:"total-value"},pr=P({__name:"index",setup(e){const{t:t}=G(),{onResult:n,getChartTime:r,getOverview:a}=jn(),u=v("--chart-tooltip-bg-color"),l=v("--color-text-2"),d=v("--color-border"),f=X("chartRef"),p=B({delivered:0,delivery_rate:0,failed:0,failure_rate:0,sends:0}),b=B(!1),w=async e=>{await y({source:361}),await De({operation:e?1:0})};(async()=>{const{message:e}=await Se();o(e)&&(b.value=e.abnormal_mail_check_switch)})();const x=()=>{m({title:t("Mail.Overview.today_9"),width:980,component:tr})},E=Y({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:u.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},legend:{top:0,itemGap:16,icon:"circle",itemWidth:10,itemHeight:10,data:[t("Mail.Overview.today_2"),t("Mail.Overview.today_3")],textStyle:{color:l.value,lineHeight:12,padding:[0,0,-2,0],rich:{a:{verticalAlign:"middle"}}}},grid:{top:"16%",left:"2%",right:"2%",bottom:"4%",containLabel:!0},yAxis:{type:"value",boundaryGap:[0,"6%"],splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:d.value}}},xAxis:C(),series:[{type:"bar",name:t("Mail.Overview.today_3"),data:[]},{type:"bar",name:t("Mail.Overview.today_2"),data:[]}]});function C(e="HH:mm"){return{type:"category",axisLabel:{formatter:t=>i(t,e)}}}return n((e=>{e.send_mail_chart&&(p.value=e.send_mail_chart.dashboard,(e=>{const n=[],o=[];e.data.forEach((t=>{n.push([r(e.column_type,t.x),t.failed,e.column_type]),o.push([r(e.column_type,t.x),t.delivered,e.column_type])})),E.series=[{type:"bar",name:t("Mail.Overview.today_3"),data:n,stack:"total",itemStyle:{color:"#1A519B"}},{type:"bar",name:t("Mail.Overview.today_2"),data:o,stack:"total",itemStyle:{color:"#91CC75"}}],E.xAxis=C("hourly"===e.column_type?"HH:mm":"yyyy-MM-dd")})(e.send_mail_chart))})),Z((()=>{setTimeout((()=>{f.value&&f.value.getChart().on("click",(e=>{if("bar"===e.componentSubType&&h(e.value)&&"daily"===e.value[2]){const t=new Date(e.value[0]);Fn.value.type="custom",Fn.value.data=[s(t).getTime(),c(t).getTime()],a()}}))}),1e3)})),(e,t)=>{const n=g,r=Gt,o=wt,i=xt;return j(),I(M,null,[t[7]||(t[7]=R("div",{class:"mb-20px font-bold text-20px text-font2"},"Send today",-1)),R("div",nr,[R("div",rr,[t[1]||(t[1]=R("div",{class:"total-label"},"Success rate",-1)),R("div",or,K(H(p).delivery_rate)+"%",1)]),R("div",ir,[t[2]||(t[2]=R("div",{class:"total-label"},"Success",-1)),R("div",ar,K(H(p).delivered),1)]),R("div",ur,[R("div",lr,[t[4]||(t[4]=R("div",{class:"total-label"},[R("span",null,"Failed")],-1)),R("div",sr,[R("span",{class:"text-primary cursor-pointer",onClick:x},K(H(p).failed),1),N(n,{class:"ml-6px text-12px!",onClick:x},{default:L((()=>t[3]||(t[3]=[$("Details")]))),_:1,__:[3]})])]),R("div",cr,[R("div",dr,[t[6]||(t[6]=R("span",{class:"mr-6px"},"Auto block failed emails",-1)),N(r,null,{default:L((()=>t[5]||(t[5]=[R("p",null," When email delivery status is 'Bounced', emails will be automatically added to the blocked list. ",-1),R("p",null,"New mailing tasks will exclude these emails to maintain IP and domain reputation.",-1)]))),_:1,__:[5]})]),R("div",fr,[N(o,{value:H(b),"onUpdate:value":[t[0]||(t[0]=e=>U(b)?b.value=e:null),w],size:"small"},null,8,["value"])])])])]),N(i,{class:"w-100% h-200px",show:H(Bn)},{default:L((()=>[N(Xt,{ref_key:"chartRef",ref:f,type:"bar",height:"200",option:H(E)},null,8,["option"])])),_:1},8,["show"])],64)}}}),hr=p(pr,[["__scopeId","data-v-1decb7ed"]]),vr=P({name:"AuthBox",setup(e,{slots:t}){const n=d(),{isFree:r}=z(n);return()=>N(M,null,[r.value?N("div",{class:"text-14px color-desc"},[$("Pro Edition Exclusive Features")]):t.default?.()])}}),gr={class:"flex-center h-200px"},yr=P({__name:"unique",setup(e){const t=v("--chart-tooltip-bg-color"),n=v("--color-border"),{onResult:r,getChartTime:o}=jn(),a=Y({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:t.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"2%",containLabel:!0},yAxis:{type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:n.value}},name:"%",max:({max:e})=>e>100?100:e},xAxis:u(),series:l()});function u(e="HH:mm"){return{type:"category",axisLabel:{formatter:t=>i(t,e)}}}function l(e=[]){return[{name:"Unique Open Rate",type:"line",data:e,itemStyle:{color:"#1a519b"},smooth:!1,showSymbol:!1,sampling:"average"}]}return r((e=>{const{open_rate_chart:t}=e;if(t){const e=t.data.map((e=>[o(t.column_type,e.x),e.open_rate]));a.series=l(e),a.xAxis=u("hourly"===t.column_type?"HH:mm":"yyyy-MM-dd")}})),(e,t)=>{const n=xt;return j(),I(M,null,[t[0]||(t[0]=R("div",{class:"mb-16px font-bold text-20px text-font2"},"Unique Open Rate %",-1)),R("div",gr,[N(H(vr),null,{default:L((()=>[N(n,{class:"w-100%",show:H(Bn)},{default:L((()=>[N(Xt,{height:200,option:H(a)},null,8,["option"])])),_:1},8,["show"])])),_:1})])],64)}}}),mr={class:"flex-center h-200px"},br=P({__name:"click",setup(e){const t=v("--chart-tooltip-bg-color"),n=v("--color-border"),{onResult:r,getChartTime:o}=jn(),a=Y({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:t.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"2%",containLabel:!0},yAxis:{name:"%",type:"value",boundaryGap:[0,"6%"],splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:n.value}},max:({max:e})=>e>100?100:e},xAxis:u(),series:l()});function u(e="HH:mm"){return{type:"category",axisLabel:{formatter:t=>i(t,e)}}}function l(e=[]){return[{name:"Click Rate",type:"line",data:e,itemStyle:{color:"#1a519b"},smooth:!1,showSymbol:!1,sampling:"average"}]}return r((e=>{const{click_rate_chart:t}=e;if(t){const e=t.data.map((e=>[o(t.column_type,e.x),e.click_rate]));a.series=l(e),a.xAxis=u("hourly"===t.column_type?"HH:mm":"yyyy-MM-dd")}})),(e,t)=>{const n=xt;return j(),I(M,null,[t[0]||(t[0]=R("div",{class:"mb-16px font-bold text-20px text-font2"},"Click Rate %",-1)),R("div",mr,[N(H(vr),null,{default:L((()=>[N(n,{class:"w-100%",show:H(Bn)},{default:L((()=>[N(Xt,{height:200,option:H(a)},null,8,["option"])])),_:1},8,["show"])])),_:1})])],64)}}}),wr={class:"flex-center h-200px"},xr=P({__name:"bounce",setup(e){const t=v("--chart-tooltip-bg-color"),n=v("--color-border"),{onResult:r,getChartTime:o}=jn(),a=Y({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:t.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"2%",containLabel:!0},yAxis:{name:"%",type:"value",splitLine:{show:!0,lineStyle:{type:"dashed",width:1,color:n.value}},max:({max:e})=>e>100?100:e},xAxis:u(),series:l()});function u(e="HH:mm"){return{type:"category",axisLabel:{formatter:t=>i(t,e)}}}function l(e=[]){return[{name:"Bounce Rate",type:"line",data:e,itemStyle:{color:"#20a53a"},smooth:!1,showSymbol:!1,sampling:"average"}]}return r((e=>{const{bounce_rate_chart:t}=e;if(t){const e=t.data.map((e=>[o(t.column_type,e.x),e.bounce_rate]));a.series=l(e),a.xAxis=u("hourly"===t.column_type?"HH:mm":"yyyy-MM-dd")}})),(e,t)=>{const n=xt;return j(),I(M,null,[t[0]||(t[0]=R("div",{class:"mb-16px font-bold text-20px text-font2"},"Bounce Rate %",-1)),R("div",wr,[N(H(vr),null,{default:L((()=>[N(n,{class:"w-100%",show:H(Bn)},{default:L((()=>[N(Xt,{height:200,option:H(a)},null,8,["option"])])),_:1},8,["show"])])),_:1})])],64)}}}),Er={class:"overview-card"},Cr={class:"overview-card"},Dr={class:"overview-card"},Sr={class:"overview-card"},kr={class:"overview-card"},_r=p(P({__name:"index",setup(e){const{getOverview:t}=jn();return t(),(e,t)=>{const n=Et,r=Ct;return j(),I("div",null,[N(Hn),N(Jn),N(r,{class:"mt-16px","x-gap":"16","y-gap":"16",cols:2},{default:L((()=>[N(n,null,{default:L((()=>[R("div",Er,[N(Qn)])])),_:1}),N(n,null,{default:L((()=>[R("div",Cr,[N(hr)])])),_:1}),N(n,null,{default:L((()=>[R("div",Dr,[N(yr)])])),_:1}),N(n,null,{default:L((()=>[R("div",Sr,[N(br)])])),_:1}),N(n,null,{default:L((()=>[R("div",kr,[N(xr)])])),_:1})])),_:1})])}}}),[["__scopeId","data-v-430df597"]]),Or=P({__name:"template",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e,{expose:t}){const n=F(e,"value"),r=B([]),{loading:o,setLoading:i}=Zt(),a=async()=>{try{i(!0);const{message:e}=await ke();h(e)&&e.length>0&&(r.value=e.map((e=>({label:e.name,value:e.id}))),n.value||(n.value=e[0].id))}finally{i(!1)}};return a(),t({getList:a}),(e,t)=>{const i=Dt;return j(),q(i,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),loading:H(o),filterable:!0,options:H(r)},null,8,["value","loading","options"])}}}),Ar={class:"w-170px mr-10px"},Tr={class:"w-180px"},Br=P({__name:"sender",props:{value:{},valueModifiers:{}},emits:te(["change"],["update:value"]),setup(e,{emit:t}){const n=t,r=B(null),i=F(e,"value"),a=B([]),u=Q((()=>l.value.filter((e=>e.domain===r.value)).map((e=>({data:e,label:e.username,value:e.username}))))),l=B([]),s=(e,t)=>{const{data:r}=t;o(r)&&n("change",r.full_name)},c=B(!1),d=B(!1),f=async()=>{try{c.value=!0;const{message:e}=await Qt();h(e)&&(a.value=e.map((e=>({label:e,value:e}))),r.value=e[0]||null)}finally{c.value=!1}},p=async()=>{try{d.value=!0;const{message:e}=await en();h(e)&&e.length>0&&(l.value=e)}finally{d.value=!1}},v=()=>{if(u.value[0]){const{data:e}=u.value[0];i.value=`${u.value[0].value}`,o(e)&&n("change",e.full_name)}else i.value=null,n("change","")},g=()=>{v()};return(async()=>{if(await Promise.all([f(),p()]),i.value){for(const e of l.value)if(e.username===i.value){r.value=e.domain;break}}else v()})(),(e,t)=>{const n=Dt;return j(),I(M,null,[R("div",Ar,[N(n,{value:H(r),"onUpdate:value":[t[0]||(t[0]=e=>U(r)?r.value=e:null),g],loading:H(c),options:H(a)},null,8,["value","loading","options"])]),R("div",Tr,[N(n,{value:i.value,"onUpdate:value":[t[1]||(t[1]=e=>i.value=e),s],loading:H(d),options:H(u)},null,8,["value","loading","options"])])],64)}}}),Pr={class:"flex items-center mb-8px"},Fr={class:"ml-40px"},jr=P({__name:"import",props:te({path:{default:""},accept:{default:()=>[]}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,{path:n,accept:r}=t,o=F(e,"value"),i=()=>{vn({path:n,size:5,uploadData:{accept:r.map((e=>`.${e}`)).join(","),multiple:!1},onUploadSuccess:e=>{o.value=e[0].name}})};return(e,t)=>{const n=mt;return j(),I("div",null,[R("div",Pr,[N(n,{onClick:i},{default:L((()=>[$(K(e.$t("Public.Btn.Import")),1)])),_:1}),R("div",Fr,[$(K(e.$t("Mail.Mass.index_43"))+" ",1),R("span",{class:ne(o.value?"text-primary":"text-error")},K(o.value||e.$t("Mail.Mass.index_44")),3)])]),re(e.$slots,"default")])}}}),Ir={class:"p-20px"},Mr={class:"w-250px"},Nr=P({__name:"type-create",props:{refresh:{}},setup(e,{expose:t}){const n=e,{refresh:r}=n,o=B(null),i=W({mail_type:"",file:""}),a={mail_type:{required:!0,message:"Please enter group name",trigger:["blur","input"]},file:{required:!0,message:"Please upload file",trigger:["blur","change"]}},u=()=>{b("/www/server/panel/plugin/mail_sys/data/example_recipients.txt")};return t({onConfirm:async()=>{await(o.value?.validate()),await tn({...i}),r?.()}}),(e,t)=>{const n=kt,r=St,l=dn,s=g,c=hn;return j(),I("div",Ir,[N(l,{ref_key:"formRef",ref:o,model:H(i),rules:a},{default:L((()=>[N(r,{label:"Group name",path:"mail_type"},{default:L((()=>[R("div",Mr,[N(n,{type:"text",value:H(i).mail_type,"onUpdate:value":t[0]||(t[0]=e=>H(i).mail_type=e),placeholder:"Please enter group name"},null,8,["value"])])])),_:1}),N(r,{label:"Emails",path:"file"},{default:L((()=>[N(jr,{value:H(i).file,"onUpdate:value":t[1]||(t[1]=e=>H(i).file=e),path:"/www/server/panel/data/mail/in_bulk/recipient",accept:["txt","json"]},null,8,["value"])])),_:1})])),_:1},8,["model"]),N(c,{class:"mt-4px"},{default:L((()=>[R("li",null,[t[3]||(t[3]=$(" File type:txt/json One mailbox per line Not more than 5 MB ")),N(s,{target:"_blank",onClick:u},{default:L((()=>t[2]||(t[2]=[$("Download the template")]))),_:1,__:[2]})])])),_:1})])}}}),Lr={class:"flex-1"},Rr={class:"flex items-center"},zr={class:"w-260px"},Ur={class:"ml-10px"},Hr={class:"mt-8px"},$r=P({__name:"type",props:{value:{},valueModifiers:{},name:{},nameModifiers:{}},emits:["update:value","update:name"],setup(e,{expose:t}){const n=F(e,"value"),r=F(e,"name"),i=B([]),a=B([]),u=B(0),{loading:l,setLoading:s}=Zt(),c=async()=>{try{s(!0);const{message:e}=await _e();h(e)&&(a.value=e,i.value=e.map((e=>({label:e.mail_type,value:e.id}))))}finally{s(!1)}},d=async e=>{r.value=a.value.filter((t=>e.includes(t.id))).map((e=>e.mail_type));const{message:t}=await Oe({etypes:e.join(",")});o(t)&&(u.value=t.result)},f=()=>{m({title:"Create New Group",width:480,footer:!0,data:{refresh:c},component:Nr})};return c(),t({getType:c}),(e,t)=>{const r=Dt,o=g;return j(),I("div",Lr,[R("div",Rr,[R("div",zr,[N(r,{value:n.value,"onUpdate:value":[t[0]||(t[0]=e=>n.value=e),d],options:H(i),multiple:!0,filterable:!0,loading:H(l),placeholder:"Please select recipients with groups"},null,8,["value","options","loading"])]),R("div",Ur,[N(o,{onClick:f},{default:L((()=>t[1]||(t[1]=[$("Create")]))),_:1,__:[1]})])]),R("div",Hr,[t[2]||(t[2]=$("Send Emails (")),R("b",null,K(H(u)),1),t[3]||(t[3]=$(" Recipients)"))])])}}}),Vr=oe("email-editor",(()=>{const e=B("2.1");return{version:e,pageConfig:B({meta:{version:e.value,createdAt:"",updatedAt:""},style:{backgroundColor:"#ffffff",width:"500px"}}),columnsSource:B([]),columnsMap:B({}),columnsConfigMap:B({}),cellMap:B({}),cellConfigMap:B({}),blockMap:B({}),blockConfigMap:B({}),selectedBlockKey:B(""),selectedBlockType:B(""),saveFn:B((async()=>!1))}})),Wr={key:"",name:"Columns",type:"columns",meta:{version:"",createdAt:"",updatedAt:""},attr:{},style:{backgroundColor:"",padding:{more:!1,all:"0",top:"0",left:"0",right:"0",bottom:"0"}},containerStyle:{backgroundColor:""}},Kr={key:"",name:"Cell",type:"cell",meta:{version:"",createdAt:"",updatedAt:""},attr:{},style:{backgroundColor:"",padding:{more:!1,all:"0",top:"0",left:"0",right:"0",bottom:"0"},border:{more:!1,all:{color:"",width:"0",style:"solid"},top:{color:"",width:"0",style:"solid"},right:{color:"",width:"0",style:"solid"},bottom:{color:"",width:"0",style:"solid"},left:{color:"",width:"0",style:"solid"}}},containerStyle:{}},qr={key:"",name:"Button",type:"button",meta:{version:"",createdAt:"",updatedAt:""},attr:{href:"#",target:"_blank",content:"Button Text"},style:{display:"inline-block",backgroundColor:"#20A53A",color:"#fff",width:"auto",fontWeight:"normal",fontSize:"14px",lineHeight:"120%",letterSpacing:"0px",boxSizing:"border-box",textDecoration:"none",padding:{more:!0,all:"0",top:"10px",left:"20px",right:"20px",bottom:"10px"},border:{more:!1,all:{color:"",width:"0",style:"solid"},top:{color:"",width:"0",style:"solid"},right:{color:"",width:"0",style:"solid"},bottom:{color:"",width:"0",style:"solid"},left:{color:"",width:"0",style:"solid"}},borderRadius:{more:!1,all:"4px",top:"0",left:"0",right:"0",bottom:"0"}},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Gr={key:"",name:"Link",type:"link",meta:{version:"",createdAt:"",updatedAt:""},attr:{href:"",target:"_blank",content:"Link Text"},style:{display:"inline-block",color:"#333",fontWeight:"normal",fontSize:"14px",lineHeight:"120%",letterSpacing:"0px",textDecoration:"none"},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Xr={key:"",name:"Divider",type:"divider",meta:{version:"",createdAt:"",updatedAt:""},attr:{},style:{display:"inline-block",width:"100%",height:"1px",lineHeight:"1px",verticalAlign:"middle",boxSizing:"border-box",borderTop:{color:"#bbbbbb",width:"1px",style:"solid"}},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Yr={key:"",name:"Header",type:"header",meta:{version:"",createdAt:"",updatedAt:""},attr:{content:"Header"},style:{display:"inline-block",color:"#333",fontWeight:"normal",fontSize:"22px",lineHeight:"140%",letterSpacing:"0px"},containerStyle:{textAlign:"left",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Zr={key:"",name:"Text",type:"text",meta:{version:"",createdAt:"",updatedAt:""},attr:{content:"Text"},style:{display:"inline-block",color:"#333",fontWeight:"normal",fontSize:"14px",lineHeight:"120%",letterSpacing:"0px"},containerStyle:{textAlign:"left",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Jr={key:"",name:"Image",type:"image",meta:{version:"",createdAt:"",updatedAt:""},attr:{href:"",target:"_blank",src:"",alt:""},style:{display:"inline-block",width:"100%",boxSizing:"border-box",textDecoration:"none"},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},Qr={key:"",name:"Menu",type:"menu",meta:{version:"",createdAt:"",updatedAt:""},attr:{links:[{id:gn(6),label:"Menu",href:""},{id:gn(6),label:"Menu",href:""}]},style:{display:"inline-block",fontWeight:"normal",fontSize:"14px",letterSpacing:"0px",color:"#333",textDecoration:"none",padding:{more:!0,all:"",top:"5px",left:"15px",right:"15px",bottom:"5px"}},containerStyle:{textAlign:"center",padding:{more:!1,all:"10px",top:"0",left:"0",right:"0",bottom:"0"}}},eo=new Map([["button",qr],["link",Gr],["divider",Xr],["header",Yr],["text",Zr],["image",Jr],["menu",Qr]]),to=()=>{const e=Vr(),{version:t,columnsSource:n,columnsMap:r,columnsConfigMap:i,cellMap:a,cellConfigMap:u,blockMap:l,blockConfigMap:s,pageConfig:c,selectedBlockKey:d,selectedBlockType:f,saveFn:p}=z(e);return{saveFn:p,getData:()=>JSON.stringify({version:t.value,pageConfig:ie(c.value),blockMap:ie(l.value),blockConfigMap:ie(s.value),cellMap:ie(a.value),cellConfigMap:ie(u.value),columnsConfigMap:ie(i.value),columnsMap:ie(r.value),columnsSource:ie(n.value)}),setData:e=>{const{parsedData:t}=(e=>{const t=Vr(),{version:n}=z(t),r=e=>{const t={meta:{version:n.value,createdAt:w(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:w(new Date,"yyyy-MM-dd HH:mm:ss")},style:{width:"",backgroundColor:""}};e.page_style?(t.style.width=e.page_style.maxWidth,t.style.backgroundColor=e.page_style.backgroundColor):(t.style.width="500px",t.style.backgroundColor="#fff");const{columns_source:r,column_map:a,column_row_style_map:p}=e,h=[],v={},g={};r.forEach((e=>{h.push(e)})),Object.entries(a).forEach((([e,t])=>{o(t)&&(v[e]={key:e,type:t.type,name:"Columns",children:t.children})})),Object.keys(p).forEach((e=>{const t=p[e],r=_t(Wr);r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.style.padding=t.style.padding,r.style.backgroundColor=t.style.backgroundColor,g[e]=r}));const{cell_map:y,cell_style_map:m}=e,b={},x={};Object.keys(y).forEach((e=>{const t=y[e];b[e]={key:e,type:"cell",name:"Cell",width:Number.parseFloat(t.width),children:t.children}})),Object.keys(m).forEach((e=>{const t=m[e],r=_t(Kr);r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.style.backgroundColor=t.style.background,r.style.padding=t.style.padding,r.style.border=i(t.style.border),x[e]=r}));const{comp_map:E,comp_style_map:C}=e,D={},S={};return Object.keys(E).forEach((e=>{const t=E[e];D[e]={key:e,type:t.type,name:fn(t.type)}})),Object.keys(C).forEach((e=>{const t=E[e],n=C[e];switch(t.type){case"button":S[e]=u(e,n);break;case"divider":S[e]=l(e,n);break;case"header":S[e]=s(e,n);break;case"text":S[e]=c(e,n);break;case"image":S[e]=d(e,n);break;case"menu":S[e]=f(e,n)}})),{pageConfig:t,columnsSource:h,columnsMap:v,columnsConfigMap:g,cellMap:b,cellConfigMap:x,blockMap:D,blockConfigMap:S}},i=e=>({more:e.more,all:a(e.all),top:a(e.top),left:a(e.left),right:a(e.right),bottom:a(e.bottom)}),a=e=>{const t=e.split(" ");return{width:t[0]||"0",style:t[1]||"solid",color:t[2]||""}},u=(e,t)=>{const r=_t(qr);return r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.attr.content=t.content,r.attr.href=t.info.href||"#",r.attr.target=t.info.target||"_blank",r.style=t.style,r.style.border=i(t.style.border),r.style.fontWeight=t.style.FontWeight,r.style.letterSpacing=t.style.LetterSpacing,delete t.style.FontWeight,delete t.style.LetterSpacing,r.containerStyle=t.general,r},l=(e,t)=>{const r=_t(Xr);return r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.style=t.style,r.style.borderTop=a(t.style.borderTop),r},s=(e,t)=>{const r=_t(Yr);return r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.attr.content=t.content||"",r.style=t.style,r.containerStyle=t.general,r},c=(e,t)=>{const r=_t(Zr);return r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.attr.content=t.content||"",r.style=t.style,r.containerStyle=t.general,r.containerStyle.textAlign=t.style.textAlign,delete t.style.textAlign,r},d=(e,t)=>{const r=_t(Jr);return r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.attr=t.info,r.style=t.style,r.containerStyle.padding=t.general.padding,r.containerStyle.textAlign=t.general.textAlign||"center",r},f=(e,t)=>{const r=_t(Qr);return r.key=e,r.meta.version=n.value,r.meta.createdAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(new Date,"yyyy-MM-dd HH:mm:ss"),r.attr.links=t.links,r.style=t.style,r.style.display="horizontal"===t.info.layout?"inline-block":"block",r.containerStyle.padding=t.general.padding,r.containerStyle.textAlign=t.general.textAlign||"center",r},p=e=>{const{blockMap:t,blockConfigMap:n}=e;return Object.keys(t).forEach((e=>{const r=t[e],o=n[e];switch(r.type){case"button":n[e].style=Object.assign({},_t(qr.style),o.style);break;case"link":n[e].style=Object.assign({},_t(Gr.style),o.style);break;case"divider":n[e].style=Object.assign({},_t(Xr.style),o.style);break;case"image":n[e].style=Object.assign({},_t(Jr.style),o.style);break;case"menu":n[e].type=r.type,n[e].name=r.name,n[e].style=Object.assign({},_t(Qr.style),o.style)}})),e};return{parsedData:(e=>{try{const t=JSON.parse(e),n=t.version;return n<2?r(t):n<2.1?p(t):t}catch(t){console.log(e,t)}})(e)}})(e);t&&(c.value=t.pageConfig,l.value=t.blockMap,s.value=t.blockConfigMap,a.value=t.cellMap,u.value=t.cellConfigMap,i.value=t.columnsConfigMap,r.value=t.columnsMap,n.value=t.columnsSource)},resetData:()=>{l.value={},s.value={},a.value={},u.value={},i.value={},r.value={},n.value=[],d.value="",f.value=""},setSaveFn:e=>{p.value=e},autoSaveFn:()=>{let e=null;e&&clearTimeout(e),e=window.setTimeout((()=>{p.value()}),300)}}};function no(){const e=e=>"border"===e||"padding"===e||"borderRadius"===e,t=(e,t)=>{const r={},i={top:"TopLeft",right:"TopRight",bottom:"BottomRight",left:"BottomLeft"};if(t.more){const a=["top","right","bottom","left"];switch(e){case"border":a.forEach((e=>{const i=t[e];o(i)&&"0"!==i.width&&(r[`border${n(e)}`]=`${i.width} ${i.style} ${i.color||"transparent"}`)}));break;case"padding":a.forEach((e=>{const o=t[e];Ot(o)&&"0"!==o&&(r[`padding${n(e)}`]=o)}));break;case"borderRadius":a.forEach((e=>{const n=t[e];Ot(n)&&"0"!==n&&(r[`border${i[e]}Radius`]=n)}))}}else"border"===e&&o(t.all)&&"0"!==t.all.width?r.border=`${t.all.width} ${t.all.style} ${t.all.color||"transparent"}`:"padding"!==e&&"borderRadius"!==e||!Ot(t.all)||(r[e]=t.all);return r},n=e=>e.charAt(0).toUpperCase()+e.slice(1);return{configToStyle:n=>{const r={};return Object.entries(n).forEach((([n,i])=>{e(n)&&o(i)&&Object.assign(r,t(n,i)),!e(n)&&Ot(i)&&(r[n]=i),!e(n)&&o(i)&&"borderTop"===n&&o(i)&&(r.borderTop=`${i.width} ${i.style} ${i.color||"transparent"}`)})),r}}}const ro=()=>{const e=Vr(),{columnsSource:t,columnsMap:n,columnsConfigMap:r,cellMap:o,cellConfigMap:i,blockMap:a,blockConfigMap:u,pageConfig:l}=z(e),{configToStyle:s}=no(),c=B(""),d=()=>{const e=f(),n=document.createElement("table");return n.style.backgroundColor=l.value.style.backgroundColor||"#fff",n.style.width="100%",t.value.forEach((t=>{e[t]&&n.appendChild(e[t].dom)})),n},f=()=>{const e=p(),t={};return Object.entries(n.value).forEach((([n,o])=>{const i=document.createElement("tr"),a=document.createElement("td"),u=document.createElement("div");v(u,r.value[n].style),u.style.width=l.value.style.width||"auto",u.style.margin="0 auto";const s=document.createElement("table");s.style.width="100%";const c=document.createElement("tr");o.children.forEach((t=>{c.appendChild(e[t].dom)})),s.appendChild(c),u.appendChild(s),a.appendChild(u),i.appendChild(a),t[n]={dom:i}})),t},p=()=>{const e=h(),t={};return Object.entries(o.value).forEach((([n,r])=>{const o=document.createElement("td");o.style.width=`${r.width}%`,v(o,i.value[n].style),r.children.forEach((t=>{e[t]&&o.appendChild(e[t].dom)})),t[n]={dom:o}})),t},h=()=>{const e={};return Object.keys(a.value).forEach((t=>{const n=a.value[t],r=u.value[t],o=document.createElement("div");switch(v(o,r.containerStyle),n.type){case"button":o.appendChild(y(r));break;case"link":o.appendChild(m(r));break;case"divider":o.appendChild(b(r));break;case"header":o.appendChild(w(r));break;case"text":o.appendChild(x(r));break;case"image":o.appendChild(E(r));break;case"menu":o.appendChild(C(r))}e[t]={dom:o,config:r}})),e},v=(e,t)=>{const n=s(t);Object.entries(n).forEach((([t,n])=>{e.style[t]=n}))},g=e=>e.replace("<p>",'<p style="margin: 0;">'),y=e=>{const t=document.createElement("a");return t.href=e.attr.href??"",t.target=e.attr.target??"",t.innerHTML=g(e.attr.content??""),v(t,e.style),t},m=e=>{const t=document.createElement("a");return t.href=e.attr.href??"",t.target=e.attr.target??"",t.innerHTML=g(e.attr.content??""),v(t,e.style),t},b=e=>{const t=document.createElement("div");return v(t,e.style),t},w=e=>{const t=document.createElement("div");return t.innerHTML=g(e.attr.content??""),v(t,e.style),t},x=e=>{const t=document.createElement("div");return t.innerHTML=g(e.attr.content??""),v(t,e.style),t},E=e=>{const t=document.createElement("img");if(t.src=e.attr.src??"",t.alt=e.attr.alt??"",e.attr.href){const n=document.createElement("a");return n.href=e.attr.href??"",n.target=e.attr.target??"",t.style.width="100%",n.appendChild(t),v(n,e.style),n}return v(t,e.style),t},C=e=>{const t=document.createElement("div");return e.attr.links?.forEach((n=>{const r=document.createElement("a");v(r,e.style),r.href=n.href,r.target=e.attr.target??"",r.innerHTML=n.label,t.appendChild(r)})),t};return{html:c,generateHtml:()=>{c.value=d().outerHTML}}},oo=P({__name:"preview",props:{id:{}},setup(e){const t=ae(e,"id"),n=B(""),r=B(null),{setData:i,resetData:a}=to(),{html:u,generateHtml:l}=ro(),s=()=>{if(r.value){const e=r.value.contentDocument||r.value.contentWindow.document;e.open(),e.write(n.value),e.close()}},c=async()=>{if(!t.value)return;const{message:e}=await Ae({id:t.value});o(e)&&(n.value=e.content,1===e.type&&(i(e.render),l(),n.value=u.value,await Te({id:t.value,type:e.type,temp_name:e.name,render:e.render,content:u.value},!1)))};return J((()=>t.value),(async()=>{await c(),await ee(),s()})),Z((async()=>{await c(),s()})),ue((()=>{a()})),(e,t)=>(j(),I("iframe",{ref_key:"iframeRef",ref:r,class:"min-h-520px",width:"100%",height:"100%",style:{border:"none"}},null,512))}}),io={class:"mb-12px font-bold text-15px text-font2 leading-28px"},ao={class:"flex flex-col w-550px"},uo={class:"form-card mb-16px pt-20px"},lo={class:"w-360px"},so={class:"w-360px"},co={class:"w-260px"},fo={class:"w-60px ml-24px"},po={class:"form-card flex-1 py-20px"},ho={class:"w-360px"},vo={class:"flex w-360px"},go={class:"flex-1 mr-10px"},yo={class:"form-card flex flex-col items-center w-640px ml-16px pt-12px p-16px overflow-hidden"},mo={class:"mb-12px"},bo={class:"min-w-260px"},wo={class:"min-w-260px"},xo={class:"min-w-260px"},Eo={class:"mt-16px"},Co=P({__name:"index",props:te({row:{},isEdit:{type:Boolean,default:!1},refresh:{type:Function,default:()=>{}}},{show:{type:Boolean},showModifiers:{}}),emits:["update:show"],setup(e){const n=e,{t:r}=G(),{refresh:o}=n,i=F(e,"show"),a=d(),u=X("formRef"),l=X("containerRef"),{height:s}=function(e){const t=B(0),{mainHeight:n,footerHeight:r}=z(d());return J((()=>n.value),(n=>{ee((()=>{if(!e.value)return;const{top:o}=e.value.getBoundingClientRect();t.value=n-o-16-16-r.value}))}),{immediate:!0}),{height:Q((()=>0===t.value?"auto":t.value+"px"))}}(l),c=W({task_name:x(12),addresser:null,full_name:"",subject:"",temp_id:_n.value,is_record:0,etypes:[],unsubscribe:1,threadsType:0,threads:1,start_time:null,pause:0,remark:"",mail_to:""}),p=B([]),h={full_name:{trigger:["blur","input"],validator:()=>""!==c.full_name||new Error("Please enter display name")},subject:{trigger:["blur","input"],validator:()=>""!==c.subject||new Error("Please enter mail subject")},etypes:{trigger:"change",validator:()=>0!==c.etypes.length||new Error("Please select contact person")},start_time:{validator:()=>1!==c.pause||null!==c.start_time||new Error("Please select send time")}},v=e=>{c.full_name=e||""},y=X("startTimeRef"),b=()=>{ee((()=>{y.value?.restoreValidation()}))},w=()=>{y.value?.validate()},S=()=>{m({title:r("Mail.Mass.index_54"),width:450,minHeight:196,component:fe((()=>E((()=>t.import("./unsubscribe-legacy-q64MsFiT.js?v=1773287522785")),void 0)))})},k=()=>{m({title:r("Mail.Mass.index_42"),width:554,minHeight:604,content:()=>N("img",{src:"/static/vite/images/unsubscribe-C7VkuZUt.png"},[$(" ")])})},_=X("subjectRef"),O=X("mailToRef"),A=async()=>{if(!a.isFree)return""===c.subject?(_.value?.focus(),void C.error("Please enter mail subject")):""===c.mail_to?(O.value?.focus(),void C.error("Please enter test email")):void(await Be({mail_from:c.addresser||"",subject:c.subject,mail_to:c.mail_to,temp_id:c.temp_id||0}));f({source:325})},T=()=>{c.subject||c.etypes.length>0?D({title:"Tips",content:"Do you want to discard your current edits?",onConfirm:()=>{i.value=!1}}):i.value=!1},P=async()=>{if(a.isFree)return f({source:326}),!1;await(u.value?.validate());const e={task_name:c.task_name,addresser:c.addresser||"",full_name:c.full_name,subject:c.subject,temp_id:c.temp_id||0,is_record:c.is_record,unsubscribe:c.unsubscribe,threads:0===c.threadsType?0:c.threads,etypes:c.etypes.join(","),start_time:0===c.pause?Math.floor((new Date).getTime()/1e3):Math.floor((c.start_time||0)/1e3),remark:c.remark},{isEdit:t,row:r}=n;t&&r?await Pe({...e,id:r.id}):await Fe(e),i.value=!1,o?.()};return le((()=>{_n.value=null,On.value=!1})),(()=>{const{row:e,isEdit:t}=n;e&&(c.task_name=t?e.task_name:`${e.task_name}_${x(4)}`,c.addresser=e.addresser,c.full_name=e.full_name,c.subject=e.subject,c.is_record=e.is_record,c.unsubscribe=e.unsubscribe,c.threadsType=0===e.threads?0:1,c.threads=e.threads,c.etypes=e.etypes.split(",").map((e=>pn(e))),1e3*e.start_time>(new Date).getTime()&&(c.pause=1,c.start_time=1e3*e.start_time),c.temp_id=e.temp_id,c.remark=e.remark)})(),(e,t)=>{const n=St,r=kt,o=wt,i=mt,a=g,d=At,f=vt,m=Tt,x=yt,E=dn;return j(),I("div",null,[N(E,{ref_key:"formRef",ref:u,"label-width":"150",model:H(c),rules:h},{default:L((()=>[R("div",io,K(e.isEdit?e.$t("Mail.Mass.index_67"):e.$t("Mail.Mass.index_1")),1),R("div",{ref_key:"containerRef",ref:l,class:"flex min-h-654px",style:de({height:H(s)})},[R("div",ao,[R("div",uo,[N(n,{label:"From",path:"addresser"},{default:L((()=>[N(Br,{value:H(c).addresser,"onUpdate:value":t[0]||(t[0]=e=>H(c).addresser=e),onChange:v},null,8,["value"])])),_:1}),N(n,{label:"Display Name",path:"full_name"},{default:L((()=>[R("div",lo,[N(r,{value:H(c).full_name,"onUpdate:value":t[1]||(t[1]=e=>H(c).full_name=e),placeholder:"Please enter display Name"},null,8,["value"])])])),_:1}),N(n,{label:"Subject",path:"subject"},{default:L((()=>[R("div",so,[N(r,{ref_key:"subjectRef",ref:_,value:H(c).subject,"onUpdate:value":t[2]||(t[2]=e=>H(c).subject=e),placeholder:"Please enter mail subject"},null,8,["value"])])])),_:1}),N(n,{label:"Recipients",type:"etypes"},{default:L((()=>[N($r,{value:H(c).etypes,"onUpdate:value":t[3]||(t[3]=e=>H(c).etypes=e),name:H(p),"onUpdate:name":t[4]||(t[4]=e=>U(p)?p.value=e:null)},null,8,["value","name"])])),_:1}),N(n,{label:"Email template"},{default:L((()=>[R("div",co,[N(Or,{value:H(c).temp_id,"onUpdate:value":t[5]||(t[5]=e=>H(c).temp_id=e)},null,8,["value"])])])),_:1}),N(n,{label:e.$t("Mail.Mass.index_30")},{default:L((()=>[N(o,{value:H(c).is_record,"onUpdate:value":t[6]||(t[6]=e=>H(c).is_record=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1},8,["label"]),N(n,{label:e.$t("Mail.Mass.index_31")},{default:L((()=>[N(o,{value:H(c).unsubscribe,"onUpdate:value":t[7]||(t[7]=e=>H(c).unsubscribe=e),"checked-value":1,"unchecked-value":0},null,8,["value"]),N(i,{class:"ml-16px",size:"small",onClick:S},{default:L((()=>[$(K(e.$t("Public.Btn.Set")),1)])),_:1}),N(a,{class:"ml-16px",onClick:k},{default:L((()=>[$(K(e.$t("Mail.Mass.index_32")),1)])),_:1})])),_:1},8,["label"]),N(n,{label:e.$t("Mail.Mass.index_33"),path:"threads"},{default:L((()=>[N(f,{value:H(c).threadsType,"onUpdate:value":t[8]||(t[8]=e=>H(c).threadsType=e)},{default:L((()=>[N(d,{value:0},{default:L((()=>[$(K(e.$t("Mail.Mass.index_34")),1)])),_:1}),N(d,{value:1},{default:L((()=>[$(K(e.$t("Mail.Mass.index_35")),1)])),_:1})])),_:1},8,["value"]),se(R("div",fo,[N(m,{value:H(c).threads,"onUpdate:value":t[9]||(t[9]=e=>H(c).threads=e),min:1,max:5,"show-button":!1,placeholder:e.$t("Mail.Mass.index_36")},null,8,["value","placeholder"])],512),[[ce,1===H(c).threadsType]])])),_:1},8,["label"])]),R("div",po,[N(n,{ref_key:"startTimeRef",ref:y,label:"Send time",path:"start_time"},{default:L((()=>[N(f,{value:H(c).pause,"onUpdate:value":[t[11]||(t[11]=e=>H(c).pause=e),b],class:"flex items-center"},{default:L((()=>[N(d,{value:0},{default:L((()=>t[14]||(t[14]=[$("Send Now")]))),_:1,__:[14]}),N(d,{class:"items-center",value:1},{default:L((()=>[N(x,{value:H(c).start_time,"onUpdate:value":[t[10]||(t[10]=e=>H(c).start_time=e),w],type:"datetime",disabled:0===H(c).pause,clearable:""},null,8,["value","disabled"])])),_:1})])),_:1},8,["value"])])),_:1},512),N(n,{label:"Remark"},{default:L((()=>[R("div",ho,[N(r,{value:H(c).remark,"onUpdate:value":t[12]||(t[12]=e=>H(c).remark=e),placeholder:"Please enter remark"},null,8,["value"])])])),_:1}),N(n,{label:"Send Test email to","show-feedback":!1},{default:L((()=>[R("div",vo,[R("div",go,[N(r,{ref_key:"mailToRef",ref:O,value:H(c).mail_to,"onUpdate:value":t[13]||(t[13]=e=>H(c).mail_to=e),placeholder:"Please enter email"},null,8,["value"])]),N(i,{onClick:A},{default:L((()=>t[15]||(t[15]=[$("Send Test Mail")]))),_:1,__:[15]})])])),_:1})])]),R("div",yo,[R("div",mo,[N(n,{label:"From: ","show-feedback":!1,style:{"--n-blank-height":"21px"},"label-style":{fontWeight:"bold"}},{default:L((()=>[R("div",bo,K(H(c).addresser),1)])),_:1}),N(n,{label:"To: ","show-feedback":!1,style:{"--n-blank-height":"21px"},"label-style":{fontWeight:"bold"}},{default:L((()=>[R("div",wo,K(H(p).length>0?H(p).join(", "):"--"),1)])),_:1}),N(n,{label:"Subject: ","show-feedback":!1,style:{"--n-blank-height":"21px"},"label-style":{fontWeight:"bold"}},{default:L((()=>[R("div",xo,K(H(c).subject||"--"),1)])),_:1})]),N(oo,{id:H(c).temp_id},null,8,["id"])])],4),R("div",Eo,[N(i,{class:"mr-16px",onClick:T},{default:L((()=>[$(K(e.$t("Public.Btn.Cancel")),1)])),_:1}),N(i,{type:"primary",onClick:P},{default:L((()=>[$(K(e.$t("Public.Btn.Confirm")),1)])),_:1})])])),_:1},8,["model"])])}}}),Do=p(Co,[["__scopeId","data-v-87a7687c"]]),So={class:"p-20px"},ko=P({__name:"details",props:{id:{},type:{},row:{}},setup(e){const t=e,{t:n}=G(),r=W({task_id:t.id,type:t.type,value:"domain"===t.type?t.row.domain:t.row.status,page:1,size:10}),{loading:i,setLoading:a}=Zt(),{table:u,columns:l}=qt([{key:"recipient",title:n("Mail.Mass.index_50"),width:160,render:e=>N(bt,{class:e.tooltip?"":"break-all!","line-clamp":e.tooltip?999:1,tooltip:!1},{default:()=>[e.recipient]})},{key:"dsn",title:"Dsn",width:60},{key:"delay",title:n("Mail.Mass.index_51"),width:70},{key:"delays",title:n("Mail.Mass.index_52"),width:150},{key:"relay",title:n("Mail.Mass.index_53"),width:200,render:e=>N(bt,{class:e.tooltip?"":"break-all!","line-clamp":e.tooltip?9999:1,tooltip:!1},{default:()=>[e.relay]})},{key:"err_info",title:n("Public.Btn.Details"),render:e=>N(bt,{class:e.tooltip?"":"break-all!","line-clamp":e.tooltip?9999:1,tooltip:!1},{default:()=>[e.err_info]})}]),s=e=>({onMousemove:()=>{e.tooltip=!0},onMouseleave:()=>{e.tooltip=!1}}),c=async()=>{try{a(!0);const{message:e}=await nn(ie(r));o(e)&&(u.data=h(e.data)?e.data.map((e=>({...e,tooltip:!1}))):[],u.total=S(e.page))}finally{a(!1)}};return"domain"===r.type&&l.value.push({key:"status",title:n("Public.Table.Status"),width:100,ellipsis:{tooltip:!0},render:e=>e.status}),"status"===r.type&&l.value.unshift({key:"domain",title:n("Mail.Mass.index_45"),width:120,ellipsis:{tooltip:!0},render:e=>e.domain}),c(),(e,t)=>{const n=Kt,o=ln,a=Yt;return j(),I("div",So,[N(a,null,{table:L((()=>[N(n,{loading:H(i),data:H(u).data,columns:H(l),"row-props":s},null,8,["loading","data","columns"])])),pageRight:L((()=>[N(o,{page:H(r).page,"onUpdate:page":t[0]||(t[0]=e=>H(r).page=e),"page-size":H(r).size,"onUpdate:pageSize":t[1]||(t[1]=e=>H(r).size=e),"item-count":H(u).total,onRefresh:c},null,8,["page","page-size","item-count"])])),_:1})])}}}),_o={class:"p-20px"},Oo=P({__name:"index",props:{row:{}},setup(e){const t=e,{t:n}=G(),r=W({task_id:t.row.id,type:"domain"}),i=async()=>{const{message:e}=await je({task_id:t.row.id});o(e)&&b(e.result)},{loading:a,setLoading:u}=Zt(),{table:l,columns:s}=qt([{key:"domain",title:()=>N(M,null,["domain"===r.type?n("Mail.Mass.index_45"):n("Public.Table.Status")]),render:e=>"domain"===r.type?e.domain:e.status},{key:"count",title:n("Mail.Mass.index_46")},sn({width:120,options:e=>[{label:n("Public.Btn.Details"),onClick:()=>{d(e)}}]})]),c=k(""),d=e=>{c.data.id=t.row.id,c.data.type=r.type,c.data.row=e,c.title=n("Mail.Mass.index_49",["domain"===r.type?e.domain:e.status]),c.show=!0},f=async()=>{try{u(!0);const{message:e}=await rn(ie(r));l.data=h(e)?e:[]}finally{u(!1)}};return f(),(e,t)=>{const n=gt,o=vt,u=mt,d=Kt,p=Yt,h=_;return j(),I("div",_o,[N(p,null,{toolsLeft:L((()=>[N(o,{value:H(r).type,"onUpdate:value":[t[0]||(t[0]=e=>H(r).type=e),f]},{default:L((()=>[N(n,{value:"domain"},{default:L((()=>[$(K(e.$t("Mail.Mass.index_45")),1)])),_:1}),N(n,{value:"status"},{default:L((()=>[$(K(e.$t("Public.Table.Status")),1)])),_:1})])),_:1},8,["value"]),N(u,{onClick:i},{default:L((()=>[$(K(e.$t("Public.Btn.Export")),1)])),_:1})])),table:L((()=>[N(d,{"max-height":340,loading:H(a),data:H(l).data,columns:H(s)},null,8,["loading","data","columns"])])),_:1}),N(h,{show:H(c).show,"onUpdate:show":t[1]||(t[1]=e=>H(c).show=e),title:H(c).title,data:H(c).data,width:980,"min-height":152,component:ko},null,8,["show","title","data"])])}}}),Ao={class:"h-full"},To=P({__name:"index",props:{row:{}},setup(e){const t=e,{t:n}=G(),r=B(n("Mail.Mass.index_48")),{loading:i,setLoading:a}=Zt();return(async()=>{try{a(!0);const{message:e}=await mn({path:t.row.error_log});o(e)&&(r.value=e.data?e.data.slice(-1e4):n("Mail.Mass.index_48"))}finally{a(!1)}})(),(e,t)=>{const n=yn;return j(),I("div",Ao,[N(n,{log:H(r),loading:H(i)},null,8,["log","loading"])])}}}),Bo=P({__name:"index",setup(e){const{t:n}=G(),r=W({p:1,size:10}),a=W({title:"",row:void 0,isEdit:!1}),u=e=>{a.row=e,a.isEdit=!1,On.value=!0},{table:l,columns:s}=qt([{key:"created",title:n("Mail.Mass.index_2"),width:"14%",minWidth:140,render:e=>i(e.created)},{key:"subject",title:n("Mail.Mass.index_23"),width:"12%",minWidth:100,ellipsis:{tooltip:!0}},{key:"addresser",title:n("Mail.Mass.index_4"),minWidth:180,width:"15%",ellipsis:{tooltip:!0}},{key:"recipient_count",title:n("Mail.Mass.index_5"),width:"7%",minWidth:80},{key:"success_count",title:n("Mail.Mass.index_6"),width:"7%",minWidth:80,render:e=>e.delivered-e.count.error_count},{key:"error_count",title:n("Mail.Mass.index_7"),width:"7%",minWidth:80,render:e=>N("a",{class:"bt-link error",href:"javascript:;",onClick:()=>{f(e)}},[e.count.error_count])},{key:"task_process",title:n("Public.Table.Status"),width:"7%",render:e=>0===e.task_process||1===e.pause?N("span",{class:"text-#fcb040"},[$(" "),n("Mail.Mass.index_9"),$(" ")]):1===e.task_process?N("span",{class:"text-#fcb040"},[$(" "),n("Mail.Mass.index_10"),$(" ")]):n("Mail.Mass.index_11")},{key:"remark",title:n("Public.Table.Ps"),width:"10%",minWidth:80,ellipsis:{tooltip:!0}},cn({status:"success"}),sn({width:180,options:e=>[{label:n("Public.Btn.Edit"),show:0===e.task_process&&0===e.pause,onClick:()=>{(e=>{a.row=e,a.isEdit=!0,On.value=!0})(e)}},{label:n("Mail.Mass.index_61"),show:!(0===e.task_process&&0===e.pause),onClick:()=>{c(e)}},{label:1===e.pause?n("Mail.Mass.index_12"):n("Public.Status.Pause"),show:2!==e.task_process,onClick:()=>{v(e)}},{label:n("Public.Btn.Del"),onClick:()=>{g(e)}}]})]),c=e=>{m({title:n("Mail.Mass.index_62",[e.subject]),width:640,minHeight:320,footer:!0,confirmText:n("Mail.Mass.index_63"),data:{row:e,onAdd:u},component:fe((()=>E((()=>t.import("./index-legacy-ReBfL6AZ.js?v=1773287522785")),void 0)))})},d=k(""),f=e=>{d.data.row=e,d.title=n("Mail.Mass.index_13",[e.subject]),d.show=!0},p=k(""),v=e=>{D({title:n("Mail.Mass.index_15",[e.subject]),content:e.task_process?n("Mail.Mass.index_16"):n("Mail.Mass.index_17"),onConfirm:async()=>{await on({task_id:e.id,pause:e.pause?0:1}),y()}})},g=async e=>{D({title:n("Mail.Mass.index_18"),content:n("Mail.Mass.index_19",[e.subject]),onConfirm:async()=>{await an({task_id:e.id}),y()}})},y=async()=>{try{l.loading=!0;const{message:e}=await un(ie(r));o(e)&&(l.data=h(e.data)?e.data:[],l.total=S(e.page))}finally{l.loading=!1}};return y(),(e,t)=>{const n=mt,o=Kt,i=ln,c=Yt,f=_;return j(),I("div",null,[se(N(c,null,{toolsLeft:L((()=>[N(n,{type:"primary",onClick:t[0]||(t[0]=e=>u())},{default:L((()=>[$(K(e.$t("Mail.Mass.index_1")),1)])),_:1})])),table:L((()=>[N(o,{loading:H(l).loading,data:H(l).data,columns:H(s)},null,8,["loading","data","columns"])])),pageRight:L((()=>[N(i,{page:H(r).p,"onUpdate:page":t[1]||(t[1]=e=>H(r).p=e),"page-size":H(r).size,"onUpdate:pageSize":t[2]||(t[2]=e=>H(r).size=e),"item-count":H(l).total,onRefresh:y},null,8,["page","page-size","item-count"])])),_:1},512),[[ce,!H(On)]]),H(On)?(j(),q(Do,{key:0,show:H(On),"onUpdate:show":t[3]||(t[3]=e=>U(On)?On.value=e:null),"is-edit":H(a).isEdit,title:H(a).title,row:H(a).row,refresh:y},null,8,["show","is-edit","title","row"])):V("",!0),N(f,{show:H(d).show,"onUpdate:show":t[4]||(t[4]=e=>H(d).show=e),title:H(d).title,data:H(d).data,width:700,"min-height":192,component:Oo},null,8,["show","title","data"]),N(f,{show:H(p).show,"onUpdate:show":t[5]||(t[5]=e=>H(p).show=e),title:H(p).title,data:H(p).data,width:750,height:580,component:To},null,8,["show","title","data"])])}}}),Po=p(Bo,[["__scopeId","data-v-9c8b6936"]]),Fo=e=>{kn.value=e};var jo=Symbol.for("DndContextType");function Io(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Mo="function"==typeof Symbol&&Symbol.observable||"@@observable",No=function(){return Math.random().toString(36).substring(7).split("").join(".")},Lo={INIT:"@@redux/INIT"+No(),REPLACE:"@@redux/REPLACE"+No()};function Ro(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Io(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Io(1));return n(Ro)(e,t)}if("function"!=typeof e)throw new Error(Io(2));var o=e,i=t,a=[],u=a,l=!1;function s(){u===a&&(u=a.slice())}function c(){if(l)throw new Error(Io(3));return i}function d(e){if("function"!=typeof e)throw new Error(Io(4));if(l)throw new Error(Io(5));var t=!0;return s(),u.push(e),function(){if(t){if(l)throw new Error(Io(6));t=!1,s();var n=u.indexOf(e);u.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Io(7));if(void 0===e.type)throw new Error(Io(8));if(l)throw new Error(Io(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=u,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:Lo.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Io(10));o=e,f({type:Lo.REPLACE})}})[Mo]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Io(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Mo]=function(){return this},e},r}function zo(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Uo(e){return"object"==typeof e}const Ho="dnd-core/INIT_COORDS",$o="dnd-core/BEGIN_DRAG",Vo="dnd-core/PUBLISH_DRAG_SOURCE",Wo="dnd-core/HOVER",Ko="dnd-core/DROP",qo="dnd-core/END_DRAG";function Go(e,t){return{type:Ho,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Xo={type:Ho,payload:{clientOffset:null,sourceClientOffset:null}};function Yo(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),u=e.getRegistry();e.dispatch(Go(o)),function(e,t,n){zo(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){zo(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,u);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(Xo);let s=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){zo("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),s=i(l)}e.dispatch(Go(o,s));const c=u.getSource(l).beginDrag(a,l);if(null==c)return;!function(e){zo(Uo(e),"Item must be an object.")}(c),u.pinSource(l);const d=u.getSourceType(l);return{type:$o,payload:{itemType:d,item:c,sourceId:l,clientOffset:o||null,sourceClientOffset:s||null,isSourcePublic:!!r}}}}function Zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zo(e,t,n[t])}))}return e}function Qo(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){zo(e.isDragging(),"Cannot call drop while not dragging."),zo(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){zo(void 0===e||Uo(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),u={type:Ko,payload:{dropResult:Jo({},t,a)}};e.dispatch(u)}))}}function ei(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){zo(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:qo}}}function ti(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function ni(e){return function(t,{clientOffset:n}={}){!function(e){zo(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];ti(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){zo(t.isDragging(),"Cannot call hover while not dragging."),zo(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];zo(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),zo(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:Wo,payload:{targetIds:r,clientOffset:n||null}}}}function ri(e){return function(){if(e.getMonitor().isDragging())return{type:Vo}}}class oi{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:Yo(e),publishDragSource:ri(e),hover:ni(e),drop:Qo(e),endDrag:ei(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function ii(e,t){return{x:e.x-t.x,y:e.y-t.y}}const ai=[],ui=[];ai.__IS_NONE__=!0,ui.__IS_ALL__=!0;class li{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;zo("function"==typeof e,"listener must be a function."),zo(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){if(e===ai)return!1;if(e===ui||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){zo("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return zo(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return zo(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(ti(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return zo(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ti(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?ii(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?ii(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const si="undefined"!=typeof global?global:self,ci=si.MutationObserver||si.WebKitMutationObserver;function di(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const fi="function"==typeof ci?function(e){let t=1;const n=new ci(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:di;class pi{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const hi=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=fi(this.flush),this.requestErrorThrow=di((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},vi=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new pi(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(hi.registerPendingError),gi="dnd-core/ADD_SOURCE",yi="dnd-core/ADD_TARGET",mi="dnd-core/REMOVE_SOURCE",bi="dnd-core/REMOVE_TARGET";function wi(e,t){t&&Array.isArray(e)?e.forEach((e=>wi(e,!1))):zo("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var xi;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(xi||(xi={}));let Ei=0;function Ci(e){const t=(Ei++).toString();switch(e){case xi.SOURCE:return`S${t}`;case xi.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Di(e){switch(e[0]){case"S":return xi.SOURCE;case"T":return xi.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Si(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class ki{addSource(e,t){wi(e),function(e){zo("function"==typeof e.canDrag,"Expected canDrag to be a function."),zo("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),zo("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(xi.SOURCE,e,t);return this.store.dispatch(function(e){return{type:gi,payload:{sourceId:e}}}(n)),n}addTarget(e,t){wi(e,!0),function(e){zo("function"==typeof e.canDrop,"Expected canDrop to be a function."),zo("function"==typeof e.hover,"Expected hover to be a function."),zo("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(xi.TARGET,e,t);return this.store.dispatch(function(e){return{type:yi,payload:{targetId:e}}}(n)),n}containsHandler(e){return Si(this.dragSources,e)||Si(this.dropTargets,e)}getSource(e,t=!1){return zo(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return zo(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return zo(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return zo(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Di(e)===xi.SOURCE}isTargetId(e){return Di(e)===xi.TARGET}removeSource(e){var t;zo(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:mi,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},hi.enqueueTask(vi.create(t))}removeTarget(e){zo(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:bi,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);zo(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){zo(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=Ci(e);return this.types.set(r,t),e===xi.SOURCE?this.dragSources.set(r,n):e===xi.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const _i=(e,t)=>e===t;function Oi(e=ai,t){switch(t.type){case Wo:break;case gi:case yi:case bi:case mi:return ai;default:return ui}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(n,r),i=o.length>0||!function(e,t,n=_i){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!i)return ai;const a=r[r.length-1],u=n[n.length-1];return a!==u&&(a&&o.push(a),u&&o.push(u)),o}function Ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ti={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Bi(e=Ti,t){const{payload:n}=t;switch(t.type){case Ho:case $o:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Wo:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ai(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case qo:case Ko:return Ti;default:return e}var r,o}function Pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pi(e,t,n[t])}))}return e}const ji={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ii(e=ji,t){const{payload:n}=t;switch(t.type){case $o:return Fi({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Vo:return Fi({},e,{isSourcePublic:!0});case Wo:return Fi({},e,{targetIds:n.targetIds});case bi:return-1===e.targetIds.indexOf(n.targetId)?e:Fi({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case Ko:return Fi({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case qo:return Fi({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Mi(e=0,t){switch(t.type){case gi:case yi:return e+1;case mi:case bi:return e-1;default:return e}}function Ni(e=0){return e+1}function Li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Li(e,t,n[t])}))}return e}function zi(e={},t){return{dirtyHandlerIds:Oi(e.dirtyHandlerIds,{type:t.type,payload:Ri({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:Bi(e.dragOffset,t),refCount:Mi(e.refCount,t),dragOperation:Ii(e.dragOperation,t),stateId:Ni(e.stateId)};var n,r,o}function Ui(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Ro(zi,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new li(o,new ki(o)),a=new oi(o,i),u=e(a,t,n);return a.receiveBackend(u),a}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vi=0,Wi=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Ki(e){if(function(e){return"manager"in e&&e.manager}(e))return[e.manager,!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qi(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Wi]||(o[Wi]=Ui(e,t,n,r)),o[Wi]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}function qi(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}const Gi=P({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n,r=t.slots,o=$i(Ki(e),2),i=o[0],a=o[1];return a&&++Vi,le((function(){if(a){var e=qi();0==--Vi&&(e[Wi]=null)}})),he(jo,i),function(){var e;return null!==(n=null===(e=r.default)||void 0===e?void 0:e.call(r))&&void 0!==n?n:null}}});var Xi=!1,Yi=!1,Zi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){zo(!Xi,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Xi=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Xi=!1}},t.isDragging=function(){if(!this.sourceId)return!1;zo(!Yi,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Yi=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Yi=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),Ji=!1,Qi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;zo(!Ji,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ji=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ji=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function ea(e){return!!(n=e)&&!0===n.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,n}function ta(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=n)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!ea(n)){var o=n;return e(o,r),o}}}function na(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=ta(r);t[n]=function(){return o}}})),t}function ra(e,t,n,r){let o;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const u=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<i.length;l++){const n=i[l];if(!u(n))return!1;const r=e[n],a=t[n];if(o=void 0,!1===o||void 0===o&&r!==a)return!1}return!0}function oa(e,t,n){return t&&function(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)}}(e.prototype,t),e}var ia=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=na({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t=e.prototype;return t.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},t.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},t.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},t.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},t.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},t.didDragSourceOptionsChange=function(){return!ra(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},t.didDragPreviewOptionsChange=function(){return!ra(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},t.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},t.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},t.clearDragSource=function(){this.dragSourceNode=null},t.clearDragPreview=function(){this.dragPreviewNode=null},oa(e,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),e}();function aa(e,t,n){return t&&function(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)}}(e.prototype,t),e}var ua,la,sa=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=na({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,U(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t=e.prototype;return t.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},t.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},t.didOptionsChange=function(){return!ra(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},t.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},t.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},aa(e,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),e}(),ca=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e=this.spec,t=this.monitor,n=null;return null!=(n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{})?n:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}();function da(){var e=pe(jo);return zo(null!=e,"Expected drag drop context"),e}function fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t,n){var r=da(),o=function(e,t,n){var r=Q((function(){return new ca(H(e),H(t),H(n))}));return ve((function(){r.value.spec=H(e)})),r}(e,t,n),i=function(e){return Q((function(){var t=H(e).type;return zo(null!=t,"spec.type must be defined"),t}))}(e);ve((function(e){if(null!=H(i)){var a=pa(function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}(H(i),H(o),H(r)),2),u=a[0],l=a[1];H(t).receiveHandlerId(u),H(n).receiveHandlerId(u),e(l)}}))}function va(e){return Q((function(){return"function"==typeof e?e():e}))}var ga=(la||(la=1,ua=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}),ua);const ya=wn(ga);function ma(e,t,n){var r=B(H(t)(H(e))),o=function(){var o=H(t)(H(e));ya(r.value,o)||(r.value=o,n&&n())};return ve(o),[r,o]}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ba(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xa(e,t,n){return function(e,t,n){var r=wa(ma(e,t,n),2),o=r[0],i=r[1];return ve((function(t){var n=H(e).getHandlerId();null!=n&&t(H(e).subscribeToStateChange(i,{handlerIds:[n]}))})),o}(t,e||function(){return{}},(function(){return H(n).reconnect()}))}function Ea(e,t){var n=W({el:null,options:H(t)});return ve((function(){e(n)}),{flush:"post"}),function(e,r){Sn(n,"el",e);var o=H(t)||r;return ya(n.options,o)||Sn(n,"options",o),H(e)}}function Ca(e,t){return Ea((function(t){H(e).hooks.dragSource()(t.el,t.options)}),Q((function(){return H(t).options})))}function Da(e,t){return Ea((function(t){H(e).hooks.dragPreview()(t.el,t.options)}),Q((function(){return H(t).previewOptions})))}function Sa(e){var t,n=va(e),r=(t=da(),Q((function(){return new Zi(H(t))}))),o=function(e,t){var n=da(),r=Q((function(){return new ia(H(n).getBackend())}));return ve((function(t){r.value.dragSourceOptions=H(e)||null,H(r).reconnect(),t((function(){r.value.disconnectDragSource()}))})),ve((function(e){r.value.dragPreviewOptions=H(t)||null,H(r).reconnect(),e((function(){r.value.disconnectDragPreview()}))})),r}(Q((function(){return H(n).options})),Q((function(){return H(n).previewOptions})));return ha(n,r,o),[xa(Q((function(){return H(n).collect||function(){return{}}})),r,o),Ca(o,n),Da(o,n)]}var ka=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Aa(e,t,n){var r=da(),o=function(e,t){var n=Q((function(){return new ka(H(e),H(t))}));return ve((function(){n.value.spec=H(e)})),n}(e,t),i=function(e){return Q((function(){var t=H(e).accept;return zo(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]}))}(e);ve((function(e){var a=Oa(function(e,t,n){var r=H(n).getRegistry(),o=r.addTarget(H(e),H(t));return[o,function(){return r.removeTarget(o)}]}(i,o,r),2),u=a[0],l=a[1];H(t).receiveHandlerId(u),H(n).receiveHandlerId(u),e(l)}))}function Ta(e,t){return Ea((function(t){H(e).hooks.dropTarget()(t.el,t.options)}),Q((function(){return H(t).options})))}function Ba(e){var t,n=va(e),r=(t=da(),Q((function(){return new Qi(H(t))}))),o=function(e){var t=da(),n=Q((function(){return new sa(H(t).getBackend())}));return ve((function(t){n.value.dropTargetOptions=H(e)||null,n.value.reconnect(),t((function(){return n.value.disconnectDropTarget()}))})),n}(Q((function(){return H(n).options})));return Aa(n,r,o),[xa(Q((function(){return H(n).collect||function(){return{}}})),r,o),Ta(o,n)]}function Pa(e){let t=null;return()=>(null==t&&(t=e()),t)}class Fa{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class ja{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Ia="__NATIVE_FILE__",Ma="__NATIVE_URL__",Na="__NATIVE_TEXT__",La="__NATIVE_HTML__",Ra=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ia,HTML:La,TEXT:Na,URL:Ma},Symbol.toStringTag,{value:"Module"}));function za(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Ua={[Ia]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[La]:{exposeProperties:{html:(e,t)=>za(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ma]:{exposeProperties:{urls:(e,t)=>za(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Na]:{exposeProperties:{text:(e,t)=>za(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Ha(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Ua).filter((e=>{const n=Ua[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const $a=Pa((()=>/firefox/i.test(navigator.userAgent))),Va=Pa((()=>Boolean(window.safari)));class Wa{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let u,l=0,s=i.length-1;for(;l<=s;){u=Math.floor(.5*(l+s));const r=t[u];if(r<e)l=u+1;else{if(!(r>e))return n[u];s=u-1}}a=Math.max(0,s);const c=e-t[a],d=c*c;return n[a]+r[a]*c+o[a]*d+i[a]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let f=0;f<n;f++)r.push(f);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[];let a,u;for(let f=0;f<n-1;f++)a=e[f+1]-e[f],u=t[f+1]-t[f],o.push(a),i.push(u/a);const l=[i[0]];for(let f=0;f<o.length-1;f++){const e=i[f],t=i[f+1];if(e*t<=0)l.push(0);else{a=o[f];const n=o[f+1],r=a+n;l.push(3*r/((r+n)/e+(r+a)/t))}}l.push(i[i.length-1]);const s=[],c=[];let d;for(let f=0;f<l.length-1;f++){d=i[f];const e=l[f],t=1/o[f],n=e+l[f+1]-d-d;s.push((d-e-n)*t),c.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=s,this.c3s=c}}function Ka(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function qa(e){return{x:e.clientX,y:e.clientY}}function Ga(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&($a()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Ka(i?e:t),u={x:n.x-a.x,y:n.y-a.y},{offsetWidth:l,offsetHeight:s}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Va()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,l,s),{offsetX:h,offsetY:v}=o,g=0===v||v;return{x:0===h||h?h:new Wa([0,.5,1],[u.x,u.x/l*f,u.x+f-l]).interpolate(c),y:g?v:(()=>{let e=new Wa([0,.5,1],[u.y,u.y/s*p,u.y+p-s]).interpolate(d);return Va()&&i&&(e+=(window.devicePixelRatio-1)*p),e})()}}class Xa{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function Ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ya(e,t,n[t])}))}return e}class Ja{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Za({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Za({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Ra).some((t=>Ra[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Ua[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new ja(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Ka(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=qa(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=Ha(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:u}=this.getCurrentSourcePreviewNodeOptions(),l=Ga(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:u});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Ha(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:qa(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=qa(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Ha(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:qa(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Xa(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Fa(this.isNodeInDocument)}}const Qa=function(e,t,n){return new Ja(e,t,n)},eu=Symbol("EmailEditorContext"),tu=P({__name:"EditorProvider",setup(e){const t=Vr();return he(eu,{store:t}),(e,t)=>(j(),q(H(Gi),{backend:H(Qa)},{default:L((()=>[re(e.$slots,"default")])),_:3},8,["backend"]))}}),nu=()=>{const e=Vr(),{version:t,selectedBlockKey:n,selectedBlockType:r,columnsSource:o,columnsMap:i,columnsConfigMap:a,cellMap:u,cellConfigMap:l,blockMap:s,blockConfigMap:c,pageConfig:d}=z(e),{autoSaveFn:f}=to(),p=Q((()=>o.value.map((e=>i.value[e])))),h=(e,t)=>{n.value=e,r.value=t},v=e=>{const t=g(e.key);a.value[e.key]=t},g=e=>{const n=new Date,r=_t(Wr);return r.key=e,r.meta.version=t.value,r.meta.createdAt=w(n,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(n,"yyyy-MM-dd HH:mm:ss"),r},y=()=>{const e=gn(),t={key:e,width:100,name:"Cell",type:"cell",children:[]};return u.value[e]=t,l.value[e]=m(t.key),t},m=e=>{const n=new Date,r=_t(Kr);return r.key=e,r.meta.version=t.value,r.meta.createdAt=w(n,"yyyy-MM-dd HH:mm:ss"),r.meta.updatedAt=w(n,"yyyy-MM-dd HH:mm:ss"),r},b=e=>{const t=i.value[e];if(t){const e=y();t.children.push(e.key)}},x=(e,t)=>{const n=i.value[e];if(n){const e=n.children.findIndex((e=>e===t));e>-1&&(n.children.splice(e,1),delete u.value[t])}},E=(e,t,n)=>{const r=u.value[e];if(!r||!r.children)return;const o=r.children[t];if(!o)return;if(t===n)return;r.children.splice(t,1);const i=t<n?n-1:n;r.children.splice(i,0,o),f()},C=(e,n,r=!0)=>{const o=_t(s.value[n]),i=_t(c.value[n]),a=u.value[e];if(a){const e=gn();o.key=e,i.key=e,i.meta={version:t.value,createdAt:w(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:w(new Date,"yyyy-MM-dd HH:mm:ss")};const r=a.children.findIndex((e=>e===n));s.value[e]=o,c.value[e]=i,r?a.children.splice(r+1,0,e):a.children.push(e)}r&&f()},D=(e,t,n=!0)=>{const r=u.value[e];if(r){const e=r.children.findIndex((e=>e===t));e>-1&&(h("",""),r.children.splice(e,1),delete s.value[t],delete c.value[t])}n&&f()};return{columnsSource:o,columnsMap:i,columnsMaps:p,columnsConfigMap:a,cellMap:u,cellConfigMap:l,blockMap:s,blockConfigMap:c,selectedBlockKey:n,selectedBlockType:r,pageConfig:d,selectBlock:h,insertColumnSourceAt:e=>{const t=(()=>{const e={key:gn(),type:"columns",name:"Columns",children:[]};return v(e),e})();i.value[t.key]=t,b(t.key),o.value.splice(e,0,t.key),f()},moveColumnSource:(e,t)=>{if(e<0||e>=o.value.length||t<0||t>o.value.length)return void console.warn("Move column: 索引超出范围");const n=o.value[e],r=[...o.value];r.splice(e,1);const i=e<t?t-1:t;r.splice(i,0,n),o.value=r,f()},generateNewCell:y,applyNewWidthColumnsInCell:(e,t)=>{const n=i.value[e];if(!n)return;if(!i.value[e])return;const r=n.children.length,o=t.length,a=o-r;if(a>0)for(let i=0;i<a;i++){const e=y();n.children.push(e.key)}else a<0&&n.children.slice(o,Math.abs(a)).forEach((t=>{x(e,t)}));t.forEach(((e,t)=>{n.children[t]&&(u.value[n.children[t]].width=e)})),f()},delColumnsInCell:x,insertBlockToCell:(e,n,r)=>{const o=u.value[n];if(o){const n={key:gn(),type:r.type,name:`${r.name}`};(e=>{const n=eo.get(e.type);if(n){const r=new Date,o=_t(n);o.key=e.key,o.name=e.name,o.meta.version=t.value,o.meta.createdAt=w(r,"yyyy-MM-dd HH:mm:ss"),o.meta.updatedAt=w(r,"yyyy-MM-dd HH:mm:ss"),c.value[e.key]=o}})(n),s.value[n.key]=n,o.children.splice(e,0,n.key),f()}},moveBlockInCell:E,moveBlockBetweenCells:(e,t,n,r,o)=>{if(e===t)return E(e,n,r);const i=u.value[e],a=u.value[t];if(!(i&&i.children&&a&&a.children))return;if(i.children[n]!==o)return;const l=i.children.splice(n,1);a.children.splice(r,0,l[0]),f()},duplicateBlock:C,duplicateColumn:e=>{const n=_t(i.value[e]),r=_t(a.value[e]),s=gn();n.key=s,n.children=[],r.key=s,r.meta={version:t.value,createdAt:w(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:w(new Date,"yyyy-MM-dd HH:mm:ss")},i.value[s]=n,a.value[s]=r;const c=o.value.findIndex((t=>t===e));o.value.splice(c+1,0,s),i.value[e].children.forEach((e=>{((e,n)=>{const r=_t(u.value[n]),o=_t(l.value[n]),a=gn();r.key=a,r.children=[],o.key=a,o.meta={version:t.value,createdAt:w(new Date,"yyyy-MM-dd HH:mm:ss"),updatedAt:w(new Date,"yyyy-MM-dd HH:mm:ss")},u.value[a]=r,l.value[a]=o,u.value[n].children.forEach((e=>{C(a,e,!1)}));const s=i.value[e];s&&s.children.push(a)})(s,e)})),f()},removeBlock:D,removeColumn:e=>{const t=o.value.findIndex((t=>t===e));t>-1&&(h("",""),i.value[e].children.forEach((t=>{((e,t)=>{const n=u.value[e],r=i.value[t];if(n){n.children.forEach((t=>{D(e,t,!1)}));const t=r.children.findIndex((t=>t===e));t>-1&&(delete u.value[e],delete l.value[e],r.children.splice(t,1))}})(t,e)})),delete i.value[e],delete a.value[e],o.value.splice(t,1)),f()}}},ru={class:"block-toolbar"},ou=p(P({__name:"Toolbar",props:{cellKey:{type:String,required:!0},data:{type:Object,required:!0}},setup(e){const{duplicateBlock:t,duplicateColumn:n,removeBlock:r,removeColumn:o}=nu(),i=()=>{"columns"!==e.data.type?t(e.cellKey,e.data.key):n(e.data.key)},a=()=>{"columns"!==e.data.type?r(e.cellKey,e.data.key):o(e.data.key)};return(e,t)=>{const n=O;return j(),I("div",ru,[R("button",{class:"tool-btn",onClick:ge(i,["stop"])},[N(n,{name:"drag-copy",size:"16",color:"#fff"})]),R("button",{class:"tool-btn",onClick:ge(a,["stop"])},[N(n,{name:"drag-remove",size:"16",color:"#fff"})])])}}}),[["__scopeId","data-v-091fc6b8"]]),iu=["data-block-id"],au={class:"block-section"},uu={class:"block-content"},lu=p(P({__name:"Section",props:{data:{type:Object,required:!0},cellKey:{type:String,default:""},blockType:{type:String,required:!0},blockIndex:{type:Number,default:-1}},emits:["select","unSelect"],setup(e,{emit:t}){const n=t,{selectedBlockKey:r,columnsConfigMap:o,blockConfigMap:i,selectBlock:a}=nu(),{configToStyle:u}=no(),l=Q((()=>r.value===e.data.key)),s=()=>{a(e.data.key,e.data.type),n("select")},c=Q((()=>{let t={};return t="columns"===e.data.type?o.value[e.data.key].containerStyle:i.value[e.data.key].containerStyle,u(t)})),[d,f,p]=Sa((()=>({type:"SORT_BASE_BLOCK",item:()=>({type:"SORT_BASE_BLOCK",sourceIndex:e.blockIndex,sourceCellKey:e.cellKey,blockData:_t(e.data)}),collect:e=>({isDragging:e.isDragging()})}))),[h,v]=Sa((()=>({type:"SORT_COLUMNS_BLOCK",item:()=>({type:"SORT_COLUMNS_BLOCK",sourceIndex:e.blockIndex,blockData:_t(e.data)}),collect:e=>({isDragging:e.isDragging()})}))),g=Q((()=>d.value.isDragging||h.value.isDragging));return J((()=>g.value),(e=>{!0===e&&n("unSelect")})),J((()=>l.value),((e,t)=>{!1===e&&!0===t&&n("unSelect")})),(t,n)=>(j(),I("div",{ref:H(p),class:ne(["block-base",[`block-${e.blockType}`,{"is-selected":H(l)},{"is-dragging":H(g)}]]),"data-block-id":e.data.key,style:de(H(c)),onClick:ge(s,["stop"])},[R("div",au,[se(N(ou,{"cell-key":e.cellKey,data:e.data},null,8,["cell-key","data"]),[[ce,H(l)&&!H(g)]]),"columns"===e.data.type?(j(),I("div",{key:0,ref:H(v),class:"drag-handle columns-drag-handle"},n[0]||(n[0]=[R("i",{class:"drag-icon"},"≡",-1)]),512)):V("",!0),"columns"!==e.data.type?(j(),I("div",{key:1,ref:H(f),class:"drag-handle"},n[1]||(n[1]=[R("i",{class:"drag-icon"},"≡",-1)]),512)):V("",!0)]),R("div",uu,[re(t.$slots,"default",{},void 0,!0)])],14,iu))}}),[["__scopeId","data-v-24248443"]]);var su="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cu(e){var t={exports:{}};return e(t,t.exports),t.exports}var du,fu,pu=function(e){return e&&e.Math==Math&&e},hu=pu("object"==typeof globalThis&&globalThis)||pu("object"==typeof window&&window)||pu("object"==typeof self&&self)||pu("object"==typeof su&&su)||function(){return this}()||Function("return this")(),vu=Function.prototype,gu=vu.apply,yu=vu.bind,mu=vu.call,bu="object"==typeof Reflect&&Reflect.apply||(yu?mu.bind(gu):function(){return mu.apply(gu,arguments)}),wu=Function.prototype,xu=wu.bind,Eu=wu.call,Cu=xu&&xu.bind(Eu),Du=xu?function(e){return e&&Cu(Eu,e)}:function(e){return e&&function(){return Eu.apply(e,arguments)}},Su=function(e){return"function"==typeof e},ku=function(e){try{return!!e()}catch(e){return!0}},_u=!ku((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ou=Function.prototype.call,Au=Ou.bind?Ou.bind(Ou):function(){return Ou.apply(Ou,arguments)},Tu={}.propertyIsEnumerable,Bu=Object.getOwnPropertyDescriptor,Pu=Bu&&!Tu.call({1:2},1)?function(e){var t=Bu(this,e);return!!t&&t.enumerable}:Tu,Fu={f:Pu},ju=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Iu=Du({}.toString),Mu=Du("".slice),Nu=function(e){return Mu(Iu(e),8,-1)},Lu=hu.Object,Ru=Du("".split),zu=ku((function(){return!Lu("z").propertyIsEnumerable(0)}))?function(e){return"String"==Nu(e)?Ru(e,""):Lu(e)}:Lu,Uu=hu.TypeError,Hu=function(e){if(null==e)throw Uu("Can't call method on "+e);return e},$u=function(e){return zu(Hu(e))},Vu=function(e){return"object"==typeof e?null!==e:Su(e)},Wu={},Ku=function(e){return Su(e)?e:void 0},qu=function(e,t){return arguments.length<2?Ku(Wu[e])||Ku(hu[e]):Wu[e]&&Wu[e][t]||hu[e]&&hu[e][t]},Gu=Du({}.isPrototypeOf),Xu=qu("navigator","userAgent")||"",Yu=hu.process,Zu=hu.Deno,Ju=Yu&&Yu.versions||Zu&&Zu.version,Qu=Ju&&Ju.v8;Qu&&(fu=(du=Qu.split("."))[0]>0&&du[0]<4?1:+(du[0]+du[1])),!fu&&Xu&&(!(du=Xu.match(/Edge\/(\d+)/))||du[1]>=74)&&(du=Xu.match(/Chrome\/(\d+)/))&&(fu=+du[1]);var el,tl=fu,nl=!!Object.getOwnPropertySymbols&&!ku((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tl&&tl<41})),rl=nl&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ol=hu.Object,il=rl?function(e){return"symbol"==typeof e}:function(e){var t=qu("Symbol");return Su(t)&&Gu(t.prototype,ol(e))},al=hu.String,ul=function(e){try{return al(e)}catch(e){return"Object"}},ll=hu.TypeError,sl=function(e){if(Su(e))return e;throw ll(ul(e)+" is not a function")},cl=function(e,t){var n=e[t];return null==n?void 0:sl(n)},dl=hu.TypeError,fl=Object.defineProperty,pl=hu["__core-js_shared__"]||function(e,t){try{fl(hu,e,{value:t,configurable:!0,writable:!0})}catch(cu){hu[e]=t}return t}("__core-js_shared__",{}),hl=cu((function(e){(e.exports=function(e,t){return pl[e]||(pl[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vl=hu.Object,gl=function(e){return vl(Hu(e))},yl=Du({}.hasOwnProperty),ml=Object.hasOwn||function(e,t){return yl(gl(e),t)},bl=0,wl=Math.random(),xl=Du(1..toString),El=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xl(++bl+wl,36)},Cl=hl("wks"),Dl=hu.Symbol,Sl=Dl&&Dl.for,kl=rl?Dl:Dl&&Dl.withoutSetter||El,_l=function(e){if(!ml(Cl,e)||!nl&&"string"!=typeof Cl[e]){var t="Symbol."+e;nl&&ml(Dl,e)?Cl[e]=Dl[e]:Cl[e]=rl&&Sl?Sl(t):kl(t)}return Cl[e]},Ol=hu.TypeError,Al=_l("toPrimitive"),Tl=function(e){var t=function(e,t){if(!Vu(e)||il(e))return e;var n,r=cl(e,Al);if(r){if(n=Au(r,e,t),!Vu(n)||il(n))return n;throw Ol("Can't convert object to primitive value")}return function(e){var t,n;if(Su(t=e.toString)&&!Vu(n=Au(t,e)))return n;if(Su(t=e.valueOf)&&!Vu(n=Au(t,e)))return n;throw dl("Can't convert object to primitive value")}(e)}(e,"string");return il(t)?t:t+""},Bl=hu.document,Pl=Vu(Bl)&&Vu(Bl.createElement),Fl=function(e){return Pl?Bl.createElement(e):{}},jl=!_u&&!ku((function(){return 7!=Object.defineProperty(Fl("div"),"a",{get:function(){return 7}}).a})),Il=Object.getOwnPropertyDescriptor,Ml=_u?Il:function(e,t){if(e=$u(e),t=Tl(t),jl)try{return Il(e,t)}catch(e){}if(ml(e,t))return ju(!Au(Fu.f,e,t),e[t])},Nl={f:Ml},Ll=/#|\.prototype\./,Rl=function(e,t){var n=Ul[zl(e)];return n==$l||n!=Hl&&(Su(t)?ku(t):!!t)},zl=Rl.normalize=function(e){return String(e).replace(Ll,".").toLowerCase()},Ul=Rl.data={},Hl=Rl.NATIVE="N",$l=Rl.POLYFILL="P",Vl=Rl,Wl=Du(Du.bind),Kl=function(e,t){return sl(e),void 0===t?e:Wl?Wl(e,t):function(){return e.apply(t,arguments)}},ql=hu.String,Gl=hu.TypeError,Xl=function(e){if(Vu(e))return e;throw Gl(ql(e)+" is not an object")},Yl=hu.TypeError,Zl=Object.defineProperty,Jl=_u?Zl:function(e,t,n){if(Xl(e),t=Tl(t),Xl(n),jl)try{return Zl(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Yl("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ql={f:Jl},es=_u?function(e,t,n){return Ql.f(e,t,ju(1,n))}:function(e,t,n){return e[t]=n,e},ts=Nl.f,ns=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 bu(e,this,arguments)};return t.prototype=e.prototype,t},rs=function(e,t){var n,r,o,i,a,u,l,s,c=e.target,d=e.global,f=e.stat,p=e.proto,h=d?hu:f?hu[c]:(hu[c]||{}).prototype,v=d?Wu:Wu[c]||es(Wu,c,{})[c],g=v.prototype;for(o in t)n=!Vl(d?o:c+(f?".":"#")+o,e.forced)&&h&&ml(h,o),a=v[o],n&&(u=e.noTargetGet?(s=ts(h,o))&&s.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(l=e.bind&&n?Kl(i,hu):e.wrap&&n?ns(i):p&&Su(i)?Du(i):i,(e.sham||i&&i.sham||a&&a.sham)&&es(l,"sham",!0),es(v,o,l),p&&(ml(Wu,r=c+"Prototype")||es(Wu,r,{}),es(Wu[r],o,i),e.real&&g&&!g[o]&&es(g,o,i)))},os=hl("keys"),is=function(e){return os[e]||(os[e]=El(e))},as=!ku((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),us=is("IE_PROTO"),ls=hu.Object,ss=ls.prototype,cs=as?ls.getPrototypeOf:function(e){var t=gl(e);if(ml(t,us))return t[us];var n=t.constructor;return Su(n)&&t instanceof n?n.prototype:t instanceof ls?ss:null},ds=hu.String,fs=hu.TypeError,ps=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Du(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Xl(n),function(e){if("object"==typeof e||Su(e))return e;throw fs("Can't set "+ds(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),hs=Math.ceil,vs=Math.floor,gs=function(e){var t=+e;return t!=t||0===t?0:(t>0?vs:hs)(t)},ys=Math.max,ms=Math.min,bs=function(e,t){var n=gs(e);return n<0?ys(n+t,0):ms(n,t)},ws=Math.min,xs=function(e){return(t=e.length)>0?ws(gs(t),9007199254740991):0;var t},Es={indexOf:function(e){return function(t,n,r){var o,i=$u(t),a=xs(i),u=bs(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1)},Cs={},Ds=Es.indexOf,Ss=Du([].push),ks=function(e,t){var n,r=$u(e),o=0,i=[];for(n in r)!ml(Cs,n)&&ml(r,n)&&Ss(i,n);for(;t.length>o;)ml(r,n=t[o++])&&(~Ds(i,n)||Ss(i,n));return i},_s=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Os=_s.concat("length","prototype"),As=Object.getOwnPropertyNames||function(e){return ks(e,Os)},Ts={f:As},Bs={f:Object.getOwnPropertySymbols},Ps=Du([].concat),Fs=qu("Reflect","ownKeys")||function(e){var t=Ts.f(Xl(e)),n=Bs.f;return n?Ps(t,n(e)):t},js=Object.keys||function(e){return ks(e,_s)},Is=_u?Object.defineProperties:function(e,t){Xl(e);for(var n,r=$u(t),o=js(t),i=o.length,a=0;i>a;)Ql.f(e,n=o[a++],r[n]);return e},Ms=qu("document","documentElement"),Ns=is("IE_PROTO"),Ls=function(){},Rs=function(e){return"<script>"+e+"<\/script>"},zs=function(e){e.write(Rs("")),e.close();var t=e.parentWindow.Object;return e=null,t},Us=function(){try{el=new ActiveXObject("htmlfile")}catch(e){}var e,t;Us="undefined"!=typeof document?document.domain&&el?zs(el):((t=Fl("iframe")).style.display="none",Ms.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Rs("document.F=Object")),e.close(),e.F):zs(el);for(var n=_s.length;n--;)delete Us.prototype[_s[n]];return Us()};Cs[Ns]=!0;var Hs=Object.create||function(e,t){var n;return null!==e?(Ls.prototype=Xl(e),n=new Ls,Ls.prototype=null,n[Ns]=e):n=Us(),void 0===t?n:Is(n,t)},$s=function(e,t,n){var r=Tl(t);r in e?Ql.f(e,r,ju(0,n)):e[r]=n},Vs=hu.Array,Ws=Math.max,Ks=function(e,t,n){for(var r=xs(e),o=bs(t,r),i=bs(r,r),a=Vs(Ws(i-o,0)),u=0;o<i;o++,u++)$s(a,u,e[o]);return a.length=u,a},qs=Du("".replace),Gs=Du("".split),Xs=Du([].join),Ys=String(Error("zxcasd").stack),Zs=/\n\s*at [^:]*:[^\n]*/,Js=Zs.test(Ys),Qs=/@[^\n]*\n/.test(Ys)&&!/zxcasd/.test(Ys),ec={},tc=_l("iterator"),nc=Array.prototype,rc={};rc[_l("toStringTag")]="z";var oc="[object z]"===String(rc),ic=_l("toStringTag"),ac=hu.Object,uc="Arguments"==Nu(function(){return arguments}()),lc=oc?Nu:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ac(e),ic))?n:uc?Nu(t):"Object"==(r=Nu(t))&&Su(t.callee)?"Arguments":r},sc=_l("iterator"),cc=function(e){if(null!=e)return cl(e,sc)||cl(e,"@@iterator")||ec[lc(e)]},dc=hu.TypeError,fc=function(e,t,n){var r,o;Xl(e);try{if(!(r=cl(e,"return"))){if("throw"===t)throw n;return n}r=Au(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Xl(r),n},pc=hu.TypeError,hc=function(e,t){this.stopped=e,this.result=t},vc=hc.prototype,gc=hu.String,yc=function(e){if("Symbol"===lc(e))throw TypeError("Cannot convert a Symbol value to a string");return gc(e)},mc=!ku((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ju(1,7)),7!==e.stack)})),bc=_l("toStringTag"),wc=hu.Error,xc=[].push,Ec=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Gu(Cc,this);ps?n=ps(new wc(void 0),o?cs(this):Cc):(n=o?this:Hs(Cc),es(n,bc,"Error")),es(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:yc(e)}(t,"")),mc&&es(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Js)for(;t--;)e=qs(e,Zs,"");else if(Qs)return Xs(Ks(Gs(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Vu(t)&&"cause"in t&&es(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,l,s,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Kl(t,c),v=function(e){return r&&fc(r,"normal",e),new hc(!0,e)},g=function(e){return d?(Xl(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(f)r=e;else{if(!(o=cc(e)))throw pc(ul(e)+" is not iterable");if(function(e){return void 0!==e&&(ec.Array===e||nc[tc]===e)}(o)){for(i=0,a=xs(e);a>i;i++)if((u=g(e[i]))&&Gu(vc,u))return u;return new hc(!1)}r=function(e,t){var n=arguments.length<2?cc(e):t;if(sl(n))return Xl(Au(n,e));throw dc(ul(e)+" is not iterable")}(e,o)}for(l=r.next;!(s=Au(l,r)).done;){try{u=g(s.value)}catch(e){fc(r,"throw",e)}if("object"==typeof u&&u&&Gu(vc,u))return u}new hc(!1)}(e,xc,{that:i}),es(n,"errors",i),n};ps?ps(Ec,wc):function(e,t){for(var n=Fs(t),r=Ql.f,o=Nl.f,i=0;i<n.length;i++){var a=n[i];ml(e,a)||r(e,a,o(t,a))}}(Ec,wc);var Cc=Ec.prototype=Hs(wc.prototype,{constructor:ju(1,Ec),message:ju(1,""),name:ju(1,"AggregateError")});rs({global:!0},{AggregateError:Ec});var Dc=Du(Function.toString);Su(pl.inspectSource)||(pl.inspectSource=function(e){return Dc(e)});var Sc,kc,_c,Oc=pl.inspectSource,Ac=hu.WeakMap,Tc=Su(Ac)&&/native code/.test(Oc(Ac)),Bc=hu.TypeError,Pc=hu.WeakMap;if(Tc||pl.state){var Fc=pl.state||(pl.state=new Pc),jc=Du(Fc.get),Ic=Du(Fc.has),Mc=Du(Fc.set);Sc=function(e,t){if(Ic(Fc,e))throw new Bc("Object already initialized");return t.facade=e,Mc(Fc,e,t),t},kc=function(e){return jc(Fc,e)||{}},_c=function(e){return Ic(Fc,e)}}else{var Nc=is("state");Cs[Nc]=!0,Sc=function(e,t){if(ml(e,Nc))throw new Bc("Object already initialized");return t.facade=e,es(e,Nc,t),t},kc=function(e){return ml(e,Nc)?e[Nc]:{}},_c=function(e){return ml(e,Nc)}}var Lc,Rc,zc,Uc={set:Sc,get:kc,has:_c,enforce:function(e){return _c(e)?kc(e):Sc(e,{})},getterFor:function(e){return function(t){var n;if(!Vu(t)||(n=kc(t)).type!==e)throw Bc("Incompatible receiver, "+e+" required");return n}}},Hc=Function.prototype,$c=_u&&Object.getOwnPropertyDescriptor,Vc=ml(Hc,"name"),Wc={PROPER:Vc&&"something"===function(){}.name,CONFIGURABLE:Vc&&(!_u||_u&&$c(Hc,"name").configurable)},Kc=function(e,t,n,r){es(e,t,n)},qc=_l("iterator"),Gc=!1;[].keys&&("next"in(zc=[].keys())?(Rc=cs(cs(zc)))!==Object.prototype&&(Lc=Rc):Gc=!0);var Xc=null==Lc||ku((function(){var e={};return Lc[qc].call(e)!==e}));Lc=Xc?{}:Hs(Lc),Su(Lc[qc])||Kc(Lc,qc,(function(){return this}));var Yc={IteratorPrototype:Lc,BUGGY_SAFARI_ITERATORS:Gc},Zc=oc?{}.toString:function(){return"[object "+lc(this)+"]"},Jc=Ql.f,Qc=_l("toStringTag"),ed=function(e,t,n,r){if(e){var o=n?e:e.prototype;ml(o,Qc)||Jc(o,Qc,{configurable:!0,value:t}),r&&!oc&&es(o,"toString",Zc)}},td=Yc.IteratorPrototype,nd=function(){return this},rd=Wc.PROPER,od=Yc.BUGGY_SAFARI_ITERATORS,id=_l("iterator"),ad=function(){return this},ud=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Hs(td,{next:ju(1,n)}),ed(e,r,!1,!0),ec[r]=nd}(n,t,r);var u,l,s=function(e){if(e===o&&h)return h;if(!od&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[id]||f["@@iterator"]||o&&f[o],h=!od&&p||s(o),v="Array"==t&&f.entries||p;return v&&(u=cs(v.call(new e)))!==Object.prototype&&u.next&&(ed(u,c,!0,!0),ec[c]=ad),rd&&"values"==o&&p&&"values"!==p.name&&(d=!0,h=function(){return Au(p,this)}),o&&(l={values:s("values"),keys:s("keys"),entries:s("entries")},a||rs({target:t,proto:!0,forced:od||d},l)),ec[t]=h,l},ld=Uc.set,sd=Uc.getterFor("Array Iterator");ud(Array,"Array",(function(e,t){ld(this,{type:"Array Iterator",target:$u(e),index:0,kind:t})}),(function(){var e=sd(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),ec.Arguments=ec.Array;var cd=Du("".charAt),dd=Du("".charCodeAt),fd=Du("".slice),pd=function(e){return function(t,n){var r,o,i=yc(Hu(t)),a=gs(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=dd(i,a))<55296||r>56319||a+1===u||(o=dd(i,a+1))<56320||o>57343?e?cd(i,a):r:e?fd(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),hd=Uc.set,vd=Uc.getterFor("String Iterator");ud(String,"String",(function(e){hd(this,{type:"String Iterator",string:yc(e),index:0})}),(function(){var e,t=vd(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pd(n,r),t.index+=e.length,{value:e,done:!1})}));var gd=Wu.AggregateError,yd=_l("toStringTag");for(var md 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 bd=hu[md],wd=bd&&bd.prototype;wd&&lc(wd)!==yd&&es(wd,yd,md),ec[md]=ec.Array}var xd,Ed,Cd=gd,Dd=function(e){return e&&e.Math==Math&&e},Sd=Dd("object"==typeof globalThis&&globalThis)||Dd("object"==typeof window&&window)||Dd("object"==typeof self&&self)||Dd("object"==typeof su&&su)||function(){return this}()||Function("return this")(),kd=function(e){try{return!!e()}catch(e){return!0}},_d=!kd((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Od=Function.prototype.call,Ad=Od.bind?Od.bind(Od):function(){return Od.apply(Od,arguments)},Td={}.propertyIsEnumerable,Bd=Object.getOwnPropertyDescriptor,Pd=Bd&&!Td.call({1:2},1)?function(e){var t=Bd(this,e);return!!t&&t.enumerable}:Td,Fd={f:Pd},jd=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Id=Function.prototype,Md=Id.bind,Nd=Id.call,Ld=Md&&Md.bind(Nd),Rd=Md?function(e){return e&&Ld(Nd,e)}:function(e){return e&&function(){return Nd.apply(e,arguments)}},zd=Rd({}.toString),Ud=Rd("".slice),Hd=function(e){return Ud(zd(e),8,-1)},$d=Sd.Object,Vd=Rd("".split),Wd=kd((function(){return!$d("z").propertyIsEnumerable(0)}))?function(e){return"String"==Hd(e)?Vd(e,""):$d(e)}:$d,Kd=Sd.TypeError,qd=function(e){if(null==e)throw Kd("Can't call method on "+e);return e},Gd=function(e){return Wd(qd(e))},Xd=function(e){return"function"==typeof e},Yd=function(e){return"object"==typeof e?null!==e:Xd(e)},Zd=function(e,t){return arguments.length<2?function(e){return Xd(e)?e:void 0}(Sd[e]):Sd[e]&&Sd[e][t]},Jd=Rd({}.isPrototypeOf),Qd=Zd("navigator","userAgent")||"",ef=Sd.process,tf=Sd.Deno,nf=ef&&ef.versions||tf&&tf.version,rf=nf&&nf.v8;rf&&(Ed=(xd=rf.split("."))[0]>0&&xd[0]<4?1:+(xd[0]+xd[1])),!Ed&&Qd&&(!(xd=Qd.match(/Edge\/(\d+)/))||xd[1]>=74)&&(xd=Qd.match(/Chrome\/(\d+)/))&&(Ed=+xd[1]);var of=Ed,af=!!Object.getOwnPropertySymbols&&!kd((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&of&&of<41})),uf=af&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lf=Sd.Object,sf=uf?function(e){return"symbol"==typeof e}:function(e){var t=Zd("Symbol");return Xd(t)&&Jd(t.prototype,lf(e))},cf=Sd.String,df=function(e){try{return cf(e)}catch(e){return"Object"}},ff=Sd.TypeError,pf=function(e){if(Xd(e))return e;throw ff(df(e)+" is not a function")},hf=function(e,t){var n=e[t];return null==n?void 0:pf(n)},vf=Sd.TypeError,gf=Object.defineProperty,yf=function(e,t){try{gf(Sd,e,{value:t,configurable:!0,writable:!0})}catch(cu){Sd[e]=t}return t},mf=Sd["__core-js_shared__"]||yf("__core-js_shared__",{}),bf=cu((function(e){(e.exports=function(e,t){return mf[e]||(mf[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wf=Sd.Object,xf=function(e){return wf(qd(e))},Ef=Rd({}.hasOwnProperty),Cf=Object.hasOwn||function(e,t){return Ef(xf(e),t)},Df=0,Sf=Math.random(),kf=Rd(1..toString),_f=function(e){return"Symbol("+(void 0===e?"":e)+")_"+kf(++Df+Sf,36)},Of=bf("wks"),Af=Sd.Symbol,Tf=Af&&Af.for,Bf=uf?Af:Af&&Af.withoutSetter||_f,Pf=function(e){if(!Cf(Of,e)||!af&&"string"!=typeof Of[e]){var t="Symbol."+e;af&&Cf(Af,e)?Of[e]=Af[e]:Of[e]=uf&&Tf?Tf(t):Bf(t)}return Of[e]},Ff=Sd.TypeError,jf=Pf("toPrimitive"),If=function(e){var t=function(e,t){if(!Yd(e)||sf(e))return e;var n,r=hf(e,jf);if(r){if(n=Ad(r,e,t),!Yd(n)||sf(n))return n;throw Ff("Can't convert object to primitive value")}return function(e){var t,n;if(Xd(t=e.toString)&&!Yd(n=Ad(t,e)))return n;if(Xd(t=e.valueOf)&&!Yd(n=Ad(t,e)))return n;throw vf("Can't convert object to primitive value")}(e)}(e,"string");return sf(t)?t:t+""},Mf=Sd.document,Nf=Yd(Mf)&&Yd(Mf.createElement),Lf=function(e){return Nf?Mf.createElement(e):{}},Rf=!_d&&!kd((function(){return 7!=Object.defineProperty(Lf("div"),"a",{get:function(){return 7}}).a})),zf=Object.getOwnPropertyDescriptor,Uf=_d?zf:function(e,t){if(e=Gd(e),t=If(t),Rf)try{return zf(e,t)}catch(e){}if(Cf(e,t))return jd(!Ad(Fd.f,e,t),e[t])},Hf={f:Uf},$f=Sd.String,Vf=Sd.TypeError,Wf=function(e){if(Yd(e))return e;throw Vf($f(e)+" is not an object")},Kf=Sd.TypeError,qf=Object.defineProperty,Gf=_d?qf:function(e,t,n){if(Wf(e),t=If(t),Wf(n),Rf)try{return qf(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Kf("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Xf={f:Gf},Yf=_d?function(e,t,n){return Xf.f(e,t,jd(1,n))}:function(e,t,n){return e[t]=n,e},Zf=Rd(Function.toString);Xd(mf.inspectSource)||(mf.inspectSource=function(e){return Zf(e)});var Jf,Qf,ep,tp=mf.inspectSource,np=Sd.WeakMap,rp=Xd(np)&&/native code/.test(tp(np)),op=bf("keys"),ip=function(e){return op[e]||(op[e]=_f(e))},ap={},up=Sd.TypeError,lp=Sd.WeakMap;if(rp||mf.state){var sp=mf.state||(mf.state=new lp),cp=Rd(sp.get),dp=Rd(sp.has),fp=Rd(sp.set);Jf=function(e,t){if(dp(sp,e))throw new up("Object already initialized");return t.facade=e,fp(sp,e,t),t},Qf=function(e){return cp(sp,e)||{}},ep=function(e){return dp(sp,e)}}else{var pp=ip("state");ap[pp]=!0,Jf=function(e,t){if(Cf(e,pp))throw new up("Object already initialized");return t.facade=e,Yf(e,pp,t),t},Qf=function(e){return Cf(e,pp)?e[pp]:{}},ep=function(e){return Cf(e,pp)}}var hp={set:Jf,get:Qf,has:ep,enforce:function(e){return ep(e)?Qf(e):Jf(e,{})},getterFor:function(e){return function(t){var n;if(!Yd(t)||(n=Qf(t)).type!==e)throw up("Incompatible receiver, "+e+" required");return n}}},vp=Function.prototype,gp=_d&&Object.getOwnPropertyDescriptor,yp=Cf(vp,"name"),mp={PROPER:yp&&"something"===function(){}.name,CONFIGURABLE:yp&&(!_d||_d&&gp(vp,"name").configurable)},bp=cu((function(e){var t=mp.CONFIGURABLE,n=hp.get,r=hp.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;Xd(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cf(i,"name")||t&&i.name!==d)&&Yf(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==Sd?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:Yf(e,n,i)):s?e[n]=i:yf(n,i)})(Function.prototype,"toString",(function(){return Xd(this)&&n(this).source||tp(this)}))})),wp=Math.ceil,xp=Math.floor,Ep=function(e){var t=+e;return t!=t||0===t?0:(t>0?xp:wp)(t)},Cp=Math.max,Dp=Math.min,Sp=function(e,t){var n=Ep(e);return n<0?Cp(n+t,0):Dp(n,t)},kp=Math.min,_p=function(e){return e>0?kp(Ep(e),9007199254740991):0},Op=function(e){return _p(e.length)},Ap=function(e){return function(t,n,r){var o,i=Gd(t),a=Op(i),u=Sp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Tp=Rd([].push),Bp=function(e,t){var n,r=Gd(e),o=0,i=[];for(n in r)!Cf(ap,n)&&Cf(r,n)&&Tp(i,n);for(;t.length>o;)Cf(r,n=t[o++])&&(~Ap(i,n)||Tp(i,n));return i},Pp=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fp=Pp.concat("length","prototype"),jp=Object.getOwnPropertyNames||function(e){return Bp(e,Fp)},Ip={f:jp},Mp={f:Object.getOwnPropertySymbols},Np=Rd([].concat),Lp=Zd("Reflect","ownKeys")||function(e){var t=Ip.f(Wf(e)),n=Mp.f;return n?Np(t,n(e)):t},Rp=function(e,t){for(var n=Lp(t),r=Xf.f,o=Hf.f,i=0;i<n.length;i++){var a=n[i];Cf(e,a)||r(e,a,o(t,a))}},zp=/#|\.prototype\./,Up=function(e,t){var n=$p[Hp(e)];return n==Wp||n!=Vp&&(Xd(t)?kd(t):!!t)},Hp=Up.normalize=function(e){return String(e).replace(zp,".").toLowerCase()},$p=Up.data={},Vp=Up.NATIVE="N",Wp=Up.POLYFILL="P",Kp=Up,qp=Hf.f,Gp=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?Sd:s?Sd[u]||yf(u,{}):(Sd[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=qp(n,r))&&a.value:n[r],!Kp(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Rp(i,o)}(e.sham||o&&o.sham)&&Yf(i,"sham",!0),bp(n,r,i,e)}},Xp={};Xp[Pf("toStringTag")]="z";var Yp,Zp="[object z]"===String(Xp),Jp=Pf("toStringTag"),Qp=Sd.Object,eh="Arguments"==Hd(function(){return arguments}()),th=Zp?Hd:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qp(e),Jp))?n:eh?Hd(t):"Object"==(r=Hd(t))&&Xd(t.callee)?"Arguments":r},nh=Sd.String,rh=function(e){if("Symbol"===th(e))throw TypeError("Cannot convert a Symbol value to a string");return nh(e)},oh=function(){var e=Wf(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},ih=Sd.RegExp,ah=kd((function(){var e=ih("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));ah||kd((function(){return!ih("a","y").sticky}));var uh=ah||kd((function(){var e=ih("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),lh={BROKEN_CARET:uh},sh=Object.keys||function(e){return Bp(e,Pp)},ch=_d?Object.defineProperties:function(e,t){Wf(e);for(var n,r=Gd(t),o=sh(t),i=o.length,a=0;i>a;)Xf.f(e,n=o[a++],r[n]);return e},dh=Zd("document","documentElement"),fh=ip("IE_PROTO"),ph=function(){},hh=function(e){return"<script>"+e+"<\/script>"},vh=function(e){e.write(hh("")),e.close();var t=e.parentWindow.Object;return e=null,t},gh=function(){try{Yp=new ActiveXObject("htmlfile")}catch(e){}var e,t;gh="undefined"!=typeof document?document.domain&&Yp?vh(Yp):((t=Lf("iframe")).style.display="none",dh.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(hh("document.F=Object")),e.close(),e.F):vh(Yp);for(var n=Pp.length;n--;)delete gh.prototype[Pp[n]];return gh()};ap[fh]=!0;var yh,mh,bh=Object.create||function(e,t){var n;return null!==e?(ph.prototype=Wf(e),n=new ph,ph.prototype=null,n[fh]=e):n=gh(),void 0===t?n:ch(n,t)},wh=Sd.RegExp,xh=kd((function(){var e=wh(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Eh=Sd.RegExp,Ch=kd((function(){var e=Eh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Dh=hp.get,Sh=bf("native-string-replace",String.prototype.replace),kh=RegExp.prototype.exec,_h=kh,Oh=Rd("".charAt),Ah=Rd("".indexOf),Th=Rd("".replace),Bh=Rd("".slice),Ph=(mh=/b*/g,Ad(kh,yh=/a/,"a"),Ad(kh,mh,"a"),0!==yh.lastIndex||0!==mh.lastIndex),Fh=lh.BROKEN_CARET,jh=void 0!==/()??/.exec("")[1];(Ph||jh||Fh||xh||Ch)&&(_h=function(e){var t,n,r,o,i,a,u,l=this,s=Dh(l),c=rh(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=Ad(_h,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=Fh&&l.sticky,h=Ad(oh,l),v=l.source,g=0,y=c;if(p&&(h=Th(h,"y",""),-1===Ah(h,"g")&&(h+="g"),y=Bh(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Oh(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),jh&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ph&&(r=l.lastIndex),o=Ad(kh,p?n:l,y),p?o?(o.input=Bh(o.input,g),o[0]=Bh(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:Ph&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),jh&&o&&o.length>1&&Ad(Sh,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=bh(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var Ih=_h;Gp({target:"RegExp",proto:!0,forced:/./.exec!==Ih},{exec:Ih}),Pf("species");var Mh=RegExp.prototype,Nh=Rd("".charAt),Lh=Rd("".charCodeAt),Rh=Rd("".slice),zh={charAt:function(e){return function(t,n){var r,o,i=rh(qd(t)),a=Ep(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Lh(i,a))<55296||r>56319||a+1===u||(o=Lh(i,a+1))<56320||o>57343?e?Nh(i,a):r:e?Rh(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Uh=zh.charAt,Hh=function(e,t,n){return t+(n?Uh(e,t).length:1)},$h=Sd.TypeError,Vh=function(e,t){var n=e.exec;if(Xd(n)){var r=Ad(n,e,t);return null!==r&&Wf(r),r}if("RegExp"===Hd(e))return Ad(Ih,e,t);throw $h("RegExp#exec called on incompatible receiver")};!function(e){var t=Pf(e),n=!kd((function(){var n={};return n[t]=function(){return 7},7!=""[e](n)})),r=n&&!kd((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},n[t](""),!e}));if(!n||!r){var o=Rd(/./[t]),i=function(e,t,n){return[function(t){var n=qd(this),r=null==t?void 0:hf(t,e);return r?Ad(r,t,n):new RegExp(t)[e](rh(n))},function(e){var r=Wf(this),o=rh(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Vh(r,o);var a=r.unicode;r.lastIndex=0;for(var u,l=[],s=0;null!==(u=Vh(r,o));){var c=rh(u[0]);l[s]=c,""===c&&(r.lastIndex=Hh(o,_p(r.lastIndex),a)),s++}return 0===s?null:l}]}(t,""[e],(function(e,t,r,i,a){var u=Rd(e),l=t.exec;return l===Ih||l===Mh.exec?n&&!a?{done:!0,value:o(t,r,i)}:{done:!0,value:u(r,t,i)}:{done:!1}}));bp(String.prototype,e,i[0]),bp(Mh,t,i[1])}}("match"),Gp({global:!0},{globalThis:Sd});var Wh=!kd((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Kh=ip("IE_PROTO"),qh=Sd.Object,Gh=qh.prototype,Xh=Wh?qh.getPrototypeOf:function(e){var t=xf(e);if(Cf(t,Kh))return t[Kh];var n=t.constructor;return Xd(n)&&t instanceof n?n.prototype:t instanceof qh?Gh:null},Yh=Sd.String,Zh=Sd.TypeError,Jh=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Rd(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Wf(n),function(e){if("object"==typeof e||Xd(e))return e;throw Zh("Can't set "+Yh(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Qh=Sd.Array,ev=Math.max,tv=Rd("".replace),nv=Rd("".split),rv=Rd([].join),ov=String(Error("zxcasd").stack),iv=/\n\s*at [^:]*:[^\n]*/,av=iv.test(ov),uv=/@[^\n]*\n/.test(ov)&&!/zxcasd/.test(ov),lv=Rd(Rd.bind),sv=function(e,t){return pf(e),void 0===t?e:lv?lv(e,t):function(){return e.apply(t,arguments)}},cv={},dv=Pf("iterator"),fv=Array.prototype,pv=Pf("iterator"),hv=function(e){if(null!=e)return hf(e,pv)||hf(e,"@@iterator")||cv[th(e)]},vv=Sd.TypeError,gv=function(e,t,n){var r,o;Wf(e);try{if(!(r=hf(e,"return"))){if("throw"===t)throw n;return n}r=Ad(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Wf(r),n},yv=Sd.TypeError,mv=function(e,t){this.stopped=e,this.result=t},bv=mv.prototype,wv=!kd((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",jd(1,7)),7!==e.stack)})),xv=Pf("toStringTag"),Ev=Sd.Error,Cv=[].push,Dv=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Jd(Sv,this);Jh?n=Jh(new Ev(void 0),o?Xh(this):Sv):(n=o?this:bh(Sv),Yf(n,xv,"Error")),Yf(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:rh(e)}(t,"")),wv&&Yf(n,"stack",function(e,t){if("string"!=typeof e)return e;if(av)for(;t--;)e=tv(e,iv,"");else if(uv)return rv(function(e,t){for(var n,r,o,i,a=Op(e),u=Sp(t,a),l=Sp(a,a),s=Qh(ev(l-u,0)),c=0;u<l;u++,c++)n=s,r=c,o=e[u],(i=If(r))in n?Xf.f(n,i,jd(0,o)):n[i]=o;return s.length=c,s}(nv(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Yd(t)&&"cause"in t&&Yf(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,l,s,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=sv(t,c),v=function(e){return r&&gv(r,"normal",e),new mv(!0,e)},g=function(e){return d?(Wf(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(f)r=e;else{if(!(o=hv(e)))throw yv(df(e)+" is not iterable");if(function(e){return void 0!==e&&(cv.Array===e||fv[dv]===e)}(o)){for(i=0,a=Op(e);a>i;i++)if((u=g(e[i]))&&Jd(bv,u))return u;return new mv(!1)}r=function(e,t){var n=arguments.length<2?hv(e):t;if(pf(n))return Wf(Ad(n,e));throw vv(df(e)+" is not iterable")}(e,o)}for(l=r.next;!(s=Ad(l,r)).done;){try{u=g(s.value)}catch(e){gv(r,"throw",e)}if("object"==typeof u&&u&&Jd(bv,u))return u}new mv(!1)}(e,Cv,{that:i}),Yf(n,"errors",i),n};Jh?Jh(Dv,Ev):Rp(Dv,Ev);var Sv=Dv.prototype=bh(Ev.prototype,{constructor:jd(1,Dv),message:jd(1,""),name:jd(1,"AggregateError")});Gp({global:!0},{AggregateError:Dv});var kv=Pf("unscopables"),_v=Array.prototype;null==_v[kv]&&Xf.f(_v,kv,{configurable:!0,value:bh(null)});var Ov,Av,Tv,Bv=function(e){_v[kv][e]=!0},Pv=Pf("iterator"),Fv=!1;[].keys&&("next"in(Tv=[].keys())?(Av=Xh(Xh(Tv)))!==Object.prototype&&(Ov=Av):Fv=!0);var jv=null==Ov||kd((function(){var e={};return Ov[Pv].call(e)!==e}));jv&&(Ov={}),Xd(Ov[Pv])||bp(Ov,Pv,(function(){return this}));var Iv={IteratorPrototype:Ov,BUGGY_SAFARI_ITERATORS:Fv},Mv=Xf.f,Nv=Pf("toStringTag"),Lv=function(e,t,n){e&&!Cf(e=n?e:e.prototype,Nv)&&Mv(e,Nv,{configurable:!0,value:t})},Rv=Iv.IteratorPrototype,zv=function(){return this},Uv=mp.PROPER,Hv=mp.CONFIGURABLE,$v=Iv.IteratorPrototype,Vv=Iv.BUGGY_SAFARI_ITERATORS,Wv=Pf("iterator"),Kv=function(){return this},qv=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=bh(Rv,{next:jd(1,n)}),Lv(e,r,!1),cv[r]=zv}(n,t,r);var u,l,s=function(e){if(e===o&&h)return h;if(!Vv&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[Wv]||f["@@iterator"]||o&&f[o],h=!Vv&&p||s(o),v="Array"==t&&f.entries||p;return v&&(u=Xh(v.call(new e)))!==Object.prototype&&u.next&&(Xh(u)!==$v&&(Jh?Jh(u,$v):Xd(u[Wv])||bp(u,Wv,Kv)),Lv(u,c,!0)),Uv&&"values"==o&&p&&"values"!==p.name&&(Hv?Yf(f,"name","values"):(d=!0,h=function(){return Ad(p,this)})),o&&(l={values:s("values"),keys:s("keys"),entries:s("entries")},a||Gp({target:t,proto:!0,forced:Vv||d},l)),f[Wv]!==h&&bp(f,Wv,h,{name:o}),cv[t]=h,l},Gv=hp.set,Xv=hp.getterFor("Array Iterator"),Yv=qv(Array,"Array",(function(e,t){Gv(this,{type:"Array Iterator",target:Gd(e),index:0,kind:t})}),(function(){var e=Xv(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");cv.Arguments=cv.Array,Bv("keys"),Bv("values"),Bv("entries");var Zv=zh.charAt,Jv=hp.set,Qv=hp.getterFor("String Iterator");qv(String,"String",(function(e){Jv(this,{type:"String Iterator",string:rh(e),index:0})}),(function(){var e,t=Qv(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Zv(n,r),t.index+=e.length,{value:e,done:!1})}));var eg,tg={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},ng=Lf("span").classList,rg=ng&&ng.constructor&&ng.constructor.prototype,og=rg===Object.prototype?void 0:rg,ig=Pf("iterator"),ag=Pf("toStringTag"),ug=Yv.values,lg=function(e,t){if(e){if(e[ig]!==ug)try{Yf(e,ig,ug)}catch(t){e[ig]=ug}if(e[ag]||Yf(e,ag,t),tg[t])for(var n in Yv)if(e[n]!==Yv[n])try{Yf(e,n,Yv[n])}catch(t){e[n]=Yv[n]}}};for(var sg in tg)lg(Sd[sg]&&Sd[sg].prototype,sg);function cg(){"undefined"==typeof globalThis&&(window.globalThis=window)}function dg(){void 0===Cd&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}lg(og,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),cg(),dg()):global&&(null===(eg=global.navigator)||void 0===eg?void 0:eg.userAgent.match("QQBrowser"))&&(cg(),dg());var fg=Array.isArray||function(e){return"Array"==Nu(e)},pg=function(){},hg=[],vg=qu("Reflect","construct"),gg=/^\s*(?:class|function)\b/,yg=Du(gg.exec),mg=!gg.exec(pg),bg=function(e){if(!Su(e))return!1;try{return vg(pg,hg,e),!0}catch(e){return!1}},wg=!vg||ku((function(){var e;return bg(bg.call)||!bg(Object)||!bg((function(){e=!0}))||e}))?function(e){if(!Su(e))return!1;switch(lc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mg||!!yg(gg,Oc(e))}:bg,xg=_l("species"),Eg=hu.Array,Cg=function(e,t){return new(function(e){var t;return fg(e)&&(t=e.constructor,(wg(t)&&(t===Eg||fg(t.prototype))||Vu(t)&&null===(t=t[xg]))&&(t=void 0)),void 0===t?Eg:t}(e))(0===t?0:t)},Dg=_l("species"),Sg=_l("isConcatSpreadable"),kg=hu.TypeError,_g=tl>=51||!ku((function(){var e=[];return e[Sg]=!1,e.concat()[0]!==e})),Og=tl>=51||!ku((function(){var e=[];return(e.constructor={})[Dg]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),Ag=function(e){if(!Vu(e))return!1;var t=e[Sg];return void 0!==t?!!t:fg(e)};rs({target:"Array",proto:!0,forced:!_g||!Og},{concat:function(e){var t,n,r,o,i,a=gl(this),u=Cg(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(Ag(i=-1===t?a:arguments[t])){if(l+(o=xs(i))>9007199254740991)throw kg("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&$s(u,l,i[n])}else{if(l>=9007199254740991)throw kg("Maximum allowed index exceeded");$s(u,l++,i)}return u.length=l,u}});var Tg=Ts.f,Bg="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pg={f:function(e){return Bg&&"Window"==Nu(e)?function(e){try{return Tg(e)}catch(e){return Ks(Bg)}}(e):Tg($u(e))}},Fg=Du([].slice),jg={f:_l},Ig=Ql.f,Mg=function(e){var t=Wu.Symbol||(Wu.Symbol={});ml(t,e)||Ig(t,e,{value:jg.f(e)})},Ng=Du([].push),Lg=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=gl(l),v=zu(h),g=Kl(s,c),y=xs(v),m=0,b=d||Cg,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Ng(w,f)}else switch(e){case 4:return!1;case 7:Ng(w,f)}return i?-1:r||o?o:w}}(0),Rg=is("hidden"),zg=_l("toPrimitive"),Ug=Uc.set,Hg=Uc.getterFor("Symbol"),$g=Object.prototype,Vg=hu.Symbol,Wg=Vg&&Vg.prototype,Kg=hu.TypeError,qg=hu.QObject,Gg=qu("JSON","stringify"),Xg=Nl.f,Yg=Ql.f,Zg=Pg.f,Jg=Fu.f,Qg=Du([].push),ey=hl("symbols"),ty=hl("op-symbols"),ny=hl("string-to-symbol-registry"),ry=hl("symbol-to-string-registry"),oy=hl("wks"),iy=!qg||!qg.prototype||!qg.prototype.findChild,ay=_u&&ku((function(){return 7!=Hs(Yg({},"a",{get:function(){return Yg(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Xg($g,t);r&&delete $g[t],Yg(e,t,n),r&&e!==$g&&Yg($g,t,r)}:Yg,uy=function(e,t){var n=ey[e]=Hs(Wg);return Ug(n,{type:"Symbol",tag:e,description:t}),_u||(n.description=t),n},ly=function(e,t,n){e===$g&&ly(ty,t,n),Xl(e);var r=Tl(t);return Xl(n),ml(ey,r)?(n.enumerable?(ml(e,Rg)&&e[Rg][r]&&(e[Rg][r]=!1),n=Hs(n,{enumerable:ju(0,!1)})):(ml(e,Rg)||Yg(e,Rg,ju(1,{})),e[Rg][r]=!0),ay(e,r,n)):Yg(e,r,n)},sy=function(e,t){Xl(e);var n=$u(t),r=js(n).concat(py(n));return Lg(r,(function(t){_u&&!Au(cy,n,t)||ly(e,t,n[t])})),e},cy=function(e){var t=Tl(e),n=Au(Jg,this,t);return!(this===$g&&ml(ey,t)&&!ml(ty,t))&&(!(n||!ml(this,t)||!ml(ey,t)||ml(this,Rg)&&this[Rg][t])||n)},dy=function(e,t){var n=$u(e),r=Tl(t);if(n!==$g||!ml(ey,r)||ml(ty,r)){var o=Xg(n,r);return!o||!ml(ey,r)||ml(n,Rg)&&n[Rg][r]||(o.enumerable=!0),o}},fy=function(e){var t=Zg($u(e)),n=[];return Lg(t,(function(e){ml(ey,e)||ml(Cs,e)||Qg(n,e)})),n},py=function(e){var t=e===$g,n=Zg(t?ty:$u(e)),r=[];return Lg(n,(function(e){!ml(ey,e)||t&&!ml($g,e)||Qg(r,ey[e])})),r};if(nl||(Wg=(Vg=function(){if(Gu(Wg,this))throw Kg("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?yc(arguments[0]):void 0,t=El(e),n=function(e){this===$g&&Au(n,ty,e),ml(this,Rg)&&ml(this[Rg],t)&&(this[Rg][t]=!1),ay(this,t,ju(1,e))};return _u&&iy&&ay($g,t,{configurable:!0,set:n}),uy(t,e)}).prototype,Kc(Wg,"toString",(function(){return Hg(this).tag})),Kc(Vg,"withoutSetter",(function(e){return uy(El(e),e)})),Fu.f=cy,Ql.f=ly,Nl.f=dy,Ts.f=Pg.f=fy,Bs.f=py,jg.f=function(e){return uy(_l(e),e)},_u&&Yg(Wg,"description",{configurable:!0,get:function(){return Hg(this).description}})),rs({global:!0,wrap:!0,forced:!nl,sham:!nl},{Symbol:Vg}),Lg(js(oy),(function(e){Mg(e)})),rs({target:"Symbol",stat:!0,forced:!nl},{for:function(e){var t=yc(e);if(ml(ny,t))return ny[t];var n=Vg(t);return ny[t]=n,ry[n]=t,n},keyFor:function(e){if(!il(e))throw Kg(e+" is not a symbol");if(ml(ry,e))return ry[e]},useSetter:function(){iy=!0},useSimple:function(){iy=!1}}),rs({target:"Object",stat:!0,forced:!nl,sham:!_u},{create:function(e,t){return void 0===t?Hs(e):sy(Hs(e),t)},defineProperty:ly,defineProperties:sy,getOwnPropertyDescriptor:dy}),rs({target:"Object",stat:!0,forced:!nl},{getOwnPropertyNames:fy,getOwnPropertySymbols:py}),rs({target:"Object",stat:!0,forced:ku((function(){Bs.f(1)}))},{getOwnPropertySymbols:function(e){return Bs.f(gl(e))}}),Gg){var hy=!nl||ku((function(){var e=Vg();return"[null]"!=Gg([e])||"{}"!=Gg({a:e})||"{}"!=Gg(Object(e))}));rs({target:"JSON",stat:!0,forced:hy},{stringify:function(e,t,n){var r=Fg(arguments),o=t;if((Vu(t)||void 0!==e)&&!il(e))return fg(t)||(t=function(e,t){if(Su(o)&&(t=Au(o,this,e,t)),!il(t))return t}),r[1]=t,bu(Gg,null,r)}})}if(!Wg[zg]){var vy=Wg.valueOf;Kc(Wg,zg,(function(e){return Au(vy,this)}))}ed(Vg,"Symbol"),Cs[Rg]=!0,Mg("asyncIterator"),Mg("hasInstance"),Mg("isConcatSpreadable"),Mg("iterator"),Mg("match"),Mg("matchAll"),Mg("replace"),Mg("search"),Mg("species"),Mg("split"),Mg("toPrimitive"),Mg("toStringTag"),Mg("unscopables"),ed(hu.JSON,"JSON",!0);var gy=Wu.Symbol;Mg("asyncDispose"),Mg("dispose"),Mg("matcher"),Mg("metadata"),Mg("observable"),Mg("patternMatch"),Mg("replaceAll");var yy=gy,my=jg.f("iterator"),by=cu((function(e){function t(n){return"function"==typeof yy&&"symbol"==typeof my?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof yy&&e.constructor===yy&&e!==yy.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),wy=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(by),xy=Hf.f,Ey=kd((function(){xy(1)}));if(Gp({target:"Object",stat:!0,forced:!_d||Ey,sham:!_d},{getOwnPropertyDescriptor:function(e,t){return xy(Gd(e),t)}}),"object"===("undefined"==typeof global?"undefined":wy(global))){var Cy=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Cy.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function Dy(e){return"[object Object]"===Object.prototype.toString.call(e)}function Sy(e){var t,n;return!1!==Dy(e)&&(void 0===(t=e.constructor)||!1!==Dy(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function ky(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _y(e){return!!e&&!!e[dm]}function Oy(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===fm}(e)||Array.isArray(e)||!!e[cm]||!!e.constructor[cm]||Fy(e)||jy(e))}function Ay(e,t,n){void 0===n&&(n=!1),0===Ty(e)?(n?Object.keys:pm)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ty(e){var t=e[dm];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Fy(e)?2:jy(e)?3:0}function By(e,t){return 2===Ty(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Py(e,t,n){var r=Ty(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Fy(e){return am&&e instanceof Map}function jy(e){return um&&e instanceof Set}function Iy(e){return e.o||e.t}function My(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hm(e);delete t[dm];for(var n=pm(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ny(e,t){return void 0===t&&(t=!1),Ry(e)||_y(e)||!Oy(e)||(Ty(e)>1&&(e.set=e.add=e.clear=e.delete=Ly),Object.freeze(e),t&&Ay(e,(function(e,t){return Ny(t,!0)}),!0)),e}function Ly(){ky(2)}function Ry(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function zy(e){var t=vm[e];return t||ky(18,e),t}function Uy(){return om}function Hy(e,t){t&&(zy("Patches"),e.u=[],e.s=[],e.v=t)}function $y(e){Vy(e),e.p.forEach(Ky),e.p=null}function Vy(e){e===om&&(om=e.l)}function Wy(e){return om={p:[],l:om,h:e,m:!0,_:0}}function Ky(e){var t=e[dm];0===t.i||1===t.i?t.j():t.O=!0}function qy(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||zy("ES5").S(t,e,r),r?(n[dm].P&&($y(t),ky(4)),Oy(e)&&(e=Gy(t,e),t.l||Yy(t,e)),t.u&&zy("Patches").M(n[dm],e,t.u,t.s)):e=Gy(t,n,[]),$y(t),t.u&&t.v(t.u,t.s),e!==sm?e:void 0}function Gy(e,t,n){if(Ry(t))return t;var r=t[dm];if(!r)return Ay(t,(function(o,i){return Xy(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Yy(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=My(r.k):r.o;Ay(3===r.i?new Set(o):o,(function(t,i){return Xy(e,r,o,t,i,n)})),Yy(e,o,!1),n&&e.u&&zy("Patches").R(r,n,e.u,e.s)}return r.o}function Xy(e,t,n,r,o,i){if(_y(o)){var a=Gy(e,o,i&&t&&3!==t.i&&!By(t.D,r)?i.concat(r):void 0);if(Py(n,r,a),!_y(a))return;e.m=!1}if(Oy(o)&&!Ry(o)){if(!e.h.F&&e._<1)return;Gy(e,o),t&&t.A.l||Yy(e,o)}}function Yy(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Ny(t,n)}function Zy(e,t){var n=e[dm];return(n?Iy(n):e)[t]}function Jy(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 Qy(e){e.P||(e.P=!0,e.l&&Qy(e.l))}function em(e){e.o||(e.o=My(e.t))}function tm(e,t,n){var r=Fy(t)?zy("MapSet").N(t,n):jy(t)?zy("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Uy(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=gm;n&&(o=[r],i=ym);var a=Proxy.revocable(o,i),u=a.revoke,l=a.proxy;return r.k=l,r.j=u,l}(t,n):zy("ES5").J(t,n);return(n?n.A:Uy()).p.push(r),r}function nm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return My(e)}var rm,om,im="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),am="undefined"!=typeof Map,um="undefined"!=typeof Set,lm="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,sm=im?Symbol.for("immer-nothing"):((rm={})["immer-nothing"]=!0,rm),cm=im?Symbol.for("immer-draftable"):"__$immer_draftable",dm=im?Symbol.for("immer-state"):"__$immer_state",fm=""+Object.prototype.constructor,pm="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hm=Object.getOwnPropertyDescriptors||function(e){var t={};return pm(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},vm={},gm={get:function(e,t){if(t===dm)return e;var n=Iy(e);if(!By(n,t))return function(e,t,n){var r,o=Jy(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Oy(r)?r:r===Zy(e.t,t)?(em(e),e.o[t]=tm(e.A.h,r,e)):r},has:function(e,t){return t in Iy(e)},ownKeys:function(e){return Reflect.ownKeys(Iy(e))},set:function(e,t,n){var r=Jy(Iy(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Zy(Iy(e),t),i=null==o?void 0:o[dm];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||By(e.t,t)))return!0;em(e),Qy(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Zy(e.t,t)||t in e.t?(e.D[t]=!1,em(e),Qy(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Iy(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ky(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ky(12)}},ym={};Ay(gm,(function(e,t){ym[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ym.deleteProperty=function(e,t){return gm.deleteProperty.call(this,e[0],t)},ym.set=function(e,t,n){return gm.set.call(this,e[0],t,n,e[0])};var mm=function(){function e(e){var t=this;this.g=lm,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&ky(6),void 0!==r&&"function"!=typeof r&&ky(7),Oy(e)){var u=Wy(t),l=tm(t,e,void 0),s=!0;try{a=n(l),s=!1}finally{s?$y(u):Vy(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Hy(u,r),qy(e,u)}),(function(e){throw $y(u),e})):(Hy(u,r),qy(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===sm)return;return void 0===a&&(a=e),t.F&&Ny(a,!0),a}ky(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Oy(e)||ky(8),_y(e)&&(e=function(e){return _y(e)||ky(22,e),function e(t){if(!Oy(t))return t;var n,r=t[dm],o=Ty(t);if(r){if(!r.P&&(r.i<4||!zy("ES5").K(r)))return r.t;r.I=!0,n=nm(t,o),r.I=!1}else n=nm(t,o);return Ay(n,(function(t,o){r&&function(e,t){return 2===Ty(e)?e.get(t):e[t]}(r.t,t)===o||Py(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Wy(this),n=tm(this,e,void 0);return n[dm].C=!0,Vy(t),n},t.finishDraft=function(e,t){var n=(e&&e[dm]).A;return Hy(n,t),qy(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!lm&&ky(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=zy("Patches").$;return _y(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),bm=new mm,wm=bm.produce;bm.produceWithPatches.bind(bm),bm.setAutoFreeze.bind(bm),bm.setUseProxies.bind(bm),bm.applyPatches.bind(bm);var xm=bm.createDraft.bind(bm),Em=bm.finishDraft.bind(bm);function Cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dm=new WeakMap,Sm=new WeakMap,km=new WeakMap,_m=new WeakMap,Om=new WeakMap,Am=new WeakMap;function Tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tm(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pm=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Cb.levels(t);case"insert_node":var{node:n,path:r}=e,o=Cb.levels(r),i=Lb.isText(n)?[]:Array.from(bb.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Cb.ancestors(a),Cb.previous(a)];case"move_node":var{path:u,newPath:l}=e;if(Cb.equals(u,l))return[];var s=[],c=[];for(var d of Cb.ancestors(u)){var f=Cb.transform(d,e);s.push(f)}for(var p of Cb.ancestors(l)){var h=Cb.transform(p,e);c.push(h)}var v=c[c.length-1],g=l[l.length-1],y=v.concat(g);return[...s,...c,y];case"remove_node":var{path:m}=e;return[...Cb.ancestors(m)];case"split_node":var{path:b}=e;return[...Cb.levels(b),Cb.next(b)];default:return[]}};function Fm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jm,Im=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Um(e):e,o=jm.None,i=jm.None,a=0,u=null;for(var l of r){var s=l.codePointAt(0);if(!s)break;var c=Qm(l,s);if([o,i]=n?[i,c]:[c,o],eb(o,jm.ZWJ)&&eb(i,jm.ExtPict)&&!ob(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(eb(o,jm.RI)&&eb(i,jm.RI)&&!(u=null!==u?!u:!!n||ab(e.substring(0,e.length-a))))break;if(o!==jm.None&&i!==jm.None&&nb(o,i))break;a+=l.length}return a||1},Mm=/\s/,Nm=/[\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]/,Lm=/['\u2018\u2019]/,Rm=(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)]},zm=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Mm.test(t))return!1;if(Lm.test(t)){var o=Im(n,r),[i,a]=Rm(n,o,r);if(e(i,a,r))return!0}return!Nm.test(t)},Um=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if($m(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Hm(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Hm=e=>e>=55296&&e<=56319,$m=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(jm||(jm={}));var Vm=/^(?:[\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])$/,Wm=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Km=/^(?:[\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])$/,qm=/^[\u1100-\u115F\uA960-\uA97C]$/,Gm=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Xm=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Ym=/^[\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]$/,Zm=/^[\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]$/,Jm=/^(?:[\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])$/,Qm=(e,t)=>{var n=jm.Any;return-1!==e.search(Vm)&&(n|=jm.Extend),8205===t&&(n|=jm.ZWJ),t>=127462&&t<=127487&&(n|=jm.RI),-1!==e.search(Wm)&&(n|=jm.Prepend),-1!==e.search(Km)&&(n|=jm.SpacingMark),-1!==e.search(qm)&&(n|=jm.L),-1!==e.search(Gm)&&(n|=jm.V),-1!==e.search(Xm)&&(n|=jm.T),-1!==e.search(Ym)&&(n|=jm.LV),-1!==e.search(Zm)&&(n|=jm.LVT),-1!==e.search(Jm)&&(n|=jm.ExtPict),n};function eb(e,t){return!!(e&t)}var tb=[[jm.L,jm.L|jm.V|jm.LV|jm.LVT],[jm.LV|jm.V,jm.V|jm.T],[jm.LVT|jm.T,jm.T],[jm.Any,jm.Extend|jm.ZWJ],[jm.Any,jm.SpacingMark],[jm.Prepend,jm.Any],[jm.ZWJ,jm.ExtPict],[jm.RI,jm.RI]];function nb(e,t){return-1===tb.findIndex((n=>eb(e,n[0])&&eb(t,n[1])))}var rb=/(?:[\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$/,ob=e=>-1!==e.search(rb),ib=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ab=e=>{var t=e.match(ib);return null!==t&&t[0].length/2%2==1},ub=e=>Sy(e)&&bb.isNodeList(e.children)&&!hb.isEditor(e),lb={isAncestor:e=>Sy(e)&&bb.isNodeList(e.children),isElement:ub,isElementList:e=>Array.isArray(e)&&e.every((e=>lb.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return ub(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},sb=["text"],cb=["text"];function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?db(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pb=new WeakMap,hb={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=hb.path(e,o),u="lowest"===r;for(var[l,s]of hb.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Lb.isText(l)&&!Cb.equals(a,s))return[l,s]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:hb.point(e,t,{edge:"end"}),focus:hb.end(e,[])},{distance:i=1}=r,a=0;for(var u of hb.positions(e,fb(fb({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:hb.start(e,[]),focus:hb.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of hb.positions(e,fb(fb({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[hb.start(e,t),hb.end(e,t)],end:(e,t)=>hb.point(e,t,{edge:"end"}),first(e,t){var n=hb.path(e,t,{edge:"start"});return hb.node(e,n)},fragment(e,t){var n=hb.range(e,t);return bb.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>hb.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Lb.isText(t)||hb.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Lb.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>lb.isElement(t)&&!e.isInline(t),isEditor(e){if(!Sy(e))return!1;var t=pb.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Sy(e.marks))&&(null===e.selection||Bb.isRange(e.selection))&&bb.isNodeList(e.children)&&Eb.isOperationList(e.operations);return pb.set(e,n),n},isEnd(e,t,n){var r=hb.end(e,n);return _b.equals(t,r)},isEdge:(e,t,n)=>hb.isStart(e,t,n)||hb.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Lb.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>lb.isElement(t)&&e.isInline(t),isNormalizing(e){var t=km.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=hb.start(e,n);return _b.equals(t,r)},isVoid:(e,t)=>lb.isElement(t)&&e.isVoid(t),last(e,t){var n=hb.path(e,t,{edge:"end"});return hb.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=hb.path(e,t,n);return[bb.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=hb.path(e,n);for(var[l,s]of bb.levels(e,u))if(i(l,s)&&(a.push([l,s]),!o&&hb.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Bb.isExpanded(n)){var[r]=hb.nodes(e,{match:Lb.isText});if(r){var[o]=r;return Fm(o,sb)}return{}}var{anchor:i}=n,{path:a}=i,[u]=hb.leaf(e,a);if(0===i.offset){var l=hb.previous(e,{at:a,match:Lb.isText}),s=hb.above(e,{match:t=>hb.isBlock(e,t)});if(l&&s){var[c,d]=l,[,f]=s;Cb.isAncestor(f,d)&&(u=c)}}return Fm(u,cb)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=hb.after(e,i,{voids:r});if(a){var[,u]=hb.last(e,[]),l=[a.path,u];if(Cb.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Cb.isPath(i)){var[s]=hb.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=hb.nodes(e,{at:l,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=hb.path(e,t,n);return[bb.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var l,s;if(vb.isSpan(n))l=n[0],s=n[1];else{var c=hb.path(e,n,{edge:"start"}),d=hb.path(e,n,{edge:"end"});l=i?d:c,s=i?c:d}var f,p=bb.nodes(e,{reverse:i,from:l,to:s,pass:t=>{var[n]=t;return!a&&hb.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=f&&0===Cb.compare(g,f[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)f=[v,g];else{var m="lowest"===r?f:[v,g];m&&(o?h.push(m):yield m),f=[v,g]}else if(o&&!y&&Lb.isText(v))return}"lowest"===r&&f&&(o?h.push(f):yield f),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Dm.get(e)||[];if(hb.isNormalizing(e)){if(n){var o=Array.from(bb.nodes(e),(e=>{var[,t]=e;return t}));Dm.set(e,o)}0!==r(e).length&&hb.withoutNormalizing(e,(()=>{for(var t of r(e))if(bb.has(e,t)){var n=hb.node(e,t),[o,i]=n;lb.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=r(e).pop();if(bb.has(e,l)){var s=hb.node(e,l);e.normalizeNode(s)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=hb.path(e,t,n),o=Cb.parent(r);return hb.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Cb.isPath(t))if("start"===o){var[,i]=bb.first(e,t);t=i}else if("end"===o){var[,a]=bb.last(e,t);t=a}return Bb.isRange(t)&&(t="start"===o?Bb.start(t):"end"===o?Bb.end(t):Cb.common(t.anchor.path,t.focus.path)),_b.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>bb.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return hb.pathRefs(e).delete(o),o.current=null,t}};return hb.pathRefs(e).add(o),o},pathRefs(e){var t=_m.get(e);return t||(t=new Set,_m.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Cb.isPath(t)){var o;if("end"===r){var[,i]=bb.last(e,t);o=i}else{var[,a]=bb.first(e,t);o=a}var u=bb.get(e,o);if(!Lb.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(Bb.isRange(t)){var[l,s]=Bb.edges(t);return"start"===r?l:s}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return hb.pointRefs(e).delete(o),o.current=null,t}};return hb.pointRefs(e).add(o),o},pointRefs(e){var t=Om.get(e);return t||(t=new Set,Om.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=hb.range(e,n),[u,l]=Bb.edges(a),s=o?l:u,c=!1,d="",f=0,p=0,h=0;for(var[v,g]of hb.nodes(e,{at:n,reverse:o,voids:i})){if(lb.isElement(v)){if(!i&&e.isVoid(v)){yield hb.start(e,g);continue}if(e.isInline(v))continue;if(hb.hasInlines(e,v)){var y=Cb.isAncestor(g,l.path)?l:hb.end(e,g),m=Cb.isAncestor(g,u.path)?u:hb.start(e,g);d=hb.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(Lb.isText(v)){var b=Cb.equals(g,s.path);for(b?(p=o?s.offset:v.text.length-s.offset,h=s.offset):(p=v.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===f){if(""===d)break;f=w(d,r,o),d=Rm(d,f,o)[1]}if(h=o?h-f:h+f,(p-=f)<0){f=-p;break}f=0,yield{path:g,offset:h}}}}}function w(e,t,n){return"character"===t?Im(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Im(e,t),[i,a]=Rm(e,o,t);if(zm(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=hb.before(e,i,{voids:r});if(a){var[,u]=hb.first(e,[]),l=[a.path,u];if(Cb.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Cb.isPath(i)){var[s]=hb.parent(e,i);o=e=>s.children.includes(e)}else o=()=>!0;var[c]=hb.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Bb.isRange(t)&&!n?t:{anchor:hb.start(e,t),focus:hb.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return hb.rangeRefs(e).delete(o),o.current=null,t}};return hb.rangeRefs(e).add(o),o},rangeRefs(e){var t=Am.get(e);return t||(t=new Set,Am.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){km.set(e,t)},start:(e,t)=>hb.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=hb.range(e,t),[i,a]=Bb.edges(o),u="";for(var[l,s]of hb.nodes(e,{at:o,match:Lb.isText,voids:r})){var c=l.text;Cb.equals(s,a.path)&&(c=c.slice(0,a.offset)),Cb.equals(s,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Bb.edges(t);if(0!==o.offset||0!==i.offset||Bb.isCollapsed(t))return t;var a=hb.above(e,{at:i,match:t=>hb.isBlock(e,t)}),u=a?a[1]:[],l={anchor:hb.start(e,[]),focus:i},s=!0;for(var[c,d]of hb.nodes(e,{at:l,match:Lb.isText,reverse:!0,voids:r}))if(s)s=!1;else if(""!==c.text||Cb.isBefore(d,u)){i={path:d,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return hb.above(e,fb(fb({},t),{},{match:t=>hb.isVoid(e,t)}))},withoutNormalizing(e,t){var n=hb.isNormalizing(e);hb.setNormalizing(e,!1);try{t()}finally{hb.setNormalizing(e,n)}hb.normalize(e)}},vb={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Cb.isPath)},gb=["children"],yb=["text"],mb=new WeakMap,bb={ancestor(e,t){var n=bb.get(e,t);if(Lb.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Cb.ancestors(t,n)){var o=[bb.ancestor(e,r),r];yield o}},child(e,t){if(Lb.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=bb.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=bb.child(o,a),l=t.concat(a);yield[u,l],a=r?a-1:a+1}},common(e,t,n){var r=Cb.common(t,n);return[bb.get(e,r),r]},descendant(e,t){var n=bb.get(e,t);if(hb.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of bb.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of bb.nodes(e,t))lb.isElement(n)&&(yield[n,r])},extractProps:e=>lb.isAncestor(e)?Fm(e,gb):Fm(e,yb),first(e,t){for(var n=t.slice(),r=bb.get(e,n);r&&!Lb.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Lb.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=wm({children:e.children},(e=>{var[n,r]=Bb.edges(t),o=bb.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Bb.includes(t,n)}});for(var[,i]of o){if(!Bb.includes(t,i)){var a=bb.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Cb.equals(i,r.path)){var l=bb.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(Cb.equals(i,n.path)){var s=bb.leaf(e,i);s.text=s.text.slice(n.offset)}}hb.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Lb.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(Lb.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Lb.isText(e)||lb.isElement(e)||hb.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=mb.get(e);if(void 0!==t)return t;var n=e.every((e=>bb.isNode(e)));return mb.set(e,n),n},last(e,t){for(var n=t.slice(),r=bb.get(e,n);r&&!Lb.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=bb.get(e,t);if(!Lb.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Cb.levels(t,n)){var o=bb.get(e,r);yield[o,r]}},matches:(e,t)=>lb.isElement(e)&&lb.isElementProps(t)&&lb.matches(e,t)||Lb.isText(e)&&Lb.isTextProps(t)&&Lb.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],l=e;!i||!(r?Cb.isBefore(u,i):Cb.isAfter(u,i));)if(a.has(l)||(yield[l,u]),a.has(l)||Lb.isText(l)||0===l.children.length||null!=n&&!1!==n([l,u])){if(0===u.length)break;if(!r){var s=Cb.next(u);if(bb.has(e,s)){u=s,l=bb.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Cb.previous(u),l=bb.get(e,u)):(u=Cb.parent(u),l=bb.get(e,u),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;Cb.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),l=bb.get(e,u)}},parent(e,t){var n=Cb.parent(t),r=bb.get(e,n);if(Lb.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=>Lb.isText(e)?e.text:e.children.map(bb.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of bb.nodes(e,t))Lb.isText(n)&&(yield[n,r])}};function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Eb={isNodeOperation:e=>Eb.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Sy(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Cb.isPath(e.path)&&bb.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Cb.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Cb.isPath(e.path)&&Sy(e.properties);case"move_node":return Cb.isPath(e.path)&&Cb.isPath(e.newPath);case"set_node":return Cb.isPath(e.path)&&Sy(e.properties)&&Sy(e.newProperties);case"set_selection":return null===e.properties&&Bb.isRange(e.newProperties)||null===e.newProperties&&Bb.isRange(e.properties)||Sy(e.properties)&&Sy(e.newProperties);case"split_node":return Cb.isPath(e.path)&&"number"==typeof e.position&&Sy(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Eb.isOperation(e))),isSelectionOperation:e=>Eb.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Eb.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return xb(xb({},e),{},{type:"remove_node"});case"insert_text":return xb(xb({},e),{},{type:"remove_text"});case"merge_node":return xb(xb({},e),{},{type:"split_node",path:Cb.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Cb.equals(t,n))return e;if(Cb.isSibling(n,t))return xb(xb({},e),{},{path:t,newPath:n});var r=Cb.transform(n,e),o=Cb.transform(Cb.next(n),e);return xb(xb({},e),{},{path:r,newPath:o});case"remove_node":return xb(xb({},e),{},{type:"insert_node"});case"remove_text":return xb(xb({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return xb(xb({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:l}=e;return xb(xb({},e),{},null==u?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:u}:{properties:l,newProperties:u});case"split_node":return xb(xb({},e),{},{type:"merge_node",path:Cb.next(e.path)})}}},Cb={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Cb.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Cb.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Cb.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 Cb.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Cb.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Cb.compare(e,t),isBefore:(e,t)=>-1===Cb.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Cb.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Cb.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Cb.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Cb.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Cb.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Cb.isAncestor(t,e)&&!Cb.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return wm(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Cb.equals(i,r)||Cb.endsBefore(i,r)||Cb.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Cb.equals(a,r)||Cb.isAncestor(a,r))return null;Cb.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:l}=t;Cb.equals(u,r)||Cb.endsBefore(u,r)?r[u.length-1]-=1:Cb.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=l);break;case"split_node":var{path:s,position:c}=t;if(Cb.equals(s,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Cb.endsBefore(s,r)?r[s.length-1]+=1:Cb.isAncestor(s,r)&&e[s.length]>=c&&(r[s.length-1]+=1,r[s.length]-=c);break;case"move_node":var{path:d,newPath:f}=t;if(Cb.equals(d,f))return;if(Cb.isAncestor(d,r)||Cb.equals(d,r)){var p=f.slice();return Cb.endsBefore(d,f)&&d.length<f.length&&(p[d.length-1]-=1),p.concat(r.slice(d.length))}Cb.isSibling(d,f)&&(Cb.isAncestor(f,r)||Cb.equals(f,r))?Cb.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:Cb.endsBefore(f,r)||Cb.equals(f,r)||Cb.isAncestor(f,r)?(Cb.endsBefore(d,r)&&(r[d.length-1]-=1),r[f.length-1]+=1):Cb.endsBefore(d,r)&&(Cb.equals(f,r)&&(r[f.length-1]+=1),r[d.length-1]-=1)}}}))}},Db={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Cb.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _b={compare(e,t){var n=Cb.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===_b.compare(e,t),isBefore:(e,t)=>-1===_b.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Cb.equals(e.path,t.path),isPoint:e=>Sy(e)&&"number"==typeof e.offset&&Cb.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return wm(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Cb.transform(o,t,n);break;case"insert_text":Cb.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Cb.equals(t.path,o)&&(e.offset+=t.position),e.path=Cb.transform(o,t,n);break;case"remove_text":Cb.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Cb.equals(t.path,o)||Cb.isAncestor(t.path,o))return null;e.path=Cb.transform(o,t,n);break;case"split_node":if(Cb.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Cb.transform(o,t,kb(kb({},n),{},{affinity:"forward"})))}else e.path=Cb.transform(o,t,n)}}))}},Ob={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=_b.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Ab=["anchor","focus"];function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Bb={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Bb.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Bb.edges(e);return t},equals:(e,t)=>_b.equals(e.anchor,t.anchor)&&_b.equals(e.focus,t.focus),includes(e,t){if(Bb.isRange(t)){if(Bb.includes(e,t.anchor)||Bb.includes(e,t.focus))return!0;var[n,r]=Bb.edges(e),[o,i]=Bb.edges(t);return _b.isBefore(n,o)&&_b.isAfter(r,i)}var[a,u]=Bb.edges(e),l=!1,s=!1;return _b.isPoint(t)?(l=_b.compare(t,a)>=0,s=_b.compare(t,u)<=0):(l=Cb.compare(t,a.path)>=0,s=Cb.compare(t,u.path)<=0),l&&s},intersection(e,t){var n=Fm(e,Ab),[r,o]=Bb.edges(e),[i,a]=Bb.edges(t),u=_b.isBefore(r,i)?i:r,l=_b.isBefore(o,a)?o:a;return _b.isBefore(l,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return _b.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return _b.equals(t,n)},isExpanded:e=>!Bb.isCollapsed(e),isForward:e=>!Bb.isBackward(e),isRange:e=>Sy(e)&&_b.isPoint(e.anchor)&&_b.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Bb.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return wm(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Bb.isCollapsed(e);Bb.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Bb.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=_b.transform(e.anchor,t,{affinity:r}),l=_b.transform(e.focus,t,{affinity:o});if(!u||!l)return null;e.anchor=u,e.focus=l}))}},Pb={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Bb.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Fb=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Sy(r)&&Sy(o)){if(!Fb(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},jb=["text"],Ib=["anchor","focus"];function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lb={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Fm(e,jb)}return Fb(r?o(e):e,r?o(t):t)},isText:e=>Sy(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Lb.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Nb({},e)];for(var r of t){var o=Fm(r,Ib),[i,a]=Bb.edges(r),u=[],l=0;for(var s of n){var{length:c}=s.text,d=l;if(l+=c,i.offset<=d&&a.offset>=l)Object.assign(s,o),u.push(s);else if(i.offset!==a.offset&&(i.offset===l||a.offset===d)||i.offset>l||a.offset<d||a.offset===d&&0!==d)u.push(s);else{var f=s,p=void 0,h=void 0;if(a.offset<l){var v=a.offset-d;h=Nb(Nb({},f),{},{text:f.text.slice(v)}),f=Nb(Nb({},f),{},{text:f.text.slice(0,v)})}if(i.offset>d){var g=i.offset-d;p=Nb(Nb({},f),{},{text:f.text.slice(0,g)}),f=Nb(Nb({},f),{},{text:f.text.slice(g)})}Object.assign(f,o),p&&u.push(p),u.push(f),h&&u.push(h)}}n=u}return n}};function Rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ub={transform(e,t){e.children=xm(e.children);var n=e.selection&&xm(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=bb.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,l]of Bb.points(t))t[l]=_b.transform(u,n);break;case"insert_text":var{path:s,offset:c,text:d}=n;if(0===d.length)break;var f=bb.leaf(e,s),p=f.text.slice(0,c),h=f.text.slice(c);if(f.text=p+d+h,t)for(var[v,g]of Bb.points(t))t[g]=_b.transform(v,n);break;case"merge_node":var{path:y}=n,m=bb.get(e,y),b=Cb.previous(y),w=bb.get(e,b),x=bb.parent(e,y),E=y[y.length-1];if(Lb.isText(m)&&Lb.isText(w))w.text+=m.text;else{if(Lb.isText(m)||Lb.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(x.children.splice(E,1),t)for(var[C,D]of Bb.points(t))t[D]=_b.transform(C,n);break;case"move_node":var{path:S,newPath:k}=n;if(Cb.isAncestor(S,k))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(k,"] because the destination is inside itself."));var _=bb.get(e,S),O=bb.parent(e,S),A=S[S.length-1];O.children.splice(A,1);var T=Cb.transform(S,n),B=bb.get(e,Cb.parent(T)),P=T[T.length-1];if(B.children.splice(P,0,_),t)for(var[F,j]of Bb.points(t))t[j]=_b.transform(F,n);break;case"remove_node":var{path:I}=n,M=I[I.length-1];if(bb.parent(e,I).children.splice(M,1),t)for(var[N,L]of Bb.points(t)){var R=_b.transform(N,n);if(null!=t&&null!=R)t[L]=R;else{var z=void 0,U=void 0;for(var[H,$]of bb.texts(e)){if(-1!==Cb.compare($,I)){U=[H,$];break}z=[H,$]}var V=!1;z&&U&&(V=Cb.equals(U[1],I)?!Cb.hasPrevious(U[1]):Cb.common(z[1],I).length<Cb.common(U[1],I).length),z&&!V?(N.path=z[1],N.offset=z[0].text.length):U?(N.path=U[1],N.offset=0):t=null}}break;case"remove_text":var{path:W,offset:K,text:q}=n;if(0===q.length)break;var G=bb.leaf(e,W),X=G.text.slice(0,K),Y=G.text.slice(K+q.length);if(G.text=X+Y,t)for(var[Z,J]of Bb.points(t))t[J]=_b.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=bb.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Bb.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=zb({},ae)}for(var ue in ae){var le=ae[ue];if(null==le){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=le}}break;case"split_node":var{path:se,position:ce,properties:de}=n;if(0===se.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(se,"] because the root node cannot be split."));var fe,pe=bb.get(e,se),he=bb.parent(e,se),ve=se[se.length-1];if(Lb.isText(pe)){var ge=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ge,fe=zb(zb({},de),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,fe=zb(zb({},de),{},{children:be})}if(he.children.splice(ve+1,0,fe),t)for(var[we,xe]of Bb.points(t))t[xe]=_b.transform(we,n)}return t})(e,n,t)}finally{e.children=Em(e.children),e.selection=n?_y(n)?Em(n):n:null}}},Hb=["text"],$b=["children"];function Vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kb={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hb.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:l}=n;if(bb.isNode(t)&&(t=[t]),0!==t.length){var[s]=t;if(a||(a=e.selection?e.selection:e.children.length>0?hb.end(e,[]):[0],l=!0),null==l&&(l=!1),Bb.isRange(a))if(r||(a=hb.unhangRange(e,a)),Bb.isCollapsed(a))a=a.anchor;else{var[,c]=Bb.edges(a),d=hb.pointRef(e,c);nw.delete(e,{at:a}),a=d.unref()}if(_b.isPoint(a)){null==u&&(u=Lb.isText(s)?e=>Lb.isText(e):e.isInline(s)?t=>Lb.isText(t)||hb.isInline(e,t):t=>hb.isBlock(e,t));var[f]=hb.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!f)return;var[,p]=f,h=hb.pathRef(e,p),v=hb.isEnd(e,a,p);nw.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?Cb.next(g):g}var y=Cb.parent(a),m=a[a.length-1];if(o||!hb.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Cb.next(a)}if(a=Cb.previous(a),l){var x=hb.end(e,a);x&&nw.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hb.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Cb.isPath(n)?Xb(e,n):t=>hb.isBlock(e,t)),n){var a=hb.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return hb.pathRef(e,n)}));for(var l of u){var s=l.unref();if(s.length<2)throw new Error("Cannot lift node at a path [".concat(s,"] because it has a depth of less than `2`."));var c=hb.node(e,Cb.parent(s)),[d,f]=c,p=s[s.length-1],{length:h}=d.children;if(1===h){var v=Cb.next(f);nw.moveNodes(e,{at:s,to:v,voids:o}),nw.removeNodes(e,{at:f,voids:o})}else if(0===p)nw.moveNodes(e,{at:s,to:f,voids:o});else if(p===h-1){var g=Cb.next(f);nw.moveNodes(e,{at:s,to:g,voids:o})}else{var y=Cb.next(s),m=Cb.next(f);nw.splitNodes(e,{at:y,voids:o}),nw.moveNodes(e,{at:s,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hb.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Cb.isPath(r)){var[u]=hb.parent(e,r);n=e=>u.children.includes(e)}else n=t=>hb.isBlock(e,t);if(!o&&Bb.isRange(r)&&(r=hb.unhangRange(e,r)),Bb.isRange(r))if(Bb.isCollapsed(r))r=r.anchor;else{var[,l]=Bb.edges(r),s=hb.pointRef(e,l);nw.delete(e,{at:r}),r=s.unref(),null==t.at&&nw.select(e,r)}var[c]=hb.nodes(e,{at:r,match:n,voids:i,mode:a}),d=hb.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&d){var[f,p]=c,[h,v]=d;if(0!==p.length&&0!==v.length){var g,y,m=Cb.next(v),b=Cb.common(p,v),w=Cb.isSibling(p,v),x=Array.from(hb.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),E=hb.above(e,{at:p,mode:"highest",match:t=>x.includes(t)&&qb(e,t)}),C=E&&hb.pathRef(e,E[1]);if(Lb.isText(f)&&Lb.isText(h)){var D=Fm(f,Hb);y=h.text.length,g=D}else{if(!lb.isElement(f)||!lb.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(f)," ").concat(JSON.stringify(h)));D=Fm(f,$b),y=h.children.length,g=D}w||nw.moveNodes(e,{at:p,to:m,voids:i}),C&&nw.removeNodes(e,{at:C.current,voids:i}),lb.isElement(h)&&hb.isEmpty(e,h)||Lb.isText(h)&&""===h.text&&0!==v[v.length-1]?nw.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){hb.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Cb.isPath(r)?Xb(e,r):t=>hb.isBlock(e,t));var u=hb.pathRef(e,n),l=hb.nodes(e,{at:r,match:a,mode:o,voids:i}),s=Array.from(l,(t=>{var[,n]=t;return hb.pathRef(e,n)}));for(var c of s){var d=c.unref(),f=u.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:f}),u.current&&Cb.isSibling(f,d)&&Cb.isAfter(f,d)&&(u.current=Cb.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hb.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Cb.isPath(i)?Xb(e,i):t=>hb.isBlock(e,t)),!n&&Bb.isRange(i)&&(i=hb.unhangRange(e,i));var u=hb.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(u,(t=>{var[,n]=t;return hb.pathRef(e,n)}));for(var s of l){var c=s.unref();if(c){var[d]=hb.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hb.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:l=!1}=n;if(o){if(null==r&&(r=Cb.isPath(o)?Xb(e,o):t=>hb.isBlock(e,t)),!i&&Bb.isRange(o)&&(o=hb.unhangRange(e,o)),u&&Bb.isRange(o)){if(Bb.isCollapsed(o)&&hb.leaf(e,o.anchor)[0].text.length>0)return;var s=hb.rangeRef(e,o,{affinity:"inward"}),[c,d]=Bb.edges(o),f="lowest"===a?"lowest":"highest",p=hb.isEnd(e,d,d.path);nw.splitNodes(e,{at:d,match:r,mode:f,voids:l,always:!p});var h=hb.isStart(e,c,c.path);nw.splitNodes(e,{at:c,match:r,mode:f,voids:l,always:!h}),o=s.unref(),null==n.at&&nw.select(e,o)}for(var[v,g]of hb.nodes(e,{at:o,match:r,mode:a,voids:l})){var y={},m={};if(0!==g.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==v[w]&&(b=!0,v.hasOwnProperty(w)&&(y[w]=v[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hb.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>hb.isBlock(e,t)),Bb.isRange(i)&&(i=Gb(e,i)),Cb.isPath(i)){var l=i,s=hb.point(e,l),[c]=hb.parent(e,l);o=e=>e===c,a=s.path.length-l.length+1,i=s,u=!0}if(i){var d=hb.pointRef(e,i,{affinity:"backward"}),[f]=hb.nodes(e,{at:i,match:o,mode:n,voids:r});if(f){var p=hb.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(lb.isElement(h)&&e.isInline(h)){var g=hb.after(e,v);if(!g){var y=Cb.next(v);nw.insertNodes(e,{text:""},{at:y,voids:r}),g=hb.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=hb.pointRef(e,i),b=i.path.length-a,[,w]=f,x=i.path.slice(0,b),E=0===a?i.offset:i.path[b]+0;for(var[C,D]of hb.levels(e,{at:x,reverse:!0,voids:r})){var S=!1;if(D.length<w.length||0===D.length||!r&&hb.isVoid(e,C))break;var k=d.current,_=hb.isEnd(e,k,D);if(u||!d||!hb.isEdge(e,k,D)){S=!0;var O=bb.extractProps(C);e.apply({type:"split_node",path:D,position:E,properties:O})}E=D[D.length-1]+(S||_?1:0)}if(null==t.at){var A=m.current||hb.end(e,[]);nw.select(e,A)}d.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;nw.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hb.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Cb.isPath(i)?Xb(e,i):t=>hb.isBlock(e,t)),Cb.isPath(i)&&(i=hb.range(e,i));var u=Bb.isRange(i)?hb.rangeRef(e,i):null,l=hb.nodes(e,{at:i,match:a,mode:n,voids:o}),s=Array.from(l,(t=>{var[,n]=t;return hb.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=hb.node(e,n),a=hb.range(e,n);r&&u&&(a=Bb.intersection(u.current,a)),nw.liftNodes(e,{at:a,match:e=>lb.isAncestor(i)&&i.children.includes(e),voids:o})};for(var d of s)c(d);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hb.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Cb.isPath(u)?Xb(e,u):e.isInline(t)?t=>hb.isInline(e,t)||Lb.isText(t):t=>hb.isBlock(e,t)),o&&Bb.isRange(u)){var[l,s]=Bb.edges(u),c=hb.rangeRef(e,u,{affinity:"inward"});nw.splitNodes(e,{at:s,match:a,voids:i}),nw.splitNodes(e,{at:l,match:a,voids:i}),u=c.unref(),null==n.at&&nw.select(e,u)}var d=Array.from(hb.nodes(e,{at:u,match:e.isInline(t)?t=>hb.isBlock(e,t):e=>hb.isEditor(e),mode:"lowest",voids:i}));for(var[,f]of d){var p=Bb.isRange(u)?Bb.intersection(u,hb.range(e,f)):u;if(p){var h=Array.from(hb.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Cb.equals(o,a)?Cb.parent(o):Cb.common(o,a),l=hb.range(e,o,a),s=hb.node(e,u),[c]=s,d=u.length+1,f=Cb.next(a.slice(0,d)),p=Wb(Wb({},t),{},{children:[]});nw.insertNodes(e,p,{at:f,voids:i}),nw.moveNodes(e,{at:l,match:e=>lb.isAncestor(c)&&c.children.includes(e),to:f.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},qb=(e,t)=>{if(lb.isElement(t)){var n=t;return!!hb.isVoid(e,t)||1===n.children.length&&qb(e,n.children[0])}return!hb.isEditor(t)},Gb=(e,t)=>{if(Bb.isCollapsed(t))return t.anchor;var[,n]=Bb.edges(t),r=hb.pointRef(e,n);return nw.delete(e,{at:t}),r.unref()},Xb=(e,t)=>{var[n]=hb.node(e,t);return e=>e===n};function Yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yb(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jb={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)nw.select(e,r.anchor);else if("focus"===n)nw.select(e,r.focus);else if("start"===n){var[o]=Bb.edges(r);nw.select(e,o)}else if("end"===n){var[,i]=Bb.edges(r);nw.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Bb.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Bb.isBackward(n)?"anchor":"focus");var{anchor:u,focus:l}=n,s={distance:r,unit:o},c={};if(null==a||"anchor"===a){var d=i?hb.before(e,u,s):hb.after(e,u,s);d&&(c.anchor=d)}if(null==a||"focus"===a){var f=i?hb.before(e,l,s):hb.after(e,l,s);f&&(c.focus=f)}nw.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=hb.range(e,t),n)nw.setSelection(e,t);else{if(!Bb.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Bb.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Bb.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;nw.setSelection(e,{["anchor"===o?"anchor":"focus"]:Zb(Zb({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!_b.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!_b.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},Qb={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hb.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(Bb.isRange(a)&&Bb.isCollapsed(a)&&(a=a.anchor),_b.isPoint(a)){var l=hb.void(e,{at:a,mode:"highest"});if(!i&&l){var[,s]=l;a=s}else{var c={unit:r,distance:o};a={anchor:a,focus:n?hb.before(e,a,c)||hb.start(e,[]):hb.after(e,a,c)||hb.end(e,[])},u=!0}}if(Cb.isPath(a))nw.removeNodes(e,{at:a,voids:i});else if(!Bb.isCollapsed(a)){if(!u){var[,d]=Bb.edges(a),f=hb.end(e,[]);_b.equals(d,f)||(a=hb.unhangRange(e,a,{voids:i}))}var[p,h]=Bb.edges(a),v=hb.above(e,{match:t=>hb.isBlock(e,t),at:p,voids:i}),g=hb.above(e,{match:t=>hb.isBlock(e,t),at:h,voids:i}),y=v&&g&&!Cb.equals(v[1],g[1]),m=Cb.equals(p.path,h.path),b=i?null:hb.void(e,{at:p,mode:"highest"}),w=i?null:hb.void(e,{at:h,mode:"highest"});if(b){var x=hb.before(e,p);x&&v&&Cb.isAncestor(v[1],x.path)&&(p=x)}if(w){var E=hb.after(e,h);E&&g&&Cb.isAncestor(g[1],E.path)&&(h=E)}var C,D=[];for(var S of hb.nodes(e,{at:a,voids:i})){var[k,_]=S;C&&0===Cb.compare(_,C)||(!i&&hb.isVoid(e,k)||!Cb.isCommon(_,p.path)&&!Cb.isCommon(_,h.path))&&(D.push(S),C=_)}var O=Array.from(D,(t=>{var[,n]=t;return hb.pathRef(e,n)})),A=hb.pointRef(e,p),T=hb.pointRef(e,h);if(!m&&!b){var B=A.current,[P]=hb.leaf(e,B),{path:F}=B,{offset:j}=p,I=P.text.slice(j);I.length>0&&e.apply({type:"remove_text",path:F,offset:j,text:I})}for(var M of O){var N=M.unref();nw.removeNodes(e,{at:N,voids:i})}if(!w){var L=T.current,[R]=hb.leaf(e,L),{path:z}=L,U=m?p.offset:0,H=R.text.slice(U,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:U,text:H})}!m&&y&&T.current&&A.current&&nw.mergeNodes(e,{at:T.current,hanging:!0,voids:i});var $=n?A.unref()||T.unref():T.unref()||A.unref();null==t.at&&$&&nw.select(e,$)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hb.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Bb.isRange(i))if(r||(i=hb.unhangRange(e,i)),Bb.isCollapsed(i))i=i.anchor;else{var[,a]=Bb.edges(i);if(!o&&hb.void(e,{at:a}))return;var u=hb.pointRef(e,a);nw.delete(e,{at:i}),i=u.unref()}else Cb.isPath(i)&&(i=hb.start(e,i));if(o||!hb.void(e,{at:i})){var l=hb.above(e,{at:i,match:t=>hb.isInline(e,t),mode:"highest",voids:o});if(l){var[,s]=l;hb.isEnd(e,i,s)?i=hb.after(e,s):hb.isStart(e,i,s)&&(i=hb.before(e,s))}var c=hb.above(e,{match:t=>hb.isBlock(e,t),at:i,voids:o}),[,d]=c,f=hb.isStart(e,i,d),p=hb.isEnd(e,i,d),h=f&&p,v=!f||f&&p,g=!p,[,y]=bb.first({children:t},[]),[,m]=bb.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(v&&Cb.isAncestor(r,y)&&lb.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||g&&Cb.isAncestor(r,m)&&lb.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var x of bb.nodes({children:t},{pass:w}))w(x)&&b.push(x);var E=[],C=[],D=[],S=!0,k=!1;for(var[_]of b)lb.isElement(_)&&!e.isInline(_)?(S=!1,k=!0,C.push(_)):S?E.push(_):D.push(_);var[O]=hb.nodes(e,{at:i,match:t=>Lb.isText(t)||hb.isInline(e,t),mode:"highest",voids:o}),[,A]=O,T=hb.isStart(e,i,A),B=hb.isEnd(e,i,A),P=hb.pathRef(e,p?Cb.next(d):d),F=hb.pathRef(e,B?Cb.next(A):A),j=hb.pathRef(e,d);nw.splitNodes(e,{at:i,match:t=>k?hb.isBlock(e,t):Lb.isText(t)||hb.isInline(e,t),mode:k?"lowest":"highest",voids:o});var I=hb.pathRef(e,!T||T&&B?Cb.next(A):A);if(nw.insertNodes(e,E,{at:I.current,match:t=>Lb.isText(t)||hb.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&nw.delete(e,{at:j.unref(),voids:o}),nw.insertNodes(e,C,{at:P.current,match:t=>hb.isBlock(e,t),mode:"lowest",voids:o}),nw.insertNodes(e,D,{at:F.current,match:t=>Lb.isText(t)||hb.isInline(e,t),mode:"highest",voids:o}),!n.at){var M;M=D.length>0?Cb.previous(F.current):C.length>0?Cb.previous(P.current):Cb.previous(I.current);var N=hb.end(e,M);nw.select(e,N)}I.unref(),P.unref(),F.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};hb.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Cb.isPath(o)&&(o=hb.range(e,o)),Bb.isRange(o))if(Bb.isCollapsed(o))o=o.anchor;else{var i=Bb.end(o);if(!r&&hb.void(e,{at:i}))return;var a=hb.pointRef(e,i);nw.delete(e,{at:o,voids:r}),o=a.unref(),nw.setSelection(e,{anchor:o,focus:o})}if(r||!hb.void(e,{at:o})){var{path:u,offset:l}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:l,text:t})}}}))}};function ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nw=tw(tw(tw(tw({},Ub),Kb),Jb),Qb),rw="[object Map]",ow="[object Set]",iw=/^\[object .+?Constructor\]$/,aw=/^(?:0|[1-9]\d*)$/,uw="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",lw="\\ud83c[\\udffb-\\udfff]",sw="[^\\ud800-\\udfff]",cw="(?:\\ud83c[\\udde6-\\uddff]){2}",dw="[\\ud800-\\udbff][\\udc00-\\udfff]",fw="(?:"+uw+"|"+lw+")?",pw="[\\ufe0e\\ufe0f]?"+fw+"(?:\\u200d(?:"+[sw,cw,dw].join("|")+")[\\ufe0e\\ufe0f]?"+fw+")*",hw="(?:"+[sw+uw+"?",uw,cw,dw,"[\\ud800-\\udfff]"].join("|")+")",vw=RegExp(lw+"(?="+lw+")|"+hw+pw,"g"),gw=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),yw="object"==typeof su&&su&&su.Object===Object&&su,mw="object"==typeof self&&self&&self.Object===Object&&self,bw=yw||mw||Function("return this")();function ww(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function xw(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Ew,Cw,Dw=Function.prototype,Sw=Object.prototype,kw=bw["__core-js_shared__"],_w=function(){var e=/[^.]+$/.exec(kw&&kw.keys&&kw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ow=Dw.toString,Aw=Sw.hasOwnProperty,Tw=Sw.toString,Bw=RegExp("^"+Ow.call(Aw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pw=bw.Symbol,Fw=Pw?Pw.iterator:void 0,jw=Sw.propertyIsEnumerable,Iw=(Ew=Object.keys,Cw=Object,function(e){return Ew(Cw(e))}),Mw=Kw(bw,"DataView"),Nw=Kw(bw,"Map"),Lw=Kw(bw,"Promise"),Rw=Kw(bw,"Set"),zw=Kw(bw,"WeakMap"),Uw=Xw(Mw),Hw=Xw(Nw),$w=Xw(Lw),Vw=Xw(Rw),Ww=Xw(zw);function Kw(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!Qw(e)||function(e){return!!_w&&_w in e}(e))return!1;var t=Jw(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Bw:iw;return t.test(Xw(e))}(n)?n:void 0}var qw=function(e){return Tw.call(e)};function Gw(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||aw.test(e))&&e>-1&&e%1==0&&e<t}function Xw(e){if(null!=e){try{return Ow.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Mw&&"[object DataView]"!=qw(new Mw(new ArrayBuffer(1)))||Nw&&qw(new Nw)!=rw||Lw&&"[object Promise]"!=qw(Lw.resolve())||Rw&&qw(new Rw)!=ow||zw&&"[object WeakMap]"!=qw(new zw))&&(qw=function(e){var t=Tw.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Xw(n):void 0;if(r)switch(r){case Uw:return"[object DataView]";case Hw:return rw;case $w:return"[object Promise]";case Vw:return ow;case Ww:return"[object WeakMap]"}return t});var Yw=Array.isArray;function Zw(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Jw(e)}function Jw(e){var t=Qw(e)?Tw.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Qw(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ex(e){return!!e&&"object"==typeof e}function tx(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,function(e){return Zw(e)?function(e){var t=Yw(e)||function(e){return function(e){return ex(e)&&Zw(e)}(e)&&Aw.call(e,"callee")&&(!jw.call(e,"callee")||"[object Arguments]"==Tw.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var o in e)!Aw.call(e,o)||r&&("length"==o||Gw(o,n))||t.push(o);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Sw))return Iw(e);var t,n,r=[];for(var o in Object(e))Aw.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}(e)):[]}var nx=function(e){if(!e)return[];if(Zw(e))return function(e){return"string"==typeof e||!Yw(e)&&ex(e)&&"[object String]"==Tw.call(e)}(e)?function(e){return function(e){return gw.test(e)}(e)?function(e){return e.match(vw)||[]}(e):function(e){return e.split("")}(e)}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Fw&&e[Fw])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Fw]());var t=qw(e);return(t==rw?ww:t==ow?xw:tx)(e)};function rx(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function ox(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:rx(t[n])&&rx(e[n])&&Object.keys(t[n]).length>0&&ox(e[n],t[n])}))}var ix={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 ax(){var e="undefined"!=typeof document?document:{};return ox(e,ix),e}var ux={document:ix,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function lx(){var e="undefined"!=typeof window?window:{};return ox(e,ux),e}function sx(e){return sx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sx(e)}function cx(e,t){return cx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cx(e,t)}function dx(e,t,n){return dx=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&cx(o,n.prototype),o},dx.apply(null,arguments)}function fx(e){var t="function"==typeof Map?new Map:void 0;return fx=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return dx(e,arguments,sx(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),cx(n,e)},fx(e)}var px=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(fx(Array));function hx(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,hx(e)):t.push(e)})),t}function vx(e,t){return Array.prototype.filter.call(e,t)}function gx(e,t){var n=lx(),r=ax(),o=[];if(!t&&e instanceof px)return e;if(!e)return new px(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var l=0;l<u.childNodes.length;l+=1)o.push(u.childNodes[l])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof px)return e;o=e}return new px(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function yx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hx(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function mx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hx(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function bx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hx(t.map((function(e){return e.split(" ")})));return vx(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function wx(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function xx(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Ex(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Cx(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Dx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),gx(t).is(o))i.apply(t,n);else for(var r=gx(t).parents(),a=0;a<r.length;a+=1)gx(r[a]).is(o)&&i.apply(r[a],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s,c=r.split(" "),d=0;d<this.length;d+=1){var f=this[d];if(o)for(s=0;s<c.length;s+=1){var p=c[s];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:i,proxyListener:u}),f.addEventListener(p,u,a)}else for(s=0;s<c.length;s+=1){var h=c[s];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[h]||(f.dom7Listeners[h]=[]),f.dom7Listeners[h].push({listener:i,proxyListener:l}),f.addEventListener(h,l,a)}}return this}function Sx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),l=0;l<u.length;l+=1)for(var s=u[l],c=0;c<this.length;c+=1){var d=this[c],f=void 0;if(!o&&d.dom7Listeners?f=d.dom7Listeners[s]:o&&d.dom7LiveListeners&&(f=d.dom7LiveListeners[s]),f&&f.length)for(var p=f.length-1;p>=0;p-=1){var h=f[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(d.removeEventListener(s,h.proxyListener,a),f.splice(p,1)):i||(d.removeEventListener(s,h.proxyListener,a),f.splice(p,1))}}return this}function kx(){var e=lx();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function _x(){var e=lx();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Ox(){if(this.length>0){var e=lx(),t=ax(),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,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+l-a}}return null}function Ax(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Tx(){for(var e=lx(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Bx(e,t){var n,r=lx();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Px(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Fx(e){return gx(vx(this,e))}function jx(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Ix(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Mx(e){var t,n,r=lx(),o=ax(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=gx(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof px){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Nx(){for(var e,t=ax(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof px)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Lx(e){var t,n,r=ax();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof px)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Rx(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?gx(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return gx(t)}function zx(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?gx(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return gx(t)}function Ux(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 gx(t)}function Hx(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&&!gx(r[o]).is(e)||t.push(r[o]);return gx(t)}function $x(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Vx(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}gx.fn=px.prototype;var Wx="resize scroll".split(" ");function Kx(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)Wx.indexOf(e)<0&&(e in this[o]?this[o][e]():gx(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var qx=Kx("click"),Gx=Kx("focus"),Xx=/^(?:0|[1-9]\d*)$/;function Yx(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Zx,Jx=Object.prototype,Qx=Jx.hasOwnProperty,eE=Jx.toString,tE=Jx.propertyIsEnumerable,nE=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),rE=(Zx=function(e,t){return e&&oE(e,t,lE)},function(e,t){if(null==e)return e;if(!uE(e))return Zx(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),oE=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e};function iE(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Xx.test(e))&&e>-1&&e%1==0&&e<t}var aE=Array.isArray;function uE(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?eE.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function lE(e){return uE(e)?function(e){var t=aE(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&uE(e)}(e)&&Qx.call(e,"callee")&&(!tE.call(e,"callee")||"[object Arguments]"==eE.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var o in e)!Qx.call(e,o)||r&&("length"==o||iE(o,n))||t.push(o);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Jx))return nE(e);var t,n,r=[];for(var o in Object(e))Qx.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function sE(e){return e}var cE=function(e,t){return(aE(e)?Yx:rE)(e,"function"==typeof t?t:sE)};let dE=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var fE=/^\s+|\s+$/g,pE=/^[-+]0x[0-9a-f]+$/i,hE=/^0b[01]+$/i,vE=/^0o[0-7]+$/i,gE=parseInt,yE="object"==typeof su&&su&&su.Object===Object&&su,mE="object"==typeof self&&self&&self.Object===Object&&self,bE=yE||mE||Function("return this")(),wE=Object.prototype.toString,xE=Math.max,EE=Math.min,CE=function(){return bE.Date.now()};function DE(e,t,n){var r,o,i,a,u,l,s=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-s>=i}function v(){var e=CE();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-l);return d?EE(n,i-(e-s)):n}(e))}function g(e){return u=void 0,f&&r?p(e):(r=o=void 0,a)}function y(){var e=CE(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(v,t),c?p(e):a}(l);if(d)return u=setTimeout(v,t),p(l)}return void 0===u&&(u=setTimeout(v,t)),a}return t=kE(t)||0,SE(n)&&(c=!!n.leading,i=(d="maxWait"in n)?xE(kE(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=l=o=u=void 0},y.flush=function(){return void 0===u?a:g(CE())},y}function SE(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function kE(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==wE.call(e)}(e))return NaN;if(SE(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=SE(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(fE,"");var n=hE.test(e);return n||vE.test(e)?gE(e.slice(2),n?2:8):pE.test(e)?NaN:+e}var _E=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return SE(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),DE(e,t,{leading:r,maxWait:t,trailing:o})};const OE={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function AE(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const TE=Array.isArray;function BE(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function PE(e){return void 0===e}function FE(e){return void 0!==e}const jE=AE("",{},[],void 0,void 0);function IE(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function ME(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const NE=["create","update","remove","destroy","pre","post"];function LE(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=OE;for(const c of NE)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,l=e.data;if(void 0!==l){const t=null===(o=l.hook)||void 0===o?void 0:o.init;FE(t)&&(t(e),l=e.data)}const s=e.children,c=e.sel;if("!"===c)PE(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),d=c.indexOf(".",o),f=o>0?o:c.length,p=d>0?d:c.length,h=-1!==o||-1!==d?c.slice(0,Math.min(f,p)):c,v=e.elm=FE(l)&&FE(u=l.ns)?r.createElementNS(u,h,l):r.createElement(h,l);for(f<p&&v.setAttribute("id",c.slice(f+1,p)),d>0&&v.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](jE,e);if(TE(s))for(u=0;u<s.length;++u){const e=s[u];null!=e&&r.appendChild(v,i(e,t))}else BE(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;FE(g)&&(null===(a=g.create)||void 0===a||a.call(g,jE,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function l(e,t,i,a){for(var l,s;i<=a;++i){let a,c;const d=t[i];if(null!=d)if(FE(d.sel)){u(d),a=n.remove.length+1,c=o(d.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](d,c);const e=null===(s=null===(l=null==d?void 0:d.data)||void 0===l?void 0:l.hook)||void 0===s?void 0:s.remove;FE(e)?e(d,c):c()}else r.removeChild(e,d.elm)}}function s(e,t,o){var u,c,d,f,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(f=null===(d=t.data.hook)||void 0===d?void 0:d.update)||void 0===f||f.call(d,e,t)}PE(t.text)?FE(g)&&FE(y)?g!==y&&function(e,t,n,o){let u,c,d,f,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],w=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==w?w=n[--m]:IE(g,b)?(s(g,b,o),g=t[++p],b=n[++h]):IE(y,w)?(s(y,w,o),y=t[--v],w=n[--m]):IE(g,w)?(s(g,w,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++p],w=n[--m]):IE(y,b)?(s(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===u&&(u=ME(t,p,v)),c=u[b.key],PE(c)?r.insertBefore(e,i(b,o),g.elm):(d=t[c],d.sel!==b.sel?r.insertBefore(e,i(b,o),g.elm):(s(d,b,o),t[c]=void 0,r.insertBefore(e,d.elm,g.elm))),b=n[++h]);(p<=v||h<=m)&&(p>v?(f=null==n[m+1]?null:n[m+1].elm,a(e,f,n,h,m,o)):l(e,t,p,v))}(v,g,y,o):FE(y)?(FE(e.text)&&r.setTextContent(v,""),a(v,null,y,0,y.length-1,o)):FE(g)?l(v,g,0,g.length-1):FE(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(FE(g)&&l(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return AE(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),IE(e,t)?s(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),l(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function RE(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&RE(e,t[r].children,t[r].sel)}}function zE(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),TE(n)?r=n:BE(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(TE(t)?r=t:BE(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)BE(r[i])&&(r[i]=AE(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||RE(a,r,e),AE(e,a,r,o,void 0)}function UE(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const HE={create:UE,update:UE};function $E(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const VE={create:$E,update:$E},WE=/[A-Z]/g;function KE(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(WE,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(WE,"-$&").toLowerCase(),i[r]))}const qE={create:KE,update:KE};function GE(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)GE(e[r],t,n)}function XE(e,t){const n=e.type,r=t.data.on;r&&r[n]&&GE(r[n],t,e)}function YE(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){XE(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const ZE={create:YE,update:YE,destroy:YE};function JE(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const QE={create:JE,update:JE},eC="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let tC=!1;function nC(e,t,n){!function(e){eC((function(){eC(e)}))}((function(){e[t]=n}))}function rC(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||nC(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const oC={pre:function(){tC=!1},create:rC,update:rC,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;tC||(e.elm.offsetLeft,tC=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const l=[];for(r in a)l.push(r),o.style[r]=a[r];const s=getComputedStyle(o)["transition-property"].split(", ");for(;i<s.length;++i)-1!==l.indexOf(s[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function iC(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?iC(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(AE(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function aC(e,t,...n){const r=iC(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?zE(e,t,r[0].text):zE(e,t,r)}aC||(aC={});var uC,lC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cC="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dC="["+cC+"]",fC="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",pC="\\d+",hC="[a-z\\xdf-\\xf6\\xf8-\\xff]",vC="[^\\ud800-\\udfff"+cC+pC+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",gC="\\ud83c[\\udffb-\\udfff]",yC="[^\\ud800-\\udfff]",mC="(?:\\ud83c[\\udde6-\\uddff]){2}",bC="[\\ud800-\\udbff][\\udc00-\\udfff]",wC="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xC="(?:"+hC+"|"+vC+")",EC="(?:"+wC+"|"+vC+")",CC="(?:"+fC+"|"+gC+")?",DC="[\\ufe0e\\ufe0f]?"+CC+"(?:\\u200d(?:"+[yC,mC,bC].join("|")+")[\\ufe0e\\ufe0f]?"+CC+")*",SC="(?:"+["[\\u2700-\\u27bf]",mC,bC].join("|")+")"+DC,kC="(?:"+[yC+fC+"?",fC,mC,bC,"[\\ud800-\\udfff]"].join("|")+")",_C=RegExp("[']","g"),OC=RegExp(fC,"g"),AC=RegExp(gC+"(?="+gC+")|"+kC+DC,"g"),TC=RegExp([wC+"?"+hC+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[dC,wC,"$"].join("|")+")",EC+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[dC,wC+xC,"$"].join("|")+")",wC+"?"+xC+"+(?:['](?:d|ll|m|re|s|t|ve))?",wC+"+(?:['](?:D|LL|M|RE|S|T|VE))?",pC,SC].join("|"),"g"),BC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),PC=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FC="object"==typeof su&&su&&su.Object===Object&&su,jC="object"==typeof self&&self&&self.Object===Object&&self,IC=FC||jC||Function("return this")(),MC=(uC={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==uC?void 0:uC[e]});function NC(e){return BC.test(e)}var LC=Object.prototype.toString,RC=IC.Symbol,zC=RC?RC.prototype:void 0,UC=zC?zC.toString:void 0;function HC(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==LC.call(e)}(e))return UC?UC.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}for(var $C,VC=($C=function(e,t,n){return t=t.toLowerCase(),e+(n?WC(HC(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=HC(e),void 0===t?function(e){return PC.test(e)}(e)?function(e){return e.match(TC)||[]}(e):function(e){return e.match(lC)||[]}(e):e.match(t)||[]}(function(e){return(e=HC(e))&&e.replace(sC,MC).replace(OC,"")}(e).replace(_C,"")),$C,"")}),WC=function(e){var t=NC(e=HC(e))?function(e){return NC(e)?function(e){return e.match(AC)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},KC=VC,qC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),GC={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},XC={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:qC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},YC={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},ZC=1;ZC<20;ZC++)YC["f"+ZC]=111+ZC;function JC(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in GC)r[GC[a]]=!1;var u=!0,l=!1,s=void 0;try{for(var c,d=o[Symbol.iterator]();!(u=(c=d.next()).done);u=!0){var f=c.value,p=f.endsWith("?")&&f.length>1;p&&(f=f.slice(0,-1));var h=eD(f),v=GC[h];if(f.length>1&&!v&&!XC[f]&&!YC[h])throw new TypeError('Unknown modifier: "'+f+'"');1!==i&&v||(n?r.key=h:r.which=QC(f)),v&&(r[v]=!p||null)}}catch(e){l=!0,s=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw s}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function QC(e){return e=eD(e),YC[e]||e.toUpperCase().charCodeAt(0)}function eD(e){return e=e.toLowerCase(),XC[e]||e}var tD=JC,nD=function(e,t){return JC(e,{byKey:!0},t)},rD=/^\s+|\s+$/g,oD=/^[-+]0x[0-9a-f]+$/i,iD=/^0b[01]+$/i,aD=/^0o[0-7]+$/i,uD=parseInt,lD="object"==typeof su&&su&&su.Object===Object&&su,sD="object"==typeof self&&self&&self.Object===Object&&self,cD=lD||sD||Function("return this")(),dD=Object.prototype.toString,fD=Math.max,pD=Math.min,hD=function(){return cD.Date.now()};function vD(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function gD(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==dD.call(e)}(e))return NaN;if(vD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(rD,"");var n=iD.test(e);return n||aD.test(e)?uD(e.slice(2),n?2:8):oD.test(e)?NaN:+e}var yD,mD=function(e,t,n){var r,o,i,a,u,l,s=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-s>=i}function v(){var e=hD();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-l);return d?pD(n,i-(e-s)):n}(e))}function g(e){return u=void 0,f&&r?p(e):(r=o=void 0,a)}function y(){var e=hD(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(v,t),c?p(e):a}(l);if(d)return u=setTimeout(v,t),p(l)}return void 0===u&&(u=setTimeout(v,t)),a}return t=gD(t)||0,vD(n)&&(c=!!n.leading,i=(d="maxWait"in n)?fD(gD(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=l=o=u=void 0},y.flush=function(){return void 0===u?a:g(hD())},y},bD=cu((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",l="[object GeneratorFunction]",s="[object Map]",c="[object Number]",d="[object Object]",f="[object Promise]",p="[object RegExp]",h="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",D="[object Int32Array]",S="[object Uint8Array]",k="[object Uint8ClampedArray]",_="[object Uint16Array]",O="[object Uint32Array]",A=/\w*$/,T=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[m]=P[b]=P[i]=P[a]=P[w]=P[x]=P[E]=P[C]=P[D]=P[s]=P[c]=P[d]=P[p]=P[h]=P[v]=P[g]=P[S]=P[k]=P[_]=P[O]=!0,P["[object Error]"]=P[u]=P[y]=!1;var F="object"==typeof su&&su&&su.Object===Object&&su,j="object"==typeof self&&self&&self.Object===Object&&self,I=F||j||Function("return this")(),M=t&&!t.nodeType&&t,N=M&&e&&!e.nodeType&&e,L=N&&N.exports===M;function R(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function U(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function V(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var K=Array.prototype,q=Function.prototype,G=Object.prototype,X=I["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=q.toString,J=G.hasOwnProperty,Q=G.toString,ee=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=L?I.Buffer:void 0,ne=I.Symbol,re=I.Uint8Array,oe=V(Object.getPrototypeOf,Object),ie=Object.create,ae=G.propertyIsEnumerable,ue=K.splice,le=Object.getOwnPropertySymbols,se=te?te.isBuffer:void 0,ce=V(Object.keys,Object),de=je(I,"DataView"),fe=je(I,"Map"),pe=je(I,"Promise"),he=je(I,"Set"),ve=je(I,"WeakMap"),ge=je(Object,"create"),ye=Re(de),me=Re(fe),be=Re(pe),we=Re(he),xe=Re(ve),Ee=ne?ne.prototype:void 0,Ce=Ee?Ee.valueOf:void 0;function De(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){this.__data__=new Se(e)}function Oe(e,t,n){var r=e[t];J.call(e,t)&&ze(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ae(e,t){for(var n=e.length;n--;)if(ze(e[n][0],t))return n;return-1}function Te(e,t,n,r,f,y,T){var B;if(r&&(B=y?r(e,f,y,T):r(e)),void 0!==B)return B;if(!We(e))return e;var F=Ue(e);if(F){if(B=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&J.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,B)}else{var j=Me(e),I=j==u||j==l;if($e(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==o||I&&!y){if(H(e))return y?e:{};if(B=function(e){return"function"!=typeof e.constructor||Le(e)?{}:We(t=oe(e))?ie(t):{};var t}(I?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,Ke(t),e)}(B,e))}else{if(!P[j])return y?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case m:return Be(e);case i:case a:return new o(+e);case b:return function(e,t){var n=t?Be(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case x:case E:case C:case D:case S:case k:case _:case O:return function(e,t){var n=t?Be(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case s:return function(e,t,n){return U(t?n($(e),!0):$(e),R,new e.constructor)}(e,r,n);case c:case v:return new o(e);case p:return function(e){var t=new e.constructor(e.source,A.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return U(t?n(W(e),!0):W(e),z,new e.constructor)}(e,r,n);case g:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,j,Te,t)}}T||(T=new _e);var M=T.get(e);if(M)return M;if(T.set(e,B),!F)var N=n?function(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ke,Ie)}(e):Ke(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n););}(N||e,(function(o,i){N&&(o=e[i=o]),Oe(B,i,Te(o,t,n,r,i,e,T))})),B}function Be(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Oe(n,a,e[a])}return n}function Fe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!We(e)||function(e){return!!Y&&Y in e}(e))&&(Ve(e)||H(e)?ee:T).test(Re(e))}(n)?n:void 0}De.prototype.clear=function(){this.__data__=ge?ge(null):{}},De.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},De.prototype.get=function(e){var t=this.__data__;if(ge){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:J.call(t,e)},De.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?n:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,n=Ae(t,e);return!(n<0||(n==t.length-1?t.pop():ue.call(t,n,1),0))},Se.prototype.get=function(e){var t=this.__data__,n=Ae(t,e);return n<0?void 0:t[n][1]},Se.prototype.has=function(e){return Ae(this.__data__,e)>-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Ae(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ke.prototype.clear=function(){this.__data__={hash:new De,map:new(fe||Se),string:new De}},ke.prototype.delete=function(e){return Fe(this,e).delete(e)},ke.prototype.get=function(e){return Fe(this,e).get(e)},ke.prototype.has=function(e){return Fe(this,e).has(e)},ke.prototype.set=function(e,t){return Fe(this,e).set(e,t),this},_e.prototype.clear=function(){this.__data__=new Se},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Se){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new ke(r)}return n.set(e,t),this};var Ie=le?V(le,Object):function(){return[]},Me=function(e){return Q.call(e)};function Ne(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Re(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=b||fe&&Me(new fe)!=s||pe&&Me(pe.resolve())!=f||he&&Me(new he)!=h||ve&&Me(new ve)!=y)&&(Me=function(e){var t=Q.call(e),n=t==d?e.constructor:void 0,r=n?Re(n):void 0;if(r)switch(r){case ye:return b;case me:return s;case be:return f;case we:return h;case xe:return y}return t});var Ue=Array.isArray;function He(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ve(e)}var $e=se||function(){return!1};function Ve(e){var t=We(e)?Q.call(e):"";return t==u||t==l}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ke(e){return He(e)?function(e){var t=Ue(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&He(e)}(e)&&J.call(e,"callee")&&(!ae.call(e,"callee")||Q.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var i in e)!J.call(e,i)||r&&("length"==i||Ne(i,n))||t.push(i);return t}(e):function(e){if(!Le(e))return ce(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function wD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xD=0;function ED(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r
/**
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/}function CD(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=ED(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var DD=(yD=function(e){return"__private_"+xD+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,yD,{value:SD}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(wD(this,yD)[yD],this):wD(this,yD)[yD](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return CD(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return CD(n,t)}});function SD(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var kD=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var l=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var l=i[a];if("*"===l&&(n=n.concat(t[l])),2===o.length&&o[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,l,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},_D={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},OD=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function AD(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}AD.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var TD=/[\/\+\.]/,BD=0,PD=function(e){return"__private_"+BD+++"_"+e}("publish");class FD{constructor(){Object.defineProperty(this,PD,{value:jD}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,PD)[PD](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function jD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}FD.VERSION="2.0.3";var ID=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},MD={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function ND(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var LD=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function RD(e){return e<10?`0${e}`:e.toString()}var zD=function(){const e=new Date;return`${RD(e.getHours())}:${RD(e.getMinutes())}:${RD(e.getSeconds())}`},UD={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${zD()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${zD()}]`,...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] [${zD()}]`,...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] [${zD()}]`,...t)}}},HD={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}"}}},$D=_D;let VD,WD;function KD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qD=0;function GD(e){return"__private_"+qD+++"_"+e}const{nanoid:XD}=$D,{justErrorsLogger:YD,debugLogger:ZD}=UD;class JD extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class QD extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var eS=GD("plugins"),tS=GD("storeUnsubscribe"),nS=GD("emitter"),rS=GD("preProcessors"),oS=GD("uploaders"),iS=GD("postProcessors"),aS=GD("checkRestrictions"),uS=GD("checkMinNumberOfFiles"),lS=GD("checkRequiredMetaFieldsOnFile"),sS=GD("checkRequiredMetaFields"),cS=GD("showOrLogErrorAndThrow"),dS=GD("assertNewUploadAllowed"),fS=GD("checkAndCreateFileStateObject"),pS=GD("startIfAutoProceed"),hS=GD("addListeners"),vS=GD("updateOnlineStatus"),gS=GD("createUpload"),yS=GD("getUpload"),mS=GD("removeUpload"),bS=GD("runUpload");VD=Symbol.for("uppy test: getPlugins"),WD=Symbol.for("uppy test: createUpload");class wS{constructor(e){Object.defineProperty(this,bS,{value:FS}),Object.defineProperty(this,mS,{value:PS}),Object.defineProperty(this,yS,{value:BS}),Object.defineProperty(this,gS,{value:TS}),Object.defineProperty(this,hS,{value:AS}),Object.defineProperty(this,pS,{value:OS}),Object.defineProperty(this,fS,{value:_S}),Object.defineProperty(this,dS,{value:kS}),Object.defineProperty(this,cS,{value:SS}),Object.defineProperty(this,sS,{value:DS}),Object.defineProperty(this,lS,{value:CS}),Object.defineProperty(this,uS,{value:ES}),Object.defineProperty(this,aS,{value:xS}),Object.defineProperty(this,eS,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,tS,{writable:!0,value:void 0}),Object.defineProperty(this,nS,{writable:!0,value:kD()}),Object.defineProperty(this,rS,{writable:!0,value:new Set}),Object.defineProperty(this,oS,{writable:!0,value:new Set}),Object.defineProperty(this,iS,{writable:!0,value:new Set}),Object.defineProperty(this,vS,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=HD;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new FD,logger:YD,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=ZD),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=_E(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:LD(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),KD(this,tS)[tS]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),KD(this,hS)[hS]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];KD(this,nS)[nS].emit(e,...n)}on(e,t){return KD(this,nS)[nS].on(e,t),this}once(e,t){return KD(this,nS)[nS].once(e,t),this}off(e,t){return KD(this,nS)[nS].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new DD([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){KD(this,rS)[rS].add(e)}removePreProcessor(e){return KD(this,rS)[rS].delete(e)}addPostProcessor(e){KD(this,iS)[iS].add(e)}removePostProcessor(e){return KD(this,iS)[iS].delete(e)}addUploader(e){KD(this,oS)[oS].add(e)}removeUploader(e){return KD(this,oS)[oS].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),l=r.filter((e=>e.isPaused)),s=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),d=o.filter((e=>!e.isPaused)),f=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:l,completeFiles:s,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:u.length>0,isAllComplete:100===t&&s.length===r.length&&0===f.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return KD(this,aS)[aS](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){KD(this,dS)[dS](e);const{files:t}=this.getState();let n=KD(this,fS)[fS](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),KD(this,pS)[pS](),n.id}addFiles(e){KD(this,dS)[dS]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=KD(this,fS)[fS](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&KD(this,pS)[pS](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const l={currentUploads:i,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const s=Object.keys(a);s.forEach((e=>{this.emit("file-removed",a[e],t)})),s.length>5?this.log(`Removed ${s.length} files`):this.log(`Removed files: ${s.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=KD(this,gS)[gS](t,{forceAllowNewUpload:!0});return KD(this,bS)[bS](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=KD(this,gS)[gS]([e],{forceAllowNewUpload:!0});return KD(this,bS)[bS](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in KD(this,eS)[eS]?KD(this,eS)[eS][n.type].push(n):KD(this,eS)[eS][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(KD(this,eS)[eS])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[VD](e){return KD(this,eS)[eS][e]}iteratePlugins(e){Object.values(KD(this,eS)[eS]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=KD(this,eS)[eS][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),KD(this,tS)[tS](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",KD(this,vS)[vS]),window.removeEventListener("offline",KD(this,vS)[vS]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?KD(this,bS)[bS](e):(KD(this,mS)[mS](e),Promise.reject(new Error("Nonexistent upload")))}[WD](){return KD(this,gS)[gS](...arguments)}addResultData(e,t){if(!KD(this,yS)[yS](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=KD(this,eS)[eS].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{KD(this,uS)[uS](t),KD(this,sS)[sS](t)})).catch((e=>{KD(this,cS)[cS](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=KD(this,gS)[gS](r);return KD(this,bS)[bS](o)})).catch((e=>{KD(this,cS)[cS](e,{showInformer:!1})})))}}function xS(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new JD(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t,n){var r=new AD(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,TD);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new JD(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new JD(this.i18n("exceedsSize",{size:OD(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new JD(this.i18n("exceedsSize",{size:OD(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new JD(this.i18n("inferiorSize",{size:OD(r)}))}function ES(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new JD(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function CS(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new JD(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),KD(this,cS)[cS](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function DS(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return KD(this,lS)[lS](t)}));if(t.length)throw new QD(t,`${this.i18n("missingRequiredMetaField")}`)}function SS(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function kS(e){const{allowNewUpload:t}=this.getState();!1===t&&KD(this,cS)[cS](new JD(this.i18n("noMoreFilesAllowed")),{file:e})}function _S(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=ID(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in MD?MD[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=ID(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${ND(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${ND(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new JD(this.i18n("noDuplicates",{fileName:r}));KD(this,cS)[cS](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let s={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:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(s,e);!1===c?KD(this,cS)[cS](new JD("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(s=c);try{const t=Object.keys(e).map((t=>e[t]));KD(this,aS)[aS](s,t)}catch(e){KD(this,cS)[cS](e,{file:s})}return s}function OS(){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 AS(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),KD(this,cS)[cS](e,{throwErr:!1})}else KD(this,cS)[cS](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:KD(this,iS)[iS].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&KD(this,lS)[lS](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",KD(this,vS)[vS]),window.addEventListener("offline",KD(this,vS)[vS]),setTimeout(KD(this,vS)[vS],3e3))}function TS(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=XD();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function BS(e){const{currentUploads:t}=this.getState();return t[e]}function PS(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function FS(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...KD(this,rS)[rS],...KD(this,oS)[oS],...KD(this,iS)[iS]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),KD(this,mS)[mS](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),KD(this,mS)[mS](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}wS.VERSION="2.1.3";var jS=wS,IS=cu((function(e,t){var n,r,o,i,a,u,l,s,c={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,T(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&w(o)))}))}function C(e,t,n,r,o,i,a,u,l,s){var f,p,h,v,m,w,x,E=r&&r.__k||d,C=E.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(v=n.__k[f]=null==(v=t[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=E[f])||h&&v.key==h.key&&v.type===h.type)E[f]=void 0;else for(p=0;p<C;p++){if((h=E[p])&&v.key==h.key&&v.type===h.type){E[p]=void 0;break}h=null}T(e,v,h=h||c,o,i,a,u,l,s),m=v.__e,(p=v.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,v),x.push(p,v.__c||m,v)),null!=m?(null==w&&(w=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=l=D(v,l,e):l=S(e,v,h,E,m,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=b(h))}for(n.__e=w,f=C;f--;)null!=E[f]&&("function"==typeof n.type&&null!=E[f].__e&&E[f].__e==n.__d&&(n.__d=b(r,f+1)),j(E[f],E[f]));if(x)for(f=0;f<x.length;f++)F(x[f],x[++f],x[++f])}function D(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?D(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,u,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,l=0;(u=u.nextSibling)&&l<r.length;l+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function k(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function _(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||k(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||k(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?A:O,i):e.removeEventListener(t,i?A:O,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function A(e){this.l[e.type+!0](r.event?r.event(e):e)}function T(e,t,n,o,i,a,u,l,s){var c,d,f,h,v,g,b,w,x,E,D,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(s=n.__h,l=t.__e=n.__e,t.__h=null,a=[l]),(c=r.__b)&&c(t);try{e:if("function"==typeof S){if(w=t.props,x=(c=S.contextType)&&o[c.__c],E=c?x?x.props.value:c.__:o,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(w,E):(t.__c=d=new m(w,E),d.constructor=S,d.render=I),x&&x.sub(d),d.props=w,d.state||(d.state={}),d.context=E,d.__n=o,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,S.getDerivedStateFromProps(w,d.__s))),h=d.props,v=d.state,f)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&w!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,E),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,E)||t.__v===n.__v){d.props=w,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,E),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,g)}))}d.context=E,d.props=w,d.state=d.__s,(c=r.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=p(p({},o),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(h,v)),D=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(D)?D:[D],t,n,o,i,a,u,l,s),d.base=t.__e,t.__h=null,d.__h.length&&u.push(d),b&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,u,s);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(s||null!=a)&&(t.__e=l,t.__h=!!s,a[a.indexOf(l)]=null),r.__e(e,t,n)}}function B(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,o,i,a,u,l){var s,d,f,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((s=a[y])&&"setAttribute"in s==!!g&&(g?s.localName===g:3===s.nodeType)){e=s,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,l=!1}if(null===g)p===v||l&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),d=(p=r.props||c).dangerouslySetInnerHTML,f=v.dangerouslySetInnerHTML,!l){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||_(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||_(e,i,t[i],n[i],r)}(e,v,p,i,l),f)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),l),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);l||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&_(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&_(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function I(e,t,n){return this.constructor(e,n)}function M(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],T(t,e=(!i&&o||t).__k=v(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),B(u,e)}n=d.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,s=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){M(t,n,e)},t.isValidElement=i,t.options=r,t.render=M,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),MS=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new DD([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function NS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var LS=0;const{render:RS}=IS;var zS=function(e){return"__private_"+LS+++"_"+e}("updateUI");class US extends MS{constructor(){super(...arguments),Object.defineProperty(this,zS,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return NS(this,zS)[zS]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(RS(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),RS(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof US)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=NS(this,zS))[zS])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var HS=US;const{debugLogger:$S}=UD;var VS=jS,WS=jS,KS=HS,qS=MS,GS=$S;VS.Uppy=WS,VS.UIPlugin=KS,VS.BasePlugin=qS,VS.debugLogger=GS;class XS extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var YS=XS,ZS=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new YS(e)}))};class JS extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var QS,ek,tk,nk,rk,ok=JS;function ik(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ak=0;function uk(e){return"__private_"+ak+++"_"+e}async function lk(e){if(401===e.status)throw new ok;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var sk=(ek=uk("getPostResponseFunc"),tk=uk("getUrl"),nk=uk("errorHandler"),rk=QS=class e{constructor(e,t){Object.defineProperty(this,nk,{value:dk}),Object.defineProperty(this,tk,{value:ck}),Object.defineProperty(this,ek,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ik(this,tk)[tk](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>ZS(ik(this,tk)[tk](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(ik(this,ek)[ek](t)).then(lk).catch(ik(this,nk)[nk]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>ZS(ik(this,tk)[tk](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(ik(this,ek)[ek](n)).then(lk).catch(ik(this,nk)[nk](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>ZS(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(ik(this,ek)[ek](n)).then(lk).catch(ik(this,nk)[nk](r,e))}},QS.VERSION="2.0.4",QS.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${QS.VERSION}`},rk);function ck(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function dk(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${ik(this,tk)[tk](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var fk,pk,hk,vk,gk,yk={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let mk,bk;function wk(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xk=0;function Ek(e){return"__private_"+xk+++"_"+e}var Ck,Dk,Sk=(fk=Ek("queued"),pk=Ek("emitter"),hk=Ek("isOpen"),vk=Ek("socket"),gk=Ek("handleMessage"),mk=Symbol.for("uppy test: getSocket"),bk=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,fk,{writable:!0,value:[]}),Object.defineProperty(this,pk,{writable:!0,value:kD()}),Object.defineProperty(this,hk,{writable:!0,value:!1}),Object.defineProperty(this,vk,{writable:!0,value:void 0}),Object.defineProperty(this,gk,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return wk(this,hk)[hk]}[mk](){return wk(this,vk)[vk]}[bk](){return wk(this,fk)[fk]}open(){wk(this,vk)[vk]=new WebSocket(this.opts.target),wk(this,vk)[vk].onopen=()=>{for(wk(this,hk)[hk]=!0;wk(this,fk)[fk].length>0&&wk(this,hk)[hk];){const e=wk(this,fk)[fk].shift();this.send(e.action,e.payload)}},wk(this,vk)[vk].onclose=()=>{wk(this,hk)[hk]=!1},wk(this,vk)[vk].onmessage=wk(this,gk)[gk]}close(){var e;null==(e=wk(this,vk)[vk])||e.close()}send(e,t){wk(this,hk)[hk]?wk(this,vk)[vk].send(JSON.stringify({action:e,payload:t})):wk(this,fk)[fk].push({action:e,payload:t})}on(e,t){wk(this,pk)[pk].on(e,t)}emit(e,t){wk(this,pk)[pk].emit(e,t)}once(e,t){wk(this,pk)[pk].once(e,t)}}),kk={RequestClient:sk,Provider:class extends sk{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(()=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||yk}},Socket:Sk},_k=_E((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Ok(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ak=0;function Tk(e){return"__private_"+Ak+++"_"+e}var Bk=(Ck=Tk("emitter"),Dk=Tk("events"),class{constructor(e){Object.defineProperty(this,Ck,{writable:!0,value:void 0}),Object.defineProperty(this,Dk,{writable:!0,value:[]}),Ok(this,Ck)[Ck]=e}on(e,t){return Ok(this,Dk)[Dk].push([e,t]),Ok(this,Ck)[Ck].on(e,t)}remove(){for(const[e,t]of Ok(this,Dk)[Dk].splice(0))Ok(this,Ck)[Ck].off(e,t)}});function Pk(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fk=0;function jk(e){return"__private_"+Fk+++"_"+e}var Ik=jk("aliveTimer"),Mk=jk("isDone"),Nk=jk("onTimedOut"),Lk=jk("timeout"),Rk=class{constructor(e,t){Object.defineProperty(this,Ik,{writable:!0,value:void 0}),Object.defineProperty(this,Mk,{writable:!0,value:!1}),Object.defineProperty(this,Nk,{writable:!0,value:void 0}),Object.defineProperty(this,Lk,{writable:!0,value:void 0}),Pk(this,Lk)[Lk]=e,Pk(this,Nk)[Nk]=t}progress(){Pk(this,Mk)[Mk]||Pk(this,Lk)[Lk]>0&&(clearTimeout(Pk(this,Ik)[Ik]),Pk(this,Ik)[Ik]=setTimeout(Pk(this,Nk)[Nk],Pk(this,Lk)[Lk]))}done(){Pk(this,Mk)[Mk]||(clearTimeout(Pk(this,Ik)[Ik]),Pk(this,Ik)[Ik]=null,Pk(this,Mk)[Mk]=!0)}};function zk(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Uk=0;function Hk(e){return"__private_"+Uk+++"_"+e}var $k=Hk("activeRequests"),Vk=Hk("queuedHandlers"),Wk=Hk("call"),Kk=Hk("queueNext"),qk=Hk("next"),Gk=Hk("queue"),Xk=Hk("dequeue");function Yk(e){zk(this,$k)[$k]+=1;let t,n=!1;try{t=e()}catch(e){throw zk(this,$k)[$k]-=1,e}return{abort:()=>{n||(n=!0,zk(this,$k)[$k]-=1,t(),zk(this,Kk)[Kk]())},done:()=>{n||(n=!0,zk(this,$k)[$k]-=1,zk(this,Kk)[Kk]())}}}function Zk(){queueMicrotask((()=>zk(this,qk)[qk]()))}function Jk(){if(zk(this,$k)[$k]>=this.limit)return;if(0===zk(this,Vk)[Vk].length)return;const e=zk(this,Vk)[Vk].shift(),t=zk(this,Wk)[Wk](e.fn);e.abort=t.abort,e.done=t.done}function Qk(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{zk(this,Xk)[Xk](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=zk(this,Vk)[Vk].findIndex((e=>n.priority>e.priority));return-1===r?zk(this,Vk)[Vk].push(n):zk(this,Vk)[Vk].splice(r,0,n),n}function e_(e){const t=zk(this,Vk)[Vk].indexOf(e);-1!==t&&zk(this,Vk)[Vk].splice(t,1)}var t_,n_,r_={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Xk,{value:e_}),Object.defineProperty(this,Gk,{value:Qk}),Object.defineProperty(this,qk,{value:Jk}),Object.defineProperty(this,Kk,{value:Zk}),Object.defineProperty(this,Wk,{value:Yk}),Object.defineProperty(this,$k,{writable:!0,value:0}),Object.defineProperty(this,Vk,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return zk(this,$k)[$k]<this.limit?zk(this,Wk)[Wk](e):zk(this,Gk)[Gk](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},o_=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},i_={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:a_}=$D,{Provider:u_,RequestClient:l_,Socket:s_}=kk,{RateLimitedQueue:c_,internalRateLimitedQueue:d_}=r_;function f_(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),o_(e)?(n=new YS(n,e),n):(n.request=e,n)}function p_(e){return e.data.slice(0,e.data.size,e.meta.type)}var h_=(n_=t_=class extends MS{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=i_;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return o_(t)&&(n=new YS(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),d_ in this.opts?this.requests=this.opts[d_]:this.requests=new c_(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=p_(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=p_(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Bk(this.uppy);const a=new Rk(r.timeout,(()=>{i.abort(),l.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=a_();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const s=r.getResponseData(i.responseText,i),c=f_(i,r.getResponseError(i.responseText,i)),d={status:o.target.status,body:s};return this.uppy.emit("upload-error",e,c,d),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=f_(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const l=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{l.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{l.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?u_:l_)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new s_({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Bk(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),l.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),l.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>_k(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const l=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,l=new Rk(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),n(e)})),s=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()})),u.upload.addEventListener("progress",(t=>{l.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(l.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,s(o),n(o)})),u.addEventListener("error",(()=>{l.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return s(e),n(e)})),this.uppy.on("cancel-all",(()=>{l.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[d_]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Cant upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},t_.VERSION="2.0.6",n_),v_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g_(e){var t={exports:{}};return e(t,t.exports),t.exports}var y_,m_,b_=function(e){return e&&e.Math==Math&&e},w_=b_("object"==typeof globalThis&&globalThis)||b_("object"==typeof window&&window)||b_("object"==typeof self&&self)||b_("object"==typeof v_&&v_)||function(){return this}()||Function("return this")(),x_=Object.defineProperty,E_=function(e,t){try{x_(w_,e,{value:t,configurable:!0,writable:!0})}catch(cu){w_[e]=t}return t},C_=w_["__core-js_shared__"]||E_("__core-js_shared__",{}),D_=g_((function(e){(e.exports=function(e,t){return C_[e]||(C_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),S_=Function.prototype,k_=S_.bind,__=S_.call,O_=k_&&k_.bind(__),A_=k_?function(e){return e&&O_(__,e)}:function(e){return e&&function(){return __.apply(e,arguments)}},T_=w_.TypeError,B_=function(e){if(null==e)throw T_("Can't call method on "+e);return e},P_=w_.Object,F_=function(e){return P_(B_(e))},j_=A_({}.hasOwnProperty),I_=Object.hasOwn||function(e,t){return j_(F_(e),t)},M_=0,N_=Math.random(),L_=A_(1..toString),R_=function(e){return"Symbol("+(void 0===e?"":e)+")_"+L_(++M_+N_,36)},z_=function(e){return"function"==typeof e},U_=function(e,t){return arguments.length<2?function(e){return z_(e)?e:void 0}(w_[e]):w_[e]&&w_[e][t]},H_=U_("navigator","userAgent")||"",$_=w_.process,V_=w_.Deno,W_=$_&&$_.versions||V_&&V_.version,K_=W_&&W_.v8;K_&&(m_=(y_=K_.split("."))[0]>0&&y_[0]<4?1:+(y_[0]+y_[1])),!m_&&H_&&(!(y_=H_.match(/Edge\/(\d+)/))||y_[1]>=74)&&(y_=H_.match(/Chrome\/(\d+)/))&&(m_=+y_[1]);var q_=m_,G_=function(e){try{return!!e()}catch(e){return!0}},X_=!!Object.getOwnPropertySymbols&&!G_((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q_&&q_<41})),Y_=X_&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z_=D_("wks"),J_=w_.Symbol,Q_=J_&&J_.for,eO=Y_?J_:J_&&J_.withoutSetter||R_,tO=function(e){if(!I_(Z_,e)||!X_&&"string"!=typeof Z_[e]){var t="Symbol."+e;X_&&I_(J_,e)?Z_[e]=J_[e]:Z_[e]=Y_&&Q_?Q_(t):eO(t)}return Z_[e]},nO={};nO[tO("toStringTag")]="z";var rO="[object z]"===String(nO),oO=!G_((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),iO=function(e){return"object"==typeof e?null!==e:z_(e)},aO=w_.document,uO=iO(aO)&&iO(aO.createElement),lO=function(e){return uO?aO.createElement(e):{}},sO=!oO&&!G_((function(){return 7!=Object.defineProperty(lO("div"),"a",{get:function(){return 7}}).a})),cO=w_.String,dO=w_.TypeError,fO=function(e){if(iO(e))return e;throw dO(cO(e)+" is not an object")},pO=Function.prototype.call,hO=pO.bind?pO.bind(pO):function(){return pO.apply(pO,arguments)},vO=A_({}.isPrototypeOf),gO=w_.Object,yO=Y_?function(e){return"symbol"==typeof e}:function(e){var t=U_("Symbol");return z_(t)&&vO(t.prototype,gO(e))},mO=w_.String,bO=function(e){try{return mO(e)}catch(e){return"Object"}},wO=w_.TypeError,xO=function(e){if(z_(e))return e;throw wO(bO(e)+" is not a function")},EO=function(e,t){var n=e[t];return null==n?void 0:xO(n)},CO=w_.TypeError,DO=w_.TypeError,SO=tO("toPrimitive"),kO=function(e){var t=function(e){if(!iO(e)||yO(e))return e;var t,n=EO(e,SO);if(n){if(t=hO(n,e,"string"),!iO(t)||yO(t))return t;throw DO("Can't convert object to primitive value")}return function(e){var t,n;if(z_(t=e.toString)&&!iO(n=hO(t,e)))return n;if(z_(t=e.valueOf)&&!iO(n=hO(t,e)))return n;throw CO("Can't convert object to primitive value")}(e)}(e);return yO(t)?t:t+""},_O=w_.TypeError,OO=Object.defineProperty,AO={f:oO?OO:function(e,t,n){if(fO(e),t=kO(t),fO(n),sO)try{return OO(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _O("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},TO=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},BO=oO?function(e,t,n){return AO.f(e,t,TO(1,n))}:function(e,t,n){return e[t]=n,e},PO=A_(Function.toString);z_(C_.inspectSource)||(C_.inspectSource=function(e){return PO(e)});var FO,jO,IO,MO=C_.inspectSource,NO=w_.WeakMap,LO=z_(NO)&&/native code/.test(MO(NO)),RO=D_("keys"),zO=function(e){return RO[e]||(RO[e]=R_(e))},UO={},HO=w_.TypeError,$O=w_.WeakMap;if(LO||C_.state){var VO=C_.state||(C_.state=new $O),WO=A_(VO.get),KO=A_(VO.has),qO=A_(VO.set);FO=function(e,t){if(KO(VO,e))throw new HO("Object already initialized");return t.facade=e,qO(VO,e,t),t},jO=function(e){return WO(VO,e)||{}},IO=function(e){return KO(VO,e)}}else{var GO=zO("state");UO[GO]=!0,FO=function(e,t){if(I_(e,GO))throw new HO("Object already initialized");return t.facade=e,BO(e,GO,t),t},jO=function(e){return I_(e,GO)?e[GO]:{}},IO=function(e){return I_(e,GO)}}var XO={set:FO,get:jO,has:IO,enforce:function(e){return IO(e)?jO(e):FO(e,{})},getterFor:function(e){return function(t){var n;if(!iO(t)||(n=jO(t)).type!==e)throw HO("Incompatible receiver, "+e+" required");return n}}},YO=Function.prototype,ZO=oO&&Object.getOwnPropertyDescriptor,JO=I_(YO,"name"),QO={EXISTS:JO,PROPER:JO&&"something"===function(){}.name,CONFIGURABLE:JO&&(!oO||oO&&ZO(YO,"name").configurable)},eA=g_((function(e){var t=QO.CONFIGURABLE,n=XO.get,r=XO.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;z_(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!I_(i,"name")||t&&i.name!==d)&&BO(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==w_?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:BO(e,n,i)):s?e[n]=i:E_(n,i)})(Function.prototype,"toString",(function(){return z_(this)&&n(this).source||MO(this)}))})),tA=A_({}.toString),nA=A_("".slice),rA=function(e){return nA(tA(e),8,-1)},oA=tO("toStringTag"),iA=w_.Object,aA="Arguments"==rA(function(){return arguments}()),uA=rO?rA:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=iA(e),oA))?n:aA?rA(t):"Object"==(r=rA(t))&&z_(t.callee)?"Arguments":r},lA=rO?{}.toString:function(){return"[object "+uA(this)+"]"};rO||eA(Object.prototype,"toString",lA,{unsafe:!0});var sA={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},cA=lO("span").classList,dA=cA&&cA.constructor&&cA.constructor.prototype,fA=dA===Object.prototype?void 0:dA,pA=A_(A_.bind),hA=function(e,t){return xO(e),void 0===t?e:pA?pA(e,t):function(){return e.apply(t,arguments)}},vA=w_.Object,gA=A_("".split),yA=G_((function(){return!vA("z").propertyIsEnumerable(0)}))?function(e){return"String"==rA(e)?gA(e,""):vA(e)}:vA,mA=Math.ceil,bA=Math.floor,wA=function(e){var t=+e;return t!=t||0===t?0:(t>0?bA:mA)(t)},xA=Math.min,EA=function(e){return e>0?xA(wA(e),9007199254740991):0},CA=function(e){return EA(e.length)},DA=Array.isArray||function(e){return"Array"==rA(e)},SA=function(){},kA=[],_A=U_("Reflect","construct"),OA=/^\s*(?:class|function)\b/,AA=A_(OA.exec),TA=!OA.exec(SA),BA=function(e){if(!z_(e))return!1;try{return _A(SA,kA,e),!0}catch(e){return!1}},PA=!_A||G_((function(){var e;return BA(BA.call)||!BA(Object)||!BA((function(){e=!0}))||e}))?function(e){if(!z_(e))return!1;switch(uA(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TA||!!AA(OA,MO(e))}:BA,FA=tO("species"),jA=w_.Array,IA=function(e,t){return new(function(e){var t;return DA(e)&&(t=e.constructor,(PA(t)&&(t===jA||DA(t.prototype))||iO(t)&&null===(t=t[FA]))&&(t=void 0)),void 0===t?jA:t}(e))(0===t?0:t)},MA=A_([].push),NA=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=F_(l),v=yA(h),g=hA(s,c),y=CA(v),m=0,b=d||IA,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:MA(w,f)}else switch(e){case 4:return!1;case 7:MA(w,f)}return i?-1:r||o?o:w}},LA={forEach:NA(0),map:NA(1),filter:NA(2),find:NA(5),findIndex:NA(6)},RA=function(e,t){var n=[][e];return!!n&&G_((function(){n.call(null,t||function(){throw 1},1)}))},zA=LA.forEach,UA=RA("forEach")?[].forEach:function(e){return zA(this,e,arguments.length>1?arguments[1]:void 0)},HA=function(e){if(e&&e.forEach!==UA)try{BO(e,"forEach",UA)}catch(t){e.forEach=UA}};for(var $A in sA)sA[$A]&&HA(w_[$A]&&w_[$A].prototype);HA(fA);var VA={}.propertyIsEnumerable,WA=Object.getOwnPropertyDescriptor,KA=WA&&!VA.call({1:2},1)?function(e){var t=WA(this,e);return!!t&&t.enumerable}:VA,qA={f:KA},GA=function(e){return yA(B_(e))},XA=Object.getOwnPropertyDescriptor,YA={f:oO?XA:function(e,t){if(e=GA(e),t=kO(t),sO)try{return XA(e,t)}catch(e){}if(I_(e,t))return TO(!hO(qA.f,e,t),e[t])}},ZA=Math.max,JA=Math.min,QA=function(e,t){var n=wA(e);return n<0?ZA(n+t,0):JA(n,t)},eT=function(e){return function(t,n,r){var o,i=GA(t),a=CA(i),u=QA(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}},tT={includes:eT(!0),indexOf:eT(!1)},nT=tT.indexOf,rT=A_([].push),oT=function(e,t){var n,r=GA(e),o=0,i=[];for(n in r)!I_(UO,n)&&I_(r,n)&&rT(i,n);for(;t.length>o;)I_(r,n=t[o++])&&(~nT(i,n)||rT(i,n));return i},iT=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aT=iT.concat("length","prototype"),uT={f:Object.getOwnPropertyNames||function(e){return oT(e,aT)}},lT={f:Object.getOwnPropertySymbols},sT=A_([].concat),cT=U_("Reflect","ownKeys")||function(e){var t=uT.f(fO(e)),n=lT.f;return n?sT(t,n(e)):t},dT=function(e,t){for(var n=cT(t),r=AO.f,o=YA.f,i=0;i<n.length;i++){var a=n[i];I_(e,a)||r(e,a,o(t,a))}},fT=/#|\.prototype\./,pT=function(e,t){var n=vT[hT(e)];return n==yT||n!=gT&&(z_(t)?G_(t):!!t)},hT=pT.normalize=function(e){return String(e).replace(fT,".").toLowerCase()},vT=pT.data={},gT=pT.NATIVE="N",yT=pT.POLYFILL="P",mT=pT,bT=YA.f,wT=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?w_:s?w_[u]||E_(u,{}):(w_[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=bT(n,r))&&a.value:n[r],!mT(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;dT(i,o)}(e.sham||o&&o.sham)&&BO(i,"sham",!0),eA(n,r,i,e)}},xT=Object.keys||function(e){return oT(e,iT)},ET=G_((function(){xT(1)}));
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function CT(e){return"[object Object]"===Object.prototype.toString.call(e)}wT({target:"Object",stat:!0,forced:ET},{keys:function(e){return xT(F_(e))}});var DT={isHistory(e){return!1!==CT(t=e)&&(void 0===(n=t.constructor)||!1!==CT(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Eb.isOperationList(e.redos[0]))&&(0===e.undos.length||Eb.isOperationList(e.undos[0]));var t,n,r}},ST=new WeakMap,kT=new WeakMap,_T={isHistoryEditor:e=>DT.isHistory(e.history)&&hb.isEditor(e),isMerging:e=>kT.get(e),isSaving:e=>ST.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=_T.isMerging(e);kT.set(e,!1),t(),kT.set(e,n)},withoutSaving(e,t){var n=_T.isSaving(e);ST.set(e,!1),t(),ST.set(e,n)}},OT=w_.String,AT=function(e){if("Symbol"===uA(e))throw TypeError("Cannot convert a Symbol value to a string");return OT(e)},TT=function(){var e=fO(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},BT=QO.PROPER,PT=RegExp.prototype,FT=PT.toString,jT=A_(TT),IT=G_((function(){return"/a/b"!=FT.call({source:"a",flags:"b"})})),MT=BT&&"toString"!=FT.name;(IT||MT)&&eA(RegExp.prototype,"toString",(function(){var e=fO(this),t=AT(e.source),n=e.flags;return"/"+t+"/"+AT(void 0===n&&vO(PT,e)&&!("flags"in PT)?jT(e):n)}),{unsafe:!0});var NT,LT=oO?Object.defineProperties:function(e,t){fO(e);for(var n,r=GA(t),o=xT(t),i=o.length,a=0;i>a;)AO.f(e,n=o[a++],r[n]);return e},RT=U_("document","documentElement"),zT=zO("IE_PROTO"),UT=function(){},HT=function(e){return"<script>"+e+"<\/script>"},$T=function(e){e.write(HT("")),e.close();var t=e.parentWindow.Object;return e=null,t},VT=function(){try{NT=new ActiveXObject("htmlfile")}catch(e){}var e,t;VT="undefined"!=typeof document?document.domain&&NT?$T(NT):((t=lO("iframe")).style.display="none",RT.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HT("document.F=Object")),e.close(),e.F):$T(NT);for(var n=iT.length;n--;)delete VT.prototype[iT[n]];return VT()};UO[zT]=!0;var WT=Object.create||function(e,t){var n;return null!==e?(UT.prototype=fO(e),n=new UT,UT.prototype=null,n[zT]=e):n=VT(),void 0===t?n:LT(n,t)},KT=tO("unscopables"),qT=Array.prototype;null==qT[KT]&&AO.f(qT,KT,{configurable:!0,value:WT(null)});var GT=function(e){qT[KT][e]=!0},XT=tT.includes;wT({target:"Array",proto:!0},{includes:function(e){return XT(this,e,arguments.length>1?arguments[1]:void 0)}}),GT("includes");var YT=tO("match"),ZT=function(e){var t;return iO(e)&&(void 0!==(t=e[YT])?!!t:"RegExp"==rA(e))},JT=w_.TypeError,QT=function(e){if(ZT(e))throw JT("The method doesn't accept regular expressions");return e},eB=tO("match"),tB=function(e){var t=/./;try{"/./"[e](t)}catch(cu){try{return t[eB]=!1,"/./"[e](t)}catch(e){}}return!1},nB=A_("".indexOf);wT({target:"String",proto:!0,forced:!tB("includes")},{includes:function(e){return!!~nB(AT(B_(this)),AT(QT(e)),arguments.length>1?arguments[1]:void 0)}});var rB=/"/g,oB=A_("".replace);wT({target:"String",proto:!0,forced:G_((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=AT(B_(this)),r="<a",(r+=' name="'+oB(AT(t),rB,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var iB=function(e,t,n){var r,o;fO(e);try{if(!(r=EO(e,"return"))){if("throw"===t)throw n;return n}r=hO(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return fO(r),n},aB=function(e,t,n,r){try{return r?t(fO(n)[0],n[1]):t(n)}catch(t){iB(e,"throw",t)}},uB={},lB=tO("iterator"),sB=Array.prototype,cB=function(e){return void 0!==e&&(uB.Array===e||sB[lB]===e)},dB=function(e,t,n){var r=kO(t);r in e?AO.f(e,r,TO(0,n)):e[r]=n},fB=tO("iterator"),pB=function(e){if(null!=e)return EO(e,fB)||EO(e,"@@iterator")||uB[uA(e)]},hB=w_.TypeError,vB=function(e,t){var n=arguments.length<2?pB(e):t;if(xO(n))return fO(hO(n,e));throw hB(bO(e)+" is not iterable")},gB=w_.Array,yB=tO("iterator"),mB=!1;try{var bB=0,wB={next:function(){return{done:!!bB++}},return:function(){mB=!0}};wB[yB]=function(){return this},Array.from(wB,(function(){throw 2}))}catch($j){}var xB=function(e,t){if(!mB)return!1;var n=!1;try{var r={};r[yB]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},EB=!xB((function(e){Array.from(e)}));wT({target:"Array",stat:!0,forced:EB},{from:function(e){var t=F_(e),n=PA(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=hA(o,r>2?arguments[2]:void 0));var a,u,l,s,c,d,f=pB(t),p=0;if(!f||this==gB&&cB(f))for(a=CA(t),u=n?new this(a):gB(a);a>p;p++)d=i?o(t[p],p):t[p],dB(u,p,d);else for(c=(s=vB(t,f)).next,u=n?new this:[];!(l=hO(c,s)).done;p++)d=i?aB(s,o,[l.value,p],!0):l.value,dB(u,p,d);return u.length=p,u}});var CB,DB,SB,kB=A_("".charAt),_B=A_("".charCodeAt),OB=A_("".slice),AB={charAt:function(e){return function(t,n){var r,o,i=AT(B_(t)),a=wA(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=_B(i,a))<55296||r>56319||a+1===u||(o=_B(i,a+1))<56320||o>57343?e?kB(i,a):r:e?OB(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},TB=!G_((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),BB=zO("IE_PROTO"),PB=w_.Object,FB=PB.prototype,jB=TB?PB.getPrototypeOf:function(e){var t=F_(e);if(I_(t,BB))return t[BB];var n=t.constructor;return z_(n)&&t instanceof n?n.prototype:t instanceof PB?FB:null},IB=tO("iterator"),MB=!1;[].keys&&("next"in(SB=[].keys())?(DB=jB(jB(SB)))!==Object.prototype&&(CB=DB):MB=!0);var NB=null==CB||G_((function(){var e={};return CB[IB].call(e)!==e}));NB&&(CB={}),z_(CB[IB])||eA(CB,IB,(function(){return this}));var LB={IteratorPrototype:CB,BUGGY_SAFARI_ITERATORS:MB},RB=AO.f,zB=tO("toStringTag"),UB=function(e,t,n){e&&!I_(e=n?e:e.prototype,zB)&&RB(e,zB,{configurable:!0,value:t})},HB=LB.IteratorPrototype,$B=function(){return this},VB=w_.String,WB=w_.TypeError,KB=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=A_(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return fO(n),function(e){if("object"==typeof e||z_(e))return e;throw WB("Can't set "+VB(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),qB=QO.PROPER,GB=QO.CONFIGURABLE,XB=LB.IteratorPrototype,YB=LB.BUGGY_SAFARI_ITERATORS,ZB=tO("iterator"),JB=function(){return this},QB=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=WT(HB,{next:TO(1,n)}),UB(e,r,!1),uB[r]=$B}(n,t,r);var u,l,s,c=function(e){if(e===o&&v)return v;if(!YB&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,p=e.prototype,h=p[ZB]||p["@@iterator"]||o&&p[o],v=!YB&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=jB(g.call(new e)))!==Object.prototype&&u.next&&(jB(u)!==XB&&(KB?KB(u,XB):z_(u[ZB])||eA(u,ZB,JB)),UB(u,d,!0)),qB&&"values"==o&&h&&"values"!==h.name&&(GB?BO(p,"name","values"):(f=!0,v=function(){return hO(h,this)})),o)if(l={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(s in l)(YB||f||!(s in p))&&eA(p,s,l[s]);else wT({target:t,proto:!0,forced:YB||f},l);return p[ZB]!==v&&eA(p,ZB,v,{name:o}),uB[t]=v,l},eP=AB.charAt,tP=XO.set,nP=XO.getterFor("String Iterator");QB(String,"String",(function(e){tP(this,{type:"String Iterator",string:AT(e),index:0})}),(function(){var e,t=nP(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=eP(n,r),t.index+=e.length,{value:e,done:!1})}));var rP,oP=YA.f,iP=A_("".endsWith),aP=A_("".slice),uP=Math.min,lP=tB("endsWith"),sP=!(lP||(rP=oP(String.prototype,"endsWith"),!rP||rP.writable));wT({target:"String",proto:!0,forced:!sP&&!lP},{endsWith:function(e){var t=AT(B_(this));QT(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:uP(EA(n),r),i=AT(e);return iP?iP(t,i,o):aP(t,o-i.length,o)===i}});var cP=A_([].join),dP=yA!=Object,fP=RA("join",",");wT({target:"Array",proto:!0,forced:dP||!fP},{join:function(e){return cP(GA(this),void 0===e?",":e)}});var pP=tO("species"),hP=function(e){return q_>=51||!G_((function(){var t=[];return(t.constructor={})[pP]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},vP=LA.map,gP=hP("map");wT({target:"Array",proto:!0,forced:!gP},{map:function(e){return vP(this,e,arguments.length>1?arguments[1]:void 0)}});var yP=w_.RegExp,mP=G_((function(){var e=yP("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),bP=mP||G_((function(){return!yP("a","y").sticky})),wP={BROKEN_CARET:mP||G_((function(){var e=yP("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:bP,UNSUPPORTED_Y:mP},xP=w_.RegExp,EP=G_((function(){var e=xP(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),CP=w_.RegExp,DP=G_((function(){var e=CP("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),SP=XO.get,kP=D_("native-string-replace",String.prototype.replace),_P=RegExp.prototype.exec,OP=_P,AP=A_("".charAt),TP=A_("".indexOf),BP=A_("".replace),PP=A_("".slice),FP=function(){var e=/a/,t=/b*/g;return hO(_P,e,"a"),hO(_P,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),jP=wP.BROKEN_CARET,IP=void 0!==/()??/.exec("")[1];(FP||IP||jP||EP||DP)&&(OP=function(e){var t,n,r,o,i,a,u,l=this,s=SP(l),c=AT(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=hO(OP,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=jP&&l.sticky,h=hO(TT,l),v=l.source,g=0,y=c;if(p&&(h=BP(h,"y",""),-1===TP(h,"g")&&(h+="g"),y=PP(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==AP(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),IP&&(n=new RegExp("^"+v+"$(?!\\s)",h)),FP&&(r=l.lastIndex),o=hO(_P,p?n:l,y),p?o?(o.input=PP(o.input,g),o[0]=PP(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:FP&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),IP&&o&&o.length>1&&hO(kP,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=WT(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var MP=OP;wT({target:"RegExp",proto:!0,forced:/./.exec!==MP},{exec:MP});var NP=Function.prototype,LP=NP.apply,RP=NP.bind,zP=NP.call,UP="object"==typeof Reflect&&Reflect.apply||(RP?zP.bind(LP):function(){return zP.apply(LP,arguments)}),HP=tO("species"),$P=RegExp.prototype,VP=function(e,t,n,r){var o=tO(e),i=!G_((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!G_((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[HP]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=A_(/./[o]),l=t(o,""[e],(function(e,t,n,r,o){var a=A_(e),l=t.exec;return l===MP||l===$P.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));eA(String.prototype,e,l[0]),eA($P,o,l[1])}r&&BO($P[o],"sham",!0)},WP=AB.charAt,KP=function(e,t,n){return t+(n?WP(e,t).length:1)},qP=Math.floor,GP=A_("".charAt),XP=A_("".replace),YP=A_("".slice),ZP=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JP=/\$([$&'`]|\d{1,2})/g,QP=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,l=JP;return void 0!==o&&(o=F_(o),l=ZP),XP(i,l,(function(i,l){var s;switch(GP(l,0)){case"$":return"$";case"&":return e;case"`":return YP(t,0,n);case"'":return YP(t,a);case"<":s=o[YP(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>u){var d=qP(c/10);return 0===d?i:d<=u?void 0===r[d-1]?GP(l,1):r[d-1]+GP(l,1):i}s=r[c-1]}return void 0===s?"":s}))},eF=w_.TypeError,tF=function(e,t){var n=e.exec;if(z_(n)){var r=hO(n,e,t);return null!==r&&fO(r),r}if("RegExp"===rA(e))return hO(MP,e,t);throw eF("RegExp#exec called on incompatible receiver")},nF=tO("replace"),rF=Math.max,oF=Math.min,iF=A_([].concat),aF=A_([].push),uF=A_("".indexOf),lF=A_("".slice),sF="$0"==="a".replace(/./,"$0"),cF=!!/./[nF]&&""===/./[nF]("a","$0");VP("replace",(function(e,t,n){var r=cF?"$":"$0";return[function(e,n){var r=B_(this),o=null==e?void 0:EO(e,nF);return o?hO(o,e,r,n):hO(t,AT(r),e,n)},function(e,o){var i=fO(this),a=AT(e);if("string"==typeof o&&-1===uF(o,r)&&-1===uF(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var l=z_(o);l||(o=AT(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var f=tF(i,a);if(null===f)break;if(aF(d,f),!s)break;""===AT(f[0])&&(i.lastIndex=KP(a,EA(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<d.length;g++){for(var y=AT((f=d[g])[0]),m=rF(oF(wA(f.index),a.length),0),b=[],w=1;w<f.length;w++)aF(b,void 0===(p=f[w])?p:String(p));var x=f.groups;if(l){var E=iF([y],b,m,a);void 0!==x&&aF(E,x);var C=AT(UP(o,void 0,E))}else C=QP(y,a,m,b,x,o);m>=v&&(h+=lF(a,v,m)+C,v=m+y.length)}return h+lF(a,v)}]}),!!G_((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!sF||cF);
/*! *****************************************************************************
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 dF=function(e,t){return dF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},dF(e,t)};function fF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}dF(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var pF=function(){return pF=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},pF.apply(this,arguments)};function hF(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vF(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gF(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var yF=0,mF=function(){this.id=""+yF++},bF=XO.set,wF=XO.getterFor("Array Iterator"),xF=QB(Array,"Array",(function(e,t){bF(this,{type:"Array Iterator",target:GA(e),index:0,kind:t})}),(function(){var e=wF(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");uB.Arguments=uB.Array,GT("keys"),GT("values"),GT("entries");var EF=function(e,t,n){for(var r in t)eA(e,r,t[r],n);return e},CF=w_.Array,DF=Math.max,SF=function(e,t,n){for(var r=CA(e),o=QA(t,r),i=QA(void 0===n?r:n,r),a=CF(DF(i-o,0)),u=0;o<i;o++,u++)dB(a,u,e[o]);return a.length=u,a},kF=uT.f,_F="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],OF={f:function(e){return _F&&"Window"==rA(e)?function(e){try{return kF(e)}catch(e){return SF(_F)}}(e):kF(GA(e))}},AF=G_((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),TF=Object.isExtensible,BF=G_((function(){TF(1)}))||AF?function(e){return!!iO(e)&&(!AF||"ArrayBuffer"!=rA(e))&&(!TF||TF(e))}:TF,PF=!G_((function(){return Object.isExtensible(Object.preventExtensions({}))})),FF=g_((function(e){var t=AO.f,n=!1,r=R_("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=uT.f,t=A_([].splice),o={};o[r]=1,e(o).length&&(uT.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},wT({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:OF.f}))},fastKey:function(e,t){if(!iO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!I_(e,r)){if(!BF(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!I_(e,r)){if(!BF(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return PF&&n&&BF(e)&&!I_(e,r)&&i(e),e}};UO[r]=!0})),jF=w_.TypeError,IF=function(e,t){this.stopped=e,this.result=t},MF=IF.prototype,NF=function(e,t,n){var r,o,i,a,u,l,s,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=hA(t,c),v=function(e){return r&&iB(r,"normal",e),new IF(!0,e)},g=function(e){return d?(fO(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(f)r=e;else{if(!(o=pB(e)))throw jF(bO(e)+" is not iterable");if(cB(o)){for(i=0,a=CA(e);a>i;i++)if((u=g(e[i]))&&vO(MF,u))return u;return new IF(!1)}r=vB(e,o)}for(l=r.next;!(s=hO(l,r)).done;){try{u=g(s.value)}catch(e){iB(r,"throw",e)}if("object"==typeof u&&u&&vO(MF,u))return u}return new IF(!1)},LF=w_.TypeError,RF=function(e,t){if(vO(t,e))return e;throw LF("Incorrect invocation")},zF=function(e,t,n){var r,o;return KB&&z_(r=t.constructor)&&r!==n&&iO(o=r.prototype)&&o!==n.prototype&&KB(e,o),e},UF=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=w_[e],u=a&&a.prototype,l=a,s={},c=function(e){var t=A_(u[e]);eA(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!iO(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!iO(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!iO(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(mT(e,!z_(a)||!(o||u.forEach&&!G_((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,i),FF.enable();else if(mT(e,!0)){var d=new l,f=d[i](o?{}:-0,1)!=d,p=G_((function(){d.has(1)})),h=xB((function(e){new a(e)})),v=!o&&G_((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((l=t((function(e,t){RF(e,u);var n=zF(new a,e,l);return null!=t&&NF(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||f)&&c(i),o&&u.clear&&delete u.clear}return s[e]=l,wT({global:!0,forced:l!=a},s),UB(l,e),o||n.setStrong(l,e,r),l},HF=FF.getWeakData,$F=XO.set,VF=XO.getterFor,WF=LA.find,KF=LA.findIndex,qF=A_([].splice),GF=0,XF=function(e){return e.frozen||(e.frozen=new YF)},YF=function(){this.entries=[]},ZF=function(e,t){return WF(e.entries,(function(e){return e[0]===t}))};YF.prototype={get:function(e){var t=ZF(this,e);if(t)return t[1]},has:function(e){return!!ZF(this,e)},set:function(e,t){var n=ZF(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=KF(this.entries,(function(t){return t[0]===e}));return~t&&qF(this.entries,t,1),!!~t}};var JF,QF={getConstructor:function(e,t,n,r){var o=e((function(e,o){RF(e,i),$F(e,{type:t,id:GF++,frozen:void 0}),null!=o&&NF(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=VF(t),u=function(e,t,n){var r=a(e),o=HF(fO(t),!0);return!0===o?XF(r).set(t,n):o[r.id]=n,e};return EF(i,{delete:function(e){var t=a(this);if(!iO(e))return!1;var n=HF(e);return!0===n?XF(t).delete(e):n&&I_(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!iO(e))return!1;var n=HF(e);return!0===n?XF(t).has(e):n&&I_(n,t.id)}}),EF(i,n?{get:function(e){var t=a(this);if(iO(e)){var n=HF(e);return!0===n?XF(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ej=XO.enforce,tj=!w_.ActiveXObject&&"ActiveXObject"in w_,nj=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},rj=UF("WeakMap",nj,QF);if(LO&&tj){JF=QF.getConstructor(nj,"WeakMap",!0),FF.enable();var oj=rj.prototype,ij=A_(oj.delete),aj=A_(oj.has),uj=A_(oj.get),lj=A_(oj.set);EF(oj,{delete:function(e){if(iO(e)&&!BF(e)){var t=ej(this);return t.frozen||(t.frozen=new JF),ij(this,e)||t.frozen.delete(e)}return ij(this,e)},has:function(e){if(iO(e)&&!BF(e)){var t=ej(this);return t.frozen||(t.frozen=new JF),aj(this,e)||t.frozen.has(e)}return aj(this,e)},get:function(e){if(iO(e)&&!BF(e)){var t=ej(this);return t.frozen||(t.frozen=new JF),aj(this,e)?uj(this,e):t.frozen.get(e)}return uj(this,e)},set:function(e,t){if(iO(e)&&!BF(e)){var n=ej(this);n.frozen||(n.frozen=new JF),aj(this,e)?lj(this,e,t):n.frozen.set(e,t)}else lj(this,e,t);return this}})}var sj=tO("iterator"),cj=tO("toStringTag"),dj=xF.values,fj=function(e,t){if(e){if(e[sj]!==dj)try{BO(e,sj,dj)}catch(t){e[sj]=dj}if(e[cj]||BO(e,cj,t),sA[t])for(var n in xF)if(e[n]!==xF[n])try{BO(e,n,xF[n])}catch(t){e[n]=xF[n]}}};for(var pj in sA)fj(w_[pj]&&w_[pj].prototype,pj);fj(fA,"DOMTokenList");var hj=new WeakMap,vj=new WeakMap,gj=new WeakMap,yj=new WeakMap,mj=new WeakMap,bj=new WeakMap,wj=new WeakMap,xj=new WeakMap,Ej=new WeakMap,Cj=new WeakMap,Dj=new WeakMap,Sj=new WeakMap,kj=new WeakMap,_j=new WeakMap,Oj=new WeakMap,Aj=new WeakMap,Tj=new WeakMap,Bj=new WeakMap,Pj=new WeakMap,Fj=new WeakMap,jj=new WeakMap,Ij=new WeakMap,Mj=new WeakMap,Nj=new WeakMap,Lj=new WeakMap,Rj=LA.find,zj=!0;"find"in[]&&Array(1).find((function(){zj=!1})),wT({target:"Array",proto:!0,forced:zj},{find:function(e){return Rj(this,e,arguments.length>1?arguments[1]:void 0)}}),GT("find"),wT({global:!0},{globalThis:w_});const Uj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Bx&&(gx.fn.css=Bx),Nx&&(gx.fn.append=Nx),yx&&(gx.fn.addClass=yx),mx&&(gx.fn.removeClass=mx),bx&&(gx.fn.hasClass=bx),Dx&&(gx.fn.on=Dx),Gx&&(gx.fn.focus=Gx),wx&&(gx.fn.attr=wx),xx&&(gx.fn.removeAttr=xx),Ax&&(gx.fn.hide=Ax),Tx&&(gx.fn.show=Tx),Ox&&(gx.fn.offset=Ox),kx&&(gx.fn.width=kx),_x&&(gx.fn.height=_x),Rx&&(gx.fn.parent=Rx),zx&&(gx.fn.parents=zx),Mx&&(gx.fn.is=Mx),Ex&&(gx.fn.dataset=Ex),Cx&&(gx.fn.val=Cx),Ix&&(gx.fn.text=Ix),jx&&(gx.fn.html=jx),Hx&&(gx.fn.children=Hx),$x&&(gx.fn.remove=$x),Ux&&(gx.fn.find=Ux),Px&&(gx.fn.each=Px),Vx&&(gx.fn.empty=Vx);var Hj,$j,Vj=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Wj=function(e){return Kj(e)&&1===e.nodeType},Kj=function(e){var t=Vj(e);return!!t&&e instanceof t.Node},qj=function(e){var t=e&&e.anchorNode&&Vj(e.anchorNode);return!!t&&e instanceof t.Selection},Gj=function(e){return Kj(e)&&3===e.nodeType},Xj=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},Yj=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,l=!1;(Kj(r=i)&&8===r.nodeType||Wj(i)&&0===i.childNodes.length||Wj(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!l);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Zj=function(e,t,n){return vF(Yj(e,t,n),1)[0]},Jj=function e(t){var n,r,o="";if(Gj(t)&&t.nodeValue)return t.nodeValue;if(Wj(t)){try{for(var i=hF(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function Qj(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||Qj(o,t)}}function eI(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Hj.ELEMENT_NODE?"":t.tagName.toLowerCase()}($j=Hj||(Hj={}))[$j.ELEMENT_NODE=1]="ELEMENT_NODE",$j[$j.TEXT_NODE=3]="TEXT_NODE",$j[$j.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",$j[$j.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",$j[$j.COMMENT_NODE=8]="COMMENT_NODE",$j[$j.DOCUMENT_NODE=9]="DOCUMENT_NODE",$j[$j.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",$j[$j.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var tI="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),nI="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),rI="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),oI="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),iI="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),aI="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),uI=!iI&&!oI&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,lI={getWindow:function(e){var t=jj.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=Fj.get(t);return n||(n=new mF,Fj.set(t,n)),n},setNewKey:function(e){var t=new mF;Fj.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Oj.get(r);if(null==o){if(hb.isEditor(r))return n;break}var i=_j.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=lI.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return Oj.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=lI.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[lI.findPath(e,t)[0]];return bb.get(e,n)},toDOMNode:function(e,t){var n;if(hb.isEditor(t))n=Aj.get(e);else{var r=lI.findKey(e,t);n=Bj.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=lI.toDOMNode(e,e);try{r=Wj(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}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=Bb.isBackward(t),i=lI.toDOMPoint(e,n),a=Bb.isCollapsed(t)?i:lI.toDOMPoint(e,r),u=lI.getWindow(e).document.createRange(),l=vF(o?a:i,2),s=l[0],c=l[1],d=vF(o?i:a,2),f=d[0],p=d[1],h=!!(Wj(s)?s:s.parentElement).getAttribute("data-slate-zero-width"),v=!!(Wj(f)?f:f.parentElement).getAttribute("data-slate-zero-width");return u.setStart(s,h?1:c),u.setEnd(f,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=vF(hb.node(e,t.path),1)[0],a=lI.toDOMNode(e,i);hb.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var s=hF(u),c=s.next();!c.done;c=s.next()){var d=c.value,f=d.childNodes[0];if(null!=f&&null!=f.textContent){var p=f.textContent.length,h=d.getAttribute("data-slate-length"),v=l+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[f,Math.min(p,Math.max(0,t.offset-l))];break}l=v}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}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=Wj(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Tj.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=lI.toSlateNode(e,t.target),u=lI.findPath(e,a);if(hb.isVoid(e,a)){var l=o.getBoundingClientRect(),s=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=hb.point(e,u,{edge:s?"start":"end"}),d=s?hb.before(e,c):hb.after(e,c);if(d)return hb.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)i=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((i=f.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 lI.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,l=n.exactMatch,s=n.suppressThrow;if((qj(t)?t.anchorNode:t.startContainer)&&(qj(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=aI&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=lI.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:s});if(!c)return null;var d=u?c:lI.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:s});if(!d)return null;var f={anchor:c,focus:d};return Bb.isExpanded(f)&&Bb.isForward(f)&&Wj(i)&&hb.void(e,{at:f.focus,mode:"highest"})&&(f=hb.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=vF(o?t:function(e){var t,n=vF(e,2),r=n[0],o=n[1];if(Wj(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=vF(Yj(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Wj(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=Zj(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],l=a[1],s=u.parentNode,c=null,d=0;if(s){var f=s.closest('[data-slate-void="true"]'),p=s.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var v=lI.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,l);var g=v.cloneContents();gF(gF([],vF(nx(g.querySelectorAll("[data-slate-zero-width]")))),vF(nx(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),d=g.textContent.length,h=c}else f&&((p=f.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),d=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){d-=e.textContent.length}))):d=1);h&&d===h.textContent.length&&(s.hasAttribute("data-slate-zero-width")||nI&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&d--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=lI.toSlateNode(e,c);return{path:lI.findPath(e,y),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return hb.hasPath(e,n.path)&&hb.hasPath(e,r.path)},getNodeType:function(e){return lb.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return bb.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=hb.nodes(e,{universal:!0});try{for(var i=hF(o),a=i.next();!a.done;a=i.next()){var u=vF(a.value,1)[0];lb.isElement(u)&&r.push(u)}}catch(e){t={error:e}}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=vF(hb.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=vF(hb.nodes(e,{match:function(e){return Lb.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=vF(hb.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&vF(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(hb.isEnd(e,n.anchor,t)||hb.isEnd(e,n.focus,t))},getTextarea:function(e){var t=hj.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return yj.get(e)||null},getHoverbar:function(e){return bj.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=lI.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=hF(Array.from(a)),l=u.next();!l.done;l=u.next()){var s=l.value;if(3!==s.nodeType)break;s.remove()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=hb.nodes(e,{match:function(t){return!(!lb.isElement(t)||e.isInline(t))},universal:!0});try{for(var d=hF(c),f=d.next();!f.done;f=d.next()){var p=f.value;if(null!=p){var h=p[0];Qj(lI.toDOMNode(e,h),(function(e,t){var n=gx(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=hb.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=hF(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Bb.isExpanded(t))return!1;var n=lI.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=hb.node(e,t);if(null==n)return!1;var r=vF(n,1)[0].children;return 1===r.length&&""===r[0].text}},sI=1,cI={},dI={},fI=LA.filter,pI=hP("filter");wT({target:"Array",proto:!0,forced:!pI},{filter:function(e){return fI(this,e,arguments.length>1?arguments[1]:void 0)}});var hI="\t\n\v\f\r    \u2028\u2029\ufeff",vI=A_("".replace),gI="["+hI+"]",yI=RegExp("^"+gI+gI+"*"),mI=RegExp(gI+gI+"*$"),bI={trim:function(e){return function(t){var n=AT(B_(t));return 1&e&&(n=vI(n,yI,"")),2&e&&(n=vI(n,mI,"")),n}}(3)},wI=QO.PROPER,xI=bI.trim;wT({target:"String",proto:!0,forced:function(e){return G_((function(){return!!hI[e]()||"…"!=="…"[e]()||wI&&hI[e].name!==e}))}("trim")},{trim:function(){return xI(this)}});var EI=[],CI={};function DI(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var SI,kI,_I,OI,AI=w_.Promise,TI=tO("species"),BI=function(e){var t=U_(e),n=AO.f;oO&&t&&!t[TI]&&n(t,TI,{configurable:!0,get:function(){return this}})},PI=w_.TypeError,FI=tO("species"),jI=function(e,t){var n,r=fO(e).constructor;return void 0===r||null==(n=fO(r)[FI])?t:function(e){if(PA(e))return e;throw PI(bO(e)+" is not a constructor")}(n)},II=A_([].slice),MI=/(?:ipad|iphone|ipod).*applewebkit/i.test(H_),NI="process"==rA(w_.process),LI=w_.setImmediate,RI=w_.clearImmediate,zI=w_.process,UI=w_.Dispatch,HI=w_.Function,$I=w_.MessageChannel,VI=w_.String,WI=0,KI={};try{SI=w_.location}catch($j){}var qI=function(e){if(I_(KI,e)){var t=KI[e];delete KI[e],t()}},GI=function(e){return function(){qI(e)}},XI=function(e){qI(e.data)},YI=function(e){w_.postMessage(VI(e),SI.protocol+"//"+SI.host)};LI&&RI||(LI=function(e){var t=II(arguments,1);return KI[++WI]=function(){UP(z_(e)?e:HI(e),void 0,t)},kI(WI),WI},RI=function(e){delete KI[e]},NI?kI=function(e){zI.nextTick(GI(e))}:UI&&UI.now?kI=function(e){UI.now(GI(e))}:$I&&!MI?(OI=(_I=new $I).port2,_I.port1.onmessage=XI,kI=hA(OI.postMessage,OI)):w_.addEventListener&&z_(w_.postMessage)&&!w_.importScripts&&SI&&"file:"!==SI.protocol&&!G_(YI)?(kI=YI,w_.addEventListener("message",XI,!1)):kI="onreadystatechange"in lO("script")?function(e){RT.appendChild(lO("script")).onreadystatechange=function(){RT.removeChild(this),qI(e)}}:function(e){setTimeout(GI(e),0)});var ZI,JI,QI,eM,tM,nM,rM,oM,iM={set:LI},aM=/ipad|iphone|ipod/i.test(H_)&&void 0!==w_.Pebble,uM=/web0s(?!.*chrome)/i.test(H_),lM=YA.f,sM=iM.set,cM=w_.MutationObserver||w_.WebKitMutationObserver,dM=w_.document,fM=w_.process,pM=w_.Promise,hM=lM(w_,"queueMicrotask"),vM=hM&&hM.value;vM||(ZI=function(){var e,t;for(NI&&(e=fM.domain)&&e.exit();JI;){t=JI.fn,JI=JI.next;try{t()}catch(e){throw JI?eM():QI=void 0,e}}QI=void 0,e&&e.enter()},MI||NI||uM||!cM||!dM?!aM&&pM&&pM.resolve?((rM=pM.resolve(void 0)).constructor=pM,oM=hA(rM.then,rM),eM=function(){oM(ZI)}):NI?eM=function(){fM.nextTick(ZI)}:(sM=hA(sM,w_),eM=function(){sM(ZI)}):(tM=!0,nM=dM.createTextNode(""),new cM(ZI).observe(nM,{characterData:!0}),eM=function(){nM.data=tM=!tM}));var gM,yM,mM,bM,wM=vM||function(e){var t={fn:e,next:void 0};QI&&(QI.next=t),JI||(JI=t,eM()),QI=t},xM=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=xO(t),this.reject=xO(n)},EM={f:function(e){return new xM(e)}},CM=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},DM="object"==typeof window,SM=iM.set,kM=tO("species"),_M="Promise",OM=XO.getterFor(_M),AM=XO.set,TM=XO.getterFor(_M),BM=AI&&AI.prototype,PM=AI,FM=BM,jM=w_.TypeError,IM=w_.document,MM=w_.process,NM=EM.f,LM=NM,RM=!!(IM&&IM.createEvent&&w_.dispatchEvent),zM=z_(w_.PromiseRejectionEvent),UM=!1,HM=mT(_M,(function(){var e=MO(PM),t=e!==String(PM);if(!t&&66===q_)return!0;if(q_>=51&&/native code/.test(e))return!1;var n=new PM((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[kM]=r,!(UM=n.then((function(){}))instanceof r)||!t&&DM&&!zM})),$M=HM||!xB((function(e){PM.all(e).catch((function(){}))})),VM=function(e){var t;return!(!iO(e)||!z_(t=e.then))&&t},WM=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;wM((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,l,s=n[i++],c=o?s.ok:s.fail,d=s.resolve,f=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&XM(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===s.promise?f(jM("Promise-chain cycle")):(u=VM(a))?hO(u,a,d,f):d(a)):f(r)}catch(e){p&&!l&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qM(e)}))}},KM=function(e,t,n){var r,o;RM?((r=IM.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),w_.dispatchEvent(r)):r={promise:t,reason:n},!zM&&(o=w_["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=w_.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},qM=function(e){hO(SM,w_,(function(){var t,n=e.facade,r=e.value;if(GM(e)&&(t=CM((function(){NI?MM.emit("unhandledRejection",r,n):KM("unhandledrejection",n,r)})),e.rejection=NI||GM(e)?2:1,t.error))throw t.value}))},GM=function(e){return 1!==e.rejection&&!e.parent},XM=function(e){hO(SM,w_,(function(){var t=e.facade;NI?MM.emit("rejectionHandled",t):KM("rejectionhandled",t,e.value)}))},YM=function(e,t,n){return function(r){e(t,r,n)}},ZM=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,WM(e,!0))},JM=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw jM("Promise can't be resolved itself");var r=VM(t);r?wM((function(){var n={done:!1};try{hO(r,t,YM(JM,n,e),YM(ZM,n,e))}catch(t){ZM(n,t,e)}})):(e.value=t,e.state=1,WM(e,!1))}catch(t){ZM({done:!1},t,e)}}};if(HM&&(FM=(PM=function(e){RF(this,FM),xO(e),hO(gM,this);var t=OM(this);try{e(YM(JM,t),YM(ZM,t))}catch(e){ZM(t,e)}}).prototype,(gM=function(e){AM(this,{type:_M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=EF(FM,{then:function(e,t){var n=TM(this),r=n.reactions,o=NM(jI(this,PM));return o.ok=!z_(e)||e,o.fail=z_(t)&&t,o.domain=NI?MM.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&WM(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),yM=function(){var e=new gM,t=OM(e);this.promise=e,this.resolve=YM(JM,t),this.reject=YM(ZM,t)},EM.f=NM=function(e){return e===PM||e===mM?new yM(e):LM(e)},z_(AI)&&BM!==Object.prototype)){bM=BM.then,UM||(eA(BM,"then",(function(e,t){var n=this;return new PM((function(e,t){hO(bM,n,e,t)})).then(e,t)}),{unsafe:!0}),eA(BM,"catch",FM.catch,{unsafe:!0}));try{delete BM.constructor}catch($j){}KB&&KB(BM,FM)}wT({global:!0,wrap:!0,forced:HM},{Promise:PM}),UB(PM,_M,!1),BI(_M),mM=U_(_M),wT({target:_M,stat:!0,forced:HM},{reject:function(e){var t=NM(this);return hO(t.reject,void 0,e),t.promise}}),wT({target:_M,stat:!0,forced:HM},{resolve:function(e){return function(e,t){if(fO(e),iO(t)&&t.constructor===e)return t;var n=EM.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),wT({target:_M,stat:!0,forced:$M},{all:function(e){var t=this,n=NM(t),r=n.resolve,o=n.reject,i=CM((function(){var n=xO(t.resolve),i=[],a=0,u=1;NF(e,(function(e){var l=a++,s=!1;u++,hO(n,t,e).then((function(e){s||(s=!0,i[l]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=NM(t),r=n.reject,o=CM((function(){var o=xO(t.resolve);NF(e,(function(e){hO(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var QM=wP.UNSUPPORTED_Y,eN=Math.min,tN=[].push,nN=A_(/./.exec),rN=A_(tN),oN=A_("".slice);function iN(e){Promise.resolve().then(e)}function aN(e,t){return lb.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=hb.isVoid(t,e),u="";a||(u=i.map((function(e){return aN(e,t)})).join(""));var l=function(e){return CI[e]||DI}(r),s=l(e,u,t),c="";if(c="string"==typeof s?s:s.html||"",a||EI.forEach((function(t){return c=t(e,c)})),"string"==typeof s)return c;var d=s.prefix,f=void 0===d?"":d,p=s.suffix,h=void 0===p?"":p;return f&&(c=f+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var o=lI.getParentsNodes(t,e).some((function(e){return"pre"===lI.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=lI.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return EI.forEach((function(t){return r=t(e,r)})),r}(e,t)}function uN(e){return"w-e-element-"+e}VP("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=AT(B_(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!ZT(e))return hO(t,r,e,o);for(var i,a,u,l=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,d=new RegExp(e.source,s+"g");(i=hO(MP,d,r))&&!((a=d.lastIndex)>c&&(rN(l,oN(r,c,i.index)),i.length>1&&i.index<r.length&&UP(tN,l,SF(i,1)),u=i[0].length,c=a,l.length>=o));)d.lastIndex===i.index&&d.lastIndex++;return c===r.length?!u&&nN(d,"")||rN(l,""):rN(l,oN(r,c)),l.length>o?SF(l,0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:hO(t,this,e,n)}:t,[function(t,n){var o=B_(this),i=null==t?void 0:EO(t,e);return i?hO(i,t,o,n):hO(r,AT(o),t,n)},function(e,o){var i=fO(this),a=AT(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var l=jI(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(QM?"g":"y"),d=new l(QM?"^(?:"+i.source+")":i,c),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===a.length)return null===tF(d,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){d.lastIndex=QM?0:h;var g,y=tF(d,QM?oN(a,h):a);if(null===y||(g=eN(EA(d.lastIndex+(QM?h:0)),a.length))===p)h=KP(a,h,s);else{if(rN(v,oN(a,p,h)),v.length===f)return v;for(var m=1;m<=y.length-1;m++)if(rN(v,y[m]),v.length===f)return v;h=p=g}}return rN(v,oN(a,p)),v}]}),!!G_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),QM);var lN=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},sN=function(e,t,n){var r=lI.toDOMRange(e,t).getBoundingClientRect(),o=lI.toDOMRange(e,n).getBoundingClientRect();return lN(r,o)&&lN(o,r)},cN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],dN=[],fN=[],pN={},hN=AO.f,vN=uT.f,gN=XO.enforce,yN=tO("match"),mN=w_.RegExp,bN=mN.prototype,wN=w_.SyntaxError,xN=A_(TT),EN=A_(bN.exec),CN=A_("".charAt),DN=A_("".replace),SN=A_("".indexOf),kN=A_("".slice),_N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ON=/a/g,AN=/a/g,TN=new mN(ON)!==ON,BN=wP.MISSED_STICKY,PN=wP.UNSUPPORTED_Y,FN=oO&&(!TN||BN||EP||DP||G_((function(){return AN[yN]=!1,mN(ON)!=ON||mN(AN)==AN||"/a/i"!=mN(ON,"i")})));if(mT("RegExp",FN)){for(var jN=function(e,t){var n,r,o,i,a,u,l=vO(bN,this),s=ZT(e),c=void 0===t,d=[],f=e;if(!l&&s&&c&&e.constructor===jN)return e;if((s||vO(bN,e))&&(e=e.source,c&&(t="flags"in f?f.flags:xN(f))),e=void 0===e?"":AT(e),t=void 0===t?"":AT(t),f=e,EP&&"dotAll"in ON&&(r=!!t&&SN(t,"s")>-1)&&(t=DN(t,/s/g,"")),n=t,BN&&"sticky"in ON&&(o=!!t&&SN(t,"y")>-1)&&PN&&(t=DN(t,/y/g,"")),DP&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,l=!1,s=0,c="";r<=n;r++){if("\\"===(t=CN(e,r)))t+=CN(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:EN(_N,kN(e,r+1))&&(r+=2,l=!0),o+=t,s++;continue;case">"===t&&l:if(""===c||I_(a,c))throw new wN("Invalid capture group name");a[c]=!0,i[i.length]=[c,s],l=!1,c="";continue}l?c+=t:o+=t}return[o,i]}(e),e=i[0],d=i[1]),a=zF(mN(e,t),l?this:bN,jN),(r||o||d.length)&&(u=gN(a),r&&(u.dotAll=!0,u.raw=jN(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=CN(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+CN(e,++r);return o}(e),n)),o&&(u.sticky=!0),d.length&&(u.groups=d)),e!==f)try{BO(a,"source",""===f?"(?:)":f)}catch(e){}return a},IN=function(e){e in jN||hN(jN,e,{configurable:!0,get:function(){return mN[e]},set:function(t){mN[e]=t}})},MN=vN(mN),NN=0;MN.length>NN;)IN(MN[NN++]);bN.constructor=jN,jN.prototype=bN,eA(w_,"RegExp",jN)}BI("RegExp");var LN=new RegExp(String.fromCharCode(160),"g");function RN(e){return e.replace(LN," ")}function zN(e,t){var n=e.length;if(n){var r=e[n-1];if(Lb.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function UN(e,t,n){return{type:"paragraph",children:[{text:gx(e).text().replace(/\s+/gm," ")}]}}function HN(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==Hj.ELEMENT_NODE)if(e.nodeType!==Hj.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=RN(r),zN(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(zN(n,"\n")||n.push({text:"\n"}));var o=VN(gx(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in pN)if(e[0].matches(t))return pN[t];return UN}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){hb.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),fN.forEach((function(n){r=n(e[0],r,t)})))})),o}function $N(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=RN(n)};return fN.forEach((function(n){r=n(e[0],r,t)})),r}function VN(e,t){dN.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=gx(r(e[0])))}));var n=eI(e);return"span"===n?e.attr("data-w-e-type")?HN(e,t):$N(e,t):"code"===n?"pre"===eI(e.parent())?HN(e,t):$N(e,t):cN.includes(n)?$N(e,t):HN(e,t)}function WN(e,t,n){var r=gx(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function KN(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=gx("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=VN(gx(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var qN=AO.f,GN=FF.fastKey,XN=XO.set,YN=XO.getterFor,ZN={getConstructor:function(e,t,n,r){var o=e((function(e,o){RF(e,i),XN(e,{type:t,index:WT(null),first:void 0,last:void 0,size:0}),oO||(e.size=0),null!=o&&NF(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=YN(t),u=function(e,t,n){var r,o,i=a(e),u=l(e,t);return u?u.value=n:(i.last=u={index:o=GN(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),oO?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},l=function(e,t){var n,r=a(e),o=GN(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return EF(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,oO?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=l(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),oO?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=hA(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),EF(i,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),oO&&qN(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=YN(t),i=YN(r);QB(e,t,(function(e,t){XN(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),BI(t)}};UF("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ZN);var JN=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function QN(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):nw.insertNodes(e,t,{mode:"highest"})}var eL=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=vF(Bb.edges(n),2),o=r[0],i=r[1],a=hb.void(t,{at:o.path}),u=hb.void(t,{at:i.path});if(!Bb.isCollapsed(n)||a){var l=lI.toDOMRange(t,n),s=l.cloneContents(),c=s.childNodes[0];if(s.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var d=vF(u,1)[0],f=l.cloneRange(),p=lI.toDOMNode(t,d);f.setEndAfter(p),s=f.cloneContents()}if(a&&(c=s.querySelector("[data-slate-spacer]")),Array.from(s.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Gj(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),s.appendChild(h),c=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=s.ownerDocument.createElement("div");return m.appendChild(s),m.setAttribute("hidden","true"),s.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",Jj(m)),s.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var l=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else if(l){var c=l.split(/\r\n|\r|\n/),d=!1;try{for(var f=hF(c),p=f.next();!p.done;p=f.next()){var h=p.value;d&&nw.splitNodes(t,{always:!0}),n(h),d=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}},t},tL=function(e){return null!=e},nL={object:!0,function:!0,undefined:!0},rL=/^\s*class[\s{/}]/,oL=Function.prototype.toString,iL=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!tL(e)&&hasOwnProperty.call(nL,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!rL.test(oL.call(e))},aL=function(e){return null!=e},uL=Object.keys,lL=function(){try{return Object.keys("primitive"),!0}catch(su){return!1}}()?Object.keys:function(e){return uL(aL(e)?Object(e):e)},sL=Math.max,cL=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=sL(arguments.length,2);for(e=Object(function(e){if(!aL(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)lL(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},dL=Array.prototype.forEach,fL=Object.create,pL=function(e){var t=fL(null);return dL.call(arguments,(function(e){aL(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},hL="razdwatrzy",vL=String.prototype.indexOf,gL="function"==typeof hL.contains&&!0===hL.contains("dwa")&&!1===hL.contains("foo")?String.prototype.contains:function(e){return vL.call(this,e,arguments[1])>-1},yL=g_((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],tL(e)?(n=gL.call(e,"c"),r=gL.call(e,"e"),o=gL.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?cL(pL(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],tL(t)?iL(t)?tL(n)?iL(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,tL(e)?(r=gL.call(e,"c"),o=gL.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?cL(pL(i),a):a}})),mL=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},bL=g_((function(e,t){var n,r,o,i,a,u,l,s=Function.prototype.apply,c=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return mL(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=d(null),f(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return mL(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),s.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(mL(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)s.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];s.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:yL(n),once:yL(r),off:yL(o),emit:yL(i)},l=p({},u),e.exports=t=function(e){return null==e?d(l):p(Object(e),u)},t.methods=a}));function wL(e){var t=Nj.get(e);return null==t&&(t=bL(),Nj.set(e,t)),t}var xL=new WeakMap;function EL(e,t){var n=xL.get(e);null==n&&(n=new Set,xL.set(e,n)),n.add(t)}function CL(e){var t=lI.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function DL(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=CL(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,l=lI.toDOMRange(e,n).getClientRects()[0];if(null==l)return t;l.width;var s=l.height,c={},d=l.top-o,f=l.left-i;if(f>a/2){var p=a-f;c.right=p+5+"px"}else c.left=f+5+"px";if(d>u/2){var h=u-d;c.bottom=h+5+"px"}else{var v=d+s;v<0&&(v=0),c.top=v+5+"px"}return c}function SL(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=lb.isElement(t)&&e.isVoid(t),i=lb.isElement(t)&&e.isInline(t),a=Pj.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),l=u.top,s=u.left,c=u.height,d=u.width;if(o){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(Uj.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var l=u-1;l>=0;l--)t.push(a[l])}}return null}(a);if(null!=f){var p=f.getBoundingClientRect();l=p.top,c=p.height}}var h=CL(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},x=l-g,E=s-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if("modal"===n)return o?i?E>(m-d)/2?w.right=m-E+5+"px":w.left=E+d+5+"px":w.left="20px":w.left=E+"px",o?((v=x)<0&&(v=0),w.top=v+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((v=x+c)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function kL(e,t){iN((function(){var n=CL(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,l=t.offset(),s=l.top,c=l.left,d=t.width(),f=t.height(),p=s-o,h=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+f-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&s<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(s);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+d-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&c<0){var E=t.css("right"),C=parseInt(E.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var _L=hP("slice"),OL=tO("species"),AL=w_.Array,TL=Math.max;wT({target:"Array",proto:!0,forced:!_L},{slice:function(e,t){var n,r,o,i=GA(this),a=CA(i),u=QA(e,a),l=QA(void 0===t?a:t,a);if(DA(i)&&(n=i.constructor,(PA(n)&&(n===AL||DA(n.prototype))||iO(n)&&null===(n=n[OL]))&&(n=void 0),n===AL||void 0===n))return II(i,u,l);for(r=new(void 0===n?AL:n)(TL(l-u,0)),o=0;u<l;u++,o++)u in i&&dB(r,o,i[u]);return r.length=o,r}});var BL=YA.f,PL=A_("".startsWith),FL=A_("".slice),jL=Math.min,IL=tB("startsWith"),ML=!IL&&!!function(){var e=BL(String.prototype,"startsWith");return e&&!e.writable}();wT({target:"String",proto:!0,forced:!ML&&!IL},{startsWith:function(e){var t=AT(B_(this));QT(e);var n=EA(jL(arguments.length>1?arguments[1]:void 0,t.length)),r=AT(e);return PL?PL(t,r,n):FL(t,n,n+r.length)===r}});var NL=Object.assign,LL=Object.defineProperty,RL=A_([].concat),zL=!NL||G_((function(){if(oO&&1!==NL({b:1},NL(LL({},"a",{enumerable:!0,get:function(){LL(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=NL({},e)[n]||xT(NL({},t)).join("")!=r}))?function(e,t){for(var n=F_(e),r=arguments.length,o=1,i=lT.f,a=qA.f;r>o;)for(var u,l=yA(arguments[o++]),s=i?RL(xT(l),i(l)):xT(l),c=s.length,d=0;c>d;)u=s[d++],oO&&!hO(a,l,u)||(n[u]=l[u]);return n}:NL;wT({target:"Object",stat:!0,forced:Object.assign!==zL},{assign:zL});var UL=["props","attrs","style","dataset","on","hook"];function HL(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!UL.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=KC(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&HL(e)}))}var $L=[],VL={};function WL(e,t,n){return aC(n.isInline(e)?"span":"div",null,t)}function KL(e,t){return void 0===t&&(t=!1),aC("span",{"data-slate-string":!0},t?e+"\n":e)}function qL(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),aC("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?aC("br",null):null)}function GL(e,t,n,r){return _j.set(e,t),Oj.set(e,n),lb.isElement(e)?function(e,t){var n,r=lI.findKey(t,e),o=t.isInline(e),i=hb.isVoid(t,e),a=uN(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},l=e.type,s=e.children,c=void 0===s?[]:s,d=function(e){return VL[e]||WL}(l);n=i?null:c.map((function(n,r){return GL(n,r,e,t)}));var f=d(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=vF(bb.texts(e),1),v=vF(h[0],1)[0],g=aC(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},GL(v,0,e,t));f=aC(p,{style:{position:"relative"}},f,g),_j.set(v,0),Oj.set(v,e)}return null==f.data&&(f.data={}),Object.assign(f.data,u),i||o||(f=function(e,t){var n=t;return $L.forEach((function(r){n=r(e,t)})),n}(e,f)),iN((function(){var t=Xj(a);null!=t&&(Bj.set(r,t),Pj.set(e,t),Tj.set(t,e))})),f}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=lI.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=lI.findPath(n,e),a=o([e,i]),u=Lb.decorations(e,a),l=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=lI.findPath(o,n),u=Cb.parent(a);if(hb.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?qL(bb.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==hb.string(o,u)?""===i?qL():t&&"\n"===i.slice(-1)?KL(i,!0):KL(i):qL(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return $L.forEach((function(t){n=t(e,n)})),n}(r,i),aC("span",{"data-slate-leaf":!0},i)})),s=function(e){return"w-e-text-"+e}(r.id),c=aC("span",{"data-slate-node":"text",id:s,key:r.id},l);return iN((function(){var t=Xj(s);null!=t&&(Bj.set(r,t),Pj.set(e,t),Tj.set(t,e))})),c}(e,n,r)}function XL(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,l=function(e,t){return void 0===t&&(t=!1),zE("div#"+e,{props:{contentEditable:!t}})}(o,a),s=t.children||[];l.children=s.map((function(e,n){var r=GL(e,n,t,t);return HL(r),r}));var c=Dj.get(e);if(null==c&&(c=!0),c){var d=function(e){return gx('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(d),e.$textArea=d,n=d[0],(p=LE([VE,QE,oC,qE,ZE,HE]))(n,l),Dj.set(e,!1),Sj.set(e,p)}else{var f=kj.get(e),p=Sj.get(e);if(null==f||null==p)return;n=f.elm,p(f,l)}if(null!=n||null!=(n=Xj(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=Vj(n);h&&jj.set(t,h)}Aj.set(t,n),Pj.set(t,n),Tj.set(n,t),kj.set(e,l)}}function YL(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function ZL(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function JL(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ZL(n.overflowY,t)||ZL(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function QL(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 eR(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!YL(e))throw new TypeError("Invalid target");for(var s=document.scrollingElement||document.documentElement,c=[],d=e;YL(d)&&l(d);){if((d=d.parentElement)===s){c.push(d);break}null!=d&&d===document.body&&JL(d)&&!JL(document.documentElement)||null!=d&&JL(d,u)&&c.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,x=g.bottom,E=g.left,C="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,D="center"===i?E+m/2:"end"===i?w:E,S=[],k=0;k<c.length;k++){var _=c[k],O=_.getBoundingClientRect(),A=O.height,T=O.width,B=O.top,P=O.right,F=O.bottom,j=O.left;if("if-needed"===r&&b>=0&&E>=0&&x<=p&&w<=f&&b>=B&&x<=F&&E>=j&&w<=P)return S;var I=getComputedStyle(_),M=parseInt(I.borderLeftWidth,10),N=parseInt(I.borderTopWidth,10),L=parseInt(I.borderRightWidth,10),R=parseInt(I.borderBottomWidth,10),z=0,U=0,H="offsetWidth"in _?_.offsetWidth-_.clientWidth-M-L:0,$="offsetHeight"in _?_.offsetHeight-_.clientHeight-N-R:0;if(s===_)z="start"===o?C:"end"===o?C-p:"nearest"===o?QL(v,v+p,p,N,R,v+C,v+C+y,y):C-p/2,U="start"===i?D:"center"===i?D-f/2:"end"===i?D-f:QL(h,h+f,f,M,L,h+D,h+D+m,m),z=Math.max(0,z+v),U=Math.max(0,U+h);else{z="start"===o?C-B-N:"end"===o?C-F+R+$:"nearest"===o?QL(B,F,A,N,R+$,C,C+y,y):C-(B+A/2)+$/2,U="start"===i?D-j-M:"center"===i?D-(j+T/2)+H/2:"end"===i?D-P+L+H:QL(j,P,T,M,L+H,D,D+m,m);var V=_.scrollLeft,W=_.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,_.scrollHeight-A+$))),D+=V-(U=Math.max(0,Math.min(V+U,_.scrollWidth-T+H)))}S.push({el:_,top:z,left:U})}return S}function tR(e){return e===Object(e)&&0!==Object.keys(e).length}function nR(e,t){return Kj(t)&&lI.hasDOMNode(e,t,{editable:!0})}function rR(e,t){if(e.getConfig().readOnly)return!1;var n=oR(e,t)&&lI.toSlateNode(e,t);return hb.isVoid(e,n)}function oR(e,t){return Kj(t)&&lI.hasDOMNode(e,t)}function iR(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=lI.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=Aj.get(t),l=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(l=!0),a&&l&&r){var s=lI.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(s&&Bb.equals(s,r)){var c=!0;if(Bb.isCollapsed(r)){var d=i.anchorNode,f=i.anchorOffset;if(d===u){var p=u.childNodes,h=void 0;(h=p[f])&&h.matches("table")&&(c=!1),(h=p[f-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||lI.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&lI.toDOMRange(t,r);if(v){Bb.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(tR(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:eR(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:tR(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(eR(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&nI&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=lI.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var aR=new WeakMap,uR=new WeakMap,lR={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"},sR={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"},cR={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},dR=function(e){var t=lR[e],n=sR[e],r=cR[e],o=t&&nD(t),i=n&&nD(n),a=r&&nD(r);return function(e){return!(!o||!o(e))||!!(tI&&i&&i(e))||!(tI||!a||!a(e))}},fR={isBold:dR("bold"),isCompose:dR("compose"),isMoveBackward:dR("moveBackward"),isMoveForward:dR("moveForward"),isDeleteBackward:dR("deleteBackward"),isDeleteForward:dR("deleteForward"),isDeleteLineBackward:dR("deleteLineBackward"),isDeleteLineForward:dR("deleteLineForward"),isDeleteWordBackward:dR("deleteWordBackward"),isDeleteWordForward:dR("deleteWordForward"),isExtendBackward:dR("extendBackward"),isExtendForward:dR("extendForward"),isExtendLineBackward:dR("extendLineBackward"),isExtendLineForward:dR("extendLineForward"),isItalic:dR("italic"),isMoveLineBackward:dR("moveLineBackward"),isMoveLineForward:dR("moveLineForward"),isMoveWordBackward:dR("moveWordBackward"),isMoveWordForward:dR("moveWordForward"),isRedo:dR("redo"),isSplitBlock:dR("splitBlock"),isTransposeCharacter:dR("transposeCharacter"),isUndo:dR("undo"),isTab:dR("tab"),isSelectAll:dR("selectAll")};function pR(e){e.preventDefault()}var hR={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(uI&&!o&&nR(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var l=vF(r.getTargetRanges(),1)[0];if(l){var s=lI.toSlateRange(n,l,{exactMatch:!1,suppressThrow:!1});i&&Bb.equals(i,s)||nw.select(n,s)}}if(i&&Bb.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";hb.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":hb.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":hb.deleteForward(n);break;case"deleteContentBackward":hb.deleteBackward(n);break;case"deleteEntireSoftLine":hb.deleteBackward(n,{unit:"line"}),hb.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":hb.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":hb.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":hb.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":hb.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":hb.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":hb.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":hb.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Lj.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&hb.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&nR(n,r.target)){var a=lI.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===lI.toDOMNode(n,n)||Wj(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Kj(u)&&lI.hasDOMNode(n,u)){var l=lI.toSlateNode(n,u);if(lb.isElement(l)&&!n.isVoid(l))return}if(rI){var s=a.getSelection();null==s||s.removeAllRanges()}Ij.delete(n)}}}},focus:function(e,t,n){var r=lI.toDOMNode(n,n),o=lI.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,nI&&e.target!==r?r.focus():Ij.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&oR(n,e.target)&&Kj(e.target)){var r=lI.toSlateNode(n,e.target),o=lI.findPath(n,r);if(hb.hasPath(n,o)&&bb.get(n,o)===r){var i=hb.start(n,o),a=hb.end(n,o),u=hb.void(n,{at:i}),l=hb.void(n,{at:a});if(u&&l&&Cb.equals(u[1],l[1])){var s=hb.range(n,i);nw.select(n,s)}}}},compositionstart:function(e,t,n){if(nR(n,e.target)){var r=n.selection;if(r&&Bb.isExpanded(r)&&(hb.deleteFragment(n),Promise.resolve().then((function(){iR(t,n,!0)}))),r&&Bb.isCollapsed(r)){var o=lI.toDOMRange(n,r).startContainer,i=o.textContent||"";aR.set(n,i),uR.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(nR(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(aI||nI)&&lI.cleanExposedTexNodeInSelectionBlock(n);for(var i=Bb.isBackward(o)?o.focus:o.anchor,a=vF(hb.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var l=vF(hb.node(n,i.path.slice(0,u+1)),1)[0];if(lb.isElement(l)&&((rI||nI)&&"link"===l.type||"code"===l.type)){lI.setNewKey(a);break}}var s=r.data;if(s){if(n.getConfig().maxLength){var c=lI.getLeftLengthOfMaxLength(n);c<s.length?(lI.toDOMRange(n,o).startContainer.textContent=aR.get(n)||"",c>0&&hb.insertText(n,s.slice(0,c)),t.changeViewState()):hb.insertText(n,s)}else hb.insertText(n,s);rI||setTimeout((function(){var e=n.selection;if(null!=e){var t=uR.get(n);null!=t&&lI.toDOMRange(n,e).startContainer!==t&&(t.textContent=aR.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){nR(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&nR(n,r.target)){if(function(e,t){var n=yj.get(e),r=n&&n.getMenus(),o=bj.get(e),i=o&&o.getMenus(),a=pF(pF({},r),i);for(var u in a){var l=a[u],s=l.hotkey;if(s&&tD(s,t)&&!l.isDisabled(e)){var c=l.getValue(e);l.exec(e,c)}}}(n,r),fR.isTab(r))return pR(r),void n.handleTab();if(fR.isRedo(r))return pR(r),void("function"==typeof n.redo&&n.redo());if(fR.isUndo(r))return pR(r),void("function"==typeof n.undo&&n.undo());if(fR.isMoveLineBackward(r))return pR(r),void nw.move(n,{unit:"line",reverse:!0});if(fR.isMoveLineForward(r))return pR(r),void nw.move(n,{unit:"line"});if(fR.isExtendLineBackward(r))return pR(r),void nw.move(n,{unit:"line",edge:"focus",reverse:!0});if(fR.isExtendLineForward(r))return pR(r),void nw.move(n,{unit:"line",edge:"focus"});if(fR.isMoveBackward(r))return pR(r),void(o&&Bb.isCollapsed(o)?nw.move(n,{reverse:!0}):nw.collapse(n,{edge:"start"}));if(fR.isMoveForward(r))return pR(r),void(o&&Bb.isCollapsed(o)?nw.move(n):nw.collapse(n,{edge:"end"}));if(fR.isMoveWordBackward(r))return pR(r),o&&Bb.isExpanded(o)&&nw.collapse(n,{edge:"focus"}),void nw.move(n,{unit:"word",reverse:!0});if(fR.isMoveWordForward(r))return pR(r),o&&Bb.isExpanded(o)&&nw.collapse(n,{edge:"focus"}),void nw.move(n,{unit:"word"});if(fR.isSelectAll(r))return pR(r),void n.selectAll();if(uI){if((aI||rI)&&o&&(fR.isDeleteBackward(r)||fR.isDeleteForward(r))&&Bb.isCollapsed(o)){var i=bb.parent(n,o.anchor.path);if(lb.isElement(i)&&hb.isVoid(n,i)&&hb.isInline(n,i))return r.preventDefault(),void nw.delete(n,{unit:"block"})}}else{if(fR.isBold(r)||fR.isItalic(r)||fR.isTransposeCharacter(r))return void pR(r);if(fR.isSplitBlock(r))return pR(r),void hb.insertBreak(n);if(fR.isDeleteBackward(r))return pR(r),void(o&&Bb.isExpanded(o)?hb.deleteFragment(n,{direction:"backward"}):hb.deleteBackward(n));if(fR.isDeleteForward(r))return pR(r),void(o&&Bb.isExpanded(o)?hb.deleteFragment(n,{direction:"forward"}):hb.deleteForward(n));if(fR.isDeleteLineBackward(r))return pR(r),void(o&&Bb.isExpanded(o)?hb.deleteFragment(n,{direction:"backward"}):hb.deleteBackward(n,{unit:"line"}));if(fR.isDeleteLineForward(r))return pR(r),void(o&&Bb.isExpanded(o)?hb.deleteFragment(n,{direction:"forward"}):hb.deleteForward(n,{unit:"line"}));if(fR.isDeleteWordBackward(r))return pR(r),void(o&&Bb.isExpanded(o)?hb.deleteFragment(n,{direction:"backward"}):hb.deleteBackward(n,{unit:"word"}));if(fR.isDeleteWordForward(r))return pR(r),void(o&&Bb.isExpanded(o)?hb.deleteFragment(n,{direction:"forward"}):hb.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!uI&&!n.getConfig().readOnly&&nR(n,e.target)){e.preventDefault();var r=e.key;hb.insertText(n,r)}},copy:function(e,t,n){var r=e;if(nR(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&nR(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Bb.isExpanded(o))hb.deleteFragment(n);else{var a=bb.parent(n,o.anchor.path);hb.isVoid(n,a)&&nw.delete(n)}}},paste:function(e,t,n){Lj.set(n,!0);var r=e;if(!n.getConfig().readOnly&&nR(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void Lj.set(n,!1);if(!uI||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(oR(n,e.target)){var r=lI.toSlateNode(n,e.target);hb.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(oR(n,r.target)&&!n.getConfig().readOnly){var o=lI.toSlateNode(n,r.target),i=lI.findPath(n,o);if(hb.isVoid(n,o)||hb.void(n,{at:i,voids:!0})){var a=hb.range(n,i);nw.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&oR(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&oR(n,r.target)&&null!=o&&!(uI&&rI&&o.files.length>0)){r.preventDefault();var i=n.selection,a=lI.findEventRange(n,r);nw.select(n,a),t.isDraggingInternally&&(i&&nw.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},vR=1,gR=function(){function e(e){var t=this;this.id=vR++,this.$textArea=null,this.$progressBar=gx('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=gx('<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=_E((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=lI.findDocumentOrShadowRoot(t),a=i.activeElement,u=lI.toDOMNode(t,t),l=i.getSelection();if(a===u?(e.latestElement=a,Ij.set(t,!0)):Ij.delete(t),!l)return nw.deselect(t);var s=l.anchorNode,c=l.focusNode,d=nR(t,s)||rR(t,s),f=nR(t,c)||rR(t,c);if(d&&f){var p=lI.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!1});nw.select(t,p)}else nw.deselect(t)}}(t,e)}),100);var n=gx(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=gx('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=gx('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,iN((function(){var e=t.editorInstance,n=lI.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=vj.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(cE(hR,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",_E((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-lI.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;XL(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=gx('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),iN((function(){iR(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function yR(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&&yR(t)}function mR(){return gx('<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 bR(){return gx('<div class="w-e-bar-divider"></div>')}function wR(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=tI?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}VP("match",(function(e,t,n){return[function(t){var n=B_(this),r=null==t?void 0:EO(t,e);return r?hO(r,t,n):new RegExp(t)[e](AT(n))},function(e){var r=fO(this),o=AT(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return tF(r,o);var a=r.unicode;r.lastIndex=0;for(var u,l=[],s=0;null!==(u=tF(r,o));){var c=AT(u[0]);l[s]=c,""===c&&(r.lastIndex=KP(o,EA(r.lastIndex),a)),s++}return 0===s?null:l}]}));var xR=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gx('<div class="w-e-bar-item"></div>'),this.$button=gx('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,l=void 0===u?"":u,s=t.iconSvg,c=void 0===s?"":s,d=this.$button;if(c){var f=gx(c);yR(f),d.append(f)}else d.text(a);wR(d,c,a,l,n),n&&c&&d.append(gx('<span class="title">'+a+"</span>")),i&&d.css("width",i+"px"),d.attr("data-menu-key",e),this.$elem.append(d),iN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),jR(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=jR(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=jR(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=jR(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),ER=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return fF(t,e),t.prototype.onButtonClick=function(){},t}(xR),CR=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=xj.get(e);null==t&&(t=new Set,xj.set(e,t)),t.add(this),Ej.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Ej.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Ej.get(this);e&&e.emit("modalOrPanelHide")}},e}(),DR=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=gx('<div class="w-e-drop-panel"></div>'),n}return fF(t,e),t.prototype.genSelfElem=function(){return null},t}(CR),SR=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=mR();o.$button.append(i)}return o}return fF(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=jR(this);if(null==this.dropPanel){var n=new DR(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,l=a.parents(".w-e-bar");u-l.offset().left>=l.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(xR),kR=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=gx('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return fF(t,e),t.prototype.genSelfElem=function(){var e=this,t=gx('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=Ej.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(CR);function _R(e,t,n){var r=gx('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=gx('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function OR(e,t){var n=gx('<div class="button-container"></div>'),r=gx('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var AR=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=gx("body"),o.modal=null,o.menu=n,o}return fF(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=jR(this),t=this.menu.getModalPositionNode(e);return lb.isElement(t)?SL(e,t,"modal"):DL(e)},t.prototype.handleModal=function(){var e=jR(this),t=this.menu;if(null==this.modal){var n=new kR(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=jR(this),r=this.menu;if(null!=r.getModalContentElem){var o=lI.getTextarea(n),i=lI.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var l=this.getPosition();e.setStyle(l)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||kL(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(xR),TR=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=gx('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return fF(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=gx("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=gx('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=gx('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(gx('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(CR),BR=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=gx('<div class="w-e-bar-item"></div>'),this.$button=gx('<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,l=void 0===u?"":u,s=t.hotkey,c=void 0===s?"":s;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var d=this.$button;a&&d.css("width",a+"px"),d.attr("data-menu-key",e),wR(d,l,i,c,n),this.$elem.append(d),this.menu=t,iN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),jR(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=jR(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new TR(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=gx(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=jR(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=jR(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=mR();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=jR(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),PR=function(){function e(e){this.$elem=gx('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=gx('<div class="w-e-bar-item-menus-container"></div>'),this.$button=gx('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=gx(n);yR(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=mR();i.append(u),o.append(i);var l=this.$container;o.append(l);var s=this.createObserver();this.observe(s)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){gx(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),FR=new WeakMap;function jR(e){var t=wj.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function IR(e,t,n){void 0===n&&(n=!1);var r=FR.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new SR(e,t,n):a?new AR(e,t,n):new ER(e,t,n)}if("select"===o&&(r=new BR(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return FR.set(t,r),r}function MR(e,t){var n=e.selection;return null!=n&&!Bb.isCollapsed(n)&&!lI.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Lb.isText(t)}var NR=function(){function e(){var e=this;this.$elem=gx('<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=mD((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&lb.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),iN((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),lI.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;iN((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=bR();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=dI[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=IR(e,r);this.hoverbarItems.push(i),wj.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),lb.isElement(e)){var r=SL(t,e,"bar");return n.css(r),void kL(t,n)}if(Lb.isText(e))return r=DL(t),n.css(r),void kL(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,l=void 0===u?[]:u,s=a||function(e,t){return lI.checkNodeType(t,o)},c=vF(hb.nodes(e,{match:function(t){return s(e,t)},universal:!0}),1),d=c[0];if(null!=d)return n=d[0],r=l,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=mj.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=MR),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=lI.findPath(null,e),r=lI.findPath(null,t);return Cb.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function LR(e,t,n,r){if(_j.set(e,t),Oj.set(e,n),lb.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return LR(t,n,e,r)})),hb.isVoid(r,e)){var i=vF(bb.texts(e),1),a=vF(i[0],1)[0];_j.set(a,0),Oj.set(a,e)}}}function RR(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,l=void 0===u?[]:u,s=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];_T.withoutSaving(t,(()=>{hb.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];_T.withoutSaving(t,(()=>{hb.withoutNormalizing(t,(()=>{var e=r.map(Eb.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],l=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),s=_T.isSaving(t),c=_T.isMerging(t);if(null==s&&(s=(e=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),s){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Cb.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Cb.equals(e.path,t.path)))(e,u)||l)),a&&c)l&&a.pop(),a.push(e);else{var d=[e];i.push(d)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=lI.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=lI.getLeftLengthOfMaxLength(t);n<=0||n<bb.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(lI.getLeftLengthOfMaxLength(t)<bb.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=lI.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===Hj.TEXT_NODE?e+(t.textContent||""):n===Hj.ELEMENT_NODE?JN.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=wL(t);if(r.on(e,n),"destroyed"===e&&EL(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),EL(t,o)}},t.once=function(e,n){wL(t).once(e,n)},t.off=function(e,n){wL(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=wL(t);o.emit.apply(o,gF([e],vF(n))),"destroyed"===e&&(function(e){return xL.get(e)||new Set}(t).forEach((function(e){return o.off("destroyed",e)})),function(e){xL.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){nw.select(t,e)},t.deselect=function(){var n=t.selection,r=lI.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&nw.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||nw.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=Mj.get(t);null!=e&&(t.focus(),nw.select(t,e))},t.getSelectionPosition=function(){return DL(t)},t.getNodePosition=function(e){return SL(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=vF(Bb.edges(e),2),r=n[0],o=n[1],i=vF(hb.edges(t,[]),2),a=i[0],u=i[1];return!(!_b.equals(r,a)||!_b.equals(o,u))},t.selectAll=function(){var e=hb.start(t,[]),n=hb.end(t,[]);nw.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,l,s,c,d=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var f=hF(hb.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var h=vF(p.value,2),v=h[0],g=h[1],y=lI.findKey(t,v);d.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=hF(hb.levels(t,{at:Cb.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=vF(b.value,2);v=w[0],g=w[1],y=lI.findKey(t,v),d.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=hF(hb.levels(t,{at:Cb.common(Cb.parent(e.path),Cb.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var C=vF(E.value,2);v=C[0],g=C[1],y=lI.findKey(t,v),d.push([g,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(l=x.return)&&l.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var D=hF(d),S=D.next();!S.done;S=D.next()){var k=vF(S.value,2);g=k[0],y=k[1],v=vF(hb.node(t,g),1)[0],Fj.set(v,y)}}catch(e){s={error:e}}finally{try{S&&!S.done&&(c=D.return)&&c.call(D)}finally{if(s)throw s.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Bb.isCollapsed(e.selection)){var r=hb.above(e,{match:function(t){return hb.isBlock(e,t)},at:e.selection});if(r){var o=vF(r,2)[1],a=hb.range(e,o,e.selection.anchor),u=function(e,t){var n=hb.range(e,Bb.end(t)),r=Array.from(hb.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(sN(e,hb.range(e,r[o]),n))return hb.range(e,r[o],n);if(r.length<2)return hb.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)sN(e,hb.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return hb.range(e,r[i],n)}(t,a);Bb.isCollapsed(u)||nw.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&Mj.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return aN(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return bb.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":hb.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=hb.nodes(t,{at:[],universal:!0});try{for(var u=hF(a),l=u.next();!l.done;l=u.next()){var s=vF(l.value,1)[0];if(lb.isElement(s)&&(n?s.type.indexOf(e)>=0:s.type===e)){var c=uN(lI.findKey(t,s).id);i.push(pF(pF({},s),{id:c}))}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(lb.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Lb.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){nw.delete(t,{at:{anchor:hb.start(t,[]),focus:hb.end(t,[])}}),0===t.children.length&&nw.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return lI.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===Hj.TEXT_NODE||t===Hj.ELEMENT_NODE&&!JN.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;lI.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==Hj.TEXT_NODE)if("BR"!==r){var a=e,l=!1;if(cN.includes(r.toLowerCase()))l=!0;else for(var s in pN)if(a.matches(s)){l=!0;break}if(l){var c=VN(gx(a),t);return Array.isArray(c)?(c.forEach((function(e){return QN(t,e)})),u++):(QN(t,c),u++),void(lI.isSelectedVoidNode(t)&&t.move(1))}var d=window.getComputedStyle(a).display;lI.isSelectedEmptyParagraph(t)||d.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&lI.isEmptyPath(t,a)&&nw.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=KN(t,e);if(nw.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(hb.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in dI)e.push(t);return e},t.getConfig=function(){var e=Cj.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(){var e=eL((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of hb.pathRefs(e))Db.transform(n,t);for(var r of hb.pointRefs(e))Ob.transform(r,t);for(var o of hb.rangeRefs(e))Pb.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},l=Dm.get(e)||[],s=Pm(t);for(var c of l)u(Cb.transform(c,t));for(var d of s)u(d);Dm.set(e,a),nw.transform(e,t),e.operations.push(t),hb.normalize(e),"set_selection"===t.type&&(e.marks=null),Sm.get(e)||(Sm.set(e,!0),Promise.resolve().then((()=>{Sm.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Bb.isExpanded(r))nw.setNodes(e,{[t]:n},{match:Lb.isText,split:!0});else{var o=Bm(Bm({},hb.marks(e)||{}),{},{[t]:n});e.marks=o,Sm.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Bb.isCollapsed(n)&&nw.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Bb.isCollapsed(n)&&nw.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Bb.isExpanded(n)&&nw.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?bb.fragment(e,t):[]},insertBreak:()=>{nw.splitNodes(e,{always:!0})},insertFragment:t=>{nw.insertFragment(e,t)},insertNode:t=>{nw.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Bm({text:t},r);nw.insertNodes(e,o)}else nw.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Lb.isText(n))if(lb.isElement(n)&&0===n.children.length)nw.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!hb.isEditor(n)&&lb.isElement(n)&&(e.isInline(n)||0===n.children.length||Lb.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=bb.get(e,r);if(!Lb.isText(u)){var l=n.children[a],s=u.children[i-1],c=a===n.children.length-1;(Lb.isText(l)||lb.isElement(l)&&e.isInline(l))!==o?(nw.removeNodes(e,{at:r.concat(i),voids:!0}),i--):lb.isElement(l)?e.isInline(l)&&(null!=s&&Lb.isText(s)?c&&(nw.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(nw.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=s&&Lb.isText(s)&&(Lb.equals(l,s,{loose:!0})?(nw.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===s.text?(nw.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===l.text&&(nw.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Bb.isExpanded(n))nw.unsetNodes(e,t,{match:Lb.isText,split:!0});else{var r=Bm({},hb.marks(e)||{});delete r[t],e.marks=r,Sm.get(e)||e.onChange()}}};return e})());return e.id="wangEditor-"+sI++,e.isDestroyed=!1,e.isFullScreen=!1,e.focus=function(t){if(lI.toDOMNode(e,e).focus({preventScroll:!0}),Ij.set(e,!0),t){var n=hb.end(e,[]);nw.select(e,n)}else{var r=Mj.get(e);r?nw.select(e,r):nw.select(e,hb.start(e,[]))}},e.isFocused=function(){return!!Ij.get(e)},e.blur=function(){lI.toDOMNode(e,e).blur(),nw.deselect(e),Ij.set(e,!1)},e.updateView=function(){lI.getTextarea(e).changeViewState();var t=lI.getToolbar(e);t&&t.changeToolbarState();var n=lI.getHoverbar(e);n&&n.changeHoverbarState()},e.destroy=function(){if(!e.isDestroyed){var t=lI.getTextarea(e);t.destroy(),hj.delete(e),vj.delete(t);var n=lI.getToolbar(e);n&&(n.destroy(),yj.delete(e),gj.delete(n));var r=lI.getHoverbar(e);r&&(r.destroy(),bj.delete(e),mj.delete(r)),e.isDestroyed=!0,e.emit("destroyed")}},e.scrollToElem=function(t){if(!e.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=gx("#"+t);if(0!==r.length){var o=r[0];if(!lI.hasDOMNode(e,o))return n="Element (found by id is '"+t+"') is not in editor DOM",n+="\n 通过 id '"+t+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=lI.getTextarea(e),a=i.$textAreaContainer,u=i.$scroll,l=r.offset().top,s=a.offset().top;u[0].scrollBy({top:l-s,behavior:"smooth"})}},e.showProgressBar=function(t){t<1||lI.getTextarea(e).changeProgress(t)},e.hidePanelOrModal=function(){var t=xj.get(e);null!=t&&t.forEach((function(e){return e.hide()}))},e.enable=function(){e.getConfig().readOnly=!1,e.updateView()},e.disable=function(){e.getConfig().readOnly=!0,e.updateView()},e.isDisabled=function(){return e.getConfig().readOnly},e.toDOMNode=function(t){return lI.toDOMNode(e,t)},e.fullScreen=function(){if(!e.isFullScreen){var t=null,n=lI.getToolbar(e);n&&(t=n.$box);var r=lI.getTextarea(e).$box.parent();if(t&&t.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),e.isFullScreen=!0,e.emit("fullScreen")}},e.unFullScreen=function(){if(e.isFullScreen){var t=lI.getTextarea(e).$box.parent();setTimeout((function(){t.removeClass("w-e-full-screen-container"),e.isFullScreen=!1,e.emit("unFullScreen")}),200)}},e.getEditableContainer=function(){return lI.getTextarea(e).$textAreaContainer[0]},e}()))))));if(n&&function(e,t){return WN(e,"data-w-e-textarea",t)}(s,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=bD(cI),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return cE(t,(function(e,t){n[t]=pF(pF({},e),o[t]||{})})),delete e.MENU_CONF,pF({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);Cj.set(s,c);var d=c.hoverbarKeys,f=void 0===d?{}:d;if(l.forEach((function(e){s=e(s)})),null!=a&&(s.children=KN(s,a)),i&&i.length&&(s.children=i),0===s.children.length&&(s.children=[{type:"paragraph",children:[{text:""}]}]),lI.normalizeContent(s),n){var p=new gR(n);hj.set(s,p),vj.set(p,s),p.changeViewState(),iN((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(f).length>0&&(h=new NR,mj.set(h,s),bj.set(s,h)),s.on("change",(function(){s.hidePanelOrModal()})),s.on("scroll",(function(){s.hidePanelOrModal()}))}else s.children.forEach((function(e,t){return LR(e,t,s,s)}));var v=c.onCreated,g=c.onDestroyed;return v&&s.on("created",(function(){return v(s)})),g&&s.on("destroyed",(function(){return g(s)})),iN((function(){return s.emit("created")})),s}var zR=hP("splice"),UR=w_.TypeError,HR=Math.max,$R=Math.min;wT({target:"Array",proto:!0,forced:!zR},{splice:function(e,t){var n,r,o,i,a,u,l=F_(this),s=CA(l),c=QA(e,s),d=arguments.length;if(0===d?n=r=0:1===d?(n=0,r=s-c):(n=d-2,r=$R(HR(wA(t),0),s-c)),s+n-r>9007199254740991)throw UR("Maximum allowed length exceeded");for(o=IA(l,r),i=0;i<r;i++)(a=c+i)in l&&dB(o,i,l[a]);if(o.length=r,n<r){for(i=c;i<s-r;i++)u=i+n,(a=i+r)in l?l[u]=l[a]:delete l[u];for(i=s;i>s-r+n;i--)delete l[i-1]}else if(n>r)for(i=s-r;i>c;i--)u=i+n-1,(a=i+r-1)in l?l[u]=l[a]:delete l[u];for(i=0;i<n;i++)l[i+c]=arguments[i+2];return l.length=s-r+n,o}});var VR=function(){function e(e,t){var n=this;this.$toolbar=gx('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=mD((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=gx(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),iN((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,l=r.excludeKeys,s=void 0===l?[]:l,c=bD(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var d=c.filter((function(e){if("string"==typeof e){if(s.includes(e))return!1}else if(s.includes(e.key))return!1;return!0})),f=d.length;d.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===f)return;if("|"===t)return;var i=bR();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new PR(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof PR,o=this.menus,i=o[e];if(null==i){var a=dI[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=IR(e,i,r);this.toolbarItems.push(u),wj.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=gj.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),WR=QO.EXISTS,KR=AO.f,qR=Function.prototype,GR=A_(qR.toString),XR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,YR=A_(XR.exec);function ZR(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,l=void 0===u?100:u,s=e.meta,c=void 0===s?{}:s,d=e.metaWithUrl,f=void 0!==d&&d,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,S=e.onProgress,k=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var _=n;f&&(_=function(e,t){var n=vF(e.split("#"),2),r=n[0],o=n[1],i=[];cE(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(_,c));var O=new VS({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(h_,{endpoint:_,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return O.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}O.removeFile(e.id)})),O.on("progress",(function(e){e<1||k(e)})),O.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}O.removeFile(e.id)})),O.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}O.removeFile(e.id)})),O}function JR(e){return JR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JR(e)}function QR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){QR(e,t,n[t])}))}return e}function tz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nz(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 rz(e,t,n){return t&&nz(e.prototype,t),n&&nz(e,n),e}function oz(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iz(e,t){if(t&&("object"===JR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oz(e)}function az(e){return az=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},az(e)}function uz(e,t){return uz=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uz(e,t)}function lz(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uz(e,t)}oO&&!WR&&KR(qR,"name",{configurable:!0,get:function(){try{return YR(XR,GR(this))[1]}catch(su){return""}}});var sz={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)}},cz=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tz(this,e),this.init(t,n)}return rz(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||sz,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,ez({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),dz=function(){function e(){tz(this,e),this.observers={}}return rz(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function fz(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function pz(e){return null==e?"":""+e}function hz(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function vz(e,t,n){var r=hz(e,t,Object);r.obj[r.k]=n}function gz(e,t){var n=hz(e,t),r=n.obj,o=n.k;if(r)return r[o]}function yz(e,t,n){var r=gz(e,n);return void 0!==r?r:gz(t,n)}function mz(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):mz(e[r],t[r],n):e[r]=t[r]);return e}function bz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var wz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function xz(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return wz[e]})):e}var Ez="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Cz(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),l=o[u];void 0===l&&r.length>i+a;)a++,l=o[u=r.slice(i,i+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(u&&"string"==typeof l[u])return l[u];var s=r.slice(i+a).join(n);return s?Cz(l,s,n):void 0}o=o[r[i]]}return o}}var Dz=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return tz(this,e),n=iz(this,az(e).call(this)),Ez&&dz.call(oz(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return lz(e,dz),rz(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=gz(this.data,a);return u||!i||"string"!=typeof n?u:Cz(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),vz(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=gz(this.data,a)||{};r?mz(u,n,o):u=ez({},u,n),vz(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?ez({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),Sz={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},kz={},_z=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tz(this,e),n=iz(this,az(e).call(this)),Ez&&dz.call(oz(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,oz(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=cz.create("translator"),n}return lz(e,dz),rz(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(t,n,r){var o=this;if("object"!==JR(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,l=a.namespaces,s=l[l.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var f=n.nsSeparator||this.options.nsSeparator;return s+f+u}return u}var p=this.resolve(t,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&"string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,ez({},n,{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,x=w?[]:{},E=w?g:v;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var D="".concat(E).concat(i).concat(C);x[C]=this.translate(D,ez({},n,{joinArrays:!1,ns:l})),x[C]===D&&(x[C]=h[C])}h=x}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var S=!1,k=!1,_=void 0!==n.count&&"string"!=typeof n.count,O=e.hasDefaultValue(n),A=_?this.pluralResolver.getSuffix(c,n.count):"",T=n["defaultValue".concat(A)]||n.defaultValue;!this.isValidLookup(h)&&O&&(S=!0,h=T),this.isValidLookup(h)||(k=!0,h=u);var B=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:h,P=O&&T!==h&&this.options.updateMissing;if(k||S||P){if(this.logger.log(P?"updateKey":"missingKey",c,s,u,P?T:h),i){var F=this.resolve(u,ez({},n,{keySeparator:!1}));F&&F.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 j=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var M=0;M<I.length;M++)j.push(I[M]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var N=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,P?r:B,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,P?r:B,P,n),o.emit("missingKey",e,s,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){N([e],u+t,n["defaultValue".concat(t)]||T)}))})):N(j,u,T))}h=this.extendTranslation(h,t,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(s,":").concat(u)),(k||S)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(ez({},n,{interpolation:ez({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s=ez({},this.options.interpolation.defaultVariables,s)),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=Sz.handle(f,e,t,this.options&&this.options.postProcessPassResolved?ez({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,u),s=l.key;n=s;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==u.count&&"string"!=typeof u.count,f=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!kz["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(kz["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l,c=s,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,s,n,e,u):(d&&(i=a.pluralResolver.getSuffix(n,u.count)),d&&f&&p.push(c+i),f&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),d&&p.push(c+=i));l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),e}();function Oz(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Az=function(){function e(t){tz(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cz.create("languageUtils")}return rz(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Oz(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Oz(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Oz(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Tz=[{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}],Bz={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Pz=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tz(this,e),this.languageUtils=t,this.options=n,this.logger=cz.create("pluralResolver"),this.rules=function(){var e={};return Tz.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Bz[t.fc]}}))})),e}()}return rz(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Fz=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tz(this,e),this.logger=cz.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return rz(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:xz,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?bz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?bz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?bz(t.nestingPrefix):t.nestingPrefixEscaped||bz("$t("),this.nestingSuffix=t.nestingSuffix?bz(t.nestingSuffix):t.nestingSuffixEscaped||bz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=yz(t,l,e);return u.alwaysFormat?u.format(o,void 0,n,ez({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),s=i.join(u.formatSeparator).trim();return u.format(yz(t,l,a),s,n,ez({},r,t,{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return s(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?s(u.escape(e)):s(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=pz(i));var l=t.safeValue(i);if(e=e.replace(o[0],l),f?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ez({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=ez({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),l=c,s=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=pz(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),s&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,ez({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),jz=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return tz(this,e),o=iz(this,az(e).call(this)),Ez&&dz.call(oz(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=cz.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return lz(e,dz),rz(e,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),l.indexOf(t)<0&&l.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n){var r=hz(e,t,Object),o=r.obj,i=r.k;o[i]=o[i]||[],o[i].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,l){u&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,ez({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function Iz(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Mz(){}var Nz=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(tz(this,e),t=iz(this,az(e).call(this)),Ez&&dz.call(oz(t)),t.options=Iz(n),t.services={},t.logger=cz,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),iz(t,oz(t));setTimeout((function(){t.init(n,r)}),0)}return t}return lz(e,dz),rz(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=ez({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===JR(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===JR(e[2])||"object"===JR(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,Iz(t)),this.format=this.options.interpolation.format,n||(n=Mz),!this.options.isClone){this.modules.logger?cz.init(r(this.modules.logger),this.options):cz.init(null,this.options);var o=new Az(this.options);this.store=new Dz(this.options.resources,this.options);var i=this.services;i.logger=cz,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new Pz(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Fz(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new jz(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new _z(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=fz(),l=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mz,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=fz();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Mz),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Sz.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=fz();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==JR(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),l=2;l<a;l++)u[l-2]=arguments[l];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=ez({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var s=r.options.keySeparator||".",c=n?"".concat(n).concat(s).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=fz();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=fz();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mz,o=ez({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=ez({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new _z(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Lz=new Nz;function Rz(e,t){Lz.addResourceBundle(e,"translation",t,!0,!0)}Lz.init({lng:"zh-CN",resources:{}});var zz=Lz.t.bind(Lz);Rz("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Rz("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Uz=Zp?{}.toString:function(){return"[object "+th(this)+"]"};Zp||bp(Object.prototype,"toString",Uz,{unsafe:!0});var Hz=Array.isArray||function(e){return"Array"==Hd(e)},$z=function(){},Vz=[],Wz=Zd("Reflect","construct"),Kz=/^\s*(?:class|function)\b/,qz=Rd(Kz.exec),Gz=!Kz.exec($z),Xz=function(e){if(!Xd(e))return!1;try{return Wz($z,Vz,e),!0}catch(e){return!1}},Yz=!Wz||kd((function(){var e;return Xz(Xz.call)||!Xz(Object)||!Xz((function(){e=!0}))||e}))?function(e){if(!Xd(e))return!1;switch(th(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Gz||!!qz(Kz,tp(e))}:Xz,Zz=Pf("species"),Jz=Sd.Array,Qz=function(e,t){return new(function(e){var t;return Hz(e)&&(t=e.constructor,(Yz(t)&&(t===Jz||Hz(t.prototype))||Yd(t)&&null===(t=t[Zz]))&&(t=void 0)),void 0===t?Jz:t}(e))(0===t?0:t)},eU=Rd([].push),tU=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=xf(l),v=Wd(h),g=sv(s,c),y=Op(v),m=0,b=d||Qz,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:eU(w,f)}else switch(e){case 4:return!1;case 7:eU(w,f)}return i?-1:r||o?o:w}}(0),nU=function(){var e=[].forEach;return!!e&&kd((function(){e.call(null,(function(){throw 1}),1)}))}(),rU=nU?[].forEach:function(e){return tU(this,e,arguments.length>1?arguments[1]:void 0)},oU=function(e){if(e&&e.forEach!==rU)try{Yf(e,"forEach",rU)}catch(t){e.forEach=rU}};for(var iU in tg)tg[iU]&&oU(Sd[iU]&&Sd[iU].prototype);oU(og),Rz("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"}}),Rz("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 aU={type:"paragraph",renderElem:function(e,t,n){return aC("p",null,t)}},uU="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function lU(e){var t={exports:{}};return e(t,t.exports),t.exports}var sU,cU,dU=function(e){return e&&e.Math==Math&&e},fU=dU("object"==typeof globalThis&&globalThis)||dU("object"==typeof window&&window)||dU("object"==typeof self&&self)||dU("object"==typeof uU&&uU)||function(){return this}()||Function("return this")(),pU=function(e){try{return!!e()}catch(e){return!0}},hU=!pU((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),vU=Function.prototype.call,gU=vU.bind?vU.bind(vU):function(){return vU.apply(vU,arguments)},yU={}.propertyIsEnumerable,mU=Object.getOwnPropertyDescriptor,bU=mU&&!yU.call({1:2},1)?function(e){var t=mU(this,e);return!!t&&t.enumerable}:yU,wU={f:bU},xU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},EU=Function.prototype,CU=EU.bind,DU=EU.call,SU=CU&&CU.bind(DU),kU=CU?function(e){return e&&SU(DU,e)}:function(e){return e&&function(){return DU.apply(e,arguments)}},_U=kU({}.toString),OU=kU("".slice),AU=function(e){return OU(_U(e),8,-1)},TU=fU.Object,BU=kU("".split),PU=pU((function(){return!TU("z").propertyIsEnumerable(0)}))?function(e){return"String"==AU(e)?BU(e,""):TU(e)}:TU,FU=fU.TypeError,jU=function(e){if(null==e)throw FU("Can't call method on "+e);return e},IU=function(e){return PU(jU(e))},MU=function(e){return"function"==typeof e},NU=function(e){return"object"==typeof e?null!==e:MU(e)},LU=function(e,t){return arguments.length<2?function(e){return MU(e)?e:void 0}(fU[e]):fU[e]&&fU[e][t]},RU=kU({}.isPrototypeOf),zU=LU("navigator","userAgent")||"",UU=fU.process,HU=fU.Deno,$U=UU&&UU.versions||HU&&HU.version,VU=$U&&$U.v8;VU&&(cU=(sU=VU.split("."))[0]>0&&sU[0]<4?1:+(sU[0]+sU[1])),!cU&&zU&&(!(sU=zU.match(/Edge\/(\d+)/))||sU[1]>=74)&&(sU=zU.match(/Chrome\/(\d+)/))&&(cU=+sU[1]);var WU=cU,KU=!!Object.getOwnPropertySymbols&&!pU((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&WU&&WU<41})),qU=KU&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,GU=fU.Object,XU=qU?function(e){return"symbol"==typeof e}:function(e){var t=LU("Symbol");return MU(t)&&RU(t.prototype,GU(e))},YU=fU.String,ZU=function(e){try{return YU(e)}catch(e){return"Object"}},JU=fU.TypeError,QU=function(e){if(MU(e))return e;throw JU(ZU(e)+" is not a function")},eH=function(e,t){var n=e[t];return null==n?void 0:QU(n)},tH=fU.TypeError,nH=Object.defineProperty,rH=function(e,t){try{nH(fU,e,{value:t,configurable:!0,writable:!0})}catch(cu){fU[e]=t}return t},oH=fU["__core-js_shared__"]||rH("__core-js_shared__",{}),iH=lU((function(e){(e.exports=function(e,t){return oH[e]||(oH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),aH=fU.Object,uH=function(e){return aH(jU(e))},lH=kU({}.hasOwnProperty),sH=Object.hasOwn||function(e,t){return lH(uH(e),t)},cH=0,dH=Math.random(),fH=kU(1..toString),pH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fH(++cH+dH,36)},hH=iH("wks"),vH=fU.Symbol,gH=vH&&vH.for,yH=qU?vH:vH&&vH.withoutSetter||pH,mH=function(e){if(!sH(hH,e)||!KU&&"string"!=typeof hH[e]){var t="Symbol."+e;KU&&sH(vH,e)?hH[e]=vH[e]:hH[e]=qU&&gH?gH(t):yH(t)}return hH[e]},bH=fU.TypeError,wH=mH("toPrimitive"),xH=function(e){var t=function(e){if(!NU(e)||XU(e))return e;var t,n=eH(e,wH);if(n){if(t=gU(n,e,"string"),!NU(t)||XU(t))return t;throw bH("Can't convert object to primitive value")}return function(e){var t,n;if(MU(t=e.toString)&&!NU(n=gU(t,e)))return n;if(MU(t=e.valueOf)&&!NU(n=gU(t,e)))return n;throw tH("Can't convert object to primitive value")}(e)}(e);return XU(t)?t:t+""},EH=fU.document,CH=NU(EH)&&NU(EH.createElement),DH=function(e){return CH?EH.createElement(e):{}},SH=!hU&&!pU((function(){return 7!=Object.defineProperty(DH("div"),"a",{get:function(){return 7}}).a})),kH=Object.getOwnPropertyDescriptor,_H={f:hU?kH:function(e,t){if(e=IU(e),t=xH(t),SH)try{return kH(e,t)}catch(e){}if(sH(e,t))return xU(!gU(wU.f,e,t),e[t])}},OH=fU.String,AH=fU.TypeError,TH=function(e){if(NU(e))return e;throw AH(OH(e)+" is not an object")},BH=fU.TypeError,PH=Object.defineProperty,FH={f:hU?PH:function(e,t,n){if(TH(e),t=xH(t),TH(n),SH)try{return PH(e,t,n)}catch(e){}if("get"in n||"set"in n)throw BH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},jH=hU?function(e,t,n){return FH.f(e,t,xU(1,n))}:function(e,t,n){return e[t]=n,e},IH=kU(Function.toString);MU(oH.inspectSource)||(oH.inspectSource=function(e){return IH(e)});var MH,NH,LH,RH=oH.inspectSource,zH=fU.WeakMap,UH=MU(zH)&&/native code/.test(RH(zH)),HH=iH("keys"),$H=function(e){return HH[e]||(HH[e]=pH(e))},VH={},WH=fU.TypeError,KH=fU.WeakMap;if(UH||oH.state){var qH=oH.state||(oH.state=new KH),GH=kU(qH.get),XH=kU(qH.has),YH=kU(qH.set);MH=function(e,t){if(XH(qH,e))throw new WH("Object already initialized");return t.facade=e,YH(qH,e,t),t},NH=function(e){return GH(qH,e)||{}},LH=function(e){return XH(qH,e)}}else{var ZH=$H("state");VH[ZH]=!0,MH=function(e,t){if(sH(e,ZH))throw new WH("Object already initialized");return t.facade=e,jH(e,ZH,t),t},NH=function(e){return sH(e,ZH)?e[ZH]:{}},LH=function(e){return sH(e,ZH)}}var JH={get:NH,enforce:function(e){return LH(e)?NH(e):MH(e,{})}},QH=Function.prototype,e$=hU&&Object.getOwnPropertyDescriptor,t$=sH(QH,"name"),n$={EXISTS:t$,PROPER:t$&&"something"===function(){}.name,CONFIGURABLE:t$&&(!hU||hU&&e$(QH,"name").configurable)},r$=lU((function(e){var t=n$.CONFIGURABLE,n=JH.get,r=JH.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;MU(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!sH(i,"name")||t&&i.name!==d)&&jH(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==fU?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:jH(e,n,i)):s?e[n]=i:rH(n,i)})(Function.prototype,"toString",(function(){return MU(this)&&n(this).source||RH(this)}))})),o$=Math.ceil,i$=Math.floor,a$=function(e){var t=+e;return t!=t||0===t?0:(t>0?i$:o$)(t)},u$=Math.max,l$=Math.min,s$=function(e,t){var n=a$(e);return n<0?u$(n+t,0):l$(n,t)},c$=Math.min,d$=function(e){return e>0?c$(a$(e),9007199254740991):0},f$=function(e){return d$(e.length)},p$=function(e){return function(t,n,r){var o,i=IU(t),a=f$(i),u=s$(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}},h$={includes:p$(!0),indexOf:p$(!1)},v$=h$.indexOf,g$=kU([].push),y$=function(e,t){var n,r=IU(e),o=0,i=[];for(n in r)!sH(VH,n)&&sH(r,n)&&g$(i,n);for(;t.length>o;)sH(r,n=t[o++])&&(~v$(i,n)||g$(i,n));return i},m$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b$=m$.concat("length","prototype"),w$={f:Object.getOwnPropertyNames||function(e){return y$(e,b$)}},x$={f:Object.getOwnPropertySymbols},E$=kU([].concat),C$=LU("Reflect","ownKeys")||function(e){var t=w$.f(TH(e)),n=x$.f;return n?E$(t,n(e)):t},D$=function(e,t){for(var n=C$(t),r=FH.f,o=_H.f,i=0;i<n.length;i++){var a=n[i];sH(e,a)||r(e,a,o(t,a))}},S$=/#|\.prototype\./,k$=function(e,t){var n=O$[_$(e)];return n==T$||n!=A$&&(MU(t)?pU(t):!!t)},_$=k$.normalize=function(e){return String(e).replace(S$,".").toLowerCase()},O$=k$.data={},A$=k$.NATIVE="N",T$=k$.POLYFILL="P",B$=k$,P$=_H.f,F$=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?fU:s?fU[u]||rH(u,{}):(fU[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=P$(n,r))&&a.value:n[r],!B$(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;D$(i,o)}(e.sham||o&&o.sham)&&jH(i,"sham",!0),r$(n,r,i,e)}},j$=kU(kU.bind),I$=Array.isArray||function(e){return"Array"==AU(e)},M$={};M$[mH("toStringTag")]="z";var N$="[object z]"===String(M$),L$=mH("toStringTag"),R$=fU.Object,z$="Arguments"==AU(function(){return arguments}()),U$=N$?AU:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=R$(e),L$))?n:z$?AU(t):"Object"==(r=AU(t))&&MU(t.callee)?"Arguments":r},H$=function(){},$$=[],V$=LU("Reflect","construct"),W$=/^\s*(?:class|function)\b/,K$=kU(W$.exec),q$=!W$.exec(H$),G$=function(e){if(!MU(e))return!1;try{return V$(H$,$$,e),!0}catch(e){return!1}},X$=!V$||pU((function(){var e;return G$(G$.call)||!G$(Object)||!G$((function(){e=!0}))||e}))?function(e){if(!MU(e))return!1;switch(U$(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return q$||!!K$(W$,RH(e))}:G$,Y$=mH("species"),Z$=fU.Array,J$=function(e,t){return new(function(e){var t;return I$(e)&&(t=e.constructor,(X$(t)&&(t===Z$||I$(t.prototype))||NU(t)&&null===(t=t[Y$]))&&(t=void 0)),void 0===t?Z$:t}(e))(0===t?0:t)},Q$=kU([].push),eV=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=uH(l),v=PU(h),g=function(e,t){return QU(e),void 0===t?e:j$?j$(e,t):function(){return e.apply(t,arguments)}}(s,c),y=f$(v),m=0,b=d||J$,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Q$(w,f)}else switch(e){case 4:return!1;case 7:Q$(w,f)}return i?-1:r||o?o:w}},tV={forEach:eV(0),map:eV(1),filter:eV(2),find:eV(5)},nV=mH("species"),rV=function(e){return WU>=51||!pU((function(){var t=[];return(t.constructor={})[nV]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},oV=tV.filter;F$({target:"Array",proto:!0,forced:!rV("filter")},{filter:function(e){return oV(this,e,arguments.length>1?arguments[1]:void 0)}});var iV=N$?{}.toString:function(){return"[object "+U$(this)+"]"};N$||r$(Object.prototype,"toString",iV,{unsafe:!0});var aV,uV=fU.String,lV=function(e){if("Symbol"===U$(e))throw TypeError("Cannot convert a Symbol value to a string");return uV(e)},sV=function(){var e=TH(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},cV=fU.RegExp,dV=pU((function(){var e=cV("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));dV||pU((function(){return!cV("a","y").sticky}));var fV={BROKEN_CARET:dV||pU((function(){var e=cV("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:dV},pV=Object.keys||function(e){return y$(e,m$)},hV=hU?Object.defineProperties:function(e,t){TH(e);for(var n,r=IU(t),o=pV(t),i=o.length,a=0;i>a;)FH.f(e,n=o[a++],r[n]);return e},vV=LU("document","documentElement"),gV=$H("IE_PROTO"),yV=function(){},mV=function(e){return"<script>"+e+"<\/script>"},bV=function(e){e.write(mV("")),e.close();var t=e.parentWindow.Object;return e=null,t},wV=function(){try{aV=new ActiveXObject("htmlfile")}catch(e){}var e,t;wV="undefined"!=typeof document?document.domain&&aV?bV(aV):((t=DH("iframe")).style.display="none",vV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(mV("document.F=Object")),e.close(),e.F):bV(aV);for(var n=m$.length;n--;)delete wV.prototype[m$[n]];return wV()};VH[gV]=!0;var xV,EV,CV=Object.create||function(e,t){var n;return null!==e?(yV.prototype=TH(e),n=new yV,yV.prototype=null,n[gV]=e):n=wV(),void 0===t?n:hV(n,t)},DV=fU.RegExp,SV=pU((function(){var e=DV(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kV=fU.RegExp,_V=pU((function(){var e=kV("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),OV=JH.get,AV=iH("native-string-replace",String.prototype.replace),TV=RegExp.prototype.exec,BV=TV,PV=kU("".charAt),FV=kU("".indexOf),jV=kU("".replace),IV=kU("".slice),MV=(EV=/b*/g,gU(TV,xV=/a/,"a"),gU(TV,EV,"a"),0!==xV.lastIndex||0!==EV.lastIndex),NV=fV.BROKEN_CARET,LV=void 0!==/()??/.exec("")[1];(MV||LV||NV||SV||_V)&&(BV=function(e){var t,n,r,o,i,a,u,l=this,s=OV(l),c=lV(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=gU(BV,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=NV&&l.sticky,h=gU(sV,l),v=l.source,g=0,y=c;if(p&&(h=jV(h,"y",""),-1===FV(h,"g")&&(h+="g"),y=IV(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==PV(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),LV&&(n=new RegExp("^"+v+"$(?!\\s)",h)),MV&&(r=l.lastIndex),o=gU(TV,p?n:l,y),p?o?(o.input=IV(o.input,g),o[0]=IV(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:MV&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),LV&&o&&o.length>1&&gU(AV,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=CV(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var RV=BV;F$({target:"RegExp",proto:!0,forced:/./.exec!==RV},{exec:RV});var zV=Function.prototype,UV=zV.apply,HV=zV.bind,$V=zV.call,VV="object"==typeof Reflect&&Reflect.apply||(HV?$V.bind(UV):function(){return $V.apply(UV,arguments)}),WV=mH("species"),KV=RegExp.prototype,qV=function(e,t,n,r){var o=mH(e),i=!pU((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!pU((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[WV]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=kU(/./[o]),l=t(o,""[e],(function(e,t,n,r,o){var a=kU(e),l=t.exec;return l===RV||l===KV.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));r$(String.prototype,e,l[0]),r$(KV,o,l[1])}r&&jH(KV[o],"sham",!0)},GV=kU("".charAt),XV=kU("".charCodeAt),YV=kU("".slice),ZV=function(e){return function(t,n){var r,o,i=lV(jU(t)),a=a$(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=XV(i,a))<55296||r>56319||a+1===u||(o=XV(i,a+1))<56320||o>57343?e?GV(i,a):r:e?YV(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),JV=function(e,t,n){return t+(n?ZV(e,t).length:1)},QV=Math.floor,eW=kU("".charAt),tW=kU("".replace),nW=kU("".slice),rW=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,oW=/\$([$&'`]|\d{1,2})/g,iW=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,l=oW;return void 0!==o&&(o=uH(o),l=rW),tW(i,l,(function(i,l){var s;switch(eW(l,0)){case"$":return"$";case"&":return e;case"`":return nW(t,0,n);case"'":return nW(t,a);case"<":s=o[nW(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>u){var d=QV(c/10);return 0===d?i:d<=u?void 0===r[d-1]?eW(l,1):r[d-1]+eW(l,1):i}s=r[c-1]}return void 0===s?"":s}))},aW=fU.TypeError,uW=function(e,t){var n=e.exec;if(MU(n)){var r=gU(n,e,t);return null!==r&&TH(r),r}if("RegExp"===AU(e))return gU(RV,e,t);throw aW("RegExp#exec called on incompatible receiver")},lW=mH("replace"),sW=Math.max,cW=Math.min,dW=kU([].concat),fW=kU([].push),pW=kU("".indexOf),hW=kU("".slice),vW="$0"==="a".replace(/./,"$0"),gW=!!/./[lW]&&""===/./[lW]("a","$0");qV("replace",(function(e,t,n){var r=gW?"$":"$0";return[function(e,n){var r=jU(this),o=null==e?void 0:eH(e,lW);return o?gU(o,e,r,n):gU(t,lV(r),e,n)},function(e,o){var i=TH(this),a=lV(e);if("string"==typeof o&&-1===pW(o,r)&&-1===pW(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var l=MU(o);l||(o=lV(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var f=uW(i,a);if(null===f)break;if(fW(d,f),!s)break;""===lV(f[0])&&(i.lastIndex=JV(a,d$(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<d.length;g++){for(var y=lV((f=d[g])[0]),m=sW(cW(a$(f.index),a.length),0),b=[],w=1;w<f.length;w++)fW(b,void 0===(p=f[w])?p:String(p));var x=f.groups;if(l){var E=dW([y],b,m,a);void 0!==x&&fW(E,x);var C=lV(VV(o,void 0,E))}else C=iW(y,a,m,b,x,o);m>=v&&(h+=hW(a,v,m)+C,v=m+y.length)}return h+hW(a,v)}]}),!!pU((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!vW||gW);var yW=mH("unscopables"),mW=Array.prototype;null==mW[yW]&&FH.f(mW,yW,{configurable:!0,value:CV(null)});var bW=function(e){mW[yW][e]=!0},wW=tV.find,xW=!0;"find"in[]&&Array(1).find((function(){xW=!1})),F$({target:"Array",proto:!0,forced:xW},{find:function(e){return wW(this,e,arguments.length>1?arguments[1]:void 0)}}),bW("find");var EW=mH("match"),CW=function(e){var t;return NU(e)&&(void 0!==(t=e[EW])?!!t:"RegExp"==AU(e))},DW=fU.TypeError,SW=mH("species"),kW=function(e,t,n){var r=xH(t);r in e?FH.f(e,r,xU(0,n)):e[r]=n},_W=fU.Array,OW=Math.max,AW=function(e,t,n){for(var r=f$(e),o=s$(t,r),i=s$(void 0===n?r:n,r),a=_W(OW(i-o,0)),u=0;o<i;o++,u++)kW(a,u,e[o]);return a.length=u,a},TW=fV.UNSUPPORTED_Y,BW=Math.min,PW=[].push,FW=kU(/./.exec),jW=kU(PW),IW=kU("".slice);qV("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=lV(jU(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!CW(e))return gU(t,r,e,o);for(var i,a,u,l=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,d=new RegExp(e.source,s+"g");(i=gU(RV,d,r))&&!((a=d.lastIndex)>c&&(jW(l,IW(r,c,i.index)),i.length>1&&i.index<r.length&&VV(PW,l,AW(i,1)),u=i[0].length,c=a,l.length>=o));)d.lastIndex===i.index&&d.lastIndex++;return c===r.length?!u&&FW(d,"")||jW(l,""):jW(l,IW(r,c)),l.length>o?AW(l,0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:gU(t,this,e,n)}:t,[function(t,n){var o=jU(this),i=null==t?void 0:eH(t,e);return i?gU(i,t,o,n):gU(r,lV(o),t,n)},function(e,o){var i=TH(this),a=lV(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var l=function(e,t){var n,r=TH(e).constructor;return void 0===r||null==(n=TH(r)[SW])?t:function(e){if(X$(e))return e;throw DW(ZU(e)+" is not a constructor")}(n)}(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(TW?"g":"y"),d=new l(TW?"^(?:"+i.source+")":i,c),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===a.length)return null===uW(d,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){d.lastIndex=TW?0:h;var g,y=uW(d,TW?IW(a,h):a);if(null===y||(g=BW(d$(d.lastIndex+(TW?h:0)),a.length))===p)h=JV(a,h,s);else{if(jW(v,IW(a,p,h)),v.length===f)return v;for(var m=1;m<=y.length-1;m++)if(jW(v,y[m]),v.length===f)return v;h=p=g}}return jW(v,IW(a,p)),v}]}),!!pU((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),TW);var MW="\t\n\v\f\r    \u2028\u2029\ufeff",NW=kU("".replace),LW="["+MW+"]",RW=RegExp("^"+LW+LW+"*"),zW=RegExp(LW+LW+"*$"),UW={trim:function(e){return function(t){var n=lV(jU(t));return 1&e&&(n=NW(n,RW,"")),2&e&&(n=NW(n,zW,"")),n}}(3)},HW=n$.PROPER,$W=UW.trim;function VW(e){return 0===gx("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function WW(e){return 0===e.length?"":e[0].outerHTML}function KW(e){return e.length?e[0].tagName.toLowerCase():""}function qW(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}F$({target:"String",proto:!0,forced:pU((function(){return!!MW.trim()||"…"!=="…".trim()||HW&&"trim"!==MW.trim.name}))},{trim:function(){return $W(this)}}),F$({global:!0},{globalThis:fU}),Bx&&(gx.fn.css=Bx),Nx&&(gx.fn.append=Nx),Lx&&(gx.fn.prepend=Lx),yx&&(gx.fn.addClass=yx),mx&&(gx.fn.removeClass=mx),bx&&(gx.fn.hasClass=bx),Dx&&(gx.fn.on=Dx),Sx&&(gx.fn.off=Sx),Gx&&(gx.fn.focus=Gx),wx&&(gx.fn.attr=wx),xx&&(gx.fn.removeAttr=xx),Ax&&(gx.fn.hide=Ax),Tx&&(gx.fn.show=Tx),zx&&(gx.fn.parents=zx),Ex&&(gx.fn.dataset=Ex),Cx&&(gx.fn.val=Cx),Ix&&(gx.fn.text=Ix),jx&&(gx.fn.html=jx),Hx&&(gx.fn.children=Hx),$x&&(gx.fn.remove=$x),Ux&&(gx.fn.find=Ux),kx&&(gx.fn.width=kx),_x&&(gx.fn.height=_x),Fx&&(gx.fn.filter=Fx),Vx&&(gx.fn.empty=Vx);var GW={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e);return 0===(t=t.filter((function(e){return!!Lb.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},XW=function(e,t){return XW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},XW(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 YW(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}XW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ZW=function(){return ZW=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},ZW.apply(this,arguments)};function JW(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function QW(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function eK(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function tK(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function nK(e){var t=tK(hb.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!lb.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==bb.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Lb.isText(o[0])&&(nw.setNodes(e,{type:"paragraph"}),!0)}var rK={renderElems:[aU],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[GW],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){nK(r)||t(e)},r.deleteForward=function(e){nK(r)||n(e)},r}},oK=/"/g,iK=kU("".replace),aK=function(e,t,n,r){var o=lV(jU(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+iK(lV(r),oK,"&quot;")+'"'),i+">"+o+"</"+t+">"},uK=function(e){return pU((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function lK(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 sK(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}F$({target:"String",proto:!0,forced:uK("bold")},{bold:function(){return aK(this,"b","","")}}),F$({target:"String",proto:!0,forced:uK("italics")},{italics:function(){return aK(this,"i","","")}}),F$({target:"String",proto:!0,forced:uK("sub")},{sub:function(){return aK(this,"sub","","")}}),F$({target:"String",proto:!0,forced:uK("sup")},{sup:function(){return aK(this,"sup","","")}});var cK={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},dK=DH("span").classList,fK=dK&&dK.constructor&&dK.constructor.prototype,pK=fK===Object.prototype?void 0:fK,hK=function(e,t){var n=[][e];return!!n&&pU((function(){n.call(null,t||function(){throw 1},1)}))},vK=tV.forEach,gK=hK("forEach")?[].forEach:function(e){return vK(this,e,arguments.length>1?arguments[1]:void 0)},yK=function(e){if(e&&e.forEach!==gK)try{jH(e,"forEach",gK)}catch(t){e.forEach=gK}};for(var mK in cK)cK[mK]&&yK(fU[mK]&&fU[mK].prototype);function bK(e,t){return null==e.selection||!!tK(hb.nodes(e,{match:function(t){return"pre"===lI.getNodeType(t)||!!hb.isVoid(e,t)},universal:!0}),1)[0]}function wK(e,t){Object.keys(t).forEach((function(t){"text"!==t&&hb.removeMark(e,t)}))}yK(pK),F$({target:"Object",stat:!0,forced:pU((function(){pV(1)}))},{keys:function(e){return pV(uH(e))}});var xK=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=hb.marks(e);return n?n[t]:!!tK(hb.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return bK(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),EK='<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>',CK='<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>',DK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=zz("textStyle.bold"),t.iconSvg='<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>',t.hotkey="mod+b",t}return YW(t,e),t}(xK),SK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=zz("textStyle.code"),t.iconSvg='<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>',t.hotkey="mod+e",t}return YW(t,e),t}(xK),kK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=zz("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return YW(t,e),t}(xK),_K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=zz("textStyle.through"),t.iconSvg='<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>',t.hotkey="mod+shift+x",t}return YW(t,e),t}(xK),OK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=zz("textStyle.underline"),t.iconSvg='<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>',t.hotkey="mod+u",t}return YW(t,e),t}(xK),AK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=zz("textStyle.sub"),t.iconSvg='<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>',t.hotkey="",t}return YW(t,e),t}(xK),TK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=zz("textStyle.sup"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return YW(t,e),t}(xK),BK=function(){function e(){this.title=zz("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return bK(e)},e.prototype.exec=function(e,t){var n,r,o=hb.nodes(e,{match:function(e){return Lb.isText(e)},universal:!0});try{for(var i=eK(o),a=i.next();!a.done;a=i.next())wK(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),PK={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,l=n.sub,s=n.sup,c=t;return r&&(c=aC("strong",null,c)),a&&(c=aC("code",null,c)),o&&(c=aC("em",null,c)),i&&(c=aC("u",null,c)),u&&(c=aC("s",null,c)),l&&(c=aC("sub",null,c)),s&&(c=aC("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new DK}},{key:"underline",factory:function(){return new OK}},{key:"italic",factory:function(){return new kK}},{key:"through",factory:function(){return new _K}},{key:"code",factory:function(){return new SK}},{key:"sub",factory:function(){return new AK}},{key:"sup",factory:function(){return new TK}},{key:"clearStyle",factory:function(){return new BK}}],styleToHtml:function(e,t){if(!Lb.isText(e))return t;if(VW(t))return lK(e,t);var n=gx(t);if("br"===KW(n))return lK(e,"<br>");var r=n.html();return r=lK(e,r),n.html(r),WW(n)},parseStyleHtml:function(e,t,n){var r=gx(e);if(!Lb.isText(t))return t;var o=t;return sK(r,"b,strong")&&(o.bold=!0),sK(r,"i,em")&&(o.italic=!0),sK(r,"u")&&(o.underline=!0),sK(r,"s,strike")&&(o.through=!0),sK(r,"sub")&&(o.sub=!0),sK(r,"sup")&&(o.sup=!0),sK(r,"code")&&(o.code=!0),o}};function FK(e){return function(t,n,r){return aC("h"+e,null,n)}}var jK={type:"header1",renderElem:FK(1)},IK={type:"header2",renderElem:FK(2)},MK={type:"header3",renderElem:FK(3)},NK={type:"header4",renderElem:FK(4)},LK={type:"header5",renderElem:FK(5)},RK=n$.PROPER,zK=RegExp.prototype,UK=zK.toString,HK=kU(sV),$K=pU((function(){return"/a/b"!=UK.call({source:"a",flags:"b"})})),VK=RK&&"toString"!=UK.name;($K||VK)&&r$(RegExp.prototype,"toString",(function(){var e=TH(this),t=lV(e.source),n=e.flags;return"/"+t+"/"+lV(void 0===n&&RU(zK,e)&&!("flags"in zK)?HK(e):n)}),{unsafe:!0});var WK,KK=fU.TypeError,qK=function(e){if(CW(e))throw KK("The method doesn't accept regular expressions");return e},GK=mH("match"),XK=function(e){var t=/./;try{"/./"[e](t)}catch(cu){try{return t[GK]=!1,"/./"[e](t)}catch(e){}}return!1},YK=_H.f,ZK=kU("".startsWith),JK=kU("".slice),QK=Math.min,eq=XK("startsWith");function tq(e){var t=tK(hb.nodes(e,{match:function(e){return lI.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=tK(n,1)[0];return lI.getNodeType(r)}function nq(e){return null==e.selection||!tK(hb.nodes(e,{match:function(e){var t=lI.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function rq(e,t){t&&nw.setNodes(e,{type:t})}F$({target:"String",proto:!0,forced:!(!eq&&(WK=YK(String.prototype,"startsWith"),WK&&!WK.writable)||eq)},{startsWith:function(e){var t=lV(jU(this));qK(e);var n=d$(QK(arguments.length>1?arguments[1]:void 0,t.length)),r=lV(e);return ZK?ZK(t,r,n):JK(t,n,n+r.length)===r}});var oq=function(){function e(){this.title=zz("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:zz("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return tq(e)},e.prototype.isDisabled=function(e){return nq(e)},e.prototype.exec=function(e,t){rq(e,t.toString())},e}(),iq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return tq(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return nq(e)},e.prototype.exec=function(e,t){var n=this.type;rq(e,t===n?"paragraph":n)},e}(),aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return YW(t,e),t}(iq),uq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return YW(t,e),t}(iq),lq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return YW(t,e),t}(iq),sq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return YW(t,e),t}(iq),cq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return YW(t,e),t}(iq),dq={key:"headerSelect",factory:function(){return new oq}},fq={key:"header1",factory:function(){return new aq}},pq={key:"header2",factory:function(){return new uq}},hq={key:"header3",factory:function(){return new lq}},vq={key:"header4",factory:function(){return new sq}},gq={key:"header5",factory:function(){return new cq}};function yq(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function mq(e){return function(t,n,r){var o=gx(t);return 0===(n=n.filter((function(e){return!!Lb.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var bq={renderElems:[jK,IK,MK,NK,LK],elemsToHtml:[{type:"header1",elemToHtml:yq(1)},{type:"header2",elemToHtml:yq(2)},{type:"header3",elemToHtml:yq(3)},{type:"header4",elemToHtml:yq(4)},{type:"header5",elemToHtml:yq(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:mq(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:mq(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:mq(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:mq(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:mq(5)}],menus:[dq,fq,pq,hq,vq,gq],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=tK(hb.nodes(n,{match:function(e){return lI.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&lI.isSelectionAtLineEnd(e,r[1])?nw.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},wq=Object.assign,xq=Object.defineProperty,Eq=kU([].concat),Cq=!wq||pU((function(){if(hU&&1!==wq({b:1},wq(xq({},"a",{enumerable:!0,get:function(){xq(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=wq({},e)[n]||pV(wq({},t)).join("")!=r}))?function(e,t){for(var n=uH(e),r=arguments.length,o=1,i=x$.f,a=wU.f;r>o;)for(var u,l=PU(arguments[o++]),s=i?Eq(pV(l),i(l)):pV(l),c=s.length,d=0;c>d;)u=s[d++],hU&&!gU(a,l,u)||(n[u]=l[u]);return n}:wq;function Dq(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}F$({target:"Object",stat:!0,forced:Object.assign!==Cq},{assign:Cq});var Sq={selector:"font",preParseHtml:function(e){var t=gx(e);if("font"!==KW(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},kq=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=hb.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!tK(hb.nodes(e,{match:function(t){return"pre"===lI.getNodeType(t)||!!hb.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=gx('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=gx(r).attr("data-value");"0"===o?hb.removeMark(e,t):hb.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=gx('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=gx('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=zz("color.default")),"bgColor"===t&&(a=zz("color.clear"));var u=gx('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),_q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("color.color"),t.iconSvg='<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>',t.mark="color",t}return YW(t,e),t}(kq),Oq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("color.bgColor"),t.iconSvg='<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>',t.mark="bgColor",t}return YW(t,e),t}(kq),Aq=["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)"],Tq={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Dq(i,{color:r}),o&&Dq(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Lb.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((VW(t)||"span"!==KW(n=gx(t)))&&(n=gx("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),WW(n)):t},preParseHtml:[Sq],parseStyleHtml:function(e,t,n){var r=gx(e);if(!Lb.isText(t))return t;var o=t,i=qW(r,"color");i&&(o.color=i);var a=qW(r,"background-color");return a||(a=qW(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new _q},config:{colors:Aq}},{key:"bgColor",factory:function(){return new Oq},config:{colors:Aq}}]},Bq=/^(?:\w+:)?\/\/(\S+)$/,Pq=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Fq=/^[^\s\.]+\.\S{2,}$/,jq=h$.includes;function Iq(e){return void 0===e&&(e="r"),e+"-"+dE()}function Mq(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Nq(e,t,n,r){return JW(this,0,void 0,(function(){var o,i;return QW(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Lq(e,t,n){return JW(this,0,void 0,(function(){var r;return QW(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 Rq(e){return null==e.selection||!!lI.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function zq(e,t){return{type:"link",url:Mq(e),children:t?[{text:t}]:[]}}function Uq(e,t,n){return JW(this,0,void 0,(function(){var r,o,i;return QW(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Rq(e)?[2]:[4,Nq("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Lq("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Bb.isCollapsed(o)?(e.insertText(" "),i=zq(r,t),nw.insertNodes(e,i),e.insertFragment([{text:" "}])):hb.string(e,o)!==t?(e.deleteFragment(),i=zq(r,t),nw.insertNodes(e,i)):(i=zq(r),nw.wrapNodes(e,i,{split:!0}),nw.collapse(e,{edge:"end"}))),[2]}}))}))}F$({target:"Array",proto:!0},{includes:function(e){return jq(this,e,arguments.length>1?arguments[1]:void 0)}}),bW("includes");var Hq={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return aC("a",{href:o,target:void 0===i?"_blank":i},t)}},$q={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e);return 0===(t=t.filter((function(e){return!!Lb.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Vq(){return Iq("w-e-insert-link")}var Wq=function(){function e(){this.title=zz("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=Vq(),this.urlInputId=Vq(),this.buttonId=Vq()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Rq(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=tK(_R(zz("link.text"),r),2),u=a[0],l=gx(a[1]),s=tK(_R(zz("link.url"),o),2),c=s[0],d=gx(s[1]),f=tK(OR(i,zz("common.ok")),1)[0];if(null==this.$content){var p=gx("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Uq(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(f),null==t||Bb.isCollapsed(t))l.val("");else{var v=hb.string(e,t);l.val(v)}return d.val(""),setTimeout((function(){l.focus()})),h[0]},e}();function Kq(){return Iq("w-e-update-link")}var qq=function(){function e(){this.title=zz("link.edit"),this.iconSvg=EK,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Kq(),this.buttonId=Kq()}return e.prototype.getSelectedLinkElem=function(e){var t=lI.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return lI.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=tK(_R(zz("link.url"),t),2),o=r[0],i=gx(r[1]),a=tK(OR(n,zz("common.ok")),1)[0];if(null==this.$content){var u=gx("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=lI.getSelectedNodeByType(e,"link"),o=r?bb.string(r):"",i=u.find("#"+t).val();!function(e,t,n){JW(this,0,void 0,(function(){var r,o;return QW(this,(function(i){switch(i.label){case 0:return n?[4,Nq("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Lq("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Mq(r)},nw.setNodes(e,o,{match:function(e){return lI.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var l=this.$content;l.empty(),l.append(o),l.append(a);var s=this.getValue(e);return i.val(s),setTimeout((function(){i.focus()})),l[0]},e}(),Gq=function(){function e(){this.title=zz("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==lI.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||nw.unwrapNodes(e,{match:function(e){return lI.checkNodeType(e,"link")}})},e}(),Xq=function(){function e(){this.title=zz("link.view"),this.iconSvg=CK,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=lI.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),Yq={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Zq={renderElems:[Hq],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[$q],menus:[{key:"insertLink",factory:function(){return new Wq},config:Yq},{key:"editLink",factory:function(){return new qq},config:Yq},{key:"unLink",factory:function(){return new Gq}},{key:"viewLink",factory:function(){return new Xq}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(Bq);if(!t)return!1;var n=t[1];return!(!n||!Pq.test(n)&&!Fq.test(n))}(t)){if(!Rq(o)){var r=o.selection;if(null!=r){var i=hb.string(o,r);Uq(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=tK(e,2),n=t[0],i=t[1];return"link"!==lI.getNodeType(n)?r([n,i]):""===bb.string(n)?nw.removeNodes(o,{at:i}):r([n,i])},o}},Jq=kU(1..valueOf),Qq=fU.RangeError,eG=fU.RangeError,tG=fU.String,nG=Math.floor,rG=kU((function(e){var t=lV(jU(this)),n="",r=a$(e);if(r<0||r==1/0)throw Qq("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),oG=kU("".slice),iG=kU(1..toFixed),aG=function(e,t,n){return 0===t?n:t%2==1?aG(e,t-1,n*e):aG(e*e,t/2,n)},uG=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=nG(o/1e7)},lG=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=nG(r/t),r=r%t*1e7},sG=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=tG(e[t]);n=""===n?r:n+rG("0",7-r.length)+r}return n};function cG(e,t){return"w-e-image-container-"+lI.findKey(e,t).id}F$({target:"Number",proto:!0,forced:pU((function(){return"0.000"!==iG(8e-5,3)||"1"!==iG(.9,0)||"1.25"!==iG(1.255,2)||"1000000000000000128"!==iG(0xde0b6b3a7640080,0)}))||!pU((function(){iG({})}))},{toFixed:function(e){var t,n,r,o,i=Jq(this),a=a$(e),u=[0,0,0,0,0,0],l="",s="0";if(a<0||a>20)throw eG("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return tG(i);if(i<0&&(l="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*aG(2,69,1))-69)<0?i*aG(2,-t,1):i/aG(2,t,1),n*=4503599627370496,(t=52-t)>0){for(uG(u,0,n),r=a;r>=7;)uG(u,1e7,0),r-=7;for(uG(u,aG(10,r,1),0),r=t-1;r>=23;)lG(u,1<<23),r-=23;lG(u,1<<r),uG(u,1,1),lG(u,2),s=sG(u)}else uG(u,0,n),uG(u,1<<-t,0),s=sG(u)+rG("0",a);return a>0?l+((o=s.length)<=a?"0."+rG("0",a-o)+s:oG(s,0,o-a)+"."+oG(s,o-a)):l+s}});var dG={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,l=void 0===u?"":u,s=r.style,c=void 0===s?{}:s,d=c.width,f=void 0===d?"":d,p=c.height,h=void 0===p?"":p,v=lI.isNodeSelected(n,e),g={};f&&(g.width="100%"),h&&(g.height="100%");var y=aC("img",{style:g,src:o,alt:a,"data-href":l}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=gx("body"),i=cG(e,t),a=r.width,u=r.height,l=0,s=0,c=0,d=!1,f=null;function p(t){f=function(){var e=gx("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),l=t;var n=f.find("img");if(0===n.length)throw new Error("Cannot find image elem");s=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",v);var r=lI.getHoverbar(e);r&&r.hideAndClean()}var h=_E((function(e){e.preventDefault();var t=e.clientX,n=s+(d?l-t:t-l),r=c*(n/s);null!=f&&(n<=15||r<=15||(f.css("width",n+"px"),f.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=f){var r=f.width().toFixed(2),i=f.height().toFixed(2),a={style:ZW(ZW({},t.style),{width:r+"px",height:i+"px"})};nw.setNodes(e,a,{at:lI.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),aC("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=gx(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(d=!0),p(e.clientX))}}},n,aC("div",{className:"w-e-image-dragger left-top"}),aC("div",{className:"w-e-image-dragger right-top"}),aC("div",{className:"w-e-image-dragger left-bottom"}),aC("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:f,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),aC("div",{id:cG(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:f,height:h})}},fG={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:qW(r,"width"),height:qW(r,"height")},children:[{text:""}]}}};function pG(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),JW(this,0,void 0,(function(){var i,a;return QW(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function hG(e,t,n){return JW(this,0,void 0,(function(){var r;return QW(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 vG(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),JW(this,0,void 0,(function(){var o,i,a;return QW(this,(function(u){switch(u.label){case 0:return[4,pG("insertImage",e,t,n,r)];case 1:return u.sent()?[4,hG("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Mq(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),lI.getSelectedNodeByType(e,"image")&&e.move(1),gG(e)||(nw.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function gG(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||!!tK(hb.nodes(e,{match:function(t){var n=lI.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!hb.isVoid(e,t)},universal:!0}),1)[0]}function yG(){return Iq("w-e-insert-image")}var mG=function(){function e(){this.title=zz("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=yG(),this.altInputId=yG(),this.hrefInputId=yG(),this.buttonId=yG()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return gG(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=tK(_R(zz("image.src"),r),2),l=u[0],s=gx(u[1]),c=tK(_R(zz("image.desc"),o),2),d=c[0],f=gx(c[1]),p=tK(_R(zz("image.link"),i),2),h=p[0],v=gx(p[1]),g=tK(OR(a,zz("common.ok")),1)[0];if(null==this.$content){var y=gx("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),l=y.find("#"+i).val().trim();t.insertImage(e,a,u,l),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(l),m.append(d),m.append(h),m.append(g),s.val(""),f.val(""),v.val(""),setTimeout((function(){s.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||vG(e,t,n,r))},e}(),bG=function(){function e(){this.title=zz("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==lI.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||nw.removeNodes(e,{match:function(e){return lI.checkNodeType(e,"image")}})},e}();function wG(){return Iq("w-e-edit-image")}var xG=function(){function e(){this.title=zz("image.edit"),this.iconSvg=EK,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=wG(),this.altInputId=wG(),this.hrefInputId=wG(),this.buttonId=wG()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return lI.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var l=tK(_R(zz("image.src"),r),2),s=l[0],c=gx(l[1]),d=tK(_R(zz("image.desc"),o),2),f=d[0],p=gx(d[1]),h=tK(_R(zz("image.link"),i),2),v=h[0],g=gx(h[1]),y=tK(OR(a,zz("common.ok")),1)[0];if(null==this.$content){var m=gx("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),l=m.find("#"+i).val();t.updateImage(e,a,u,l),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(s),b.append(f),b.append(v),b.append(y);var w=u,x=w.src,E=w.alt,C=void 0===E?"":E,D=w.href,S=void 0===D?"":D;return c.val(x),p.val(C),g.val(S),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),JW(this,0,void 0,(function(){var i,a,u,l,s,c;return QW(this,(function(d){switch(d.label){case 0:return[4,pG("editImage",e,t,n,r)];case 1:return d.sent()?[4,hG("editImage",e,t)]:[2];case 2:return i=d.sent(),null==(a=lI.getSelectedNodeByType(e,"image"))||(u=a.style,l={src:i,alt:n,href:r,style:ZW(ZW({},void 0===u?{}:u),o)},nw.setNodes(e,l,{match:function(e){return lI.checkNodeType(e,"image")}}),s=lI.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(s)),[2]}}))}))}(e,t,n,r,o))},e}(),EG=function(){function e(){this.title=zz("image.viewLink"),this.iconSvg=CK,this.tag="button"}return e.prototype.getValue=function(e){var t=lI.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),CG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return lI.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=lI.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:ZW(ZW({},void 0===o?{}:o),{width:this.value,height:""})};nw.setNodes(e,i,{match:function(e){return lI.checkNodeType(e,"image")}})}}},e}(),DG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return YW(t,e),t}(CG),SG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return YW(t,e),t}(CG),kG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return YW(t,e),t}(CG),_G={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},OG={renderElems:[dG],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,l=n.style,s=void 0===l?{}:l,c=s.width,d=void 0===c?"":c,f=s.height,p=void 0===f?"":f,h="";return d&&(h+="width: "+d+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[fG],menus:[{key:"insertImage",factory:function(){return new mG},config:_G},{key:"deleteImage",factory:function(){return new bG}},{key:"editImage",factory:function(){return new xG},config:_G},{key:"viewImageLink",factory:function(){return new EG}},{key:"imageWidth30",factory:function(){return new DG}},{key:"imageWidth50",factory:function(){return new SG}},{key:"imageWidth100",factory:function(){return new kG}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},AG={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=aC("div",{style:{margin:"5px 0"}},aC("span",{contentEditable:!1,style:{marginRight:"0.5em"}},aC("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=lI.findPath(n,e),o={checked:t.target.checked};nw.setNodes(n,o,{at:r})}}})),aC("span",null,t));return o}},TG=function(){function e(){this.title=zz("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!lI.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!lI.getSelectedElems(e).some((function(t){if(hb.isVoid(e,t)&&hb.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);nw.setNodes(e,{type:n?"paragraph":"todo"})},e}(),BG={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=gx(e);0===(t=t.filter((function(e){return!!Lb.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},PG={renderElems:[AG],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=gx(e).find("li"),n=gx('<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:[BG],menus:[{key:"todo",factory:function(){return new TG}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Bb.isCollapsed(r)){var o=lI.getSelectedNodeByType(e,"todo");if(o&&0===bb.string(o).length)return void nw.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},FG={type:"blockquote",renderElem:function(e,t,n){return aC("blockquote",null,t)}},jG={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e);return 0===(t=t.filter((function(e){return!!Lb.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},IG=function(){function e(){this.title=zz("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!lI.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!tK(hb.nodes(e,{match:function(e){var t=lI.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";nw.setNodes(e,{type:n},{mode:"highest"})}},e}(),MG={key:"blockquote",factory:function(){return new IG}},NG=kU([].slice),LG=rV("slice"),RG=mH("species"),zG=fU.Array,UG=Math.max;F$({target:"Array",proto:!0,forced:!LG},{slice:function(e,t){var n,r,o,i=IU(this),a=f$(i),u=s$(e,a),l=s$(void 0===t?a:t,a);if(I$(i)&&(n=i.constructor,(X$(n)&&(n===zG||I$(n.prototype))||NU(n)&&null===(n=n[RG]))&&(n=void 0),n===zG||void 0===n))return NG(i,u,l);for(r=new(void 0===n?zG:n)(UG(l-u,0)),o=0;u<l;u++,o++)u in i&&kW(r,o,i[u]);return r.length=o,r}});var HG={renderElems:[FG],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[jG],menus:[MG],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=tK(hb.nodes(e,{match:function(e){return lI.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=lI.findPath(e,a),l=hb.end(e,u);if(_b.equals(l,o.focus)){var s=bb.string(a);if(s&&"\n"===s.slice(-1))return e.deleteBackward("character"),void nw.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},$G=function(){function e(){this.title=zz("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!tK(hb.nodes(e,{match:function(t){return"pre"===lI.getNodeType(t)||!!hb.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=gx('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=gx(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=gx("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),VG={menus:[{key:"emotion",factory:function(){return new $G},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},WG={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},KG={selector:"font",preParseHtml:function(e){var t=gx(e);if("font"!==KW(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",WG[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},qG=kU("".indexOf);F$({target:"String",proto:!0,forced:!XK("includes")},{includes:function(e){return!!~qG(lV(jU(this)),lV(qK(e)),arguments.length>1?arguments[1]:void 0)}});var GG,XG,YG=function(e){return e&&e.Math==Math&&e},ZG=YG("object"==typeof globalThis&&globalThis)||YG("object"==typeof window&&window)||YG("object"==typeof self&&self)||YG("object"==typeof uU&&uU)||function(){return this}()||Function("return this")(),JG=Function.prototype,QG=JG.apply,eX=JG.bind,tX=JG.call,nX="object"==typeof Reflect&&Reflect.apply||(eX?tX.bind(QG):function(){return tX.apply(QG,arguments)}),rX=Function.prototype,oX=rX.bind,iX=rX.call,aX=oX&&oX.bind(iX),uX=oX?function(e){return e&&aX(iX,e)}:function(e){return e&&function(){return iX.apply(e,arguments)}},lX=function(e){return"function"==typeof e},sX=function(e){try{return!!e()}catch(e){return!0}},cX=!sX((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),dX=Function.prototype.call,fX=dX.bind?dX.bind(dX):function(){return dX.apply(dX,arguments)},pX={}.propertyIsEnumerable,hX=Object.getOwnPropertyDescriptor,vX=hX&&!pX.call({1:2},1)?function(e){var t=hX(this,e);return!!t&&t.enumerable}:pX,gX={f:vX},yX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mX=uX({}.toString),bX=uX("".slice),wX=function(e){return bX(mX(e),8,-1)},xX=ZG.Object,EX=uX("".split),CX=sX((function(){return!xX("z").propertyIsEnumerable(0)}))?function(e){return"String"==wX(e)?EX(e,""):xX(e)}:xX,DX=ZG.TypeError,SX=function(e){if(null==e)throw DX("Can't call method on "+e);return e},kX=function(e){return CX(SX(e))},_X=function(e){return"object"==typeof e?null!==e:lX(e)},OX={},AX=function(e){return lX(e)?e:void 0},TX=function(e,t){return arguments.length<2?AX(OX[e])||AX(ZG[e]):OX[e]&&OX[e][t]||ZG[e]&&ZG[e][t]},BX=uX({}.isPrototypeOf),PX=TX("navigator","userAgent")||"",FX=ZG.process,jX=ZG.Deno,IX=FX&&FX.versions||jX&&jX.version,MX=IX&&IX.v8;MX&&(XG=(GG=MX.split("."))[0]>0&&GG[0]<4?1:+(GG[0]+GG[1])),!XG&&PX&&(!(GG=PX.match(/Edge\/(\d+)/))||GG[1]>=74)&&(GG=PX.match(/Chrome\/(\d+)/))&&(XG=+GG[1]);var NX=XG,LX=!!Object.getOwnPropertySymbols&&!sX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&NX&&NX<41})),RX=LX&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zX=ZG.Object,UX=RX?function(e){return"symbol"==typeof e}:function(e){var t=TX("Symbol");return lX(t)&&BX(t.prototype,zX(e))},HX=ZG.String,$X=ZG.TypeError,VX=function(e){if(lX(e))return e;throw $X(function(e){try{return HX(e)}catch(e){return"Object"}}(e)+" is not a function")},WX=ZG.TypeError,KX=Object.defineProperty,qX=ZG["__core-js_shared__"]||function(e,t){try{KX(ZG,e,{value:t,configurable:!0,writable:!0})}catch(cu){ZG[e]=t}return t}("__core-js_shared__",{}),GX=lU((function(e){(e.exports=function(e,t){return qX[e]||(qX[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),XX=ZG.Object,YX=function(e){return XX(SX(e))},ZX=uX({}.hasOwnProperty),JX=Object.hasOwn||function(e,t){return ZX(YX(e),t)},QX=0,eY=Math.random(),tY=uX(1..toString),nY=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tY(++QX+eY,36)},rY=GX("wks"),oY=ZG.Symbol,iY=oY&&oY.for,aY=RX?oY:oY&&oY.withoutSetter||nY,uY=function(e){if(!JX(rY,e)||!LX&&"string"!=typeof rY[e]){var t="Symbol."+e;LX&&JX(oY,e)?rY[e]=oY[e]:rY[e]=RX&&iY?iY(t):aY(t)}return rY[e]},lY=ZG.TypeError,sY=uY("toPrimitive"),cY=function(e){var t=function(e){if(!_X(e)||UX(e))return e;var t,n,r=null==(t=e[sY])?void 0:VX(t);if(r){if(n=fX(r,e,"string"),!_X(n)||UX(n))return n;throw lY("Can't convert object to primitive value")}return function(e){var t,n;if(lX(t=e.toString)&&!_X(n=fX(t,e)))return n;if(lX(t=e.valueOf)&&!_X(n=fX(t,e)))return n;throw WX("Can't convert object to primitive value")}(e)}(e);return UX(t)?t:t+""},dY=ZG.document,fY=_X(dY)&&_X(dY.createElement),pY=function(e){return fY?dY.createElement(e):{}},hY=!cX&&!sX((function(){return 7!=Object.defineProperty(pY("div"),"a",{get:function(){return 7}}).a})),vY=Object.getOwnPropertyDescriptor,gY={f:cX?vY:function(e,t){if(e=kX(e),t=cY(t),hY)try{return vY(e,t)}catch(e){}if(JX(e,t))return yX(!fX(gX.f,e,t),e[t])}},yY=/#|\.prototype\./,mY=function(e,t){var n=wY[bY(e)];return n==EY||n!=xY&&(lX(t)?sX(t):!!t)},bY=mY.normalize=function(e){return String(e).replace(yY,".").toLowerCase()},wY=mY.data={},xY=mY.NATIVE="N",EY=mY.POLYFILL="P",CY=mY,DY=uX(uX.bind),SY=function(e,t){return VX(e),void 0===t?e:DY?DY(e,t):function(){return e.apply(t,arguments)}},kY=ZG.String,_Y=ZG.TypeError,OY=function(e){if(_X(e))return e;throw _Y(kY(e)+" is not an object")},AY=ZG.TypeError,TY=Object.defineProperty,BY={f:cX?TY:function(e,t,n){if(OY(e),t=cY(t),OY(n),hY)try{return TY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw AY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},PY=cX?function(e,t,n){return BY.f(e,t,yX(1,n))}:function(e,t,n){return e[t]=n,e},FY=gY.f,jY=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 nX(e,this,arguments)};return t.prototype=e.prototype,t},IY=function(e,t){var n,r,o,i,a,u,l,s,c=e.target,d=e.global,f=e.stat,p=e.proto,h=d?ZG:f?ZG[c]:(ZG[c]||{}).prototype,v=d?OX:OX[c]||PY(OX,c,{})[c],g=v.prototype;for(o in t)n=!CY(d?o:c+(f?".":"#")+o,e.forced)&&h&&JX(h,o),a=v[o],n&&(u=e.noTargetGet?(s=FY(h,o))&&s.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(l=e.bind&&n?SY(i,ZG):e.wrap&&n?jY(i):p&&lX(i)?uX(i):i,(e.sham||i&&i.sham||a&&a.sham)&&PY(l,"sham",!0),PY(v,o,l),p&&(JX(OX,r=c+"Prototype")||PY(OX,r,{}),PY(OX[r],o,i),e.real&&g&&!g[o]&&PY(g,o,i)))},MY=Array.isArray||function(e){return"Array"==wX(e)},NY=Math.ceil,LY=Math.floor,RY=function(e){var t=+e;return t!=t||0===t?0:(t>0?LY:NY)(t)},zY=Math.min,UY=function(e){return(t=e.length)>0?zY(RY(t),9007199254740991):0;var t},HY=function(e,t,n){var r=cY(t);r in e?BY.f(e,r,yX(0,n)):e[r]=n},$Y={};$Y[uY("toStringTag")]="z";var VY="[object z]"===String($Y),WY=uY("toStringTag"),KY=ZG.Object,qY="Arguments"==wX(function(){return arguments}()),GY=VY?wX:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=KY(e),WY))?n:qY?wX(t):"Object"==(r=wX(t))&&lX(t.callee)?"Arguments":r},XY=uX(Function.toString);lX(qX.inspectSource)||(qX.inspectSource=function(e){return XY(e)});var YY=qX.inspectSource,ZY=function(){},JY=[],QY=TX("Reflect","construct"),eZ=/^\s*(?:class|function)\b/,tZ=uX(eZ.exec),nZ=!eZ.exec(ZY),rZ=function(e){if(!lX(e))return!1;try{return QY(ZY,JY,e),!0}catch(e){return!1}},oZ=!QY||sX((function(){var e;return rZ(rZ.call)||!rZ(Object)||!rZ((function(){e=!0}))||e}))?function(e){if(!lX(e))return!1;switch(GY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nZ||!!tZ(eZ,YY(e))}:rZ,iZ=uY("species"),aZ=ZG.Array,uZ=function(e,t){return new(function(e){var t;return MY(e)&&(t=e.constructor,(oZ(t)&&(t===aZ||MY(t.prototype))||_X(t)&&null===(t=t[iZ]))&&(t=void 0)),void 0===t?aZ:t}(e))(0===t?0:t)},lZ=uY("species"),sZ=uY("isConcatSpreadable"),cZ=ZG.TypeError,dZ=NX>=51||!sX((function(){var e=[];return e[sZ]=!1,e.concat()[0]!==e})),fZ=NX>=51||!sX((function(){var e=[];return(e.constructor={})[lZ]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),pZ=function(e){if(!_X(e))return!1;var t=e[sZ];return void 0!==t?!!t:MY(e)};IY({target:"Array",proto:!0,forced:!dZ||!fZ},{concat:function(e){var t,n,r,o,i,a=YX(this),u=uZ(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(pZ(i=-1===t?a:arguments[t])){if(l+(o=UY(i))>9007199254740991)throw cZ("Maximum allowed index exceeded");for(n=0;n<o;n++,l++)n in i&&HY(u,l,i[n])}else{if(l>=9007199254740991)throw cZ("Maximum allowed index exceeded");HY(u,l++,i)}return u.length=l,u}});var hZ,vZ=ZG.String,gZ=function(e){if("Symbol"===GY(e))throw TypeError("Cannot convert a Symbol value to a string");return vZ(e)},yZ=Math.max,mZ=Math.min,bZ=function(e,t){var n=RY(e);return n<0?yZ(n+t,0):mZ(n,t)},wZ={indexOf:function(e){return function(t,n,r){var o,i=kX(t),a=UY(i),u=bZ(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1)},xZ={},EZ=wZ.indexOf,CZ=uX([].push),DZ=function(e,t){var n,r=kX(e),o=0,i=[];for(n in r)!JX(xZ,n)&&JX(r,n)&&CZ(i,n);for(;t.length>o;)JX(r,n=t[o++])&&(~EZ(i,n)||CZ(i,n));return i},SZ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kZ=Object.keys||function(e){return DZ(e,SZ)},_Z=cX?Object.defineProperties:function(e,t){OY(e);for(var n,r=kX(t),o=kZ(t),i=o.length,a=0;i>a;)BY.f(e,n=o[a++],r[n]);return e},OZ=TX("document","documentElement"),AZ=GX("keys"),TZ=function(e){return AZ[e]||(AZ[e]=nY(e))},BZ=TZ("IE_PROTO"),PZ=function(){},FZ=function(e){return"<script>"+e+"<\/script>"},jZ=function(e){e.write(FZ("")),e.close();var t=e.parentWindow.Object;return e=null,t},IZ=function(){try{hZ=new ActiveXObject("htmlfile")}catch(e){}var e,t;IZ="undefined"!=typeof document?document.domain&&hZ?jZ(hZ):((t=pY("iframe")).style.display="none",OZ.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(FZ("document.F=Object")),e.close(),e.F):jZ(hZ);for(var n=SZ.length;n--;)delete IZ.prototype[SZ[n]];return IZ()};xZ[BZ]=!0;var MZ,NZ,LZ,RZ=Object.create||function(e,t){var n;return null!==e?(PZ.prototype=OY(e),n=new PZ,PZ.prototype=null,n[BZ]=e):n=IZ(),void 0===t?n:_Z(n,t)},zZ=SZ.concat("length","prototype"),UZ={f:Object.getOwnPropertyNames||function(e){return DZ(e,zZ)}},HZ=ZG.Array,$Z=Math.max,VZ=UZ.f,WZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KZ={f:function(e){return WZ&&"Window"==wX(e)?function(e){try{return VZ(e)}catch(e){return function(e){for(var t=UY(e),n=bZ(void 0,t),r=bZ(t,t),o=HZ($Z(r-n,0)),i=0;n<r;n++,i++)HY(o,i,e[n]);return o.length=i,o}(WZ)}}(e):VZ(kX(e))}},qZ={f:Object.getOwnPropertySymbols},GZ=uX([].slice),XZ=function(e,t,n,r){PY(e,t,n)},YZ={f:uY},ZZ=BY.f,JZ=function(e){var t=OX.Symbol||(OX.Symbol={});JX(t,e)||ZZ(t,e,{value:YZ.f(e)})},QZ=VY?{}.toString:function(){return"[object "+GY(this)+"]"},eJ=BY.f,tJ=uY("toStringTag"),nJ=function(e,t,n,r){if(e){var o=n?e:e.prototype;JX(o,tJ)||eJ(o,tJ,{configurable:!0,value:t}),r&&!VY&&PY(o,"toString",QZ)}},rJ=ZG.WeakMap,oJ=lX(rJ)&&/native code/.test(YY(rJ)),iJ=ZG.TypeError,aJ=ZG.WeakMap;if(oJ||qX.state){var uJ=qX.state||(qX.state=new aJ),lJ=uX(uJ.get),sJ=uX(uJ.has),cJ=uX(uJ.set);MZ=function(e,t){if(sJ(uJ,e))throw new iJ("Object already initialized");return t.facade=e,cJ(uJ,e,t),t},NZ=function(e){return lJ(uJ,e)||{}},LZ=function(e){return sJ(uJ,e)}}else{var dJ=TZ("state");xZ[dJ]=!0,MZ=function(e,t){if(JX(e,dJ))throw new iJ("Object already initialized");return t.facade=e,PY(e,dJ,t),t},NZ=function(e){return JX(e,dJ)?e[dJ]:{}},LZ=function(e){return JX(e,dJ)}}var fJ={set:MZ,get:NZ,has:LZ,enforce:function(e){return LZ(e)?NZ(e):MZ(e,{})},getterFor:function(e){return function(t){var n;if(!_X(t)||(n=NZ(t)).type!==e)throw iJ("Incompatible receiver, "+e+" required");return n}}},pJ=uX([].push),hJ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=YX(l),v=CX(h),g=SY(s,c),y=UY(v),m=0,b=d||uZ,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:pJ(w,f)}else switch(e){case 4:return!1;case 7:pJ(w,f)}return i?-1:r||o?o:w}},vJ=[hJ(0),hJ(1),hJ(2),hJ(3),hJ(4),hJ(5),hJ(6),hJ(7)][0],gJ=TZ("hidden"),yJ=uY("toPrimitive"),mJ=fJ.set,bJ=fJ.getterFor("Symbol"),wJ=Object.prototype,xJ=ZG.Symbol,EJ=xJ&&xJ.prototype,CJ=ZG.TypeError,DJ=ZG.QObject,SJ=TX("JSON","stringify"),kJ=gY.f,_J=BY.f,OJ=KZ.f,AJ=gX.f,TJ=uX([].push),BJ=GX("symbols"),PJ=GX("op-symbols"),FJ=GX("string-to-symbol-registry"),jJ=GX("symbol-to-string-registry"),IJ=GX("wks"),MJ=!DJ||!DJ.prototype||!DJ.prototype.findChild,NJ=cX&&sX((function(){return 7!=RZ(_J({},"a",{get:function(){return _J(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=kJ(wJ,t);r&&delete wJ[t],_J(e,t,n),r&&e!==wJ&&_J(wJ,t,r)}:_J,LJ=function(e,t){var n=BJ[e]=RZ(EJ);return mJ(n,{type:"Symbol",tag:e,description:t}),cX||(n.description=t),n},RJ=function(e,t,n){e===wJ&&RJ(PJ,t,n),OY(e);var r=cY(t);return OY(n),JX(BJ,r)?(n.enumerable?(JX(e,gJ)&&e[gJ][r]&&(e[gJ][r]=!1),n=RZ(n,{enumerable:yX(0,!1)})):(JX(e,gJ)||_J(e,gJ,yX(1,{})),e[gJ][r]=!0),NJ(e,r,n)):_J(e,r,n)},zJ=function(e,t){OY(e);var n=kX(t),r=kZ(n).concat(VJ(n));return vJ(r,(function(t){cX&&!fX(UJ,n,t)||RJ(e,t,n[t])})),e},UJ=function(e){var t=cY(e),n=fX(AJ,this,t);return!(this===wJ&&JX(BJ,t)&&!JX(PJ,t))&&(!(n||!JX(this,t)||!JX(BJ,t)||JX(this,gJ)&&this[gJ][t])||n)},HJ=function(e,t){var n=kX(e),r=cY(t);if(n!==wJ||!JX(BJ,r)||JX(PJ,r)){var o=kJ(n,r);return!o||!JX(BJ,r)||JX(n,gJ)&&n[gJ][r]||(o.enumerable=!0),o}},$J=function(e){var t=OJ(kX(e)),n=[];return vJ(t,(function(e){JX(BJ,e)||JX(xZ,e)||TJ(n,e)})),n},VJ=function(e){var t=e===wJ,n=OJ(t?PJ:kX(e)),r=[];return vJ(n,(function(e){!JX(BJ,e)||t&&!JX(wJ,e)||TJ(r,BJ[e])})),r};if(LX||(EJ=(xJ=function(){if(BX(EJ,this))throw CJ("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?gZ(arguments[0]):void 0,t=nY(e),n=function(e){this===wJ&&fX(n,PJ,e),JX(this,gJ)&&JX(this[gJ],t)&&(this[gJ][t]=!1),NJ(this,t,yX(1,e))};return cX&&MJ&&NJ(wJ,t,{configurable:!0,set:n}),LJ(t,e)}).prototype,XZ(EJ,"toString",(function(){return bJ(this).tag})),XZ(xJ,"withoutSetter",(function(e){return LJ(nY(e),e)})),gX.f=UJ,BY.f=RJ,gY.f=HJ,UZ.f=KZ.f=$J,qZ.f=VJ,YZ.f=function(e){return LJ(uY(e),e)},cX&&_J(EJ,"description",{configurable:!0,get:function(){return bJ(this).description}})),IY({global:!0,wrap:!0,forced:!LX,sham:!LX},{Symbol:xJ}),vJ(kZ(IJ),(function(e){JZ(e)})),IY({target:"Symbol",stat:!0,forced:!LX},{for:function(e){var t=gZ(e);if(JX(FJ,t))return FJ[t];var n=xJ(t);return FJ[t]=n,jJ[n]=t,n},keyFor:function(e){if(!UX(e))throw CJ(e+" is not a symbol");if(JX(jJ,e))return jJ[e]},useSetter:function(){MJ=!0},useSimple:function(){MJ=!1}}),IY({target:"Object",stat:!0,forced:!LX,sham:!cX},{create:function(e,t){return void 0===t?RZ(e):zJ(RZ(e),t)},defineProperty:RJ,defineProperties:zJ,getOwnPropertyDescriptor:HJ}),IY({target:"Object",stat:!0,forced:!LX},{getOwnPropertyNames:$J,getOwnPropertySymbols:VJ}),IY({target:"Object",stat:!0,forced:sX((function(){qZ.f(1)}))},{getOwnPropertySymbols:function(e){return qZ.f(YX(e))}}),SJ){var WJ=!LX||sX((function(){var e=xJ();return"[null]"!=SJ([e])||"{}"!=SJ({a:e})||"{}"!=SJ(Object(e))}));IY({target:"JSON",stat:!0,forced:WJ},{stringify:function(e,t,n){var r=GZ(arguments),o=t;if((_X(t)||void 0!==e)&&!UX(e))return MY(t)||(t=function(e,t){if(lX(o)&&(t=fX(o,this,e,t)),!UX(t))return t}),r[1]=t,nX(SJ,null,r)}})}if(!EJ[yJ]){var KJ=EJ.valueOf;XZ(EJ,yJ,(function(e){return fX(KJ,this)}))}nJ(xJ,"Symbol"),xZ[gJ]=!0,JZ("asyncIterator"),JZ("hasInstance"),JZ("isConcatSpreadable"),JZ("iterator"),JZ("match"),JZ("matchAll"),JZ("replace"),JZ("search"),JZ("species"),JZ("split"),JZ("toPrimitive"),JZ("toStringTag"),JZ("unscopables"),nJ(ZG.JSON,"JSON",!0);var qJ,GJ,XJ,YJ=OX.Symbol,ZJ={},JJ=Function.prototype,QJ=cX&&Object.getOwnPropertyDescriptor,eQ=JX(JJ,"name"),tQ={PROPER:eQ&&"something"===function(){}.name,CONFIGURABLE:eQ&&(!cX||cX&&QJ(JJ,"name").configurable)},nQ=!sX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rQ=TZ("IE_PROTO"),oQ=ZG.Object,iQ=oQ.prototype,aQ=nQ?oQ.getPrototypeOf:function(e){var t=YX(e);if(JX(t,rQ))return t[rQ];var n=t.constructor;return lX(n)&&t instanceof n?n.prototype:t instanceof oQ?iQ:null},uQ=uY("iterator"),lQ=!1;[].keys&&("next"in(XJ=[].keys())?(GJ=aQ(aQ(XJ)))!==Object.prototype&&(qJ=GJ):lQ=!0);var sQ=null==qJ||sX((function(){var e={};return qJ[uQ].call(e)!==e}));qJ=sQ?{}:RZ(qJ),lX(qJ[uQ])||XZ(qJ,uQ,(function(){return this}));var cQ={IteratorPrototype:qJ,BUGGY_SAFARI_ITERATORS:lQ},dQ=cQ.IteratorPrototype,fQ=function(){return this};ZG.String,ZG.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{uX(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var pQ=tQ.PROPER,hQ=cQ.BUGGY_SAFARI_ITERATORS,vQ=uY("iterator"),gQ=function(){return this},yQ=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=RZ(dQ,{next:yX(1,n)}),nJ(e,r,!1,!0),ZJ[r]=fQ}(n,t,r);var u,l,s=function(e){if(e===o&&h)return h;if(!hQ&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[vQ]||f["@@iterator"]||o&&f[o],h=!hQ&&p||s(o),v="Array"==t&&f.entries||p;return v&&(u=aQ(v.call(new e)))!==Object.prototype&&u.next&&(nJ(u,c,!0,!0),ZJ[c]=gQ),pQ&&"values"==o&&p&&"values"!==p.name&&(d=!0,h=function(){return fX(p,this)}),o&&(l={values:s("values"),keys:s("keys"),entries:s("entries")},a||IY({target:t,proto:!0,forced:hQ||d},l)),ZJ[t]=h,l},mQ=fJ.set,bQ=fJ.getterFor("Array Iterator");yQ(Array,"Array",(function(e,t){mQ(this,{type:"Array Iterator",target:kX(e),index:0,kind:t})}),(function(){var e=bQ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),ZJ.Arguments=ZJ.Array;var wQ=uY("toStringTag");for(var xQ 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 EQ=ZG[xQ],CQ=EQ&&EQ.prototype;CQ&&GY(CQ)!==wQ&&PY(CQ,wQ,xQ),ZJ[xQ]=ZJ.Array}var DQ=YJ;JZ("asyncDispose"),JZ("dispose"),JZ("matcher"),JZ("metadata"),JZ("observable"),JZ("patternMatch"),JZ("replaceAll");var SQ=DQ,kQ=uX("".charAt),_Q=uX("".charCodeAt),OQ=uX("".slice),AQ=function(e){return function(t,n){var r,o,i=gZ(SX(t)),a=RY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=_Q(i,a))<55296||r>56319||a+1===u||(o=_Q(i,a+1))<56320||o>57343?e?kQ(i,a):r:e?OQ(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),TQ=fJ.set,BQ=fJ.getterFor("String Iterator");yQ(String,"String",(function(e){TQ(this,{type:"String Iterator",string:gZ(e),index:0})}),(function(){var e,t=BQ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=AQ(n,r),t.index+=e.length,{value:e,done:!1})}));var PQ=YZ.f("iterator"),FQ=lU((function(e){function t(n){return"function"==typeof SQ&&"symbol"==typeof PQ?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof SQ&&e.constructor===SQ&&e!==SQ.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),jQ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(FQ),IQ=n$.EXISTS,MQ=FH.f,NQ=Function.prototype,LQ=kU(NQ.toString),RQ=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zQ=kU(RQ.exec);hU&&!IQ&&MQ(NQ,"name",{configurable:!0,get:function(){try{return zQ(RQ,LQ(this))[1]}catch(su){return""}}});var UQ=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=hb.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!tK(hb.nodes(e,{match:function(t){return"pre"===lI.getNodeType(t)||!!hb.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),HQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return YW(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:zz("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===jQ(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(UQ),$Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("fontFamily.title"),t.iconSvg='<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>',t.mark="fontFamily",t.selectPanelWidth=150,t}return YW(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:zz("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===jQ(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(UQ),VQ={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Dq(i,{fontSize:r}),o&&Dq(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Lb.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((VW(t)||"span"!==KW(n=gx(t)))&&(n=gx("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),WW(n)):t},preParseHtml:[KG],parseStyleHtml:function(e,t,n){var r=gx(e);if(!Lb.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=qW(r,"font-size"),l=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&l&&(o.fontSize=u);var s=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===s?[]:s,d=qW(r,"font-family").replace(/"/g,""),f=c.find((function(e){return e.value&&e.value===d}))||c.includes(d);return d&&f&&(o.fontFamily=d),o},menus:[{key:"fontSize",factory:function(){return new HQ},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new $Q},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},WQ={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=gx(e),n=qW(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]}},KQ=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=tK(hb.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":tK(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=tK(hb.nodes(e,{match:function(e){var t=lI.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),qQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return YW(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){nw.setNodes(e,{indent:null},{match:function(e){return lb.isElement(e)}})},t}(KQ),GQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t}return YW(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){nw.setNodes(e,{indent:"2em"},{match:function(e){return lb.isElement(e)},mode:"highest"})},t}(KQ),XQ={renderStyle:function(e,t){if(!lb.isElement(e))return t;var n=e.indent,r=t;return n&&Dq(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!lb.isElement(e))return t;var n=e.indent;if(!n)return t;var r=gx(t);return r.css("text-indent",n),WW(r)},preParseHtml:[WQ],parseStyleHtml:function(e,t,n){var r=gx(e);if(!lb.isElement(t))return t;var o=t,i=qW(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new GQ}},{key:"delIndent",factory:function(){return new qQ}}]},YQ=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=tK(hb.nodes(e,{match:function(e){var t=lI.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!lI.getSelectedElems(e).some((function(t){if(hb.isVoid(e,t)&&hb.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),ZQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("justify.left"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return YW(t,e),t.prototype.exec=function(e,t){nw.setNodes(e,{textAlign:"left"},{match:function(t){return lb.isElement(t)&&!e.isInline(t)}})},t}(YQ),JQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("justify.right"),t.iconSvg='<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>',t}return YW(t,e),t.prototype.exec=function(e,t){nw.setNodes(e,{textAlign:"right"},{match:function(t){return lb.isElement(t)&&!e.isInline(t)}})},t}(YQ),QQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("justify.center"),t.iconSvg='<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>',t}return YW(t,e),t.prototype.exec=function(e,t){nw.setNodes(e,{textAlign:"center"},{match:function(t){return lb.isElement(t)&&!e.isInline(t)}})},t}(YQ),e0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=zz("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return YW(t,e),t.prototype.exec=function(e,t){nw.setNodes(e,{textAlign:"justify"},{match:function(t){return lb.isElement(t)&&!e.isInline(t)}})},t}(YQ),t0={renderStyle:function(e,t){if(!lb.isElement(e))return t;var n=e.textAlign,r=t;return n&&Dq(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!lb.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=gx(t);return r.css("text-align",n),WW(r)},parseStyleHtml:function(e,t,n){var r=gx(e);if(!lb.isElement(t))return t;var o=t,i=qW(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new ZQ}},{key:"justifyRight",factory:function(){return new JQ}},{key:"justifyCenter",factory:function(){return new QQ}},{key:"justifyJustify",factory:function(){return new e0}}]},n0=function(){function e(){this.title=zz("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:zz("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=tK(hb.nodes(e,{match:function(e){var t=lI.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":lb.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){nw.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),r0={renderStyle:function(e,t){if(!lb.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Dq(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!lb.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=gx(t);return r.css("line-height",n),WW(r)},parseStyleHtml:function(e,t,n){var r=gx(e);if(!lb.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=qW(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new n0},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},o0=function(){function e(){this.title=zz("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),i0=function(){function e(){this.title=zz("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),a0={menus:[{key:"redo",factory:function(){return new o0}},{key:"undo",factory:function(){return new i0}}]},u0={type:"divider",renderElem:function(e,t,n){return zE("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:lI.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[zE("hr")])}},l0=function(){function e(){this.title=zz("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!lI.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=lI.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){nw.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),s0={renderElems:[u0],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new l0}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=tK(e,2),o=t[0],i=t[1];if("divider"!==lI.getNodeType(o))return n([o,i]);lI.isLastNode(r,o)&&nw.insertNodes(r,lI.genEmptyParagraph(),{at:[i[0]+1]})},r}},c0=tV.map;F$({target:"Array",proto:!0,forced:!rV("map")},{map:function(e){return c0(this,e,arguments.length>1?arguments[1]:void 0)}});var d0=kU([].join),f0=PU!=Object,p0=hK("join",",");F$({target:"Array",proto:!0,forced:f0||!p0},{join:function(e){return d0(IU(this),void 0===e?",":e)}});var h0=function(){function e(){this.title=zz("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=lI.getSelectedNodeByType(e,"code");if(null==t)return null;var n=lI.getParentNode(e,t);return null==n||"pre"!==lI.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=lI.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=lI.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=bb.string(t);nw.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));nw.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=hb.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=eK(i),u=a.next();!u.done;u=a.next()){var l=tK(u.value,1)[0];l&&o.push(bb.string(l))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}nw.removeNodes(e,{mode:"highest"});var s={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};nw.insertNodes(e,s,{mode:"highest"})},e}(),v0={key:"codeBlock",factory:function(){return new h0}};F$({target:"String",proto:!0,forced:uK("anchor")},{anchor:function(e){return aK(this,"a","name",e)}}),qV("match",(function(e,t,n){return[function(t){var n=jU(this),r=null==t?void 0:eH(t,e);return r?gU(r,t,n):new RegExp(t)[e](lV(n))},function(e){var r=TH(this),o=lV(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return uW(r,o);var a=r.unicode;r.lastIndex=0;for(var u,l=[],s=0;null!==(u=uW(r,o));){var c=lV(u[0]);l[s]=c,""===c&&(r.lastIndex=JV(o,d$(r.lastIndex),a)),s++}return 0===s?null:l}]}));var g0={type:"pre",renderElem:function(e,t,n){return aC("pre",null,t)}},y0={type:"code",renderElem:function(e,t,n){return aC("code",null,t)}},m0={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e);return 0===(t=t.filter((function(e){return"code"===lI.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===lI.getNodeType(e)}))}}},b0={menus:[v0],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=lI.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=bb.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=tK(e,2),r=t[0],i=t[1],a=lI.getNodeType(r);return"code"===a&&i.length<=1&&nw.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(lI.isLastNode(o,r)&&nw.insertNodes(o,lI.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==lI.getNodeType(r.children[0])&&(nw.unwrapNodes(o),nw.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=lI.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");hb.insertText(o,t)}else r(e)},o},renderElems:[g0,y0],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=gx(e);if("code"!==KW(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:gx(e)[0].textContent||""}]}}},m0]},w0=function(){function e(){this.title=zz("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),x0={menus:[{key:"fullScreen",factory:function(){return new w0}}]},E0=function(){function e(){this.title=zz("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Bb.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];nw.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(hb.start(e,r))}},e}(),C0=[PK,Tq,VQ,XQ,t0,r0,OG,s0,VG,Zq,b0,HG,bq,rK,PG,a0,x0,{menus:[{key:"enter",factory:function(){return new E0}}]}];Rz("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Rz("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var D0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function S0(e){var t={exports:{}};return e(t,t.exports),t.exports}var k0,_0,O0=function(e){return e&&e.Math==Math&&e},A0=O0("object"==typeof globalThis&&globalThis)||O0("object"==typeof window&&window)||O0("object"==typeof self&&self)||O0("object"==typeof D0&&D0)||function(){return this}()||Function("return this")(),T0=Function.prototype,B0=T0.bind,P0=T0.call,F0=B0&&B0.bind(P0),j0=B0?function(e){return e&&F0(P0,e)}:function(e){return e&&function(){return P0.apply(e,arguments)}},I0=function(e){try{return!!e()}catch(e){return!0}},M0=j0({}.toString),N0=j0("".slice),L0=function(e){return N0(M0(e),8,-1)},R0=A0.Object,z0=j0("".split),U0=I0((function(){return!R0("z").propertyIsEnumerable(0)}))?function(e){return"String"==L0(e)?z0(e,""):R0(e)}:R0,H0=A0.TypeError,$0=function(e){if(null==e)throw H0("Can't call method on "+e);return e},V0=function(e){return U0($0(e))},W0=Object.defineProperty,K0=function(e,t){try{W0(A0,e,{value:t,configurable:!0,writable:!0})}catch(cu){A0[e]=t}return t},q0=A0["__core-js_shared__"]||K0("__core-js_shared__",{}),G0=S0((function(e){(e.exports=function(e,t){return q0[e]||(q0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X0=A0.Object,Y0=function(e){return X0($0(e))},Z0=j0({}.hasOwnProperty),J0=Object.hasOwn||function(e,t){return Z0(Y0(e),t)},Q0=0,e1=Math.random(),t1=j0(1..toString),n1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+t1(++Q0+e1,36)},r1=function(e){return"function"==typeof e},o1=function(e,t){return arguments.length<2?function(e){return r1(e)?e:void 0}(A0[e]):A0[e]&&A0[e][t]},i1=o1("navigator","userAgent")||"",a1=A0.process,u1=A0.Deno,l1=a1&&a1.versions||u1&&u1.version,s1=l1&&l1.v8;s1&&(_0=(k0=s1.split("."))[0]>0&&k0[0]<4?1:+(k0[0]+k0[1])),!_0&&i1&&(!(k0=i1.match(/Edge\/(\d+)/))||k0[1]>=74)&&(k0=i1.match(/Chrome\/(\d+)/))&&(_0=+k0[1]);var c1,d1=_0,f1=!!Object.getOwnPropertySymbols&&!I0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&d1&&d1<41})),p1=f1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,h1=G0("wks"),v1=A0.Symbol,g1=v1&&v1.for,y1=p1?v1:v1&&v1.withoutSetter||n1,m1=function(e){if(!J0(h1,e)||!f1&&"string"!=typeof h1[e]){var t="Symbol."+e;f1&&J0(v1,e)?h1[e]=v1[e]:h1[e]=p1&&g1?g1(t):y1(t)}return h1[e]},b1=function(e){return"object"==typeof e?null!==e:r1(e)},w1=A0.String,x1=A0.TypeError,E1=function(e){if(b1(e))return e;throw x1(w1(e)+" is not an object")},C1=!I0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),D1=A0.document,S1=b1(D1)&&b1(D1.createElement),k1=function(e){return S1?D1.createElement(e):{}},_1=!C1&&!I0((function(){return 7!=Object.defineProperty(k1("div"),"a",{get:function(){return 7}}).a})),O1=Function.prototype.call,A1=O1.bind?O1.bind(O1):function(){return O1.apply(O1,arguments)},T1=j0({}.isPrototypeOf),B1=A0.Object,P1=p1?function(e){return"symbol"==typeof e}:function(e){var t=o1("Symbol");return r1(t)&&T1(t.prototype,B1(e))},F1=A0.String,j1=function(e){try{return F1(e)}catch(e){return"Object"}},I1=A0.TypeError,M1=function(e){if(r1(e))return e;throw I1(j1(e)+" is not a function")},N1=function(e,t){var n=e[t];return null==n?void 0:M1(n)},L1=A0.TypeError,R1=A0.TypeError,z1=m1("toPrimitive"),U1=function(e){var t=function(e){if(!b1(e)||P1(e))return e;var t,n=N1(e,z1);if(n){if(t=A1(n,e,"string"),!b1(t)||P1(t))return t;throw R1("Can't convert object to primitive value")}return function(e){var t,n;if(r1(t=e.toString)&&!b1(n=A1(t,e)))return n;if(r1(t=e.valueOf)&&!b1(n=A1(t,e)))return n;throw L1("Can't convert object to primitive value")}(e)}(e);return P1(t)?t:t+""},H1=A0.TypeError,$1=Object.defineProperty,V1={f:C1?$1:function(e,t,n){if(E1(e),t=U1(t),E1(n),_1)try{return $1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw H1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},W1=Math.ceil,K1=Math.floor,q1=function(e){var t=+e;return t!=t||0===t?0:(t>0?K1:W1)(t)},G1=Math.max,X1=Math.min,Y1=function(e,t){var n=q1(e);return n<0?G1(n+t,0):X1(n,t)},Z1=Math.min,J1=function(e){return e>0?Z1(q1(e),9007199254740991):0},Q1=function(e){return J1(e.length)},e2=function(e){return function(t,n,r){var o,i=V0(t),a=Q1(i),u=Y1(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}},t2={includes:e2(!0),indexOf:e2(!1)},n2={},r2=t2.indexOf,o2=j0([].push),i2=function(e,t){var n,r=V0(e),o=0,i=[];for(n in r)!J0(n2,n)&&J0(r,n)&&o2(i,n);for(;t.length>o;)J0(r,n=t[o++])&&(~r2(i,n)||o2(i,n));return i},a2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],u2=Object.keys||function(e){return i2(e,a2)},l2=C1?Object.defineProperties:function(e,t){E1(e);for(var n,r=V0(t),o=u2(t),i=o.length,a=0;i>a;)V1.f(e,n=o[a++],r[n]);return e},s2=o1("document","documentElement"),c2=G0("keys"),d2=function(e){return c2[e]||(c2[e]=n1(e))},f2=d2("IE_PROTO"),p2=function(){},h2=function(e){return"<script>"+e+"<\/script>"},v2=function(e){e.write(h2("")),e.close();var t=e.parentWindow.Object;return e=null,t},g2=function(){try{c1=new ActiveXObject("htmlfile")}catch(e){}var e,t;g2="undefined"!=typeof document?document.domain&&c1?v2(c1):((t=k1("iframe")).style.display="none",s2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h2("document.F=Object")),e.close(),e.F):v2(c1);for(var n=a2.length;n--;)delete g2.prototype[a2[n]];return g2()};n2[f2]=!0;var y2=Object.create||function(e,t){var n;return null!==e?(p2.prototype=E1(e),n=new p2,p2.prototype=null,n[f2]=e):n=g2(),void 0===t?n:l2(n,t)},m2=m1("unscopables"),b2=Array.prototype;null==b2[m2]&&V1.f(b2,m2,{configurable:!0,value:y2(null)});var w2=function(e){b2[m2][e]=!0},x2={},E2=j0(Function.toString);r1(q0.inspectSource)||(q0.inspectSource=function(e){return E2(e)});var C2,D2,S2,k2=q0.inspectSource,_2=A0.WeakMap,O2=r1(_2)&&/native code/.test(k2(_2)),A2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T2=C1?function(e,t,n){return V1.f(e,t,A2(1,n))}:function(e,t,n){return e[t]=n,e},B2=A0.TypeError,P2=A0.WeakMap;if(O2||q0.state){var F2=q0.state||(q0.state=new P2),j2=j0(F2.get),I2=j0(F2.has),M2=j0(F2.set);C2=function(e,t){if(I2(F2,e))throw new B2("Object already initialized");return t.facade=e,M2(F2,e,t),t},D2=function(e){return j2(F2,e)||{}},S2=function(e){return I2(F2,e)}}else{var N2=d2("state");n2[N2]=!0,C2=function(e,t){if(J0(e,N2))throw new B2("Object already initialized");return t.facade=e,T2(e,N2,t),t},D2=function(e){return J0(e,N2)?e[N2]:{}},S2=function(e){return J0(e,N2)}}var L2,R2,z2,U2={set:C2,get:D2,has:S2,enforce:function(e){return S2(e)?D2(e):C2(e,{})},getterFor:function(e){return function(t){var n;if(!b1(t)||(n=D2(t)).type!==e)throw B2("Incompatible receiver, "+e+" required");return n}}},H2={}.propertyIsEnumerable,$2=Object.getOwnPropertyDescriptor,V2={f:$2&&!H2.call({1:2},1)?function(e){var t=$2(this,e);return!!t&&t.enumerable}:H2},W2=Object.getOwnPropertyDescriptor,K2={f:C1?W2:function(e,t){if(e=V0(e),t=U1(t),_1)try{return W2(e,t)}catch(e){}if(J0(e,t))return A2(!A1(V2.f,e,t),e[t])}},q2=Function.prototype,G2=C1&&Object.getOwnPropertyDescriptor,X2=J0(q2,"name"),Y2={PROPER:X2&&"something"===function(){}.name,CONFIGURABLE:X2&&(!C1||C1&&G2(q2,"name").configurable)},Z2=S0((function(e){var t=Y2.CONFIGURABLE,n=U2.get,r=U2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;r1(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!J0(i,"name")||t&&i.name!==d)&&T2(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==A0?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:T2(e,n,i)):s?e[n]=i:K0(n,i)})(Function.prototype,"toString",(function(){return r1(this)&&n(this).source||k2(this)}))})),J2=a2.concat("length","prototype"),Q2={f:Object.getOwnPropertyNames||function(e){return i2(e,J2)}},e4={f:Object.getOwnPropertySymbols},t4=j0([].concat),n4=o1("Reflect","ownKeys")||function(e){var t=Q2.f(E1(e)),n=e4.f;return n?t4(t,n(e)):t},r4=function(e,t){for(var n=n4(t),r=V1.f,o=K2.f,i=0;i<n.length;i++){var a=n[i];J0(e,a)||r(e,a,o(t,a))}},o4=/#|\.prototype\./,i4=function(e,t){var n=u4[a4(e)];return n==s4||n!=l4&&(r1(t)?I0(t):!!t)},a4=i4.normalize=function(e){return String(e).replace(o4,".").toLowerCase()},u4=i4.data={},l4=i4.NATIVE="N",s4=i4.POLYFILL="P",c4=i4,d4=K2.f,f4=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?A0:s?A0[u]||K0(u,{}):(A0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=d4(n,r))&&a.value:n[r],!c4(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;r4(i,o)}(e.sham||o&&o.sham)&&T2(i,"sham",!0),Z2(n,r,i,e)}},p4=!I0((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),h4=d2("IE_PROTO"),v4=A0.Object,g4=v4.prototype,y4=p4?v4.getPrototypeOf:function(e){var t=Y0(e);if(J0(t,h4))return t[h4];var n=t.constructor;return r1(n)&&t instanceof n?n.prototype:t instanceof v4?g4:null},m4=m1("iterator"),b4=!1;[].keys&&("next"in(z2=[].keys())?(R2=y4(y4(z2)))!==Object.prototype&&(L2=R2):b4=!0);var w4=null==L2||I0((function(){var e={};return L2[m4].call(e)!==e}));w4&&(L2={}),r1(L2[m4])||Z2(L2,m4,(function(){return this}));var x4={IteratorPrototype:L2,BUGGY_SAFARI_ITERATORS:b4},E4=V1.f,C4=m1("toStringTag"),D4=function(e,t,n){e&&!J0(e=n?e:e.prototype,C4)&&E4(e,C4,{configurable:!0,value:t})},S4=x4.IteratorPrototype,k4=function(){return this},_4=A0.String,O4=A0.TypeError,A4=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=j0(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return E1(n),function(e){if("object"==typeof e||r1(e))return e;throw O4("Can't set "+_4(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),T4=Y2.PROPER,B4=Y2.CONFIGURABLE,P4=x4.IteratorPrototype,F4=x4.BUGGY_SAFARI_ITERATORS,j4=m1("iterator"),I4=function(){return this},M4=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=y2(S4,{next:A2(1,n)}),D4(e,r,!1),x2[r]=k4}(n,t,r);var u,l,s=function(e){if(e===o&&h)return h;if(!F4&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[j4]||f["@@iterator"]||o&&f[o],h=!F4&&p||s(o),v="Array"==t&&f.entries||p;return v&&(u=y4(v.call(new e)))!==Object.prototype&&u.next&&(y4(u)!==P4&&(A4?A4(u,P4):r1(u[j4])||Z2(u,j4,I4)),D4(u,c,!0)),T4&&"values"==o&&p&&"values"!==p.name&&(B4?T2(f,"name","values"):(d=!0,h=function(){return A1(p,this)})),o&&(l={values:s("values"),keys:s("keys"),entries:s("entries")},a||f4({target:t,proto:!0,forced:F4||d},l)),f[j4]!==h&&Z2(f,j4,h,{name:o}),x2[t]=h,l},N4=U2.set,L4=U2.getterFor("Array Iterator"),R4=M4(Array,"Array",(function(e,t){N4(this,{type:"Array Iterator",target:V0(e),index:0,kind:t})}),(function(){var e=L4(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");x2.Arguments=x2.Array,w2("keys"),w2("values"),w2("entries");var z4={};z4[m1("toStringTag")]="z";var U4="[object z]"===String(z4),H4=m1("toStringTag"),$4=A0.Object,V4="Arguments"==L0(function(){return arguments}()),W4=U4?L0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=$4(e),H4))?n:V4?L0(t):"Object"==(r=L0(t))&&r1(t.callee)?"Arguments":r},K4=U4?{}.toString:function(){return"[object "+W4(this)+"]"};U4||Z2(Object.prototype,"toString",K4,{unsafe:!0});var q4=A0.String,G4=function(e){if("Symbol"===W4(e))throw TypeError("Cannot convert a Symbol value to a string");return q4(e)},X4=j0("".charAt),Y4=j0("".charCodeAt),Z4=j0("".slice),J4={charAt:function(e){return function(t,n){var r,o,i=G4($0(t)),a=q1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Y4(i,a))<55296||r>56319||a+1===u||(o=Y4(i,a+1))<56320||o>57343?e?X4(i,a):r:e?Z4(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Q4=J4.charAt,e8=U2.set,t8=U2.getterFor("String Iterator");M4(String,"String",(function(e){e8(this,{type:"String Iterator",string:G4(e),index:0})}),(function(){var e,t=t8(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Q4(n,r),t.index+=e.length,{value:e,done:!1})}));var n8=function(e,t,n){for(var r in t)Z2(e,r,t[r],n);return e},r8=A0.Array,o8=Math.max,i8=Q2.f,a8="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u8={f:function(e){return a8&&"Window"==L0(e)?function(e){try{return i8(e)}catch(e){return function(e){for(var t,n,r,o,i=Q1(e),a=Y1(void 0,i),u=Y1(i,i),l=r8(o8(u-a,0)),s=0;a<u;a++,s++)t=l,n=s,r=e[a],(o=U1(n))in t?V1.f(t,o,A2(0,r)):t[o]=r;return l.length=s,l}(a8)}}(e):i8(V0(e))}},l8=I0((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),s8=Object.isExtensible,c8=I0((function(){s8(1)}))||l8?function(e){return!!b1(e)&&(!l8||"ArrayBuffer"!=L0(e))&&(!s8||s8(e))}:s8,d8=!I0((function(){return Object.isExtensible(Object.preventExtensions({}))})),f8=S0((function(e){var t=V1.f,n=!1,r=n1("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Q2.f,t=j0([].splice),o={};o[r]=1,e(o).length&&(Q2.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},f4({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u8.f}))},fastKey:function(e,t){if(!b1(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!J0(e,r)){if(!c8(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!J0(e,r)){if(!c8(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return d8&&n&&c8(e)&&!J0(e,r)&&i(e),e}};n2[r]=!0})),p8=j0(j0.bind),h8=function(e,t){return M1(e),void 0===t?e:p8?p8(e,t):function(){return e.apply(t,arguments)}},v8=m1("iterator"),g8=Array.prototype,y8=m1("iterator"),m8=function(e){if(null!=e)return N1(e,y8)||N1(e,"@@iterator")||x2[W4(e)]},b8=A0.TypeError,w8=function(e,t,n){var r,o;E1(e);try{if(!(r=N1(e,"return"))){if("throw"===t)throw n;return n}r=A1(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return E1(r),n},x8=A0.TypeError,E8=function(e,t){this.stopped=e,this.result=t},C8=E8.prototype,D8=function(e,t,n){var r,o,i,a,u,l,s,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=h8(t,d),g=function(e){return r&&w8(r,"normal",e),new E8(!0,e)},y=function(e){return f?(E1(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=m8(e)))throw x8(j1(e)+" is not iterable");if(void 0!==(c=o)&&(x2.Array===c||g8[v8]===c)){for(i=0,a=Q1(e);a>i;i++)if((u=y(e[i]))&&T1(C8,u))return u;return new E8(!1)}r=function(e,t){var n=arguments.length<2?m8(e):t;if(M1(n))return E1(A1(n,e));throw b8(j1(e)+" is not iterable")}(e,o)}for(l=r.next;!(s=A1(l,r)).done;){try{u=y(s.value)}catch(e){w8(r,"throw",e)}if("object"==typeof u&&u&&T1(C8,u))return u}return new E8(!1)},S8=A0.TypeError,k8=function(e,t){if(T1(t,e))return e;throw S8("Incorrect invocation")},_8=m1("iterator"),O8=!1;try{var A8=0,T8={next:function(){return{done:!!A8++}},return:function(){O8=!0}};T8[_8]=function(){return this},Array.from(T8,(function(){throw 2}))}catch(_y){}var B8=Array.isArray||function(e){return"Array"==L0(e)},P8=function(){},F8=[],j8=o1("Reflect","construct"),I8=/^\s*(?:class|function)\b/,M8=j0(I8.exec),N8=!I8.exec(P8),L8=function(e){if(!r1(e))return!1;try{return j8(P8,F8,e),!0}catch(e){return!1}},R8=!j8||I0((function(){var e;return L8(L8.call)||!L8(Object)||!L8((function(){e=!0}))||e}))?function(e){if(!r1(e))return!1;switch(W4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return N8||!!M8(I8,k2(e))}:L8,z8=m1("species"),U8=A0.Array,H8=function(e,t){return new(function(e){var t;return B8(e)&&(t=e.constructor,(R8(t)&&(t===U8||B8(t.prototype))||b1(t)&&null===(t=t[z8]))&&(t=void 0)),void 0===t?U8:t}(e))(0===t?0:t)},$8=j0([].push),V8=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=Y0(l),v=U0(h),g=h8(s,c),y=Q1(v),m=0,b=d||H8,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:$8(w,f)}else switch(e){case 4:return!1;case 7:$8(w,f)}return i?-1:r||o?o:w}},W8={filter:V8(2),find:V8(5),findIndex:V8(6)},K8=f8.getWeakData,q8=U2.set,G8=U2.getterFor,X8=W8.find,Y8=W8.findIndex,Z8=j0([].splice),J8=0,Q8=function(e){return e.frozen||(e.frozen=new e3)},e3=function(){this.entries=[]},t3=function(e,t){return X8(e.entries,(function(e){return e[0]===t}))};e3.prototype={get:function(e){var t=t3(this,e);if(t)return t[1]},has:function(e){return!!t3(this,e)},set:function(e,t){var n=t3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Y8(this.entries,(function(t){return t[0]===e}));return~t&&Z8(this.entries,t,1),!!~t}};var n3,r3={getConstructor:function(e,t,n,r){var o=e((function(e,o){k8(e,i),q8(e,{type:t,id:J8++,frozen:void 0}),null!=o&&D8(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=G8(t),u=function(e,t,n){var r=a(e),o=K8(E1(t),!0);return!0===o?Q8(r).set(t,n):o[r.id]=n,e};return n8(i,{delete:function(e){var t=a(this);if(!b1(e))return!1;var n=K8(e);return!0===n?Q8(t).delete(e):n&&J0(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!b1(e))return!1;var n=K8(e);return!0===n?Q8(t).has(e):n&&J0(n,t.id)}}),n8(i,n?{get:function(e){var t=a(this);if(b1(e)){var n=K8(e);return!0===n?Q8(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},o3=U2.enforce,i3=!A0.ActiveXObject&&"ActiveXObject"in A0,a3=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},u3=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=A0[e],u=a&&a.prototype,l=a,s={},c=function(e){var t=j0(u[e]);Z2(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!b1(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!b1(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!b1(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(c4(e,!r1(a)||!(o||u.forEach&&!I0((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,i),f8.enable();else if(c4(e,!0)){var d=new l,f=d[i](o?{}:-0,1)!=d,p=I0((function(){d.has(1)})),h=function(){if(!O8)return!1;var t=!1;try{var n={};n[_8]=function(){return{next:function(){return{done:t=!0}}}},function(e){new a(e)}(n)}catch(e){}return t}(),v=!o&&I0((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((l=t((function(e,t){k8(e,u);var n=function(e,t,n){var r,o;return A4&&r1(r=t.constructor)&&r!==n&&b1(o=r.prototype)&&o!==n.prototype&&A4(e,o),e}(new a,e,l);return null!=t&&D8(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||f)&&c(i),o&&u.clear&&delete u.clear}return s[e]=l,f4({global:!0,forced:l!=a},s),D4(l,e),o||n.setStrong(l,e,r),l}("WeakMap",a3,r3);if(O2&&i3){n3=r3.getConstructor(a3,"WeakMap",!0),f8.enable();var l3=u3.prototype,s3=j0(l3.delete),c3=j0(l3.has),d3=j0(l3.get),f3=j0(l3.set);n8(l3,{delete:function(e){if(b1(e)&&!c8(e)){var t=o3(this);return t.frozen||(t.frozen=new n3),s3(this,e)||t.frozen.delete(e)}return s3(this,e)},has:function(e){if(b1(e)&&!c8(e)){var t=o3(this);return t.frozen||(t.frozen=new n3),c3(this,e)||t.frozen.has(e)}return c3(this,e)},get:function(e){if(b1(e)&&!c8(e)){var t=o3(this);return t.frozen||(t.frozen=new n3),c3(this,e)?d3(this,e):t.frozen.get(e)}return d3(this,e)},set:function(e,t){if(b1(e)&&!c8(e)){var n=o3(this);n.frozen||(n.frozen=new n3),c3(this,e)?f3(this,e,t):n.frozen.set(e,t)}else f3(this,e,t);return this}})}var p3={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},h3=k1("span").classList,v3=h3&&h3.constructor&&h3.constructor.prototype,g3=v3===Object.prototype?void 0:v3,y3=m1("iterator"),m3=m1("toStringTag"),b3=R4.values,w3=function(e,t){if(e){if(e[y3]!==b3)try{T2(e,y3,b3)}catch(t){e[y3]=b3}if(e[m3]||T2(e,m3,t),p3[t])for(var n in R4)if(e[n]!==R4[n])try{T2(e,n,R4[n])}catch(t){e[n]=R4[n]}}};for(var x3 in p3)w3(A0[x3]&&A0[x3].prototype,x3);w3(g3,"DOMTokenList");var E3=new WeakMap,C3={type:"list-item",renderElem:function(e,t,n){E3.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},l="";if(void 0!==a&&a){var s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var l=1,s=t,c=lI.findPath(e,s);if(0===c[0])return 1;for(;c[0]>0;){var d=Cb.previous(c),f=hb.node(e,d);if(null==f)break;var p=f[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;l++}s=p,c=d}return l}(n,e);l=s+"."}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Lb.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return aC("div",{style:u},aC("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},l),aC("span",null,t))}},D3=function(e,t){return D3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},D3(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 S3(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}D3(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function k3(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function O3(e){return hb.nodes(e,{at:e.selection||void 0,match:function(t){return 1===lI.findPath(e,t).length}})}var A3=t2.includes;f4({target:"Array",proto:!0},{includes:function(e){return A3(this,e,arguments.length>1?arguments[1]:void 0)}}),w2("includes");var T3,B3,P3=function(){var e=E1(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},F3=A0.RegExp,j3=I0((function(){var e=F3("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));j3||I0((function(){return!F3("a","y").sticky}));var I3={BROKEN_CARET:j3||I0((function(){var e=F3("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},M3=A0.RegExp,N3=I0((function(){var e=M3(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),L3=A0.RegExp,R3=I0((function(){var e=L3("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),z3=U2.get,U3=G0("native-string-replace",String.prototype.replace),H3=RegExp.prototype.exec,$3=H3,V3=j0("".charAt),W3=j0("".indexOf),K3=j0("".replace),q3=j0("".slice),G3=(B3=/b*/g,A1(H3,T3=/a/,"a"),A1(H3,B3,"a"),0!==T3.lastIndex||0!==B3.lastIndex),X3=I3.BROKEN_CARET,Y3=void 0!==/()??/.exec("")[1];(G3||Y3||X3||N3||R3)&&($3=function(e){var t,n,r,o,i,a,u,l=this,s=z3(l),c=G4(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=A1($3,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=X3&&l.sticky,h=A1(P3,l),v=l.source,g=0,y=c;if(p&&(h=K3(h,"y",""),-1===W3(h,"g")&&(h+="g"),y=q3(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==V3(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Y3&&(n=new RegExp("^"+v+"$(?!\\s)",h)),G3&&(r=l.lastIndex),o=A1(H3,p?n:l,y),p?o?(o.input=q3(o.input,g),o[0]=q3(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:G3&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Y3&&o&&o.length>1&&A1(U3,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=y2(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var Z3=$3;f4({target:"RegExp",proto:!0,forced:/./.exec!==Z3},{exec:Z3});var J3=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return lI.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!lI.getSelectedElems(e).some((function(t){if(hb.isVoid(e,t)&&hb.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?nw.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):nw.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),Q3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=zz("listModule.unOrderedList"),t.iconSvg='<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>',t}return S3(t,e),t}(J3),e5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=zz("listModule.orderedList"),t.iconSvg='<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>',t}return S3(t,e),t}(J3),t5={key:"bulletedList",factory:function(){return new Q3}},n5={key:"numberedList",factory:function(){return new e5}},r5=[],o5={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=E3.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,l=lI.findPath(t,e);if(0===l[0])return u+1;var s=Cb.previous(l),c=hb.node(t,s);if(!c)return 0;var d=_3(c,1)[0];if(lI.getNodeType(d)!==r)return u+1;var f=d,p=f.ordered,h=void 0!==p&&p,v=f.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",r5.push(i);var l=function(e){var t=E3.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,l=lI.findPath(t,e);if(l[0]===t.children.length-1)return u+1;var s=Cb.next(l),c=hb.node(t,s);if(!c)return 0;var d=_3(c,1)[0];if(lI.getNodeType(d)!==r)return u+1;var f=d,p=f.ordered,h=void 0!==p&&p,v=f.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(l>0)for(u=0;u<l;u++)r+="</"+r5.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},i5=m1("species"),a5=W8.filter,u5=d1>=51||!I0((function(){var e=[];return(e.constructor={})[i5]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));f4({target:"Array",proto:!0,forced:!u5},{filter:function(e){return a5(this,e,arguments.length>1?arguments[1]:void 0)}});var l5=Function.prototype,s5=l5.apply,c5=l5.bind,d5=l5.call,f5="object"==typeof Reflect&&Reflect.apply||(c5?d5.bind(s5):function(){return d5.apply(s5,arguments)}),p5=(m1("species"),RegExp.prototype),h5=J4.charAt,v5=function(e,t,n){return t+(n?h5(e,t).length:1)},g5=Math.floor,y5=j0("".charAt),m5=j0("".replace),b5=j0("".slice),w5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,x5=/\$([$&'`]|\d{1,2})/g,E5=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,l=x5;return void 0!==o&&(o=Y0(o),l=w5),m5(i,l,(function(i,l){var s;switch(y5(l,0)){case"$":return"$";case"&":return e;case"`":return b5(t,0,n);case"'":return b5(t,a);case"<":s=o[b5(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>u){var d=g5(c/10);return 0===d?i:d<=u?void 0===r[d-1]?y5(l,1):r[d-1]+y5(l,1):i}s=r[c-1]}return void 0===s?"":s}))},C5=A0.TypeError,D5=function(e,t){var n=e.exec;if(r1(n)){var r=A1(n,e,t);return null!==r&&E1(r),r}if("RegExp"===L0(e))return A1(Z3,e,t);throw C5("RegExp#exec called on incompatible receiver")},S5=m1("replace"),k5=Math.max,_5=Math.min,O5=j0([].concat),A5=j0([].push),T5=j0("".indexOf),B5=j0("".slice),P5="$0"==="a".replace(/./,"$0"),F5=!!/./[S5]&&""===/./[S5]("a","$0");!function(e,t,n){var r=m1(e),o=!I0((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!I0((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=j0(/./[r]),u=function(e,t,n){var r=F5?"$":"$0";return[function(e,n){var r=$0(this),o=null==e?void 0:N1(e,S5);return o?A1(o,e,r,n):A1(t,G4(r),e,n)},function(e,o){var i=E1(this),a=G4(e);if("string"==typeof o&&-1===T5(o,r)&&-1===T5(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var l=r1(o);l||(o=G4(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var f=D5(i,a);if(null===f)break;if(A5(d,f),!s)break;""===G4(f[0])&&(i.lastIndex=v5(a,J1(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<d.length;g++){for(var y=G4((f=d[g])[0]),m=k5(_5(q1(f.index),a.length),0),b=[],w=1;w<f.length;w++)A5(b,void 0===(p=f[w])?p:String(p));var x=f.groups;if(l){var E=O5([y],b,m,a);void 0!==x&&A5(E,x);var C=G4(f5(o,void 0,E))}else C=E5(y,a,m,b,x,o);m>=v&&(h+=B5(a,v,m)+C,v=m+y.length)}return h+B5(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=j0(e),l=t.exec;return l===Z3||l===p5.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}));Z2(String.prototype,e,u[0]),Z2(p5,r,u[1])}}("replace",0,!!I0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P5||F5);var j5=A0.TypeError,I5=function(e,t,n,r,o,i,a,u){for(var l,s,c=o,d=0,f=!!a&&h8(a,u);d<r;){if(d in n){if(l=f?f(n[d],d,t):n[d],i>0&&B8(l))s=Q1(l),c=I5(e,t,l,s,c,i-1)-1;else{if(c>=9007199254740991)throw j5("Exceed the acceptable array length");e[c]=l}c++}d++}return c},M5=I5;function N5(e){return e.length?e[0].tagName.toLowerCase():""}f4({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Y0(this),n=Q1(t),r=H8(t,0);return r.length=M5(r,t,t,n,0,void 0===e?1:q1(e)),r}}),w2("flat"),f4({global:!0},{globalThis:A0}),Nx&&(gx.fn.append=Nx),wx&&(gx.fn.attr=wx),Rx&&(gx.fn.parent=Rx);var L5={renderElems:[C3],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Bb.isExpanded(n))t(e);else{var r=lI.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?nw.setNodes(o,{level:a-1}):nw.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Bb.isCollapsed(a)){var u=lI.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var l=u.level,s=void 0===l?0:l;return void nw.setNodes(o,{level:s+1})}}if(Bb.isExpanded(a)){var c=0,d=!1;try{for(var f=k3(O3(o)),p=f.next();!p.done;p=f.next()){var h=_3(p.value,1)[0];"list-item"===lI.getNodeType(h)?c++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||c<=1)return void n();try{for(var v=k3(O3(o)),g=v.next();!g.done;g=v.next()){var y=_3(g.value,2),m=(h=y[0],y[1]),b=h.level;s=void 0===b?0:b,nw.setNodes(o,{level:s+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=_3(e,2),n=t[0],i=t[1],a=lI.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||nw.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[t5,n5],elemsToHtml:[o5],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e);0===(t=t.filter((function(e){return!!Lb.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===N5(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=N5(n);"ul"===r||"ol"===r;)r=N5(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},R5=cu((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",l="[object Error]",s="[object Function]",c="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[i]=E[m]=E[a]=E[b]=E[u]=E[l]=E[s]=E[c]=E[d]=E[f]=E[h]=E[v]=E[g]=E[y]=!1;var C="object"==typeof su&&su&&su.Object===Object&&su,D="object"==typeof self&&self&&self.Object===Object&&self,S=C||D||Function("return this")(),k=t&&!t.nodeType&&t,_=k&&e&&!e.nodeType&&e,O=_&&_.exports===k,A=O&&C.process,T=function(){try{return A&&A.binding&&A.binding("util")}catch(su){}}(),B=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function F(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,M=Function.prototype,N=Object.prototype,L=S["__core-js_shared__"],R=M.toString,z=N.hasOwnProperty,U=function(){var e=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=N.toString,$=RegExp("^"+R.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=O?S.Buffer:void 0,W=S.Symbol,K=S.Uint8Array,q=N.propertyIsEnumerable,G=I.splice,X=W?W.toStringTag:void 0,Y=Object.getOwnPropertySymbols,Z=V?V.isBuffer:void 0,J=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Q=De(S,"DataView"),ee=De(S,"Map"),te=De(S,"Promise"),ne=De(S,"Set"),re=De(S,"WeakMap"),oe=De(Object,"create"),ie=Oe(Q),ae=Oe(ee),ue=Oe(te),le=Oe(ne),se=Oe(re),ce=W?W.prototype:void 0,de=ce?ce.valueOf:void 0;function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}function ge(e){var t=this.__data__=new pe(e);this.size=t.size}function ye(e,t){for(var n=e.length;n--;)if(Ae(e[n][0],t))return n;return-1}function me(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=H.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return H.call(e)}(e)}function be(e){return Me(e)&&me(e)==o}function we(e,t,n,r,s){return e===t||(null==e||null==t||!Me(e)&&!Me(t)?e!=e&&t!=t:function(e,t,n,r,s,p){var y=Be(e),w=Be(t),x=y?i:ke(e),E=w?i:ke(t),C=(x=x==o?f:x)==f,D=(E=E==o?f:E)==f,S=x==E;if(S&&Pe(e)){if(!Pe(t))return!1;y=!0,C=!1}if(S&&!C)return p||(p=new ge),y||Ne(e)?xe(e,t,n,r,s,p):function(e,t,n,r,o,i,s){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case a:case u:case d:return Ae(+e,+t);case l:return e.name==t.name&&e.message==t.message;case h:case g:return e==t+"";case c:var f=F;case v:var p=1&r;if(f||(f=j),e.size!=t.size&&!p)return!1;var y=s.get(e);if(y)return y==t;r|=2,s.set(e,t);var w=xe(f(e),f(t),r,o,i,s);return s.delete(e),w;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,x,n,r,s,p);if(!(1&n)){var k=C&&z.call(e,"__wrapped__"),_=D&&z.call(t,"__wrapped__");if(k||_){var O=k?e.value():e,A=_?t.value():t;return p||(p=new ge),s(O,A,n,r,p)}}return!!S&&(p||(p=new ge),function(e,t,n,r,o,i){var a=1&n,u=Ee(e),l=u.length;if(l!=Ee(t).length&&!a)return!1;for(var s=l;s--;){var c=u[s];if(!(a?c in t:z.call(t,c)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var f=!0;i.set(e,t),i.set(t,e);for(var p=a;++s<l;){var h=e[c=u[s]],v=t[c];if(r)var g=a?r(v,h,c,t,e,i):r(h,v,c,e,t,i);if(!(void 0===g?h===v||o(h,v,n,r,i):g)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,s,p))}(e,t,n,r,we,s))}function xe(e,t,n,r,o,i){var a=1&n,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var c=-1,d=!0,f=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var v=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!P(t,(function(e,t){if(a=t,!f.has(a)&&(p===e||o(p,e,n,r,i)))return f.push(t);var a}))){d=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Ee(e){return function(e,t,n){var r=t(e);return Be(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Le,Se)}function Ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function De(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!U&&U in e}(e))&&(Fe(e)?$:w).test(Oe(e))}(n)?n:void 0}fe.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(oe){var r=t[e];return r===n?void 0:r}return z.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},fe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?n:t,this},pe.prototype.clear=function(){this.__data__=[],this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=ye(t,e);return!(n<0||(n==t.length-1?t.pop():G.call(t,n,1),--this.size,0))},pe.prototype.get=function(e){var t=this.__data__,n=ye(t,e);return n<0?void 0:t[n][1]},pe.prototype.has=function(e){return ye(this.__data__,e)>-1},pe.prototype.set=function(e,t){var n=this.__data__,r=ye(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(ee||pe),string:new fe}},he.prototype.delete=function(e){var t=Ce(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return Ce(this,e).get(e)},he.prototype.has=function(e){return Ce(this,e).has(e)},he.prototype.set=function(e,t){var n=Ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.clear=function(){this.__data__=new pe,this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ge.prototype.get=function(e){return this.__data__.get(e)},ge.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.set=function(e,t){var n=this.__data__;if(n instanceof pe){var r=n.__data__;if(!ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var Se=Y?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Y(e),(function(t){return q.call(e,t)})))}:function(){return[]},ke=me;function _e(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function Oe(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ae(e,t){return e===t||e!=e&&t!=t}(Q&&ke(new Q(new ArrayBuffer(1)))!=b||ee&&ke(new ee)!=c||te&&ke(te.resolve())!=p||ne&&ke(new ne)!=v||re&&ke(new re)!=y)&&(ke=function(e){var t=me(e),n=t==f?e.constructor:void 0,r=n?Oe(n):"";if(r)switch(r){case ie:return b;case ae:return c;case ue:return p;case le:return v;case se:return y}return t});var Te=be(function(){return arguments}())?be:function(e){return Me(e)&&z.call(e,"callee")&&!q.call(e,"callee")},Be=Array.isArray,Pe=Z||function(){return!1};function Fe(e){if(!Ie(e))return!1;var t=me(e);return t==s||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var Ne=B?function(e){return function(t){return e(t)}}(B):function(e){return Me(e)&&je(e.length)&&!!E[me(e)]};function Le(e){return null!=(t=e)&&je(t.length)&&!Fe(t)?function(e){var t=Be(e),n=!t&&Te(e),r=!t&&!n&&Pe(e),o=!t&&!n&&!r&&Ne(e),i=t||n||r||o,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var l in e)!z.call(e,l)||i&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_e(l,u))||a.push(l);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||N))return J(e);var t,n,r=[];for(var o in Object(e))z.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return we(e,t)}}));Rz("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"}}),Rz("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var z5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U5(e){var t={exports:{}};return e(t,t.exports),t.exports}var H5,$5,V5=function(e){return e&&e.Math==Math&&e},W5=V5("object"==typeof globalThis&&globalThis)||V5("object"==typeof window&&window)||V5("object"==typeof self&&self)||V5("object"==typeof z5&&z5)||function(){return this}()||Function("return this")(),K5=function(e){try{return!!e()}catch(e){return!0}},q5=!K5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),G5=Function.prototype.call,X5=G5.bind?G5.bind(G5):function(){return G5.apply(G5,arguments)},Y5={}.propertyIsEnumerable,Z5=Object.getOwnPropertyDescriptor,J5={f:Z5&&!Y5.call({1:2},1)?function(e){var t=Z5(this,e);return!!t&&t.enumerable}:Y5},Q5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},e6=Function.prototype,t6=e6.bind,n6=e6.call,r6=t6&&t6.bind(n6),o6=t6?function(e){return e&&r6(n6,e)}:function(e){return e&&function(){return n6.apply(e,arguments)}},i6=o6({}.toString),a6=o6("".slice),u6=function(e){return a6(i6(e),8,-1)},l6=W5.Object,s6=o6("".split),c6=K5((function(){return!l6("z").propertyIsEnumerable(0)}))?function(e){return"String"==u6(e)?s6(e,""):l6(e)}:l6,d6=W5.TypeError,f6=function(e){if(null==e)throw d6("Can't call method on "+e);return e},p6=function(e){return c6(f6(e))},h6=function(e){return"function"==typeof e},v6=function(e){return"object"==typeof e?null!==e:h6(e)},g6=function(e,t){return arguments.length<2?function(e){return h6(e)?e:void 0}(W5[e]):W5[e]&&W5[e][t]},y6=o6({}.isPrototypeOf),m6=g6("navigator","userAgent")||"",b6=W5.process,w6=W5.Deno,x6=b6&&b6.versions||w6&&w6.version,E6=x6&&x6.v8;E6&&($5=(H5=E6.split("."))[0]>0&&H5[0]<4?1:+(H5[0]+H5[1])),!$5&&m6&&(!(H5=m6.match(/Edge\/(\d+)/))||H5[1]>=74)&&(H5=m6.match(/Chrome\/(\d+)/))&&($5=+H5[1]);var C6=$5,D6=!!Object.getOwnPropertySymbols&&!K5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&C6&&C6<41})),S6=D6&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,k6=W5.Object,_6=S6?function(e){return"symbol"==typeof e}:function(e){var t=g6("Symbol");return h6(t)&&y6(t.prototype,k6(e))},O6=W5.String,A6=function(e){try{return O6(e)}catch(e){return"Object"}},T6=W5.TypeError,B6=function(e){if(h6(e))return e;throw T6(A6(e)+" is not a function")},P6=function(e,t){var n=e[t];return null==n?void 0:B6(n)},F6=W5.TypeError,j6=Object.defineProperty,I6=function(e,t){try{j6(W5,e,{value:t,configurable:!0,writable:!0})}catch(cu){W5[e]=t}return t},M6=W5["__core-js_shared__"]||I6("__core-js_shared__",{}),N6=U5((function(e){(e.exports=function(e,t){return M6[e]||(M6[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),L6=W5.Object,R6=function(e){return L6(f6(e))},z6=o6({}.hasOwnProperty),U6=Object.hasOwn||function(e,t){return z6(R6(e),t)},H6=0,$6=Math.random(),V6=o6(1..toString),W6=function(e){return"Symbol("+(void 0===e?"":e)+")_"+V6(++H6+$6,36)},K6=N6("wks"),q6=W5.Symbol,G6=q6&&q6.for,X6=S6?q6:q6&&q6.withoutSetter||W6,Y6=function(e){if(!U6(K6,e)||!D6&&"string"!=typeof K6[e]){var t="Symbol."+e;D6&&U6(q6,e)?K6[e]=q6[e]:K6[e]=S6&&G6?G6(t):X6(t)}return K6[e]},Z6=W5.TypeError,J6=Y6("toPrimitive"),Q6=function(e){var t=function(e){if(!v6(e)||_6(e))return e;var t,n=P6(e,J6);if(n){if(t=X5(n,e,"string"),!v6(t)||_6(t))return t;throw Z6("Can't convert object to primitive value")}return function(e){var t,n;if(h6(t=e.toString)&&!v6(n=X5(t,e)))return n;if(h6(t=e.valueOf)&&!v6(n=X5(t,e)))return n;throw F6("Can't convert object to primitive value")}(e)}(e);return _6(t)?t:t+""},e7=W5.document,t7=v6(e7)&&v6(e7.createElement),n7=function(e){return t7?e7.createElement(e):{}},r7=!q5&&!K5((function(){return 7!=Object.defineProperty(n7("div"),"a",{get:function(){return 7}}).a})),o7=Object.getOwnPropertyDescriptor,i7={f:q5?o7:function(e,t){if(e=p6(e),t=Q6(t),r7)try{return o7(e,t)}catch(e){}if(U6(e,t))return Q5(!X5(J5.f,e,t),e[t])}},a7=W5.String,u7=W5.TypeError,l7=function(e){if(v6(e))return e;throw u7(a7(e)+" is not an object")},s7=W5.TypeError,c7=Object.defineProperty,d7={f:q5?c7:function(e,t,n){if(l7(e),t=Q6(t),l7(n),r7)try{return c7(e,t,n)}catch(e){}if("get"in n||"set"in n)throw s7("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},f7=q5?function(e,t,n){return d7.f(e,t,Q5(1,n))}:function(e,t,n){return e[t]=n,e},p7=o6(Function.toString);h6(M6.inspectSource)||(M6.inspectSource=function(e){return p7(e)});var h7,v7,g7,y7=M6.inspectSource,m7=W5.WeakMap,b7=h6(m7)&&/native code/.test(y7(m7)),w7=N6("keys"),x7=function(e){return w7[e]||(w7[e]=W6(e))},E7={},C7=W5.TypeError,D7=W5.WeakMap;if(b7||M6.state){var S7=M6.state||(M6.state=new D7),k7=o6(S7.get),_7=o6(S7.has),O7=o6(S7.set);h7=function(e,t){if(_7(S7,e))throw new C7("Object already initialized");return t.facade=e,O7(S7,e,t),t},v7=function(e){return k7(S7,e)||{}},g7=function(e){return _7(S7,e)}}else{var A7=x7("state");E7[A7]=!0,h7=function(e,t){if(U6(e,A7))throw new C7("Object already initialized");return t.facade=e,f7(e,A7,t),t},v7=function(e){return U6(e,A7)?e[A7]:{}},g7=function(e){return U6(e,A7)}}var T7={get:v7,enforce:function(e){return g7(e)?v7(e):h7(e,{})}},B7=Function.prototype,P7=q5&&Object.getOwnPropertyDescriptor,F7=U6(B7,"name"),j7={PROPER:F7&&"something"===function(){}.name,CONFIGURABLE:F7&&(!q5||q5&&P7(B7,"name").configurable)},I7=U5((function(e){var t=j7.CONFIGURABLE,n=T7.get,r=T7.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;h6(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!U6(i,"name")||t&&i.name!==d)&&f7(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==W5?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:f7(e,n,i)):s?e[n]=i:I6(n,i)})(Function.prototype,"toString",(function(){return h6(this)&&n(this).source||y7(this)}))})),M7=Math.ceil,N7=Math.floor,L7=function(e){var t=+e;return t!=t||0===t?0:(t>0?N7:M7)(t)},R7=Math.max,z7=Math.min,U7=function(e,t){var n=L7(e);return n<0?R7(n+t,0):z7(n,t)},H7=Math.min,$7=function(e){return e>0?H7(L7(e),9007199254740991):0},V7=function(e){return $7(e.length)},W7=function(e){return function(t,n,r){var o,i=p6(t),a=V7(i),u=U7(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),K7=o6([].push),q7=function(e,t){var n,r=p6(e),o=0,i=[];for(n in r)!U6(E7,n)&&U6(r,n)&&K7(i,n);for(;t.length>o;)U6(r,n=t[o++])&&(~W7(i,n)||K7(i,n));return i},G7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X7=G7.concat("length","prototype"),Y7={f:Object.getOwnPropertyNames||function(e){return q7(e,X7)}},Z7={f:Object.getOwnPropertySymbols},J7=o6([].concat),Q7=g6("Reflect","ownKeys")||function(e){var t=Y7.f(l7(e)),n=Z7.f;return n?J7(t,n(e)):t},e9=function(e,t){for(var n=Q7(t),r=d7.f,o=i7.f,i=0;i<n.length;i++){var a=n[i];U6(e,a)||r(e,a,o(t,a))}},t9=/#|\.prototype\./,n9=function(e,t){var n=o9[r9(e)];return n==a9||n!=i9&&(h6(t)?K5(t):!!t)},r9=n9.normalize=function(e){return String(e).replace(t9,".").toLowerCase()},o9=n9.data={},i9=n9.NATIVE="N",a9=n9.POLYFILL="P",u9=n9,l9=i7.f,s9=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?W5:s?W5[u]||I6(u,{}):(W5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=l9(n,r))&&a.value:n[r],!u9(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;e9(i,o)}(e.sham||o&&o.sham)&&f7(i,"sham",!0),I7(n,r,i,e)}},c9={};c9[Y6("toStringTag")]="z";var d9="[object z]"===String(c9),f9=Y6("toStringTag"),p9=W5.Object,h9="Arguments"==u6(function(){return arguments}()),v9=d9?u6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=p9(e),f9))?n:h9?u6(t):"Object"==(r=u6(t))&&h6(t.callee)?"Arguments":r},g9=W5.String,y9=function(e){if("Symbol"===v9(e))throw TypeError("Cannot convert a Symbol value to a string");return g9(e)},m9=/"/g,b9=o6("".replace);s9({target:"String",proto:!0,forced:K5((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=y9(f6(this)),r="<a",(r+=' name="'+b9(y9(t),m9,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var w9,x9=function(){var e=l7(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},E9=W5.RegExp,C9=K5((function(){var e=E9("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));C9||K5((function(){return!E9("a","y").sticky}));var D9={BROKEN_CARET:C9||K5((function(){var e=E9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:C9},S9=Object.keys||function(e){return q7(e,G7)},k9=q5?Object.defineProperties:function(e,t){l7(e);for(var n,r=p6(t),o=S9(t),i=o.length,a=0;i>a;)d7.f(e,n=o[a++],r[n]);return e},_9=g6("document","documentElement"),O9=x7("IE_PROTO"),A9=function(){},T9=function(e){return"<script>"+e+"<\/script>"},B9=function(e){e.write(T9("")),e.close();var t=e.parentWindow.Object;return e=null,t},P9=function(){try{w9=new ActiveXObject("htmlfile")}catch(e){}var e,t;P9="undefined"!=typeof document?document.domain&&w9?B9(w9):((t=n7("iframe")).style.display="none",_9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(T9("document.F=Object")),e.close(),e.F):B9(w9);for(var n=G7.length;n--;)delete P9.prototype[G7[n]];return P9()};E7[O9]=!0;var F9,j9,I9=Object.create||function(e,t){var n;return null!==e?(A9.prototype=l7(e),n=new A9,A9.prototype=null,n[O9]=e):n=P9(),void 0===t?n:k9(n,t)},M9=W5.RegExp,N9=K5((function(){var e=M9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),L9=W5.RegExp,R9=K5((function(){var e=L9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),z9=T7.get,U9=N6("native-string-replace",String.prototype.replace),H9=RegExp.prototype.exec,$9=H9,V9=o6("".charAt),W9=o6("".indexOf),K9=o6("".replace),q9=o6("".slice),G9=(j9=/b*/g,X5(H9,F9=/a/,"a"),X5(H9,j9,"a"),0!==F9.lastIndex||0!==j9.lastIndex),X9=D9.BROKEN_CARET,Y9=void 0!==/()??/.exec("")[1];(G9||Y9||X9||N9||R9)&&($9=function(e){var t,n,r,o,i,a,u,l=this,s=z9(l),c=y9(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=X5($9,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=X9&&l.sticky,h=X5(x9,l),v=l.source,g=0,y=c;if(p&&(h=K9(h,"y",""),-1===W9(h,"g")&&(h+="g"),y=q9(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==V9(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Y9&&(n=new RegExp("^"+v+"$(?!\\s)",h)),G9&&(r=l.lastIndex),o=X5(H9,p?n:l,y),p?o?(o.input=q9(o.input,g),o[0]=q9(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:G9&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),Y9&&o&&o.length>1&&X5(U9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=I9(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var Z9=$9;s9({target:"RegExp",proto:!0,forced:/./.exec!==Z9},{exec:Z9});var J9=Array.isArray||function(e){return"Array"==u6(e)},Q9=function(){},eee=[],tee=g6("Reflect","construct"),nee=/^\s*(?:class|function)\b/,ree=o6(nee.exec),oee=!nee.exec(Q9),iee=function(e){if(!h6(e))return!1;try{return tee(Q9,eee,e),!0}catch(e){return!1}},aee=!tee||K5((function(){var e;return iee(iee.call)||!iee(Object)||!iee((function(){e=!0}))||e}))?function(e){if(!h6(e))return!1;switch(v9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oee||!!ree(nee,y7(e))}:iee,uee=function(e,t,n){var r=Q6(t);r in e?d7.f(e,r,Q5(0,n)):e[r]=n},lee=Y6("species"),see=function(e){return C6>=51||!K5((function(){var t=[];return(t.constructor={})[lee]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},cee=o6([].slice),dee=see("slice"),fee=Y6("species"),pee=W5.Array,hee=Math.max;function vee(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gee(e){var t=e.selection;if(null==t)return!1;var n=vee(hb.nodes(e,{match:function(e){return lI.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=vee(n,2)[1],o=hb.start(e,r);if(_b.equals(t.anchor,o))return!0}return!1}function yee(e,t){var n,r,o=hb.nodes(e,{at:t,match:function(e){return"table"===lI.getNodeType(e)}}),i=!1;try{for(var a=
/*! *****************************************************************************
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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}s9({target:"Array",proto:!0,forced:!dee},{slice:function(e,t){var n,r,o,i=p6(this),a=V7(i),u=U7(e,a),l=U7(void 0===t?a:t,a);if(J9(i)&&(n=i.constructor,(aee(n)&&(n===pee||J9(n.prototype))||v6(n)&&null===(n=n[fee]))&&(n=void 0),n===pee||void 0===n))return cee(i,u,l);for(r=new(void 0===n?pee:n)(hee(l-u,0)),o=0;u<l;u++,o++)u in i&&uee(r,o,i[u]);return r.length=o,r}});var mee=o6(o6.bind),bee=Y6("species"),wee=W5.Array,xee=function(e,t){return new(function(e){var t;return J9(e)&&(t=e.constructor,(aee(t)&&(t===wee||J9(t.prototype))||v6(t)&&null===(t=t[bee]))&&(t=void 0)),void 0===t?wee:t}(e))(0===t?0:t)},Eee=o6([].push),Cee=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=R6(l),v=c6(h),g=function(e,t){return B6(e),void 0===t?e:mee?mee(e,t):function(){return e.apply(t,arguments)}}(s,c),y=V7(v),m=0,b=d||xee,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Eee(w,f)}else switch(e){case 4:return!1;case 7:Eee(w,f)}return i?-1:r||o?o:w}},Dee={forEach:Cee(0),map:Cee(1),filter:Cee(2),find:Cee(5)},See=Dee.map;s9({target:"Array",proto:!0,forced:!see("map")},{map:function(e){return See(this,e,arguments.length>1?arguments[1]:void 0)}});var kee=d9?{}.toString:function(){return"[object "+v9(this)+"]"};function _ee(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Oee(e){return _ee(e).every((function(e){return!!e.isHeader}))}d9||I7(Object.prototype,"toString",kee,{unsafe:!0});var Aee=j7.PROPER,Tee=RegExp.prototype,Bee=Tee.toString,Pee=o6(x9),Fee=K5((function(){return"/a/b"!=Bee.call({source:"a",flags:"b"})})),jee=Aee&&"toString"!=Bee.name;(Fee||jee)&&I7(RegExp.prototype,"toString",(function(){var e=l7(this),t=y9(e.source),n=e.flags;return"/"+t+"/"+y9(void 0===n&&y6(Tee,e)&&!("flags"in Tee)?Pee(e):n)}),{unsafe:!0});var Iee=Y6("unscopables"),Mee=Array.prototype;null==Mee[Iee]&&d7.f(Mee,Iee,{configurable:!0,value:I9(null)});var Nee=Dee.find,Lee=!0;"find"in[]&&Array(1).find((function(){Lee=!1})),s9({target:"Array",proto:!0,forced:Lee},{find:function(e){return Nee(this,e,arguments.length>1?arguments[1]:void 0)}}),Mee[Iee].find=!0;var Ree=Function.prototype,zee=Ree.apply,Uee=Ree.bind,Hee=Ree.call,$ee="object"==typeof Reflect&&Reflect.apply||(Uee?Hee.bind(zee):function(){return Hee.apply(zee,arguments)}),Vee=Y6("species"),Wee=RegExp.prototype,Kee=function(e,t,n,r){var o=Y6(e),i=!K5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!K5((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Vee]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=o6(/./[o]),l=t(o,""[e],(function(e,t,n,r,o){var a=o6(e),l=t.exec;return l===Z9||l===Wee.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));I7(String.prototype,e,l[0]),I7(Wee,o,l[1])}r&&f7(Wee[o],"sham",!0)},qee=Y6("match"),Gee=W5.TypeError,Xee=Y6("species"),Yee=o6("".charAt),Zee=o6("".charCodeAt),Jee=o6("".slice),Qee=function(e){return function(t,n){var r,o,i=y9(f6(t)),a=L7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Zee(i,a))<55296||r>56319||a+1===u||(o=Zee(i,a+1))<56320||o>57343?e?Yee(i,a):r:e?Jee(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),ete=function(e,t,n){return t+(n?Qee(e,t).length:1)},tte=W5.Array,nte=Math.max,rte=function(e,t,n){for(var r=V7(e),o=U7(t,r),i=U7(void 0===n?r:n,r),a=tte(nte(i-o,0)),u=0;o<i;o++,u++)uee(a,u,e[o]);return a.length=u,a},ote=W5.TypeError,ite=function(e,t){var n=e.exec;if(h6(n)){var r=X5(n,e,t);return null!==r&&l7(r),r}if("RegExp"===u6(e))return X5(Z9,e,t);throw ote("RegExp#exec called on incompatible receiver")},ate=D9.UNSUPPORTED_Y,ute=Math.min,lte=[].push,ste=o6(/./.exec),cte=o6(lte),dte=o6("".slice);Kee("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=y9(f6(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!v6(r=e)||!(void 0!==(o=r[qee])?o:"RegExp"==u6(r)))return X5(t,i,e,a);for(var u,l,s,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=new RegExp(e.source,d+"g");(u=X5(Z9,p,i))&&!((l=p.lastIndex)>f&&(cte(c,dte(i,f,u.index)),u.length>1&&u.index<i.length&&$ee(lte,c,rte(u,1)),s=u[0].length,f=l,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return f===i.length?!s&&ste(p,"")||cte(c,""):cte(c,dte(i,f)),c.length>a?rte(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:X5(t,this,e,n)}:t,[function(t,n){var o=f6(this),i=null==t?void 0:P6(t,e);return i?X5(i,t,o,n):X5(r,y9(o),t,n)},function(e,o){var i=l7(this),a=y9(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var l=function(e,t){var n,r=l7(e).constructor;return void 0===r||null==(n=l7(r)[Xee])?t:function(e){if(aee(e))return e;throw Gee(A6(e)+" is not a constructor")}(n)}(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(ate?"g":"y"),d=new l(ate?"^(?:"+i.source+")":i,c),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===a.length)return null===ite(d,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){d.lastIndex=ate?0:h;var g,y=ite(d,ate?dte(a,h):a);if(null===y||(g=ute($7(d.lastIndex+(ate?h:0)),a.length))===p)h=ete(a,h,s);else{if(cte(v,dte(a,p,h)),v.length===f)return v;for(var m=1;m<=y.length-1;m++)if(cte(v,y[m]),v.length===f)return v;h=p=g}}return cte(v,dte(a,p)),v}]}),!!K5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),ate);var fte="\t\n\v\f\r    \u2028\u2029\ufeff",pte=o6("".replace),hte="["+fte+"]",vte=RegExp("^"+hte+hte+"*"),gte=RegExp(hte+hte+"*$"),yte={trim:function(e){return function(t){var n=y9(f6(t));return 1&e&&(n=pte(n,vte,"")),2&e&&(n=pte(n,gte,"")),n}}(3)},mte=j7.PROPER,bte=yte.trim;function wte(e){return e.length?e[0].tagName.toLowerCase():""}s9({target:"String",proto:!0,forced:function(e){return K5((function(){return!!fte[e]()||"…"!=="…"[e]()||mte&&fte[e].name!==e}))}("trim")},{trim:function(){return bte(this)}}),s9({global:!0},{globalThis:W5}),Nx&&(gx.fn.append=Nx),Dx&&(gx.fn.on=Dx),Gx&&(gx.fn.focus=Gx),wx&&(gx.fn.attr=wx),Cx&&(gx.fn.val=Cx),jx&&(gx.fn.html=jx),Ex&&(gx.fn.dataset=Ex),yx&&(gx.fn.addClass=yx),mx&&(gx.fn.removeClass=mx),Hx&&(gx.fn.children=Hx),Px&&(gx.fn.each=Px),Ux&&(gx.fn.find=Ux);var xte=!1,Ete=0,Cte=0,Dte=null,Ste=null,kte=gx("body");function _te(e){xte=!1,Ste=null,Dte=null,kte.off("mousemove",Ote),kte.off("mouseup",_te)}kte.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),xte=!0;var n=e.clientX;Ete=n;var r=t.getBoundingClientRect().width;Cte=r,kte.on("mousemove",Ote),kte.on("mouseup",_te)}}));var Ote=_E((function(e){if(xte&&null!=Ste&&null!=Dte){e.preventDefault();var t=e.clientX,n=Cte+(t-Ete);(n=Math.floor(100*n)/100)<30&&(n=30),nw.setNodes(Ste,{width:n.toString()},{at:Dte})}}),100),Ate={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Bb.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=lI.findPath(e,t),a=hb.start(e,i),u=hb.end(e,i),l=_b.compare(r,u)<=0&&_b.compare(r,a)>=0,s=_b.compare(o,u)<=0&&_b.compare(o,a)>=0;return!!(l&&s&&Cb.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=aC("div",{className:"table-container","data-selected":lI.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=lI.findPath(n,e),o=hb.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},aC("table",{width:i,contentEditable:r},aC("colgroup",null,_ee(e).map((function(e){var t=e.width;return aC("col",{width:void 0===t?"auto":t})}))),aC("tbody",null,t)));return a}},Tte={type:"table-row",renderElem:function(e,t,n){return aC("tr",null,t)}},Bte={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=lI.getParentNode(e,t);if(null==n)return!1;var r=lI.getParentNode(e,n);return null!=r&&_ee(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,l=void 0===u?1:u,s=o.isHeader,c=void 0!==s&&s;if(!r)return aC("td",{colSpan:a,rowSpan:l},t);var d=aC(c?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:_E((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,l=o.height,s=t.clientX,c=t.clientY;xte||(s>i+a-5&&s<i+a&&c>u&&c<u+l?(r.style.cursor="col-resize",Ste=n,Dte=lI.findPath(n,e)):xte||(r.style.cursor="auto",Ste=null,Dte=null))}}),100)}},t);return d}},Pte={selector:"table",preParseHtml:function(e){var t=gx(e);if("table"!==wte(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},Fte=Dee.filter;s9({target:"Array",proto:!0,forced:!see("filter")},{filter:function(e){return Fte(this,e,arguments.length>1?arguments[1]:void 0)}});var jte=Math.floor,Ite=o6("".charAt),Mte=o6("".replace),Nte=o6("".slice),Lte=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Rte=/\$([$&'`]|\d{1,2})/g,zte=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,l=Rte;return void 0!==o&&(o=R6(o),l=Lte),Mte(i,l,(function(i,l){var s;switch(Ite(l,0)){case"$":return"$";case"&":return e;case"`":return Nte(t,0,n);case"'":return Nte(t,a);case"<":s=o[Nte(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>u){var d=jte(c/10);return 0===d?i:d<=u?void 0===r[d-1]?Ite(l,1):r[d-1]+Ite(l,1):i}s=r[c-1]}return void 0===s?"":s}))},Ute=Y6("replace"),Hte=Math.max,$te=Math.min,Vte=o6([].concat),Wte=o6([].push),Kte=o6("".indexOf),qte=o6("".slice),Gte="$0"==="a".replace(/./,"$0"),Xte=!!/./[Ute]&&""===/./[Ute]("a","$0");Kee("replace",(function(e,t,n){var r=Xte?"$":"$0";return[function(e,n){var r=f6(this),o=null==e?void 0:P6(e,Ute);return o?X5(o,e,r,n):X5(t,y9(r),e,n)},function(e,o){var i=l7(this),a=y9(e);if("string"==typeof o&&-1===Kte(o,r)&&-1===Kte(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var l=h6(o);l||(o=y9(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var f=ite(i,a);if(null===f)break;if(Wte(d,f),!s)break;""===y9(f[0])&&(i.lastIndex=ete(a,$7(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<d.length;g++){for(var y=y9((f=d[g])[0]),m=Hte($te(L7(f.index),a.length),0),b=[],w=1;w<f.length;w++)Wte(b,void 0===(p=f[w])?p:String(p));var x=f.groups;if(l){var E=Vte([y],b,m,a);void 0!==x&&Wte(E,x);var C=y9($ee(o,void 0,E))}else C=zte(y,a,m,b,x,o);m>=v&&(h+=qte(a,v,m)+C,v=m+y.length)}return h+qte(a,v)}]}),!!K5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Gte||Xte);var Yte={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e);0===(t=t.filter((function(e){return!!Lb.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===wte(r),colSpan:o,rowSpan:i,width:a,children:t}}},Zte={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===lI.getNodeType(e)}))}}},Jte={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=gx(e),o="auto";return"100%"===function(e){for(var t="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var i=n[o];if(i){var a=i.split(":");"width"===a[0].trim()&&(t=a[1].trim())}}return t}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===lI.getNodeType(e)}))}}},Qte=function(){function e(){this.title=zz("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||!!lI.getSelectedElems(e).some((function(t){var n=lI.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=gx('<div class="w-e-panel-content-table"></div>'),r=gx("<span>0 &times; 0</span>"),o=gx("<table></table>"),i=0;i<10;i++){for(var a=gx("<tr></tr>"),u=0;u<10;u++){var l=gx("<td></td>");l.attr("data-x",u.toString()),l.attr("data-y",i.toString()),a.append(l),l.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=gx(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){gx(e).children().each((function(e){var t=gx(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),l.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=gx(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){lI.isSelectedEmptyParagraph(e)&&nw.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);nw.insertNodes(e,i,{mode:"highest"})}},e}(),ene=function(){function e(){this.title=zz("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==lI.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||nw.removeNodes(e,{mode:"highest"})},e}(),tne=function(){function e(){this.title=zz("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vee(hb.nodes(e,{match:function(e){return lI.checkNodeType(e,"table-cell")},universal:!0}),1),r=vee(n[0],2),o=r[0],i=r[1],a=lI.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var l={type:"table-row",children:[]},s=0;s<u;s++)l.children.push({type:"table-cell",children:[{text:""}]});var c=Cb.parent(i),d=Cb.next(c);nw.insertNodes(e,l,{at:d})}}},e}(),nne=function(){function e(){this.title=zz("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vee(hb.nodes(e,{match:function(e){return lI.checkNodeType(e,"table-row")},universal:!0}),1),r=vee(n[0],2),o=r[0],i=r[1],a=lI.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?nw.removeNodes(e,{mode:"highest"}):nw.removeNodes(e,{at:i})}},e}(),rne={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},one=n7("span").classList,ine=one&&one.constructor&&one.constructor.prototype,ane=ine===Object.prototype?void 0:ine,une=Dee.forEach,lne=function(){var e=[].forEach;return!!e&&K5((function(){e.call(null,(function(){throw 1}),1)}))}(),sne=lne?[].forEach:function(e){return une(this,e,arguments.length>1?arguments[1]:void 0)},cne=function(e){if(e&&e.forEach!==sne)try{f7(e,"forEach",sne)}catch(t){e.forEach=sne}};for(var dne in rne)rne[dne]&&cne(W5[dne]&&W5[dne].prototype);cne(ane);var fne=function(){function e(){this.title=zz("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vee(hb.nodes(e,{match:function(e){return lI.checkNodeType(e,"table-cell")},universal:!0}),1),r=vee(n[0],2),o=r[0],i=r[1],a=lI.getParentNode(e,o);if(null!=a){var u=lI.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){lb.isElement(t)&&(t.children||[]).forEach((function(t){var r=lI.findPath(e,t);if(r.length===i.length&&R5(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&Oee(u)&&(o.isHeader=!0),nw.insertNodes(e,o,{at:r})}}))}))}}},e}(),pne=function(){function e(){this.title=zz("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=vee(hb.nodes(e,{match:function(e){return lI.checkNodeType(e,"table-cell")},universal:!0}),1),r=vee(n[0],2),o=r[0],i=r[1],a=lI.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)nw.removeNodes(e,{mode:"highest"});else{var l=lI.getParentNode(e,a);null!=l&&(l.children||[]).forEach((function(t){lb.isElement(t)&&(t.children||[]).forEach((function(t){var n=lI.findPath(e,t);n.length===i.length&&R5(n.slice(-1),i.slice(-1))&&nw.removeNodes(e,{at:n})}))}))}}},e}(),hne=function(){function e(){this.title=zz("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=lI.getSelectedNodeByType(e,"table");return null!=t&&Oee(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=lI.getSelectedNodeByType(e,"table");null!=r&&_ee(r).forEach((function(t){return nw.setNodes(e,{isHeader:n},{at:lI.findPath(e,t)})}))}},e}(),vne=function(){function e(){this.title=zz("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=lI.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||null==lI.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};nw.setNodes(e,n,{mode:"highest"})}},e}(),gne={renderElems:[Ate,Tte,Bte],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,l=void 0!==u&&u,s=n.width,c=l?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===s?"auto":s)+'">'+t+"</"+c+">"}}],preParseHtml:[Pte],parseElemsHtml:[Yte,Zte,Jte],menus:[{key:"insertTable",factory:function(){return new Qte}},{key:"deleteTable",factory:function(){return new ene}},{key:"insertTableRow",factory:function(){return new tne}},{key:"deleteTableRow",factory:function(){return new nne}},{key:"insertTableCol",factory:function(){return new fne}},{key:"deleteTableCol",factory:function(){return new pne}},{key:"tableHeader",factory:function(){return new hne}},{key:"tableFullWidth",factory:function(){return new vne}}],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,l=e;return l.insertBreak=function(){null==lI.getSelectedNodeByType(l,"table")?t():l.insertText("\n")},l.deleteBackward=function(e){if(!gee(l)){var t=l.selection;if(t){var r=hb.before(l,t);if(r){var o=yee(l,r),i=yee(l,t);if(o&&!i)return}}n(e)}},l.handleTab=function(){var t;if(lI.getSelectedNodeByType(l,"table")){var n=hb.above(e);lI.checkNodeType(n[0],"table-cell")&&nw.select(e,n[1]);var r=hb.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=hb.above(e,{at:r[1]}))&&void 0!==t?t:r),nw.select(e,r[1]);else{var o=l.children||[],i=o.length;if(lI.checkNodeType(o[i-1],"table")){var u=lI.genEmptyParagraph();nw.insertNodes(l,u,{at:[i]}),l.handleTab()}}}else a()},l.deleteForward=function(e){gee(l)||r(e)},l.normalizeNode=function(e){var t=vee(e,2),n=t[0],r=t[1];if("table"!==lI.getNodeType(n))return o([n,r]);if(lI.isLastNode(l,n)){var i=lI.genEmptyParagraph();nw.insertNodes(l,i,{at:[r[0]+1]})}},l.insertData=function(e){if(null!=lI.getSelectedNodeByType(l,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):hb.insertText(l,t)}else i(e)},l.selectAll=function(){var e=l.selection;if(null!=e){var t=lI.getSelectedNodeByType(l,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Cb.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==bb.string(t).length){var o=lI.findPath(l,t),i={anchor:hb.start(l,o),focus:hb.end(l,o)};l.select(i)}else u();else u()}else u()}else u()},l}};Rz("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Rz("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var yne=function(){return yne=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},yne.apply(this,arguments)};function mne(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function bne(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function wne(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var xne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ene(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cne,Dne,Sne=function(e){return e&&e.Math==Math&&e},kne=Sne("object"==typeof globalThis&&globalThis)||Sne("object"==typeof window&&window)||Sne("object"==typeof self&&self)||Sne("object"==typeof xne&&xne)||function(){return this}()||Function("return this")(),_ne=function(e){try{return!!e()}catch(e){return!0}},One=!_ne((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ane=Function.prototype.call,Tne=Ane.bind?Ane.bind(Ane):function(){return Ane.apply(Ane,arguments)},Bne={}.propertyIsEnumerable,Pne=Object.getOwnPropertyDescriptor,Fne={f:Pne&&!Bne.call({1:2},1)?function(e){var t=Pne(this,e);return!!t&&t.enumerable}:Bne},jne=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ine=Function.prototype,Mne=Ine.bind,Nne=Ine.call,Lne=Mne&&Mne.bind(Nne),Rne=Mne?function(e){return e&&Lne(Nne,e)}:function(e){return e&&function(){return Nne.apply(e,arguments)}},zne=Rne({}.toString),Une=Rne("".slice),Hne=function(e){return Une(zne(e),8,-1)},$ne=kne.Object,Vne=Rne("".split),Wne=_ne((function(){return!$ne("z").propertyIsEnumerable(0)}))?function(e){return"String"==Hne(e)?Vne(e,""):$ne(e)}:$ne,Kne=kne.TypeError,qne=function(e){if(null==e)throw Kne("Can't call method on "+e);return e},Gne=function(e){return Wne(qne(e))},Xne=function(e){return"function"==typeof e},Yne=function(e){return"object"==typeof e?null!==e:Xne(e)},Zne=function(e,t){return arguments.length<2?function(e){return Xne(e)?e:void 0}(kne[e]):kne[e]&&kne[e][t]},Jne=Rne({}.isPrototypeOf),Qne=Zne("navigator","userAgent")||"",ere=kne.process,tre=kne.Deno,nre=ere&&ere.versions||tre&&tre.version,rre=nre&&nre.v8;rre&&(Dne=(Cne=rre.split("."))[0]>0&&Cne[0]<4?1:+(Cne[0]+Cne[1])),!Dne&&Qne&&(!(Cne=Qne.match(/Edge\/(\d+)/))||Cne[1]>=74)&&(Cne=Qne.match(/Chrome\/(\d+)/))&&(Dne=+Cne[1]);var ore=Dne,ire=!!Object.getOwnPropertySymbols&&!_ne((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ore&&ore<41})),are=ire&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ure=kne.Object,lre=are?function(e){return"symbol"==typeof e}:function(e){var t=Zne("Symbol");return Xne(t)&&Jne(t.prototype,ure(e))},sre=kne.String,cre=function(e){try{return sre(e)}catch(e){return"Object"}},dre=kne.TypeError,fre=function(e){if(Xne(e))return e;throw dre(cre(e)+" is not a function")},pre=function(e,t){var n=e[t];return null==n?void 0:fre(n)},hre=kne.TypeError,vre=Object.defineProperty,gre=function(e,t){try{vre(kne,e,{value:t,configurable:!0,writable:!0})}catch(cu){kne[e]=t}return t},yre=kne["__core-js_shared__"]||gre("__core-js_shared__",{}),mre=Ene((function(e){(e.exports=function(e,t){return yre[e]||(yre[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),bre=kne.Object,wre=function(e){return bre(qne(e))},xre=Rne({}.hasOwnProperty),Ere=Object.hasOwn||function(e,t){return xre(wre(e),t)},Cre=0,Dre=Math.random(),Sre=Rne(1..toString),kre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Sre(++Cre+Dre,36)},_re=mre("wks"),Ore=kne.Symbol,Are=Ore&&Ore.for,Tre=are?Ore:Ore&&Ore.withoutSetter||kre,Bre=function(e){if(!Ere(_re,e)||!ire&&"string"!=typeof _re[e]){var t="Symbol."+e;ire&&Ere(Ore,e)?_re[e]=Ore[e]:_re[e]=are&&Are?Are(t):Tre(t)}return _re[e]},Pre=kne.TypeError,Fre=Bre("toPrimitive"),jre=function(e){var t=function(e){if(!Yne(e)||lre(e))return e;var t,n=pre(e,Fre);if(n){if(t=Tne(n,e,"string"),!Yne(t)||lre(t))return t;throw Pre("Can't convert object to primitive value")}return function(e){var t,n;if(Xne(t=e.toString)&&!Yne(n=Tne(t,e)))return n;if(Xne(t=e.valueOf)&&!Yne(n=Tne(t,e)))return n;throw hre("Can't convert object to primitive value")}(e)}(e);return lre(t)?t:t+""},Ire=kne.document,Mre=Yne(Ire)&&Yne(Ire.createElement),Nre=function(e){return Mre?Ire.createElement(e):{}},Lre=!One&&!_ne((function(){return 7!=Object.defineProperty(Nre("div"),"a",{get:function(){return 7}}).a})),Rre=Object.getOwnPropertyDescriptor,zre={f:One?Rre:function(e,t){if(e=Gne(e),t=jre(t),Lre)try{return Rre(e,t)}catch(e){}if(Ere(e,t))return jne(!Tne(Fne.f,e,t),e[t])}},Ure=kne.String,Hre=kne.TypeError,$re=function(e){if(Yne(e))return e;throw Hre(Ure(e)+" is not an object")},Vre=kne.TypeError,Wre=Object.defineProperty,Kre={f:One?Wre:function(e,t,n){if($re(e),t=jre(t),$re(n),Lre)try{return Wre(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Vre("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qre=One?function(e,t,n){return Kre.f(e,t,jne(1,n))}:function(e,t,n){return e[t]=n,e},Gre=Rne(Function.toString);Xne(yre.inspectSource)||(yre.inspectSource=function(e){return Gre(e)});var Xre,Yre,Zre,Jre=yre.inspectSource,Qre=kne.WeakMap,eoe=Xne(Qre)&&/native code/.test(Jre(Qre)),toe=mre("keys"),noe=function(e){return toe[e]||(toe[e]=kre(e))},roe={},ooe=kne.TypeError,ioe=kne.WeakMap;if(eoe||yre.state){var aoe=yre.state||(yre.state=new ioe),uoe=Rne(aoe.get),loe=Rne(aoe.has),soe=Rne(aoe.set);Xre=function(e,t){if(loe(aoe,e))throw new ooe("Object already initialized");return t.facade=e,soe(aoe,e,t),t},Yre=function(e){return uoe(aoe,e)||{}},Zre=function(e){return loe(aoe,e)}}else{var coe=noe("state");roe[coe]=!0,Xre=function(e,t){if(Ere(e,coe))throw new ooe("Object already initialized");return t.facade=e,qre(e,coe,t),t},Yre=function(e){return Ere(e,coe)?e[coe]:{}},Zre=function(e){return Ere(e,coe)}}var doe={set:Xre,get:Yre,has:Zre,enforce:function(e){return Zre(e)?Yre(e):Xre(e,{})},getterFor:function(e){return function(t){var n;if(!Yne(t)||(n=Yre(t)).type!==e)throw ooe("Incompatible receiver, "+e+" required");return n}}},foe=Function.prototype,poe=One&&Object.getOwnPropertyDescriptor,hoe=Ere(foe,"name"),voe={EXISTS:hoe,PROPER:hoe&&"something"===function(){}.name,CONFIGURABLE:hoe&&(!One||One&&poe(foe,"name").configurable)},goe=Ene((function(e){var t=voe.CONFIGURABLE,n=doe.get,r=doe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;Xne(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ere(i,"name")||t&&i.name!==d)&&qre(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==kne?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:qre(e,n,i)):s?e[n]=i:gre(n,i)})(Function.prototype,"toString",(function(){return Xne(this)&&n(this).source||Jre(this)}))})),yoe=Math.ceil,moe=Math.floor,boe=function(e){var t=+e;return t!=t||0===t?0:(t>0?moe:yoe)(t)},woe=Math.max,xoe=Math.min,Eoe=function(e,t){var n=boe(e);return n<0?woe(n+t,0):xoe(n,t)},Coe=Math.min,Doe=function(e){return e>0?Coe(boe(e),9007199254740991):0},Soe=function(e){return Doe(e.length)},koe=function(e){return function(t,n,r){var o,i=Gne(t),a=Soe(i),u=Eoe(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}},_oe={includes:koe(!0),indexOf:koe(!1)},Ooe=_oe.indexOf,Aoe=Rne([].push),Toe=function(e,t){var n,r=Gne(e),o=0,i=[];for(n in r)!Ere(roe,n)&&Ere(r,n)&&Aoe(i,n);for(;t.length>o;)Ere(r,n=t[o++])&&(~Ooe(i,n)||Aoe(i,n));return i},Boe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Poe=Boe.concat("length","prototype"),Foe={f:Object.getOwnPropertyNames||function(e){return Toe(e,Poe)}},joe={f:Object.getOwnPropertySymbols},Ioe=Rne([].concat),Moe=Zne("Reflect","ownKeys")||function(e){var t=Foe.f($re(e)),n=joe.f;return n?Ioe(t,n(e)):t},Noe=function(e,t){for(var n=Moe(t),r=Kre.f,o=zre.f,i=0;i<n.length;i++){var a=n[i];Ere(e,a)||r(e,a,o(t,a))}},Loe=/#|\.prototype\./,Roe=function(e,t){var n=Uoe[zoe(e)];return n==$oe||n!=Hoe&&(Xne(t)?_ne(t):!!t)},zoe=Roe.normalize=function(e){return String(e).replace(Loe,".").toLowerCase()},Uoe=Roe.data={},Hoe=Roe.NATIVE="N",$oe=Roe.POLYFILL="P",Voe=Roe,Woe=zre.f,Koe=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?kne:s?kne[u]||gre(u,{}):(kne[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Woe(n,r))&&a.value:n[r],!Voe(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Noe(i,o)}(e.sham||o&&o.sham)&&qre(i,"sham",!0),goe(n,r,i,e)}},qoe={};qoe[Bre("toStringTag")]="z";var Goe="[object z]"===String(qoe),Xoe=Bre("toStringTag"),Yoe=kne.Object,Zoe="Arguments"==Hne(function(){return arguments}()),Joe=Goe?Hne:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yoe(e),Xoe))?n:Zoe?Hne(t):"Object"==(r=Hne(t))&&Xne(t.callee)?"Arguments":r},Qoe=kne.String,eie=function(e){if("Symbol"===Joe(e))throw TypeError("Cannot convert a Symbol value to a string");return Qoe(e)},tie="\t\n\v\f\r    \u2028\u2029\ufeff",nie=Rne("".replace),rie="["+tie+"]",oie=RegExp("^"+rie+rie+"*"),iie=RegExp(rie+rie+"*$"),aie={trim:function(e){return function(t){var n=eie(qne(t));return 1&e&&(n=nie(n,oie,"")),2&e&&(n=nie(n,iie,"")),n}}(3)},uie=voe.PROPER,lie=aie.trim;function sie(e){return e.length?e[0].tagName.toLowerCase():""}function cie(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=gx(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}Koe({target:"String",proto:!0,forced:_ne((function(){return!!tie.trim()||"…"!=="…".trim()||uie&&"trim"!==tie.trim.name}))},{trim:function(){return lie(this)}}),Koe({global:!0},{globalThis:kne}),Nx&&(gx.fn.append=Nx),Dx&&(gx.fn.on=Dx),Gx&&(gx.fn.focus=Gx),wx&&(gx.fn.attr=wx),Cx&&(gx.fn.val=Cx),jx&&(gx.fn.html=jx),Rx&&(gx.fn.parent=Rx),bx&&(gx.fn.hasClass=bx),Vx&&(gx.fn.empty=Vx);var die,fie={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,l=void 0===u?"":u,s=o.width,c=void 0===s?"auto":s,d=o.height,f=void 0===d?"auto":d,p=lI.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=aC("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:cie(a,c,f)});else{var h=aC("video",{poster:l,controls:!0},aC("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==f&&(h.data.height=f),r=aC("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return zE("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},pie={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,l=void 0===u?"auto":u,s=n.height,c=void 0===s?"auto":s,d='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?d+=cie(o,l,c):d+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',d+"\n</div>"}},hie=Object.keys||function(e){return Toe(e,Boe)},vie=One?Object.defineProperties:function(e,t){$re(e);for(var n,r=Gne(t),o=hie(t),i=o.length,a=0;i>a;)Kre.f(e,n=o[a++],r[n]);return e},gie=Zne("document","documentElement"),yie=noe("IE_PROTO"),mie=function(){},bie=function(e){return"<script>"+e+"<\/script>"},wie=function(e){e.write(bie("")),e.close();var t=e.parentWindow.Object;return e=null,t},xie=function(){try{die=new ActiveXObject("htmlfile")}catch(e){}var e,t;xie="undefined"!=typeof document?document.domain&&die?wie(die):((t=Nre("iframe")).style.display="none",gie.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bie("document.F=Object")),e.close(),e.F):wie(die);for(var n=Boe.length;n--;)delete xie.prototype[Boe[n]];return xie()};roe[yie]=!0;var Eie=Object.create||function(e,t){var n;return null!==e?(mie.prototype=$re(e),n=new mie,mie.prototype=null,n[yie]=e):n=xie(),void 0===t?n:vie(n,t)},Cie=Bre("unscopables"),Die=Array.prototype;null==Die[Cie]&&Kre.f(Die,Cie,{configurable:!0,value:Eie(null)});var Sie=function(e){Die[Cie][e]=!0},kie=_oe.includes;Koe({target:"Array",proto:!0},{includes:function(e){return kie(this,e,arguments.length>1?arguments[1]:void 0)}}),Sie("includes");var _ie={selector:"iframe,video,p",preParseHtml:function(e){var t=gx(e),n=t;if("p"===sie(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=gx(o))}}var a=sie(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=gx('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},Oie=Rne(Rne.bind),Aie=function(e,t){return fre(e),void 0===t?e:Oie?Oie(e,t):function(){return e.apply(t,arguments)}},Tie=Array.isArray||function(e){return"Array"==Hne(e)},Bie=function(){},Pie=[],Fie=Zne("Reflect","construct"),jie=/^\s*(?:class|function)\b/,Iie=Rne(jie.exec),Mie=!jie.exec(Bie),Nie=function(e){if(!Xne(e))return!1;try{return Fie(Bie,Pie,e),!0}catch(e){return!1}},Lie=!Fie||_ne((function(){var e;return Nie(Nie.call)||!Nie(Object)||!Nie((function(){e=!0}))||e}))?function(e){if(!Xne(e))return!1;switch(Joe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mie||!!Iie(jie,Jre(e))}:Nie,Rie=Bre("species"),zie=kne.Array,Uie=function(e,t){return new(function(e){var t;return Tie(e)&&(t=e.constructor,(Lie(t)&&(t===zie||Tie(t.prototype))||Yne(t)&&null===(t=t[Rie]))&&(t=void 0)),void 0===t?zie:t}(e))(0===t?0:t)},Hie=Rne([].push),$ie=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=wre(l),v=Wne(h),g=Aie(s,c),y=Soe(v),m=0,b=d||Uie,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Hie(w,f)}else switch(e){case 4:return!1;case 7:Hie(w,f)}return i?-1:r||o?o:w}},Vie={find:$ie(5),findIndex:$ie(6)},Wie=Vie.find,Kie=!0;"find"in[]&&Array(1).find((function(){Kie=!1})),Koe({target:"Array",proto:!0,forced:Kie},{find:function(e){return Wie(this,e,arguments.length>1?arguments[1]:void 0)}}),Sie("find");var qie=Goe?{}.toString:function(){return"[object "+Joe(this)+"]"};function Gie(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}Goe||goe(Object.prototype,"toString",qie,{unsafe:!0});var Xie,Yie,Zie={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=gx(e),o="",i="",a="auto",u="auto",l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",u=l.attr("height")||"auto",Gie(o=l[0].outerHTML,i,a,u);var s=r.find("video");return(o=s.attr("src")||"")||s.length>0&&(o=s.find("source").attr("src")||""),a=s.attr("width")||"auto",u=s.attr("height")||"auto",Gie(o,i=s.attr("poster")||"",a,u)}},Jie=function(){var e=$re(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},Qie=kne.RegExp,eae=_ne((function(){var e=Qie("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));eae||_ne((function(){return!Qie("a","y").sticky}));var tae={BROKEN_CARET:eae||_ne((function(){var e=Qie("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},nae=kne.RegExp,rae=_ne((function(){var e=nae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),oae=kne.RegExp,iae=_ne((function(){var e=oae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),aae=doe.get,uae=mre("native-string-replace",String.prototype.replace),lae=RegExp.prototype.exec,sae=lae,cae=Rne("".charAt),dae=Rne("".indexOf),fae=Rne("".replace),pae=Rne("".slice),hae=(Yie=/b*/g,Tne(lae,Xie=/a/,"a"),Tne(lae,Yie,"a"),0!==Xie.lastIndex||0!==Yie.lastIndex),vae=tae.BROKEN_CARET,gae=void 0!==/()??/.exec("")[1];(hae||gae||vae||rae||iae)&&(sae=function(e){var t,n,r,o,i,a,u,l=this,s=aae(l),c=eie(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=Tne(sae,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=vae&&l.sticky,h=Tne(Jie,l),v=l.source,g=0,y=c;if(p&&(h=fae(h,"y",""),-1===dae(h,"g")&&(h+="g"),y=pae(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==cae(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),gae&&(n=new RegExp("^"+v+"$(?!\\s)",h)),hae&&(r=l.lastIndex),o=Tne(lae,p?n:l,y),p?o?(o.input=pae(o.input,g),o[0]=pae(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:hae&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),gae&&o&&o.length>1&&Tne(uae,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=Eie(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var yae=sae;Koe({target:"RegExp",proto:!0,forced:/./.exec!==yae},{exec:yae});var mae=Function.prototype,bae=mae.apply,wae=mae.bind,xae=mae.call,Eae="object"==typeof Reflect&&Reflect.apply||(wae?xae.bind(bae):function(){return xae.apply(bae,arguments)}),Cae=(Bre("species"),RegExp.prototype),Dae=Rne("".charAt),Sae=Rne("".charCodeAt),kae=Rne("".slice),_ae={charAt:function(e){return function(t,n){var r,o,i=eie(qne(t)),a=boe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Sae(i,a))<55296||r>56319||a+1===u||(o=Sae(i,a+1))<56320||o>57343?e?Dae(i,a):r:e?kae(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Oae=_ae.charAt,Aae=function(e,t,n){return t+(n?Oae(e,t).length:1)},Tae=Math.floor,Bae=Rne("".charAt),Pae=Rne("".replace),Fae=Rne("".slice),jae=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Iae=/\$([$&'`]|\d{1,2})/g,Mae=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,l=Iae;return void 0!==o&&(o=wre(o),l=jae),Pae(i,l,(function(i,l){var s;switch(Bae(l,0)){case"$":return"$";case"&":return e;case"`":return Fae(t,0,n);case"'":return Fae(t,a);case"<":s=o[Fae(l,1,-1)];break;default:var c=+l;if(0===c)return i;if(c>u){var d=Tae(c/10);return 0===d?i:d<=u?void 0===r[d-1]?Bae(l,1):r[d-1]+Bae(l,1):i}s=r[c-1]}return void 0===s?"":s}))},Nae=kne.TypeError,Lae=function(e,t){var n=e.exec;if(Xne(n)){var r=Tne(n,e,t);return null!==r&&$re(r),r}if("RegExp"===Hne(e))return Tne(yae,e,t);throw Nae("RegExp#exec called on incompatible receiver")},Rae=Bre("replace"),zae=Math.max,Uae=Math.min,Hae=Rne([].concat),$ae=Rne([].push),Vae=Rne("".indexOf),Wae=Rne("".slice),Kae="$0"==="a".replace(/./,"$0"),qae=!!/./[Rae]&&""===/./[Rae]("a","$0");function Gae(e){return e+"-"+dE()}!function(e,t,n){var r=Bre(e),o=!_ne((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!_ne((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=Rne(/./[r]),u=function(e,t,n){var r=qae?"$":"$0";return[function(e,n){var r=qne(this),o=null==e?void 0:pre(e,Rae);return o?Tne(o,e,r,n):Tne(t,eie(r),e,n)},function(e,o){var i=$re(this),a=eie(e);if("string"==typeof o&&-1===Vae(o,r)&&-1===Vae(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var l=Xne(o);l||(o=eie(o));var s=i.global;if(s){var c=i.unicode;i.lastIndex=0}for(var d=[];;){var f=Lae(i,a);if(null===f)break;if($ae(d,f),!s)break;""===eie(f[0])&&(i.lastIndex=Aae(a,Doe(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<d.length;g++){for(var y=eie((f=d[g])[0]),m=zae(Uae(boe(f.index),a.length),0),b=[],w=1;w<f.length;w++)$ae(b,void 0===(p=f[w])?p:String(p));var x=f.groups;if(l){var E=Hae([y],b,m,a);void 0!==x&&$ae(E,x);var C=eie(Eae(o,void 0,E))}else C=Mae(y,a,m,b,x,o);m>=v&&(h+=Wae(a,v,m)+C,v=m+y.length)}return h+Wae(a,v)}]}(0,""[e],(function(e,t,n,r,i){var u=Rne(e),l=t.exec;return l===yae||l===Cae.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}));goe(String.prototype,e,u[0]),goe(Cae,r,u[1])}}("replace",0,!!_ne((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Kae||qae);var Xae=kne.Promise,Yae=function(e,t,n){for(var r in t)goe(e,r,t[r],n);return e},Zae=kne.String,Jae=kne.TypeError,Qae=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Rne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return $re(n),function(e){if("object"==typeof e||Xne(e))return e;throw Jae("Can't set "+Zae(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),eue=Kre.f,tue=Bre("toStringTag"),nue=function(e,t,n){e&&!Ere(e=n?e:e.prototype,tue)&&eue(e,tue,{configurable:!0,value:t})},rue=Bre("species"),oue=kne.TypeError,iue=function(e,t){if(Jne(t,e))return e;throw oue("Incorrect invocation")},aue={},uue=Bre("iterator"),lue=Array.prototype,sue=Bre("iterator"),cue=function(e){if(null!=e)return pre(e,sue)||pre(e,"@@iterator")||aue[Joe(e)]},due=kne.TypeError,fue=function(e,t,n){var r,o;$re(e);try{if(!(r=pre(e,"return"))){if("throw"===t)throw n;return n}r=Tne(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return $re(r),n},pue=kne.TypeError,hue=function(e,t){this.stopped=e,this.result=t},vue=hue.prototype,gue=function(e,t,n){var r,o,i,a,u,l,s,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Aie(t,d),g=function(e){return r&&fue(r,"normal",e),new hue(!0,e)},y=function(e){return f?($re(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=cue(e)))throw pue(cre(e)+" is not iterable");if(void 0!==(c=o)&&(aue.Array===c||lue[uue]===c)){for(i=0,a=Soe(e);a>i;i++)if((u=y(e[i]))&&Jne(vue,u))return u;return new hue(!1)}r=function(e,t){var n=arguments.length<2?cue(e):t;if(fre(n))return $re(Tne(n,e));throw due(cre(e)+" is not iterable")}(e,o)}for(l=r.next;!(s=Tne(l,r)).done;){try{u=y(s.value)}catch(e){fue(r,"throw",e)}if("object"==typeof u&&u&&Jne(vue,u))return u}return new hue(!1)},yue=Bre("iterator"),mue=!1;try{var bue=0,wue={next:function(){return{done:!!bue++}},return:function(){mue=!0}};wue[yue]=function(){return this},Array.from(wue,(function(){throw 2}))}catch(_y){}var xue,Eue,Cue,Due,Sue=function(e,t){if(!mue)return!1;var n=!1;try{var r={};r[yue]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},kue=kne.TypeError,_ue=Bre("species"),Oue=Rne([].slice),Aue=/(?:ipad|iphone|ipod).*applewebkit/i.test(Qne),Tue="process"==Hne(kne.process),Bue=kne.setImmediate,Pue=kne.clearImmediate,Fue=kne.process,jue=kne.Dispatch,Iue=kne.Function,Mue=kne.MessageChannel,Nue=kne.String,Lue=0,Rue={};try{xue=kne.location}catch(_y){}var zue=function(e){if(Ere(Rue,e)){var t=Rue[e];delete Rue[e],t()}},Uue=function(e){return function(){zue(e)}},Hue=function(e){zue(e.data)},$ue=function(e){kne.postMessage(Nue(e),xue.protocol+"//"+xue.host)};Bue&&Pue||(Bue=function(e){var t=Oue(arguments,1);return Rue[++Lue]=function(){Eae(Xne(e)?e:Iue(e),void 0,t)},Eue(Lue),Lue},Pue=function(e){delete Rue[e]},Tue?Eue=function(e){Fue.nextTick(Uue(e))}:jue&&jue.now?Eue=function(e){jue.now(Uue(e))}:Mue&&!Aue?(Due=(Cue=new Mue).port2,Cue.port1.onmessage=Hue,Eue=Aie(Due.postMessage,Due)):kne.addEventListener&&Xne(kne.postMessage)&&!kne.importScripts&&xue&&"file:"!==xue.protocol&&!_ne($ue)?(Eue=$ue,kne.addEventListener("message",Hue,!1)):Eue="onreadystatechange"in Nre("script")?function(e){gie.appendChild(Nre("script")).onreadystatechange=function(){gie.removeChild(this),zue(e)}}:function(e){setTimeout(Uue(e),0)});var Vue,Wue,Kue,que,Gue,Xue,Yue,Zue,Jue={set:Bue},Que=/ipad|iphone|ipod/i.test(Qne)&&void 0!==kne.Pebble,ele=/web0s(?!.*chrome)/i.test(Qne),tle=zre.f,nle=Jue.set,rle=kne.MutationObserver||kne.WebKitMutationObserver,ole=kne.document,ile=kne.process,ale=kne.Promise,ule=tle(kne,"queueMicrotask"),lle=ule&&ule.value;lle||(Vue=function(){var e,t;for(Tue&&(e=ile.domain)&&e.exit();Wue;){t=Wue.fn,Wue=Wue.next;try{t()}catch(e){throw Wue?que():Kue=void 0,e}}Kue=void 0,e&&e.enter()},Aue||Tue||ele||!rle||!ole?!Que&&ale&&ale.resolve?((Yue=ale.resolve(void 0)).constructor=ale,Zue=Aie(Yue.then,Yue),que=function(){Zue(Vue)}):Tue?que=function(){ile.nextTick(Vue)}:(nle=Aie(nle,kne),que=function(){nle(Vue)}):(Gue=!0,Xue=ole.createTextNode(""),new rle(Vue).observe(Xue,{characterData:!0}),que=function(){Xue.data=Gue=!Gue}));var sle,cle,dle,fle,ple=lle||function(e){var t={fn:e,next:void 0};Kue&&(Kue.next=t),Wue||(Wue=t,que()),Kue=t},hle=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=fre(t),this.reject=fre(n)},vle={f:function(e){return new hle(e)}},gle=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},yle="object"==typeof window,mle=Jue.set,ble=Bre("species"),wle="Promise",xle=doe.getterFor(wle),Ele=doe.set,Cle=doe.getterFor(wle),Dle=Xae&&Xae.prototype,Sle=Xae,kle=Dle,_le=kne.TypeError,Ole=kne.document,Ale=kne.process,Tle=vle.f,Ble=Tle,Ple=!!(Ole&&Ole.createEvent&&kne.dispatchEvent),Fle=Xne(kne.PromiseRejectionEvent),jle=!1,Ile=Voe(wle,(function(){var e=Jre(Sle),t=e!==String(Sle);if(!t&&66===ore)return!0;if(ore>=51&&/native code/.test(e))return!1;var n=new Sle((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[ble]=r,!(jle=n.then((function(){}))instanceof r)||!t&&yle&&!Fle})),Mle=Ile||!Sue((function(e){Sle.all(e).catch((function(){}))})),Nle=function(e){var t;return!(!Yne(e)||!Xne(t=e.then))&&t},Lle=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;ple((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,l,s=n[i++],c=o?s.ok:s.fail,d=s.resolve,f=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&Hle(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===s.promise?f(_le("Promise-chain cycle")):(u=Nle(a))?Tne(u,a,d,f):d(a)):f(r)}catch(e){p&&!l&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&zle(e)}))}},Rle=function(e,t,n){var r,o;Ple?((r=Ole.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),kne.dispatchEvent(r)):r={promise:t,reason:n},!Fle&&(o=kne["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=kne.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},zle=function(e){Tne(mle,kne,(function(){var t,n=e.facade,r=e.value;if(Ule(e)&&(t=gle((function(){Tue?Ale.emit("unhandledRejection",r,n):Rle("unhandledrejection",n,r)})),e.rejection=Tue||Ule(e)?2:1,t.error))throw t.value}))},Ule=function(e){return 1!==e.rejection&&!e.parent},Hle=function(e){Tne(mle,kne,(function(){var t=e.facade;Tue?Ale.emit("rejectionHandled",t):Rle("rejectionhandled",t,e.value)}))},$le=function(e,t,n){return function(r){e(t,r,n)}},Vle=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Lle(e,!0))},Wle=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw _le("Promise can't be resolved itself");var r=Nle(t);r?ple((function(){var n={done:!1};try{Tne(r,t,$le(Wle,n,e),$le(Vle,n,e))}catch(t){Vle(n,t,e)}})):(e.value=t,e.state=1,Lle(e,!1))}catch(t){Vle({done:!1},t,e)}}};if(Ile&&(kle=(Sle=function(e){iue(this,kle),fre(e),Tne(sle,this);var t=xle(this);try{e($le(Wle,t),$le(Vle,t))}catch(e){Vle(t,e)}}).prototype,(sle=function(e){Ele(this,{type:wle,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Yae(kle,{then:function(e,t){var n=Cle(this),r=n.reactions,o=Tle(function(e,t){var n,r=$re(e).constructor;return void 0===r||null==(n=$re(r)[_ue])?t:function(e){if(Lie(e))return e;throw kue(cre(e)+" is not a constructor")}(n)}(this,Sle));return o.ok=!Xne(e)||e,o.fail=Xne(t)&&t,o.domain=Tue?Ale.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Lle(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),cle=function(){var e=new sle,t=xle(e);this.promise=e,this.resolve=$le(Wle,t),this.reject=$le(Vle,t)},vle.f=Tle=function(e){return e===Sle||e===dle?new cle(e):Ble(e)},Xne(Xae)&&Dle!==Object.prototype)){fle=Dle.then,jle||(goe(Dle,"then",(function(e,t){var n=this;return new Sle((function(e,t){Tne(fle,n,e,t)})).then(e,t)}),{unsafe:!0}),goe(Dle,"catch",kle.catch,{unsafe:!0}));try{delete Dle.constructor}catch(_y){}Qae&&Qae(Dle,kle)}function Kle(e,t,n){return void 0===n&&(n=""),mne(this,0,void 0,(function(){var r,o,i,a,u,l,s;return bne(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(l=c.sent()).trim().indexOf("<iframe ")&&(l=l.replace(/</g,"&lt;").replace(/>/g,"&gt;")),s={type:"video",src:l,poster:n,children:[{text:""}]},Promise.resolve().then((function(){nw.insertNodes(e,s)})),o(s),[2]}}))}))}function qle(){return Gae("w-e-insert-video")}Koe({global:!0,wrap:!0,forced:Ile},{Promise:Sle}),nue(Sle,wle,!1),function(){var e=Zne("Promise"),t=Kre.f;One&&e&&!e[rue]&&t(e,rue,{configurable:!0,get:function(){return this}})}(),dle=Zne(wle),Koe({target:wle,stat:!0,forced:Ile},{reject:function(e){var t=Tle(this);return Tne(t.reject,void 0,e),t.promise}}),Koe({target:wle,stat:!0,forced:Ile},{resolve:function(e){return function(e,t){if($re(e),Yne(t)&&t.constructor===e)return t;var n=vle.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Koe({target:wle,stat:!0,forced:Mle},{all:function(e){var t=this,n=Tle(t),r=n.resolve,o=n.reject,i=gle((function(){var n=fre(t.resolve),i=[],a=0,u=1;gue(e,(function(e){var l=a++,s=!1;u++,Tne(n,t,e).then((function(e){s||(s=!0,i[l]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Tle(t),r=n.reject,o=gle((function(){var o=fre(t.resolve);gue(e,(function(e){Tne(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Gle=function(){function e(){this.title=zz("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=qle(),this.posterInputId=qle(),this.buttonId=qle()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||!!lI.getSelectedElems(e).some((function(t){var n=lI.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=wne(_R(zz("videoModule.videoSrc"),r,zz("videoModule.videoSrcPlaceHolder")),2),u=a[0],l=a[1],s=wne(_R(zz("videoModule.videoPoster"),o,zz("videoModule.videoPosterPlaceHolder")),2),c=s[0],d=s[1],f=gx(l),p=gx(d),h=wne(OR(i,zz("videoModule.ok")),1)[0];if(null==this.$content){var v=gx("<div></div>");v.on("click","#"+i,(function(n){return mne(t,0,void 0,(function(){var t,i;return bne(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Kle(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(c),g.append(h),f.val(""),p.val(""),setTimeout((function(){f.focus()})),g[0]},e}(),Xle=Rne([].join),Yle=Wne!=Object,Zle=function(){var e=[].join;return!!e&&_ne((function(){e.call(null,",",1)}))}();Koe({target:"Array",proto:!0,forced:Yle||!Zle},{join:function(e){return Xle(Gne(this),void 0===e?",":e)}});var Jle,Qle,ese,tse=!_ne((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nse=noe("IE_PROTO"),rse=kne.Object,ose=rse.prototype,ise=tse?rse.getPrototypeOf:function(e){var t=wre(e);if(Ere(t,nse))return t[nse];var n=t.constructor;return Xne(n)&&t instanceof n?n.prototype:t instanceof rse?ose:null},ase=Bre("iterator"),use=!1;[].keys&&("next"in(ese=[].keys())?(Qle=ise(ise(ese)))!==Object.prototype&&(Jle=Qle):use=!0);var lse=null==Jle||_ne((function(){var e={};return Jle[ase].call(e)!==e}));lse&&(Jle={}),Xne(Jle[ase])||goe(Jle,ase,(function(){return this}));var sse={IteratorPrototype:Jle,BUGGY_SAFARI_ITERATORS:use},cse=sse.IteratorPrototype,dse=function(){return this},fse=voe.PROPER,pse=voe.CONFIGURABLE,hse=sse.IteratorPrototype,vse=sse.BUGGY_SAFARI_ITERATORS,gse=Bre("iterator"),yse=function(){return this},mse=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Eie(cse,{next:jne(1,n)}),nue(e,r,!1),aue[r]=dse}(n,t,r);var u,l,s=function(e){if(e===o&&h)return h;if(!vse&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[gse]||f["@@iterator"]||o&&f[o],h=!vse&&p||s(o),v="Array"==t&&f.entries||p;return v&&(u=ise(v.call(new e)))!==Object.prototype&&u.next&&(ise(u)!==hse&&(Qae?Qae(u,hse):Xne(u[gse])||goe(u,gse,yse)),nue(u,c,!0)),fse&&"values"==o&&p&&"values"!==p.name&&(pse?qre(f,"name","values"):(d=!0,h=function(){return Tne(p,this)})),o&&(l={values:s("values"),keys:s("keys"),entries:s("entries")},a||Koe({target:t,proto:!0,forced:vse||d},l)),f[gse]!==h&&goe(f,gse,h,{name:o}),aue[t]=h,l},bse=doe.set,wse=doe.getterFor("Array Iterator"),xse=mse(Array,"Array",(function(e,t){bse(this,{type:"Array Iterator",target:Gne(e),index:0,kind:t})}),(function(){var e=wse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");aue.Arguments=aue.Array,Sie("keys"),Sie("values"),Sie("entries");var Ese=_ae.charAt,Cse=doe.set,Dse=doe.getterFor("String Iterator");mse(String,"String",(function(e){Cse(this,{type:"String Iterator",string:eie(e),index:0})}),(function(){var e,t=Dse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ese(n,r),t.index+=e.length,{value:e,done:!1})}));var Sse=function(e,t,n){var r=jre(t);r in e?Kre.f(e,r,jne(0,n)):e[r]=n},kse=kne.Array,_se=Math.max,Ose=Foe.f,Ase="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Tse={f:function(e){return Ase&&"Window"==Hne(e)?function(e){try{return Ose(e)}catch(e){return function(e){for(var t=Soe(e),n=Eoe(void 0,t),r=Eoe(t,t),o=kse(_se(r-n,0)),i=0;n<r;n++,i++)Sse(o,i,e[n]);return o.length=i,o}(Ase)}}(e):Ose(Gne(e))}},Bse=_ne((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Pse=Object.isExtensible,Fse=_ne((function(){Pse(1)}))||Bse?function(e){return!!Yne(e)&&(!Bse||"ArrayBuffer"!=Hne(e))&&(!Pse||Pse(e))}:Pse,jse=!_ne((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ise=Ene((function(e){var t=Kre.f,n=!1,r=kre("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Foe.f,t=Rne([].splice),o={};o[r]=1,e(o).length&&(Foe.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},Koe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Tse.f}))},fastKey:function(e,t){if(!Yne(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ere(e,r)){if(!Fse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Ere(e,r)){if(!Fse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return jse&&n&&Fse(e)&&!Ere(e,r)&&i(e),e}};roe[r]=!0})),Mse=Ise.getWeakData,Nse=doe.set,Lse=doe.getterFor,Rse=Vie.find,zse=Vie.findIndex,Use=Rne([].splice),Hse=0,$se=function(e){return e.frozen||(e.frozen=new Vse)},Vse=function(){this.entries=[]},Wse=function(e,t){return Rse(e.entries,(function(e){return e[0]===t}))};Vse.prototype={get:function(e){var t=Wse(this,e);if(t)return t[1]},has:function(e){return!!Wse(this,e)},set:function(e,t){var n=Wse(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zse(this.entries,(function(t){return t[0]===e}));return~t&&Use(this.entries,t,1),!!~t}};var Kse,qse={getConstructor:function(e,t,n,r){var o=e((function(e,o){iue(e,i),Nse(e,{type:t,id:Hse++,frozen:void 0}),null!=o&&gue(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Lse(t),u=function(e,t,n){var r=a(e),o=Mse($re(t),!0);return!0===o?$se(r).set(t,n):o[r.id]=n,e};return Yae(i,{delete:function(e){var t=a(this);if(!Yne(e))return!1;var n=Mse(e);return!0===n?$se(t).delete(e):n&&Ere(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Yne(e))return!1;var n=Mse(e);return!0===n?$se(t).has(e):n&&Ere(n,t.id)}}),Yae(i,n?{get:function(e){var t=a(this);if(Yne(e)){var n=Mse(e);return!0===n?$se(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Gse=doe.enforce,Xse=!kne.ActiveXObject&&"ActiveXObject"in kne,Yse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Zse=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=kne[e],u=a&&a.prototype,l=a,s={},c=function(e){var t=Rne(u[e]);goe(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Yne(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Yne(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Yne(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Voe(e,!Xne(a)||!(o||u.forEach&&!_ne((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,i),Ise.enable();else if(Voe(e,!0)){var d=new l,f=d[i](o?{}:-0,1)!=d,p=_ne((function(){d.has(1)})),h=Sue((function(e){new a(e)})),v=!o&&_ne((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((l=t((function(e,t){iue(e,u);var n=function(e,t,n){var r,o;return Qae&&Xne(r=t.constructor)&&r!==n&&Yne(o=r.prototype)&&o!==n.prototype&&Qae(e,o),e}(new a,e,l);return null!=t&&gue(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||f)&&c(i),o&&u.clear&&delete u.clear}return s[e]=l,Koe({global:!0,forced:l!=a},s),nue(l,e),o||n.setStrong(l,e,r),l}("WeakMap",Yse,qse);if(eoe&&Xse){Kse=qse.getConstructor(Yse,"WeakMap",!0),Ise.enable();var Jse=Zse.prototype,Qse=Rne(Jse.delete),ece=Rne(Jse.has),tce=Rne(Jse.get),nce=Rne(Jse.set);Yae(Jse,{delete:function(e){if(Yne(e)&&!Fse(e)){var t=Gse(this);return t.frozen||(t.frozen=new Kse),Qse(this,e)||t.frozen.delete(e)}return Qse(this,e)},has:function(e){if(Yne(e)&&!Fse(e)){var t=Gse(this);return t.frozen||(t.frozen=new Kse),ece(this,e)||t.frozen.has(e)}return ece(this,e)},get:function(e){if(Yne(e)&&!Fse(e)){var t=Gse(this);return t.frozen||(t.frozen=new Kse),ece(this,e)?tce(this,e):t.frozen.get(e)}return tce(this,e)},set:function(e,t){if(Yne(e)&&!Fse(e)){var n=Gse(this);n.frozen||(n.frozen=new Kse),ece(this,e)?nce(this,e,t):n.frozen.set(e,t)}else nce(this,e,t);return this}})}var rce={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},oce=Nre("span").classList,ice=oce&&oce.constructor&&oce.constructor.prototype,ace=ice===Object.prototype?void 0:ice,uce=Bre("iterator"),lce=Bre("toStringTag"),sce=xse.values,cce=function(e,t){if(e){if(e[uce]!==sce)try{qre(e,uce,sce)}catch(t){e[uce]=sce}if(e[lce]||qre(e,lce,t),rce[t])for(var n in xse)if(e[n]!==xse[n])try{qre(e,n,xse[n])}catch(t){e[n]=xse[n]}}};for(var dce in rce)cce(kne[dce]&&kne[dce].prototype,dce);cce(ace,"DOMTokenList");var fce=voe.EXISTS,pce=Kre.f,hce=Function.prototype,vce=Rne(hce.toString),gce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,yce=Rne(gce.exec);One&&!fce&&pce(hce,"name",{configurable:!0,get:function(){try{return yce(gce,vce(this))[1]}catch(su){return""}}});var mce=Bre("species"),bce=ore>=51||!_ne((function(){var e=[];return(e.constructor={})[mce]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),wce=Bre("species"),xce=kne.Array,Ece=Math.max;function Cce(e){return e.getMenuConfig("uploadVideo")}Koe({target:"Array",proto:!0,forced:!bce},{slice:function(e,t){var n,r,o,i=Gne(this),a=Soe(i),u=Eoe(e,a),l=Eoe(void 0===t?a:t,a);if(Tie(i)&&(n=i.constructor,(Lie(n)&&(n===xce||Tie(n.prototype))||Yne(n)&&null===(n=n[wce]))&&(n=void 0),n===xce||void 0===n))return Oue(i,u,l);for(r=new(void 0===n?xce:n)(Ece(l-u,0)),o=0;u<l;u++,o++)u in i&&Sse(r,o,i[u]);return r.length=o,r}});var Dce=new WeakMap;function Sce(e,t){return mne(this,0,void 0,(function(){var n,r,o,i;return bne(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Dce.get(e);if(null!=t)return t;var n=Cce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=ZR(yne(yne({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Kle(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,l=n.data,s=void 0===l?{}:l;if(0===u){var c=s.url,d=void 0===c?"":c,f=s.poster;Kle(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Dce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var kce=function(){function e(){this.title=zz("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Kle(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gx("body"),l=gx('<input type="file" '+a+" multiple/>");l.hide(),u.append(l),l.click(),l.on("change",(function(){var t=l[0].files;!function(e,t){var n,r;mne(this,0,void 0,(function(){var o,i,a,u,l,s;return bne(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Cce(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(l=u.value,i?[4,i(l,(function(t,n){return Kle(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Sce(e,l)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return s=c.sent(),n={error:s},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Bb.isCollapsed(t)||!!lI.getSelectedElems(e).some((function(t){var n=lI.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),_ce=voe.PROPER,Oce=RegExp.prototype,Ace=Oce.toString,Tce=Rne(Jie),Bce=_ne((function(){return"/a/b"!=Ace.call({source:"a",flags:"b"})})),Pce=_ce&&"toString"!=Ace.name;function Fce(){return Gae("w-e-insert-video")}(Bce||Pce)&&goe(RegExp.prototype,"toString",(function(){var e=$re(this),t=eie(e.source),n=e.flags;return"/"+t+"/"+eie(void 0===n&&Jne(Oce,e)&&!("flags"in Oce)?Tce(e):n)}),{unsafe:!0});var jce=function(){function e(){this.title=zz("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Fce(),this.heightInputId=Fce(),this.buttonId=Fce()}return e.prototype.getSelectedVideoNode=function(e){return lI.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=wne(_R(zz("videoModule.width"),n,"auto"),2),a=i[0],u=gx(i[1]),l=wne(_R(zz("videoModule.height"),r,"auto"),2),s=l[0],c=gx(l[1]),d=wne(OR(o,zz("videoModule.ok")),1)[0];if(null==this.$content){var f=gx("<div></div>");f.on("click","#"+o,(function(t){t.preventDefault();var o=f.find("#"+n).val().trim(),i=f.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),l=a?a.toString():"auto",s=u?u.toString():"auto";e.restoreSelection(),nw.setNodes(e,{width:l,height:s},{match:function(e){return lI.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=f}var p=this.$content;p.empty(),p.append(a),p.append(s),p.append(d);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Ice={renderElems:[fie],elemsToHtml:[pie],preParseHtml:[_ie],parseElemsHtml:[Zie],menus:[{key:"insertVideo",factory:function(){return new Gle},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new kce},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new jce}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=wne(e,2),o=t[0],i=t[1];return"video"===lI.getNodeType(o)&&lI.isLastNode(r,o)&&nw.insertNodes(r,lI.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Rz("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Rz("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Mce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Nce(e){var t={exports:{}};return e(t,t.exports),t.exports}var Lce,Rce,zce=function(e){return e&&e.Math==Math&&e},Uce=zce("object"==typeof globalThis&&globalThis)||zce("object"==typeof window&&window)||zce("object"==typeof self&&self)||zce("object"==typeof Mce&&Mce)||function(){return this}()||Function("return this")(),Hce=function(e){try{return!!e()}catch(e){return!0}},$ce=!Hce((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Vce=Function.prototype.call,Wce=Vce.bind?Vce.bind(Vce):function(){return Vce.apply(Vce,arguments)},Kce={}.propertyIsEnumerable,qce=Object.getOwnPropertyDescriptor,Gce={f:qce&&!Kce.call({1:2},1)?function(e){var t=qce(this,e);return!!t&&t.enumerable}:Kce},Xce=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yce=Function.prototype,Zce=Yce.bind,Jce=Yce.call,Qce=Zce&&Zce.bind(Jce),ede=Zce?function(e){return e&&Qce(Jce,e)}:function(e){return e&&function(){return Jce.apply(e,arguments)}},tde=ede({}.toString),nde=ede("".slice),rde=function(e){return nde(tde(e),8,-1)},ode=Uce.Object,ide=ede("".split),ade=Hce((function(){return!ode("z").propertyIsEnumerable(0)}))?function(e){return"String"==rde(e)?ide(e,""):ode(e)}:ode,ude=Uce.TypeError,lde=function(e){if(null==e)throw ude("Can't call method on "+e);return e},sde=function(e){return ade(lde(e))},cde=function(e){return"function"==typeof e},dde=function(e){return"object"==typeof e?null!==e:cde(e)},fde=function(e,t){return arguments.length<2?function(e){return cde(e)?e:void 0}(Uce[e]):Uce[e]&&Uce[e][t]},pde=ede({}.isPrototypeOf),hde=fde("navigator","userAgent")||"",vde=Uce.process,gde=Uce.Deno,yde=vde&&vde.versions||gde&&gde.version,mde=yde&&yde.v8;mde&&(Rce=(Lce=mde.split("."))[0]>0&&Lce[0]<4?1:+(Lce[0]+Lce[1])),!Rce&&hde&&(!(Lce=hde.match(/Edge\/(\d+)/))||Lce[1]>=74)&&(Lce=hde.match(/Chrome\/(\d+)/))&&(Rce=+Lce[1]);var bde=Rce,wde=!!Object.getOwnPropertySymbols&&!Hce((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bde&&bde<41})),xde=wde&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ede=Uce.Object,Cde=xde?function(e){return"symbol"==typeof e}:function(e){var t=fde("Symbol");return cde(t)&&pde(t.prototype,Ede(e))},Dde=Uce.String,Sde=function(e){try{return Dde(e)}catch(e){return"Object"}},kde=Uce.TypeError,_de=function(e){if(cde(e))return e;throw kde(Sde(e)+" is not a function")},Ode=function(e,t){var n=e[t];return null==n?void 0:_de(n)},Ade=Uce.TypeError,Tde=Object.defineProperty,Bde=function(e,t){try{Tde(Uce,e,{value:t,configurable:!0,writable:!0})}catch(cu){Uce[e]=t}return t},Pde=Uce["__core-js_shared__"]||Bde("__core-js_shared__",{}),Fde=Nce((function(e){(e.exports=function(e,t){return Pde[e]||(Pde[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jde=Uce.Object,Ide=function(e){return jde(lde(e))},Mde=ede({}.hasOwnProperty),Nde=Object.hasOwn||function(e,t){return Mde(Ide(e),t)},Lde=0,Rde=Math.random(),zde=ede(1..toString),Ude=function(e){return"Symbol("+(void 0===e?"":e)+")_"+zde(++Lde+Rde,36)},Hde=Fde("wks"),$de=Uce.Symbol,Vde=$de&&$de.for,Wde=xde?$de:$de&&$de.withoutSetter||Ude,Kde=function(e){if(!Nde(Hde,e)||!wde&&"string"!=typeof Hde[e]){var t="Symbol."+e;wde&&Nde($de,e)?Hde[e]=$de[e]:Hde[e]=xde&&Vde?Vde(t):Wde(t)}return Hde[e]},qde=Uce.TypeError,Gde=Kde("toPrimitive"),Xde=function(e){var t=function(e){if(!dde(e)||Cde(e))return e;var t,n=Ode(e,Gde);if(n){if(t=Wce(n,e,"string"),!dde(t)||Cde(t))return t;throw qde("Can't convert object to primitive value")}return function(e){var t,n;if(cde(t=e.toString)&&!dde(n=Wce(t,e)))return n;if(cde(t=e.valueOf)&&!dde(n=Wce(t,e)))return n;throw Ade("Can't convert object to primitive value")}(e)}(e);return Cde(t)?t:t+""},Yde=Uce.document,Zde=dde(Yde)&&dde(Yde.createElement),Jde=function(e){return Zde?Yde.createElement(e):{}},Qde=!$ce&&!Hce((function(){return 7!=Object.defineProperty(Jde("div"),"a",{get:function(){return 7}}).a})),efe=Object.getOwnPropertyDescriptor,tfe={f:$ce?efe:function(e,t){if(e=sde(e),t=Xde(t),Qde)try{return efe(e,t)}catch(e){}if(Nde(e,t))return Xce(!Wce(Gce.f,e,t),e[t])}},nfe=Uce.String,rfe=Uce.TypeError,ofe=function(e){if(dde(e))return e;throw rfe(nfe(e)+" is not an object")},ife=Uce.TypeError,afe=Object.defineProperty,ufe={f:$ce?afe:function(e,t,n){if(ofe(e),t=Xde(t),ofe(n),Qde)try{return afe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw ife("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},lfe=$ce?function(e,t,n){return ufe.f(e,t,Xce(1,n))}:function(e,t,n){return e[t]=n,e},sfe=ede(Function.toString);cde(Pde.inspectSource)||(Pde.inspectSource=function(e){return sfe(e)});var cfe,dfe,ffe,pfe=Pde.inspectSource,hfe=Uce.WeakMap,vfe=cde(hfe)&&/native code/.test(pfe(hfe)),gfe=Fde("keys"),yfe=function(e){return gfe[e]||(gfe[e]=Ude(e))},mfe={},bfe=Uce.TypeError,wfe=Uce.WeakMap;if(vfe||Pde.state){var xfe=Pde.state||(Pde.state=new wfe),Efe=ede(xfe.get),Cfe=ede(xfe.has),Dfe=ede(xfe.set);cfe=function(e,t){if(Cfe(xfe,e))throw new bfe("Object already initialized");return t.facade=e,Dfe(xfe,e,t),t},dfe=function(e){return Efe(xfe,e)||{}},ffe=function(e){return Cfe(xfe,e)}}else{var Sfe=yfe("state");mfe[Sfe]=!0,cfe=function(e,t){if(Nde(e,Sfe))throw new bfe("Object already initialized");return t.facade=e,lfe(e,Sfe,t),t},dfe=function(e){return Nde(e,Sfe)?e[Sfe]:{}},ffe=function(e){return Nde(e,Sfe)}}var kfe={set:cfe,get:dfe,has:ffe,enforce:function(e){return ffe(e)?dfe(e):cfe(e,{})},getterFor:function(e){return function(t){var n;if(!dde(t)||(n=dfe(t)).type!==e)throw bfe("Incompatible receiver, "+e+" required");return n}}},_fe=Function.prototype,Ofe=$ce&&Object.getOwnPropertyDescriptor,Afe=Nde(_fe,"name"),Tfe={EXISTS:Afe,PROPER:Afe&&"something"===function(){}.name,CONFIGURABLE:Afe&&(!$ce||$ce&&Ofe(_fe,"name").configurable)},Bfe=Nce((function(e){var t=Tfe.CONFIGURABLE,n=kfe.get,r=kfe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;cde(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nde(i,"name")||t&&i.name!==d)&&lfe(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==Uce?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:lfe(e,n,i)):s?e[n]=i:Bde(n,i)})(Function.prototype,"toString",(function(){return cde(this)&&n(this).source||pfe(this)}))})),Pfe=Math.ceil,Ffe=Math.floor,jfe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ffe:Pfe)(t)},Ife=Math.max,Mfe=Math.min,Nfe=function(e,t){var n=jfe(e);return n<0?Ife(n+t,0):Mfe(n,t)},Lfe=Math.min,Rfe=function(e){return e>0?Lfe(jfe(e),9007199254740991):0},zfe=function(e){return Rfe(e.length)},Ufe=function(e){return function(t,n,r){var o,i=sde(t),a=zfe(i),u=Nfe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Hfe=ede([].push),$fe=function(e,t){var n,r=sde(e),o=0,i=[];for(n in r)!Nde(mfe,n)&&Nde(r,n)&&Hfe(i,n);for(;t.length>o;)Nde(r,n=t[o++])&&(~Ufe(i,n)||Hfe(i,n));return i},Vfe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wfe=Vfe.concat("length","prototype"),Kfe={f:Object.getOwnPropertyNames||function(e){return $fe(e,Wfe)}},qfe={f:Object.getOwnPropertySymbols},Gfe=ede([].concat),Xfe=fde("Reflect","ownKeys")||function(e){var t=Kfe.f(ofe(e)),n=qfe.f;return n?Gfe(t,n(e)):t},Yfe=function(e,t){for(var n=Xfe(t),r=ufe.f,o=tfe.f,i=0;i<n.length;i++){var a=n[i];Nde(e,a)||r(e,a,o(t,a))}},Zfe=/#|\.prototype\./,Jfe=function(e,t){var n=epe[Qfe(e)];return n==npe||n!=tpe&&(cde(t)?Hce(t):!!t)},Qfe=Jfe.normalize=function(e){return String(e).replace(Zfe,".").toLowerCase()},epe=Jfe.data={},tpe=Jfe.NATIVE="N",npe=Jfe.POLYFILL="P",rpe=Jfe,ope=tfe.f,ipe=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?Uce:s?Uce[u]||Bde(u,{}):(Uce[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ope(n,r))&&a.value:n[r],!rpe(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Yfe(i,o)}(e.sham||o&&o.sham)&&lfe(i,"sham",!0),Bfe(n,r,i,e)}},ape=Array.isArray||function(e){return"Array"==rde(e)},upe={};upe[Kde("toStringTag")]="z";var lpe="[object z]"===String(upe),spe=Kde("toStringTag"),cpe=Uce.Object,dpe="Arguments"==rde(function(){return arguments}()),fpe=lpe?rde:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=cpe(e),spe))?n:dpe?rde(t):"Object"==(r=rde(t))&&cde(t.callee)?"Arguments":r},ppe=function(){},hpe=[],vpe=fde("Reflect","construct"),gpe=/^\s*(?:class|function)\b/,ype=ede(gpe.exec),mpe=!gpe.exec(ppe),bpe=function(e){if(!cde(e))return!1;try{return vpe(ppe,hpe,e),!0}catch(e){return!1}},wpe=!vpe||Hce((function(){var e;return bpe(bpe.call)||!bpe(Object)||!bpe((function(){e=!0}))||e}))?function(e){if(!cde(e))return!1;switch(fpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mpe||!!ype(gpe,pfe(e))}:bpe,xpe=function(e,t,n){var r=Xde(t);r in e?ufe.f(e,r,Xce(0,n)):e[r]=n},Epe=Kde("species"),Cpe=ede([].slice),Dpe=bde>=51||!Hce((function(){var e=[];return(e.constructor={})[Epe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Spe=Kde("species"),kpe=Uce.Array,_pe=Math.max;ipe({target:"Array",proto:!0,forced:!Dpe},{slice:function(e,t){var n,r,o,i=sde(this),a=zfe(i),u=Nfe(e,a),l=Nfe(void 0===t?a:t,a);if(ape(i)&&(n=i.constructor,(wpe(n)&&(n===kpe||ape(n.prototype))||dde(n)&&null===(n=n[Spe]))&&(n=void 0),n===kpe||void 0===n))return Cpe(i,u,l);for(r=new(void 0===n?kpe:n)(_pe(l-u,0)),o=0;u<l;u++,o++)u in i&&xpe(r,o,i[u]);return r.length=o,r}});var Ope=lpe?{}.toString:function(){return"[object "+fpe(this)+"]"};lpe||Bfe(Object.prototype,"toString",Ope,{unsafe:!0});var Ape,Tpe=Uce.String,Bpe=function(e){if("Symbol"===fpe(e))throw TypeError("Cannot convert a Symbol value to a string");return Tpe(e)},Ppe=function(){var e=ofe(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},Fpe=Uce.RegExp,jpe=Hce((function(){var e=Fpe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));jpe||Hce((function(){return!Fpe("a","y").sticky}));var Ipe={BROKEN_CARET:jpe||Hce((function(){var e=Fpe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:jpe},Mpe=Object.keys||function(e){return $fe(e,Vfe)},Npe=$ce?Object.defineProperties:function(e,t){ofe(e);for(var n,r=sde(t),o=Mpe(t),i=o.length,a=0;i>a;)ufe.f(e,n=o[a++],r[n]);return e},Lpe=fde("document","documentElement"),Rpe=yfe("IE_PROTO"),zpe=function(){},Upe=function(e){return"<script>"+e+"<\/script>"},Hpe=function(e){e.write(Upe("")),e.close();var t=e.parentWindow.Object;return e=null,t},$pe=function(){try{Ape=new ActiveXObject("htmlfile")}catch(e){}var e,t;$pe="undefined"!=typeof document?document.domain&&Ape?Hpe(Ape):((t=Jde("iframe")).style.display="none",Lpe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Upe("document.F=Object")),e.close(),e.F):Hpe(Ape);for(var n=Vfe.length;n--;)delete $pe.prototype[Vfe[n]];return $pe()};mfe[Rpe]=!0;var Vpe,Wpe,Kpe=Object.create||function(e,t){var n;return null!==e?(zpe.prototype=ofe(e),n=new zpe,zpe.prototype=null,n[Rpe]=e):n=$pe(),void 0===t?n:Npe(n,t)},qpe=Uce.RegExp,Gpe=Hce((function(){var e=qpe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Xpe=Uce.RegExp,Ype=Hce((function(){var e=Xpe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Zpe=kfe.get,Jpe=Fde("native-string-replace",String.prototype.replace),Qpe=RegExp.prototype.exec,ehe=Qpe,the=ede("".charAt),nhe=ede("".indexOf),rhe=ede("".replace),ohe=ede("".slice),ihe=(Wpe=/b*/g,Wce(Qpe,Vpe=/a/,"a"),Wce(Qpe,Wpe,"a"),0!==Vpe.lastIndex||0!==Wpe.lastIndex),ahe=Ipe.BROKEN_CARET,uhe=void 0!==/()??/.exec("")[1];(ihe||uhe||ahe||Gpe||Ype)&&(ehe=function(e){var t,n,r,o,i,a,u,l=this,s=Zpe(l),c=Bpe(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=Wce(ehe,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=ahe&&l.sticky,h=Wce(Ppe,l),v=l.source,g=0,y=c;if(p&&(h=rhe(h,"y",""),-1===nhe(h,"g")&&(h+="g"),y=ohe(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==the(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),uhe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),ihe&&(r=l.lastIndex),o=Wce(Qpe,p?n:l,y),p?o?(o.input=ohe(o.input,g),o[0]=ohe(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:ihe&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),uhe&&o&&o.length>1&&Wce(Jpe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=Kpe(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var lhe=ehe;ipe({target:"RegExp",proto:!0,forced:/./.exec!==lhe},{exec:lhe});var she=Function.prototype,che=she.apply,dhe=she.bind,fhe=she.call,phe="object"==typeof Reflect&&Reflect.apply||(dhe?fhe.bind(che):function(){return fhe.apply(che,arguments)}),hhe=Kde("species"),vhe=RegExp.prototype,ghe=Kde("match"),yhe=Uce.TypeError,mhe=Kde("species"),bhe=function(e,t){var n,r=ofe(e).constructor;return void 0===r||null==(n=ofe(r)[mhe])?t:function(e){if(wpe(e))return e;throw yhe(Sde(e)+" is not a constructor")}(n)},whe=ede("".charAt),xhe=ede("".charCodeAt),Ehe=ede("".slice),Che={charAt:function(e){return function(t,n){var r,o,i=Bpe(lde(t)),a=jfe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xhe(i,a))<55296||r>56319||a+1===u||(o=xhe(i,a+1))<56320||o>57343?e?whe(i,a):r:e?Ehe(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Dhe=Che.charAt,She=function(e,t,n){return t+(n?Dhe(e,t).length:1)},khe=Uce.Array,_he=Math.max,Ohe=function(e,t,n){for(var r=zfe(e),o=Nfe(t,r),i=Nfe(void 0===n?r:n,r),a=khe(_he(i-o,0)),u=0;o<i;o++,u++)xpe(a,u,e[o]);return a.length=u,a},Ahe=Uce.TypeError,The=function(e,t){var n=e.exec;if(cde(n)){var r=Wce(n,e,t);return null!==r&&ofe(r),r}if("RegExp"===rde(e))return Wce(lhe,e,t);throw Ahe("RegExp#exec called on incompatible receiver")},Bhe=Ipe.UNSUPPORTED_Y,Phe=Math.min,Fhe=[].push,jhe=ede(/./.exec),Ihe=ede(Fhe),Mhe=ede("".slice);!function(e,t,n,r){var o=Kde(e),i=!Hce((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Hce((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[hhe]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=ede(/./[o]),l=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Bpe(lde(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!dde(r=e)||!(void 0!==(o=r[ghe])?o:"RegExp"==rde(r)))return Wce(t,i,e,a);for(var u,l,s,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=new RegExp(e.source,d+"g");(u=Wce(lhe,p,i))&&!((l=p.lastIndex)>f&&(Ihe(c,Mhe(i,f,u.index)),u.length>1&&u.index<i.length&&phe(Fhe,c,Ohe(u,1)),s=u[0].length,f=l,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return f===i.length?!s&&jhe(p,"")||Ihe(c,""):Ihe(c,Mhe(i,f)),c.length>a?Ohe(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Wce(t,this,e,n)}:t,[function(t,n){var o=lde(this),i=null==t?void 0:Ode(t,e);return i?Wce(i,t,o,n):Wce(r,Bpe(o),t,n)},function(e,o){var i=ofe(this),a=Bpe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var l=bhe(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Bhe?"g":"y"),d=new l(Bhe?"^(?:"+i.source+")":i,c),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===a.length)return null===The(d,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){d.lastIndex=Bhe?0:h;var g,y=The(d,Bhe?Mhe(a,h):a);if(null===y||(g=Phe(Rfe(d.lastIndex+(Bhe?h:0)),a.length))===p)h=She(a,h,s);else{if(Ihe(v,Mhe(a,p,h)),v.length===f)return v;for(var m=1;m<=y.length-1;m++)if(Ihe(v,y[m]),v.length===f)return v;h=p=g}}return Ihe(v,Mhe(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=ede(e),l=t.exec;return l===lhe||l===vhe.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Bfe(String.prototype,e,l[0]),Bfe(vhe,o,l[1])}r&&lfe(vhe[o],"sham",!0)}("split",0,!!Hce((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bhe);
/*! *****************************************************************************
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 Nhe=function(){return Nhe=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},Nhe.apply(this,arguments)};function Lhe(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function Rhe(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var zhe=Kde("unscopables"),Uhe=Array.prototype;null==Uhe[zhe]&&ufe.f(Uhe,zhe,{configurable:!0,value:Kpe(null)});var Hhe,$he,Vhe,Whe=function(e){Uhe[zhe][e]=!0},Khe={},qhe=!Hce((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ghe=yfe("IE_PROTO"),Xhe=Uce.Object,Yhe=Xhe.prototype,Zhe=qhe?Xhe.getPrototypeOf:function(e){var t=Ide(e);if(Nde(t,Ghe))return t[Ghe];var n=t.constructor;return cde(n)&&t instanceof n?n.prototype:t instanceof Xhe?Yhe:null},Jhe=Kde("iterator"),Qhe=!1;[].keys&&("next"in(Vhe=[].keys())?($he=Zhe(Zhe(Vhe)))!==Object.prototype&&(Hhe=$he):Qhe=!0);var eve=null==Hhe||Hce((function(){var e={};return Hhe[Jhe].call(e)!==e}));eve&&(Hhe={}),cde(Hhe[Jhe])||Bfe(Hhe,Jhe,(function(){return this}));var tve={IteratorPrototype:Hhe,BUGGY_SAFARI_ITERATORS:Qhe},nve=ufe.f,rve=Kde("toStringTag"),ove=function(e,t,n){e&&!Nde(e=n?e:e.prototype,rve)&&nve(e,rve,{configurable:!0,value:t})},ive=tve.IteratorPrototype,ave=function(){return this},uve=Uce.String,lve=Uce.TypeError,sve=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ede(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ofe(n),function(e){if("object"==typeof e||cde(e))return e;throw lve("Can't set "+uve(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),cve=Tfe.PROPER,dve=Tfe.CONFIGURABLE,fve=tve.IteratorPrototype,pve=tve.BUGGY_SAFARI_ITERATORS,hve=Kde("iterator"),vve=function(){return this},gve=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Kpe(ive,{next:Xce(1,n)}),ove(e,r,!1),Khe[r]=ave}(n,t,r);var u,l,s=function(e){if(e===o&&h)return h;if(!pve&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},c=t+" Iterator",d=!1,f=e.prototype,p=f[hve]||f["@@iterator"]||o&&f[o],h=!pve&&p||s(o),v="Array"==t&&f.entries||p;return v&&(u=Zhe(v.call(new e)))!==Object.prototype&&u.next&&(Zhe(u)!==fve&&(sve?sve(u,fve):cde(u[hve])||Bfe(u,hve,vve)),ove(u,c,!0)),cve&&"values"==o&&p&&"values"!==p.name&&(dve?lfe(f,"name","values"):(d=!0,h=function(){return Wce(p,this)})),o&&(l={values:s("values"),keys:s("keys"),entries:s("entries")},a||ipe({target:t,proto:!0,forced:pve||d},l)),f[hve]!==h&&Bfe(f,hve,h,{name:o}),Khe[t]=h,l},yve=kfe.set,mve=kfe.getterFor("Array Iterator"),bve=gve(Array,"Array",(function(e,t){yve(this,{type:"Array Iterator",target:sde(e),index:0,kind:t})}),(function(){var e=mve(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Khe.Arguments=Khe.Array,Whe("keys"),Whe("values"),Whe("entries");var wve=Che.charAt,xve=kfe.set,Eve=kfe.getterFor("String Iterator");gve(String,"String",(function(e){xve(this,{type:"String Iterator",string:Bpe(e),index:0})}),(function(){var e,t=Eve(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wve(n,r),t.index+=e.length,{value:e,done:!1})}));var Cve=function(e,t,n){for(var r in t)Bfe(e,r,t[r],n);return e},Dve=Kfe.f,Sve="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kve={f:function(e){return Sve&&"Window"==rde(e)?function(e){try{return Dve(e)}catch(e){return Ohe(Sve)}}(e):Dve(sde(e))}},_ve=Hce((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ove=Object.isExtensible,Ave=Hce((function(){Ove(1)}))||_ve?function(e){return!!dde(e)&&(!_ve||"ArrayBuffer"!=rde(e))&&(!Ove||Ove(e))}:Ove,Tve=!Hce((function(){return Object.isExtensible(Object.preventExtensions({}))})),Bve=Nce((function(e){var t=ufe.f,n=!1,r=Ude("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Kfe.f,t=ede([].splice),o={};o[r]=1,e(o).length&&(Kfe.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},ipe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:kve.f}))},fastKey:function(e,t){if(!dde(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Nde(e,r)){if(!Ave(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Nde(e,r)){if(!Ave(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Tve&&n&&Ave(e)&&!Nde(e,r)&&i(e),e}};mfe[r]=!0})),Pve=ede(ede.bind),Fve=function(e,t){return _de(e),void 0===t?e:Pve?Pve(e,t):function(){return e.apply(t,arguments)}},jve=Kde("iterator"),Ive=Array.prototype,Mve=Kde("iterator"),Nve=function(e){if(null!=e)return Ode(e,Mve)||Ode(e,"@@iterator")||Khe[fpe(e)]},Lve=Uce.TypeError,Rve=function(e,t,n){var r,o;ofe(e);try{if(!(r=Ode(e,"return"))){if("throw"===t)throw n;return n}r=Wce(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return ofe(r),n},zve=Uce.TypeError,Uve=function(e,t){this.stopped=e,this.result=t},Hve=Uve.prototype,$ve=function(e,t,n){var r,o,i,a,u,l,s,c,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Fve(t,d),g=function(e){return r&&Rve(r,"normal",e),new Uve(!0,e)},y=function(e){return f?(ofe(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=Nve(e)))throw zve(Sde(e)+" is not iterable");if(void 0!==(c=o)&&(Khe.Array===c||Ive[jve]===c)){for(i=0,a=zfe(e);a>i;i++)if((u=y(e[i]))&&pde(Hve,u))return u;return new Uve(!1)}r=function(e,t){var n=arguments.length<2?Nve(e):t;if(_de(n))return ofe(Wce(n,e));throw Lve(Sde(e)+" is not iterable")}(e,o)}for(l=r.next;!(s=Wce(l,r)).done;){try{u=y(s.value)}catch(e){Rve(r,"throw",e)}if("object"==typeof u&&u&&pde(Hve,u))return u}return new Uve(!1)},Vve=Uce.TypeError,Wve=function(e,t){if(pde(t,e))return e;throw Vve("Incorrect invocation")},Kve=Kde("iterator"),qve=!1;try{var Gve=0,Xve={next:function(){return{done:!!Gve++}},return:function(){qve=!0}};Xve[Kve]=function(){return this},Array.from(Xve,(function(){throw 2}))}catch(_y){}var Yve=function(e,t){if(!qve)return!1;var n=!1;try{var r={};r[Kve]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Zve=Kde("species"),Jve=Uce.Array,Qve=function(e,t){return new(function(e){var t;return ape(e)&&(t=e.constructor,(wpe(t)&&(t===Jve||ape(t.prototype))||dde(t)&&null===(t=t[Zve]))&&(t=void 0)),void 0===t?Jve:t}(e))(0===t?0:t)},ege=ede([].push),tge=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=Ide(l),v=ade(h),g=Fve(s,c),y=zfe(v),m=0,b=d||Qve,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:ege(w,f)}else switch(e){case 4:return!1;case 7:ege(w,f)}return i?-1:r||o?o:w}},nge={forEach:tge(0),find:tge(5),findIndex:tge(6)},rge=Bve.getWeakData,oge=kfe.set,ige=kfe.getterFor,age=nge.find,uge=nge.findIndex,lge=ede([].splice),sge=0,cge=function(e){return e.frozen||(e.frozen=new dge)},dge=function(){this.entries=[]},fge=function(e,t){return age(e.entries,(function(e){return e[0]===t}))};dge.prototype={get:function(e){var t=fge(this,e);if(t)return t[1]},has:function(e){return!!fge(this,e)},set:function(e,t){var n=fge(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=uge(this.entries,(function(t){return t[0]===e}));return~t&&lge(this.entries,t,1),!!~t}};var pge,hge={getConstructor:function(e,t,n,r){var o=e((function(e,o){Wve(e,i),oge(e,{type:t,id:sge++,frozen:void 0}),null!=o&&$ve(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=ige(t),u=function(e,t,n){var r=a(e),o=rge(ofe(t),!0);return!0===o?cge(r).set(t,n):o[r.id]=n,e};return Cve(i,{delete:function(e){var t=a(this);if(!dde(e))return!1;var n=rge(e);return!0===n?cge(t).delete(e):n&&Nde(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!dde(e))return!1;var n=rge(e);return!0===n?cge(t).has(e):n&&Nde(n,t.id)}}),Cve(i,n?{get:function(e){var t=a(this);if(dde(e)){var n=rge(e);return!0===n?cge(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},vge=kfe.enforce,gge=!Uce.ActiveXObject&&"ActiveXObject"in Uce,yge=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mge=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Uce[e],u=a&&a.prototype,l=a,s={},c=function(e){var t=ede(u[e]);Bfe(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!dde(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!dde(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!dde(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(rpe(e,!cde(a)||!(o||u.forEach&&!Hce((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,i),Bve.enable();else if(rpe(e,!0)){var d=new l,f=d[i](o?{}:-0,1)!=d,p=Hce((function(){d.has(1)})),h=Yve((function(e){new a(e)})),v=!o&&Hce((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((l=t((function(e,t){Wve(e,u);var n=function(e,t,n){var r,o;return sve&&cde(r=t.constructor)&&r!==n&&dde(o=r.prototype)&&o!==n.prototype&&sve(e,o),e}(new a,e,l);return null!=t&&$ve(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=l),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||f)&&c(i),o&&u.clear&&delete u.clear}return s[e]=l,ipe({global:!0,forced:l!=a},s),ove(l,e),o||n.setStrong(l,e,r),l}("WeakMap",yge,hge);if(vfe&&gge){pge=hge.getConstructor(yge,"WeakMap",!0),Bve.enable();var bge=mge.prototype,wge=ede(bge.delete),xge=ede(bge.has),Ege=ede(bge.get),Cge=ede(bge.set);Cve(bge,{delete:function(e){if(dde(e)&&!Ave(e)){var t=vge(this);return t.frozen||(t.frozen=new pge),wge(this,e)||t.frozen.delete(e)}return wge(this,e)},has:function(e){if(dde(e)&&!Ave(e)){var t=vge(this);return t.frozen||(t.frozen=new pge),xge(this,e)||t.frozen.has(e)}return xge(this,e)},get:function(e){if(dde(e)&&!Ave(e)){var t=vge(this);return t.frozen||(t.frozen=new pge),xge(this,e)?Ege(this,e):t.frozen.get(e)}return Ege(this,e)},set:function(e,t){if(dde(e)&&!Ave(e)){var n=vge(this);n.frozen||(n.frozen=new pge),xge(this,e)?Cge(this,e,t):n.frozen.set(e,t)}else Cge(this,e,t);return this}})}var Dge={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},Sge=Jde("span").classList,kge=Sge&&Sge.constructor&&Sge.constructor.prototype,_ge=kge===Object.prototype?void 0:kge,Oge=Kde("iterator"),Age=Kde("toStringTag"),Tge=bve.values,Bge=function(e,t){if(e){if(e[Oge]!==Tge)try{lfe(e,Oge,Tge)}catch(t){e[Oge]=Tge}if(e[Age]||lfe(e,Age,t),Dge[t])for(var n in bve)if(e[n]!==bve[n])try{lfe(e,n,bve[n])}catch(t){e[n]=bve[n]}}};for(var Pge in Dge)Bge(Uce[Pge]&&Uce[Pge].prototype,Pge);Bge(_ge,"DOMTokenList");var Fge=function(e,t){var n=[][e];return!!n&&Hce((function(){n.call(null,t||function(){throw 1},1)}))},jge=nge.forEach,Ige=Fge("forEach")?[].forEach:function(e){return jge(this,e,arguments.length>1?arguments[1]:void 0)},Mge=function(e){if(e&&e.forEach!==Ige)try{lfe(e,"forEach",Ige)}catch(t){e.forEach=Ige}};for(var Nge in Dge)Dge[Nge]&&Mge(Uce[Nge]&&Uce[Nge].prototype);Mge(_ge);var Lge,Rge,zge,Uge,Hge=Uce.Promise,$ge=Kde("species"),Vge=/(?:ipad|iphone|ipod).*applewebkit/i.test(hde),Wge="process"==rde(Uce.process),Kge=Uce.setImmediate,qge=Uce.clearImmediate,Gge=Uce.process,Xge=Uce.Dispatch,Yge=Uce.Function,Zge=Uce.MessageChannel,Jge=Uce.String,Qge=0,eye={};try{Lge=Uce.location}catch(_y){}var tye=function(e){if(Nde(eye,e)){var t=eye[e];delete eye[e],t()}},nye=function(e){return function(){tye(e)}},rye=function(e){tye(e.data)},oye=function(e){Uce.postMessage(Jge(e),Lge.protocol+"//"+Lge.host)};Kge&&qge||(Kge=function(e){var t=Cpe(arguments,1);return eye[++Qge]=function(){phe(cde(e)?e:Yge(e),void 0,t)},Rge(Qge),Qge},qge=function(e){delete eye[e]},Wge?Rge=function(e){Gge.nextTick(nye(e))}:Xge&&Xge.now?Rge=function(e){Xge.now(nye(e))}:Zge&&!Vge?(Uge=(zge=new Zge).port2,zge.port1.onmessage=rye,Rge=Fve(Uge.postMessage,Uge)):Uce.addEventListener&&cde(Uce.postMessage)&&!Uce.importScripts&&Lge&&"file:"!==Lge.protocol&&!Hce(oye)?(Rge=oye,Uce.addEventListener("message",rye,!1)):Rge="onreadystatechange"in Jde("script")?function(e){Lpe.appendChild(Jde("script")).onreadystatechange=function(){Lpe.removeChild(this),tye(e)}}:function(e){setTimeout(nye(e),0)});var iye,aye,uye,lye,sye,cye,dye,fye,pye={set:Kge},hye=/ipad|iphone|ipod/i.test(hde)&&void 0!==Uce.Pebble,vye=/web0s(?!.*chrome)/i.test(hde),gye=tfe.f,yye=pye.set,mye=Uce.MutationObserver||Uce.WebKitMutationObserver,bye=Uce.document,wye=Uce.process,xye=Uce.Promise,Eye=gye(Uce,"queueMicrotask"),Cye=Eye&&Eye.value;Cye||(iye=function(){var e,t;for(Wge&&(e=wye.domain)&&e.exit();aye;){t=aye.fn,aye=aye.next;try{t()}catch(e){throw aye?lye():uye=void 0,e}}uye=void 0,e&&e.enter()},Vge||Wge||vye||!mye||!bye?!hye&&xye&&xye.resolve?((dye=xye.resolve(void 0)).constructor=xye,fye=Fve(dye.then,dye),lye=function(){fye(iye)}):Wge?lye=function(){wye.nextTick(iye)}:(yye=Fve(yye,Uce),lye=function(){yye(iye)}):(sye=!0,cye=bye.createTextNode(""),new mye(iye).observe(cye,{characterData:!0}),lye=function(){cye.data=sye=!sye}));var Dye,Sye,kye,_ye,Oye=Cye||function(e){var t={fn:e,next:void 0};uye&&(uye.next=t),aye||(aye=t,lye()),uye=t},Aye=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=_de(t),this.reject=_de(n)},Tye={f:function(e){return new Aye(e)}},Bye=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Pye="object"==typeof window,Fye=pye.set,jye=Kde("species"),Iye="Promise",Mye=kfe.getterFor(Iye),Nye=kfe.set,Lye=kfe.getterFor(Iye),Rye=Hge&&Hge.prototype,zye=Hge,Uye=Rye,Hye=Uce.TypeError,$ye=Uce.document,Vye=Uce.process,Wye=Tye.f,Kye=Wye,qye=!!($ye&&$ye.createEvent&&Uce.dispatchEvent),Gye=cde(Uce.PromiseRejectionEvent),Xye=!1,Yye=rpe(Iye,(function(){var e=pfe(zye),t=e!==String(zye);if(!t&&66===bde)return!0;if(bde>=51&&/native code/.test(e))return!1;var n=new zye((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[jye]=r,!(Xye=n.then((function(){}))instanceof r)||!t&&Pye&&!Gye})),Zye=Yye||!Yve((function(e){zye.all(e).catch((function(){}))})),Jye=function(e){var t;return!(!dde(e)||!cde(t=e.then))&&t},Qye=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Oye((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,l,s=n[i++],c=o?s.ok:s.fail,d=s.resolve,f=s.reject,p=s.domain;try{c?(o||(2===e.rejection&&rme(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),l=!0)),a===s.promise?f(Hye("Promise-chain cycle")):(u=Jye(a))?Wce(u,a,d,f):d(a)):f(r)}catch(e){p&&!l&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&tme(e)}))}},eme=function(e,t,n){var r,o;qye?((r=$ye.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Uce.dispatchEvent(r)):r={promise:t,reason:n},!Gye&&(o=Uce["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Uce.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},tme=function(e){Wce(Fye,Uce,(function(){var t,n=e.facade,r=e.value;if(nme(e)&&(t=Bye((function(){Wge?Vye.emit("unhandledRejection",r,n):eme("unhandledrejection",n,r)})),e.rejection=Wge||nme(e)?2:1,t.error))throw t.value}))},nme=function(e){return 1!==e.rejection&&!e.parent},rme=function(e){Wce(Fye,Uce,(function(){var t=e.facade;Wge?Vye.emit("rejectionHandled",t):eme("rejectionhandled",t,e.value)}))},ome=function(e,t,n){return function(r){e(t,r,n)}},ime=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Qye(e,!0))},ame=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Hye("Promise can't be resolved itself");var r=Jye(t);r?Oye((function(){var n={done:!1};try{Wce(r,t,ome(ame,n,e),ome(ime,n,e))}catch(t){ime(n,t,e)}})):(e.value=t,e.state=1,Qye(e,!1))}catch(t){ime({done:!1},t,e)}}};if(Yye&&(Uye=(zye=function(e){Wve(this,Uye),_de(e),Wce(Dye,this);var t=Mye(this);try{e(ome(ame,t),ome(ime,t))}catch(e){ime(t,e)}}).prototype,(Dye=function(e){Nye(this,{type:Iye,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Cve(Uye,{then:function(e,t){var n=Lye(this),r=n.reactions,o=Wye(bhe(this,zye));return o.ok=!cde(e)||e,o.fail=cde(t)&&t,o.domain=Wge?Vye.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Qye(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Sye=function(){var e=new Dye,t=Mye(e);this.promise=e,this.resolve=ome(ame,t),this.reject=ome(ime,t)},Tye.f=Wye=function(e){return e===zye||e===kye?new Sye(e):Kye(e)},cde(Hge)&&Rye!==Object.prototype)){_ye=Rye.then,Xye||(Bfe(Rye,"then",(function(e,t){var n=this;return new zye((function(e,t){Wce(_ye,n,e,t)})).then(e,t)}),{unsafe:!0}),Bfe(Rye,"catch",Uye.catch,{unsafe:!0}));try{delete Rye.constructor}catch(_y){}sve&&sve(Rye,Uye)}ipe({global:!0,wrap:!0,forced:Yye},{Promise:zye}),ove(zye,Iye,!1),function(){var e=fde("Promise"),t=ufe.f;$ce&&e&&!e[$ge]&&t(e,$ge,{configurable:!0,get:function(){return this}})}(),kye=fde(Iye),ipe({target:Iye,stat:!0,forced:Yye},{reject:function(e){var t=Wye(this);return Wce(t.reject,void 0,e),t.promise}}),ipe({target:Iye,stat:!0,forced:Yye},{resolve:function(e){return function(e,t){if(ofe(e),dde(t)&&t.constructor===e)return t;var n=Tye.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),ipe({target:Iye,stat:!0,forced:Zye},{all:function(e){var t=this,n=Wye(t),r=n.resolve,o=n.reject,i=Bye((function(){var n=_de(t.resolve),i=[],a=0,u=1;$ve(e,(function(e){var l=a++,s=!1;u++,Wce(n,t,e).then((function(e){s||(s=!0,i[l]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Wye(t),r=n.reject,o=Bye((function(){var o=_de(t.resolve);$ve(e,(function(e){Wce(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var ume=Tfe.PROPER,lme=RegExp.prototype,sme=lme.toString,cme=ede(Ppe),dme=Hce((function(){return"/a/b"!=sme.call({source:"a",flags:"b"})})),fme=ume&&"toString"!=sme.name;(dme||fme)&&Bfe(RegExp.prototype,"toString",(function(){var e=ofe(this),t=Bpe(e.source),n=e.flags;return"/"+t+"/"+Bpe(void 0===n&&pde(lme,e)&&!("flags"in lme)?cme(e):n)}),{unsafe:!0});var pme=Tfe.EXISTS,hme=ufe.f,vme=Function.prototype,gme=ede(vme.toString),yme=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mme=ede(yme.exec);$ce&&!pme&&hme(vme,"name",{configurable:!0,get:function(){try{return mme(yme,gme(this))[1]}catch(su){return""}}});var bme=new WeakMap;function wme(e){return e.getMenuConfig("uploadImage")}function xme(e,t){return Lhe(this,0,void 0,(function(){return Rhe(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;vG(e,i,t.name,a),n("ok")}}}))]}))}))}function Eme(e,t){return Lhe(this,0,void 0,(function(){var n,r,o,i;return Rhe(this,(function(a){switch(a.label){case 0:return n=function(e){var t=bme.get(e);if(null!=t)return t;var n=wme(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=ZR(Nhe(Nhe({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return vG(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,l=n.data,s=void 0===l?{}:l;if(0===u){if(Array.isArray(s))s.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;vG(e,r,i,void 0===a?"":a)}));else{var c=s.url,d=void 0===c?"":c,f=s.alt,p=void 0===f?"":f,h=s.href;vG(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),bme.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Cme(e,t){var n,r;return Lhe(this,0,void 0,(function(){var o,i,a,u,l,s,c,d,f;return Rhe(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=wme(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),l=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,l.next()];case 3:return(s=p.sent()).done?[3,10]:(c=s.value,d=c.size,u&&d<=u?[4,xme(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return vG(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Eme(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),s&&!s.done&&(r=l.return)?[4,r.call(l)]:[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 Dme=ede([].join),Sme=ade!=Object,kme=Fge("join",",");ipe({target:"Array",proto:!0,forced:Sme||!kme},{join:function(e){return Dme(sde(this),void 0===e?",":e)}}),Nx&&(gx.fn.append=Nx),Dx&&(gx.fn.on=Dx),$x&&(gx.fn.remove=$x),Cx&&(gx.fn.val=Cx),qx&&(gx.fn.click=qx),Ax&&(gx.fn.hide=Ax);var _me=function(){function e(){this.title=zz("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return gG(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return vG(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=gx("body"),l=gx('<input type="file" '+a+" multiple/>");l.hide(),u.append(l),l.click(),l.on("change",(function(){var t=l[0].files;Cme(e,t)}))}},e}(),Ome={menus:[{key:"uploadImage",factory:function(){return new _me},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(gG(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Cme(e,o):t(r)}},n}};Rz("en",{highLightModule:{selectLang:"Language"}}),Rz("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Ame="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Tme(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bme,Pme,Fme=function(e){return e&&e.Math==Math&&e},jme=Fme("object"==typeof globalThis&&globalThis)||Fme("object"==typeof window&&window)||Fme("object"==typeof self&&self)||Fme("object"==typeof Ame&&Ame)||function(){return this}()||Function("return this")(),Ime=Object.defineProperty,Mme=function(e,t){try{Ime(jme,e,{value:t,configurable:!0,writable:!0})}catch(cu){jme[e]=t}return t},Nme=jme["__core-js_shared__"]||Mme("__core-js_shared__",{}),Lme=Tme((function(e){(e.exports=function(e,t){return Nme[e]||(Nme[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Rme=Function.prototype,zme=Rme.bind,Ume=Rme.call,Hme=zme&&zme.bind(Ume),$me=zme?function(e){return e&&Hme(Ume,e)}:function(e){return e&&function(){return Ume.apply(e,arguments)}},Vme=jme.TypeError,Wme=function(e){if(null==e)throw Vme("Can't call method on "+e);return e},Kme=jme.Object,qme=function(e){return Kme(Wme(e))},Gme=$me({}.hasOwnProperty),Xme=Object.hasOwn||function(e,t){return Gme(qme(e),t)},Yme=0,Zme=Math.random(),Jme=$me(1..toString),Qme=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Jme(++Yme+Zme,36)},ebe=function(e){return"function"==typeof e},tbe=function(e,t){return arguments.length<2?function(e){return ebe(e)?e:void 0}(jme[e]):jme[e]&&jme[e][t]},nbe=tbe("navigator","userAgent")||"",rbe=jme.process,obe=jme.Deno,ibe=rbe&&rbe.versions||obe&&obe.version,abe=ibe&&ibe.v8;abe&&(Pme=(Bme=abe.split("."))[0]>0&&Bme[0]<4?1:+(Bme[0]+Bme[1])),!Pme&&nbe&&(!(Bme=nbe.match(/Edge\/(\d+)/))||Bme[1]>=74)&&(Bme=nbe.match(/Chrome\/(\d+)/))&&(Pme=+Bme[1]);var ube=Pme,lbe=function(e){try{return!!e()}catch(e){return!0}},sbe=!!Object.getOwnPropertySymbols&&!lbe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ube&&ube<41})),cbe=sbe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dbe=Lme("wks"),fbe=jme.Symbol,pbe=fbe&&fbe.for,hbe=cbe?fbe:fbe&&fbe.withoutSetter||Qme,vbe=function(e){if(!Xme(dbe,e)||!sbe&&"string"!=typeof dbe[e]){var t="Symbol."+e;sbe&&Xme(fbe,e)?dbe[e]=fbe[e]:dbe[e]=cbe&&pbe?pbe(t):hbe(t)}return dbe[e]},gbe={};gbe[vbe("toStringTag")]="z";var ybe="[object z]"===String(gbe),mbe=!lbe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bbe=function(e){return"object"==typeof e?null!==e:ebe(e)},wbe=jme.document,xbe=bbe(wbe)&&bbe(wbe.createElement),Ebe=function(e){return xbe?wbe.createElement(e):{}},Cbe=!mbe&&!lbe((function(){return 7!=Object.defineProperty(Ebe("div"),"a",{get:function(){return 7}}).a})),Dbe=jme.String,Sbe=jme.TypeError,kbe=function(e){if(bbe(e))return e;throw Sbe(Dbe(e)+" is not an object")},_be=Function.prototype.call,Obe=_be.bind?_be.bind(_be):function(){return _be.apply(_be,arguments)},Abe=$me({}.isPrototypeOf),Tbe=jme.Object,Bbe=cbe?function(e){return"symbol"==typeof e}:function(e){var t=tbe("Symbol");return ebe(t)&&Abe(t.prototype,Tbe(e))},Pbe=jme.String,Fbe=function(e){try{return Pbe(e)}catch(e){return"Object"}},jbe=jme.TypeError,Ibe=function(e){if(ebe(e))return e;throw jbe(Fbe(e)+" is not a function")},Mbe=function(e,t){var n=e[t];return null==n?void 0:Ibe(n)},Nbe=jme.TypeError,Lbe=jme.TypeError,Rbe=vbe("toPrimitive"),zbe=function(e){var t=function(e){if(!bbe(e)||Bbe(e))return e;var t,n=Mbe(e,Rbe);if(n){if(t=Obe(n,e,"string"),!bbe(t)||Bbe(t))return t;throw Lbe("Can't convert object to primitive value")}return function(e){var t,n;if(ebe(t=e.toString)&&!bbe(n=Obe(t,e)))return n;if(ebe(t=e.valueOf)&&!bbe(n=Obe(t,e)))return n;throw Nbe("Can't convert object to primitive value")}(e)}(e);return Bbe(t)?t:t+""},Ube=jme.TypeError,Hbe=Object.defineProperty,$be={f:mbe?Hbe:function(e,t,n){if(kbe(e),t=zbe(t),kbe(n),Cbe)try{return Hbe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ube("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Vbe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Wbe=mbe?function(e,t,n){return $be.f(e,t,Vbe(1,n))}:function(e,t,n){return e[t]=n,e},Kbe=$me(Function.toString);ebe(Nme.inspectSource)||(Nme.inspectSource=function(e){return Kbe(e)});var qbe,Gbe,Xbe,Ybe=Nme.inspectSource,Zbe=jme.WeakMap,Jbe=ebe(Zbe)&&/native code/.test(Ybe(Zbe)),Qbe=Lme("keys"),ewe=function(e){return Qbe[e]||(Qbe[e]=Qme(e))},twe={},nwe=jme.TypeError,rwe=jme.WeakMap;if(Jbe||Nme.state){var owe=Nme.state||(Nme.state=new rwe),iwe=$me(owe.get),awe=$me(owe.has),uwe=$me(owe.set);qbe=function(e,t){if(awe(owe,e))throw new nwe("Object already initialized");return t.facade=e,uwe(owe,e,t),t},Gbe=function(e){return iwe(owe,e)||{}},Xbe=function(e){return awe(owe,e)}}else{var lwe=ewe("state");twe[lwe]=!0,qbe=function(e,t){if(Xme(e,lwe))throw new nwe("Object already initialized");return t.facade=e,Wbe(e,lwe,t),t},Gbe=function(e){return Xme(e,lwe)?e[lwe]:{}},Xbe=function(e){return Xme(e,lwe)}}var swe={get:Gbe,enforce:function(e){return Xbe(e)?Gbe(e):qbe(e,{})}},cwe=Function.prototype,dwe=mbe&&Object.getOwnPropertyDescriptor,fwe=Xme(cwe,"name"),pwe={PROPER:fwe&&"something"===function(){}.name,CONFIGURABLE:fwe&&(!mbe||mbe&&dwe(cwe,"name").configurable)},hwe=Tme((function(e){var t=pwe.CONFIGURABLE,n=swe.get,r=swe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,l=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;ebe(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xme(i,"name")||t&&i.name!==d)&&Wbe(i,"name",d),(u=r(i)).source||(u.source=o.join("string"==typeof d?d:""))),e!==jme?(l?!c&&e[n]&&(s=!0):delete e[n],s?e[n]=i:Wbe(e,n,i)):s?e[n]=i:Mme(n,i)})(Function.prototype,"toString",(function(){return ebe(this)&&n(this).source||Ybe(this)}))})),vwe=$me({}.toString),gwe=$me("".slice),ywe=function(e){return gwe(vwe(e),8,-1)},mwe=vbe("toStringTag"),bwe=jme.Object,wwe="Arguments"==ywe(function(){return arguments}()),xwe=ybe?ywe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=bwe(e),mwe))?n:wwe?ywe(t):"Object"==(r=ywe(t))&&ebe(t.callee)?"Arguments":r},Ewe=ybe?{}.toString:function(){return"[object "+xwe(this)+"]"};ybe||hwe(Object.prototype,"toString",Ewe,{unsafe:!0});var Cwe,Dwe={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},Swe=Ebe("span").classList,kwe=Swe&&Swe.constructor&&Swe.constructor.prototype,_we=kwe===Object.prototype?void 0:kwe,Owe=$me($me.bind),Awe=jme.Object,Twe=$me("".split),Bwe=lbe((function(){return!Awe("z").propertyIsEnumerable(0)}))?function(e){return"String"==ywe(e)?Twe(e,""):Awe(e)}:Awe,Pwe=Math.ceil,Fwe=Math.floor,jwe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Fwe:Pwe)(t)},Iwe=Math.min,Mwe=function(e){return e>0?Iwe(jwe(e),9007199254740991):0},Nwe=function(e){return Mwe(e.length)},Lwe=Array.isArray||function(e){return"Array"==ywe(e)},Rwe=function(){},zwe=[],Uwe=tbe("Reflect","construct"),Hwe=/^\s*(?:class|function)\b/,$we=$me(Hwe.exec),Vwe=!Hwe.exec(Rwe),Wwe=function(e){if(!ebe(e))return!1;try{return Uwe(Rwe,zwe,e),!0}catch(e){return!1}},Kwe=!Uwe||lbe((function(){var e;return Wwe(Wwe.call)||!Wwe(Object)||!Wwe((function(){e=!0}))||e}))?function(e){if(!ebe(e))return!1;switch(xwe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Vwe||!!$we(Hwe,Ybe(e))}:Wwe,qwe=vbe("species"),Gwe=jme.Array,Xwe=function(e,t){return new(function(e){var t;return Lwe(e)&&(t=e.constructor,(Kwe(t)&&(t===Gwe||Lwe(t.prototype))||bbe(t)&&null===(t=t[qwe]))&&(t=void 0)),void 0===t?Gwe:t}(e))(0===t?0:t)},Ywe=$me([].push),Zwe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(l,s,c,d){for(var f,p,h=qme(l),v=Bwe(h),g=function(e,t){return Ibe(e),void 0===t?e:Owe?Owe(e,t):function(){return e.apply(t,arguments)}}(s,c),y=Nwe(v),m=0,b=d||Xwe,w=t?b(l,y):n||a?b(l,0):void 0;y>m;m++)if((u||m in v)&&(p=g(f=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Ywe(w,f)}else switch(e){case 4:return!1;case 7:Ywe(w,f)}return i?-1:r||o?o:w}},Jwe=[Zwe(0),Zwe(1),Zwe(2),Zwe(3),Zwe(4),Zwe(5),Zwe(6),Zwe(7)][0],Qwe=(Cwe=[].forEach)&&lbe((function(){Cwe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Jwe(this,e,arguments.length>1?arguments[1]:void 0)},exe=function(e){if(e&&e.forEach!==Qwe)try{Wbe(e,"forEach",Qwe)}catch(t){e.forEach=Qwe}};for(var txe in Dwe)Dwe[txe]&&exe(jme[txe]&&jme[txe].prototype);exe(_we);var nxe={}.propertyIsEnumerable,rxe=Object.getOwnPropertyDescriptor,oxe={f:rxe&&!nxe.call({1:2},1)?function(e){var t=rxe(this,e);return!!t&&t.enumerable}:nxe},ixe=function(e){return Bwe(Wme(e))},axe=Object.getOwnPropertyDescriptor,uxe={f:mbe?axe:function(e,t){if(e=ixe(e),t=zbe(t),Cbe)try{return axe(e,t)}catch(e){}if(Xme(e,t))return Vbe(!Obe(oxe.f,e,t),e[t])}},lxe=Math.max,sxe=Math.min,cxe=function(e,t){var n=jwe(e);return n<0?lxe(n+t,0):sxe(n,t)},dxe=function(e){return function(t,n,r){var o,i=ixe(t),a=Nwe(i),u=cxe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),fxe=$me([].push),pxe=function(e,t){var n,r=ixe(e),o=0,i=[];for(n in r)!Xme(twe,n)&&Xme(r,n)&&fxe(i,n);for(;t.length>o;)Xme(r,n=t[o++])&&(~dxe(i,n)||fxe(i,n));return i},hxe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vxe=hxe.concat("length","prototype"),gxe={f:Object.getOwnPropertyNames||function(e){return pxe(e,vxe)}},yxe={f:Object.getOwnPropertySymbols},mxe=$me([].concat),bxe=tbe("Reflect","ownKeys")||function(e){var t=gxe.f(kbe(e)),n=yxe.f;return n?mxe(t,n(e)):t},wxe=function(e,t){for(var n=bxe(t),r=$be.f,o=uxe.f,i=0;i<n.length;i++){var a=n[i];Xme(e,a)||r(e,a,o(t,a))}},xxe=/#|\.prototype\./,Exe=function(e,t){var n=Dxe[Cxe(e)];return n==kxe||n!=Sxe&&(ebe(t)?lbe(t):!!t)},Cxe=Exe.normalize=function(e){return String(e).replace(xxe,".").toLowerCase()},Dxe=Exe.data={},Sxe=Exe.NATIVE="N",kxe=Exe.POLYFILL="P",_xe=Exe,Oxe=uxe.f,Axe=function(e,t){var n,r,o,i,a,u=e.target,l=e.global,s=e.stat;if(n=l?jme:s?jme[u]||Mme(u,{}):(jme[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Oxe(n,r))&&a.value:n[r],!_xe(l?r:u+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;wxe(i,o)}(e.sham||o&&o.sham)&&Wbe(i,"sham",!0),hwe(n,r,i,e)}},Txe=Object.keys||function(e){return pxe(e,hxe)},Bxe=Object.assign,Pxe=Object.defineProperty,Fxe=$me([].concat),jxe=!Bxe||lbe((function(){if(mbe&&1!==Bxe({b:1},Bxe(Pxe({},"a",{enumerable:!0,get:function(){Pxe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Bxe({},e)[n]||Txe(Bxe({},t)).join("")!=r}))?function(e,t){for(var n=qme(e),r=arguments.length,o=1,i=yxe.f,a=oxe.f;r>o;)for(var u,l=Bwe(arguments[o++]),s=i?Fxe(Txe(l),i(l)):Txe(l),c=s.length,d=0;c>d;)u=s[d++],mbe&&!Obe(a,l,u)||(n[u]=l[u]);return n}:Bxe;Axe({target:"Object",stat:!0,forced:Object.assign!==jxe},{assign:jxe});var Ixe=Tme((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(u)||(a[u]=i[u])}var s=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===s&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var l=t[u],s=o.util.type(l);"Object"!==s||i[a(l)]?"Array"!==s||i[a(l)]||(i[a(l)]=!0,e(l,n,u,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var l=n.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var s={element:n,language:a,grammar:u,code:n.textContent};function c(e){s.highlightedCode=e,o.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,o.hooks.run("after-highlight",s),o.hooks.run("complete",s),i&&i.call(s.element)}if(o.hooks.run("before-sanity-check",s),(l=s.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!s.code)return o.hooks.run("complete",s),void(i&&i.call(s.element));if(o.hooks.run("before-highlight",s),s.grammar)if(r&&e.Worker){var d=new Worker(o.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(o.highlight(s.code,s.grammar,s.language));else c(o.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,l,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var x=v.pattern||v,E=r.next,C=l;E!==t.tail&&!(d&&C>=d.reach);C+=E.value.length,E=E.next){var D=E.value;if(t.length>e.length)return;if(!(D instanceof i)){var S,k=1;if(m){if(!(S=a(x,C,e,y)))break;var _=S.index,O=S.index+S[0].length,A=C;for(A+=E.value.length;_>=A;)A+=(E=E.next).value.length;if(C=A-=E.value.length,E.value instanceof i)continue;for(var T=E;T!==t.tail&&(A<O||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,D=e.slice(C,A),S.index-=C}else if(!(S=a(x,0,D,y)))continue;_=S.index;var B=S[0],P=D.slice(0,_),F=D.slice(_+B.length),j=C+D.length;d&&j>d.reach&&(d.reach=j);var I=E.prev;if(P&&(I=s(t,I,P),C+=P.length),c(t,I,k),E=s(t,I,new i(f,g?o.tokenize(B,g):B,b,B)),F&&s(t,E,F),k>1){var M={cause:f+","+h,reach:j};u(e,t,n,E.prev,C,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var l in i.attributes)u+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/e.exports&&(e.exports=t),void 0!==Ame&&(Ame.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=i.getAttribute("data-src"),s=o.language;if("none"===s){var c=(/\.(\w+)$/.exec(l)||[,"none"])[1];s=e[c]||c}a(u,s),a(i,s);var d=t.plugins.autoloader;d&&d.loadLanguages(s);var f=new XMLHttpRequest;f.open("GET",l,!0),f.onreadystatechange=function(){4==f.readyState&&(f.status<400&&f.responseText?(i.setAttribute(n,"loaded"),u.textContent=f.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),f.status>=400?u.textContent="✖ Error "+f.status+" while fetching file: "+f.statusText:u.textContent="✖ Error: File does not exist or is empty"))},f.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var s=l(i),c=RegExp(l(o+" "+i+" "+a+" "+u)),d=l(i+" "+a+" "+u),f=l(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,E]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[s,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,f,v]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),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,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:C,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:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,g,v,E,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(E),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=S+"|"+D,O=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),A=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,A]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[A]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,P]),I=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[_]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,P]);function N(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:N(j,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:N(M,I)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],s=/language-(.+)/.exec(i);if(s){n=s[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){return e.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Mxe=["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 Nxe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Nxe(t)}),0)}var Lxe,Rxe=jme.String,zxe=function(e){if("Symbol"===xwe(e))throw TypeError("Cannot convert a Symbol value to a string");return Rxe(e)},Uxe=function(){var e=kbe(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},Hxe=jme.RegExp,$xe=lbe((function(){var e=Hxe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));$xe||lbe((function(){return!Hxe("a","y").sticky}));var Vxe={BROKEN_CARET:$xe||lbe((function(){var e=Hxe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:$xe},Wxe=mbe?Object.defineProperties:function(e,t){kbe(e);for(var n,r=ixe(t),o=Txe(t),i=o.length,a=0;i>a;)$be.f(e,n=o[a++],r[n]);return e},Kxe=tbe("document","documentElement"),qxe=ewe("IE_PROTO"),Gxe=function(){},Xxe=function(e){return"<script>"+e+"<\/script>"},Yxe=function(e){e.write(Xxe("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zxe=function(){try{Lxe=new ActiveXObject("htmlfile")}catch(e){}var e,t;Zxe="undefined"!=typeof document?document.domain&&Lxe?Yxe(Lxe):((t=Ebe("iframe")).style.display="none",Kxe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xxe("document.F=Object")),e.close(),e.F):Yxe(Lxe);for(var n=hxe.length;n--;)delete Zxe.prototype[hxe[n]];return Zxe()};twe[qxe]=!0;var Jxe,Qxe,eEe=Object.create||function(e,t){var n;return null!==e?(Gxe.prototype=kbe(e),n=new Gxe,Gxe.prototype=null,n[qxe]=e):n=Zxe(),void 0===t?n:Wxe(n,t)},tEe=jme.RegExp,nEe=lbe((function(){var e=tEe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),rEe=jme.RegExp,oEe=lbe((function(){var e=rEe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),iEe=swe.get,aEe=Lme("native-string-replace",String.prototype.replace),uEe=RegExp.prototype.exec,lEe=uEe,sEe=$me("".charAt),cEe=$me("".indexOf),dEe=$me("".replace),fEe=$me("".slice),pEe=(Qxe=/b*/g,Obe(uEe,Jxe=/a/,"a"),Obe(uEe,Qxe,"a"),0!==Jxe.lastIndex||0!==Qxe.lastIndex),hEe=Vxe.BROKEN_CARET,vEe=void 0!==/()??/.exec("")[1];(pEe||vEe||hEe||nEe||oEe)&&(lEe=function(e){var t,n,r,o,i,a,u,l=this,s=iEe(l),c=zxe(e),d=s.raw;if(d)return d.lastIndex=l.lastIndex,t=Obe(lEe,d,c),l.lastIndex=d.lastIndex,t;var f=s.groups,p=hEe&&l.sticky,h=Obe(Uxe,l),v=l.source,g=0,y=c;if(p&&(h=dEe(h,"y",""),-1===cEe(h,"g")&&(h+="g"),y=fEe(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==sEe(c,l.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),vEe&&(n=new RegExp("^"+v+"$(?!\\s)",h)),pEe&&(r=l.lastIndex),o=Obe(uEe,p?n:l,y),p?o?(o.input=fEe(o.input,g),o[0]=fEe(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:pEe&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),vEe&&o&&o.length>1&&Obe(aEe,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=eEe(null),i=0;i<f.length;i++)a[(u=f[i])[0]]=o[u[1]];return o});var gEe=lEe;Axe({target:"RegExp",proto:!0,forced:/./.exec!==gEe},{exec:gEe});var yEe=Function.prototype,mEe=yEe.apply,bEe=yEe.bind,wEe=yEe.call,xEe="object"==typeof Reflect&&Reflect.apply||(bEe?wEe.bind(mEe):function(){return wEe.apply(mEe,arguments)}),EEe=vbe("species"),CEe=RegExp.prototype,DEe=vbe("match"),SEe=jme.TypeError,kEe=vbe("species"),_Ee=$me("".charAt),OEe=$me("".charCodeAt),AEe=$me("".slice),TEe=function(e){return function(t,n){var r,o,i=zxe(Wme(t)),a=jwe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=OEe(i,a))<55296||r>56319||a+1===u||(o=OEe(i,a+1))<56320||o>57343?e?_Ee(i,a):r:e?AEe(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),BEe=function(e,t,n){return t+(n?TEe(e,t).length:1)},PEe=jme.Array,FEe=Math.max,jEe=function(e,t,n){for(var r,o,i,a,u=Nwe(e),l=cxe(t,u),s=cxe(void 0===n?u:n,u),c=PEe(FEe(s-l,0)),d=0;l<s;l++,d++)r=c,o=d,i=e[l],(a=zbe(o))in r?$be.f(r,a,Vbe(0,i)):r[a]=i;return c.length=d,c},IEe=jme.TypeError,MEe=function(e,t){var n=e.exec;if(ebe(n)){var r=Obe(n,e,t);return null!==r&&kbe(r),r}if("RegExp"===ywe(e))return Obe(gEe,e,t);throw IEe("RegExp#exec called on incompatible receiver")},NEe=Vxe.UNSUPPORTED_Y,LEe=Math.min,REe=[].push,zEe=$me(/./.exec),UEe=$me(REe),HEe=$me("".slice);!function(e,t,n,r){var o=vbe(e),i=!lbe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!lbe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[EEe]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=$me(/./[o]),l=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=zxe(Wme(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!bbe(r=e)||!(void 0!==(o=r[DEe])?o:"RegExp"==ywe(r)))return Obe(t,i,e,a);for(var u,l,s,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=new RegExp(e.source,d+"g");(u=Obe(gEe,p,i))&&!((l=p.lastIndex)>f&&(UEe(c,HEe(i,f,u.index)),u.length>1&&u.index<i.length&&xEe(REe,c,jEe(u,1)),s=u[0].length,f=l,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return f===i.length?!s&&zEe(p,"")||UEe(c,""):UEe(c,HEe(i,f)),c.length>a?jEe(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Obe(t,this,e,n)}:t,[function(t,n){var o=Wme(this),i=null==t?void 0:Mbe(t,e);return i?Obe(i,t,o,n):Obe(r,zxe(o),t,n)},function(e,o){var i=kbe(this),a=zxe(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var l=function(e,t){var n,r=kbe(e).constructor;return void 0===r||null==(n=kbe(r)[kEe])?t:function(e){if(Kwe(e))return e;throw SEe(Fbe(e)+" is not a constructor")}(n)}(i,RegExp),s=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(NEe?"g":"y"),d=new l(NEe?"^(?:"+i.source+")":i,c),f=void 0===o?4294967295:o>>>0;if(0===f)return[];if(0===a.length)return null===MEe(d,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){d.lastIndex=NEe?0:h;var g,y=MEe(d,NEe?HEe(a,h):a);if(null===y||(g=LEe(Mwe(d.lastIndex+(NEe?h:0)),a.length))===p)h=BEe(a,h,s);else{if(UEe(v,HEe(a,p,h)),v.length===f)return v;for(var m=1;m<=y.length-1;m++)if(UEe(v,y[m]),v.length===f)return v;h=p=g}}return UEe(v,HEe(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=$me(e),l=t.exec;return l===gEe||l===CEe.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hwe(String.prototype,e,l[0]),hwe(CEe,o,l[1])}r&&Wbe(CEe[o],"sham",!0)}("split",0,!!lbe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),NEe),Axe({global:!0},{globalThis:jme}),wx&&(gx.fn.attr=wx);var $Ee=pwe.PROPER,VEe=RegExp.prototype,WEe=VEe.toString,KEe=$me(Uxe),qEe=lbe((function(){return"/a/b"!=WEe.call({source:"a",flags:"b"})})),GEe=$Ee&&"toString"!=WEe.name;(qEe||GEe)&&hwe(RegExp.prototype,"toString",(function(){var e=kbe(this),t=zxe(e.source),n=e.flags;return"/"+t+"/"+zxe(void 0===n&&Abe(VEe,e)&&!("flags"in VEe)?KEe(e):n)}),{unsafe:!0});var XEe=function(){function e(){this.title=zz("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!lb.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};nw.setNodes(e,n,{match:function(e){return lI.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=lI.getSelectedNodeByType(e,"code");if(null==t)return null;var n=lI.getParentNode(e,t);return lb.isElement(n)?"pre"!==n.type?null:t:null},e}(),YEe={renderStyle:function(e,t){var n=e,r=t,o="";return Mxe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=gx(e);if(!lb.isElement(t))return t;if("code"!==lI.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new XEe},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},ZEe=/"/g,JEe=$me("".replace);Axe({target:"String",proto:!0,forced:lbe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=zxe(Wme(this)),r="<a",(r+=' name="'+JEe(zxe(t),ZEe,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var QEe=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],l=function(e){if(!Lb.isText(e))return null;var t=lI.getParentNode(null,e);if(t&&"code"===lI.getNodeType(t)){var n=lI.getParentNode(null,t);if(n&&"pre"===lI.getNodeType(n))return t}return null}(i);if(null==l)return u;var s=l.language,c=void 0===s?"":s;if(!c)return u;var d=function(e,t){if(!t)return[];var n=Ixe.languages[t];return n?Ixe.tokenize(e.text,n):[]}(i,c),f=0;try{for(var p=
/*! *****************************************************************************
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(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),h=p.next();!h.done;h=p.next()){var v=h.value,g=f+Nxe(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:f},r.focus={path:a,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},eCe=function(){return eCe=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},eCe.apply(this,arguments)},tCe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=eCe(eCe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=eCe(eCe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=eCe(eCe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=eCe(eCe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=pF(pF({},o),t||{});if(null!=dI[n])throw new Error("Duplicated key '"+n+"' in menu items");dI[n]=r,function(e,t){null!=t&&(cI[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;VL[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){$L.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;CI[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){EI.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){dN.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;pN[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){fN.push(e)}(e)},e.registerModule=function(e){nCe(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function nCe(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,l=e.parseStyleHtml,s=e.editorPlugin;t&&t.forEach((function(e){return tCe.registerMenu(e)})),n&&n.forEach((function(e){return tCe.registerRenderElem(e)})),r&&tCe.registerRenderStyle(r),o&&o.forEach((function(e){return tCe.registerElemToHtml(e)})),i&&tCe.registerStyleToHtml(i),a&&a.forEach((function(e){return tCe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return tCe.registerParseElemHtml(e)})),l&&tCe.registerParseStyleHtml(l),s&&tCe.registerPlugin(s)}C0.forEach((function(e){return nCe(e)})),nCe(L5),nCe(gne),nCe(Ice),nCe(Ome),nCe(YEe);var rCe='<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>',oCe={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"]}},iCe={hoverbarKeys:eCe(eCe({},oCe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};tCe.setEditorConfig(eCe(eCe({},iCe),{decorate:QEe}));var aCe={hoverbarKeys:oCe};tCe.setSimpleEditorConfig(eCe(eCe({},aCe),{decorate:QEe}));var uCe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:zz("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:zz("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:zz("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:zz("editor.image"),iconSvg:rCe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:zz("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};tCe.setToolbarConfig(uCe);var lCe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:zz("editor.image"),iconSvg:rCe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};tCe.setSimpleToolbarConfig(lCe);var sCe=Object.defineProperty,cCe=Object.defineProperties,dCe=Object.getOwnPropertyDescriptors,fCe=Object.getOwnPropertySymbols,pCe=Object.prototype.hasOwnProperty,hCe=Object.prototype.propertyIsEnumerable,vCe=(e,t,n)=>t in e?sCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gCe=(e,t)=>{for(var n in t||(t={}))pCe.call(t,n)&&vCe(e,n,t[n]);if(fCe)for(var n of fCe(t))hCe.call(t,n)&&vCe(e,n,t[n]);return e},yCe=(e,t)=>cCe(e,dCe(t));function mCe(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var bCe=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const wCe=P({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=B(null),r=ye(null),o=B(""),i=()=>{if(!n.value)return;const i=ie(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,l=e.mode,s="simple"===(void 0===l?"default":l)?tCe.simpleEditorConfig:tCe.editorConfig,c=eCe(eCe({},s.hoverbarKeys||{}),u.hoverbarKeys||{});RR({selector:n,config:eCe(eCe(eCe({},s),u),{hoverbarKeys:c}),content:o,html:i,plugins:tCe.plugins})}({selector:n.value,mode:e.mode,content:i||[],html:e.defaultHtml||e.modelValue||"",config:yCe(gCe({},e.defaultConfig),{onCreated(n){if(r.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=mCe("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(o.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=mCe("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=mCe("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=mCe("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=mCe("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=mCe("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=mCe("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=mCe("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};return Z((()=>{i()})),J((()=>e.modelValue),(e=>{e!==o.value&&function(e){const t=r.value;null!=t&&t.setHtml(e)}(e)})),{box:n}}}),xCe={ref:"box",style:{height:"100%"}};var ECe=bCe(wCe,[["render",function(e,t,n,r,o,i){return j(),I("div",xCe,null,512)}]]);const CCe=P({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=B(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");lI.getToolbar(n)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?tCe.simpleToolbarConfig:tCe.toolbarConfig;!function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return WN(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=pF({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new VR(n,i);gj.set(a,e),yj.set(e,a)}(n,{selector:t,config:eCe(eCe({},u),o)})}({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return ve((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),DCe={ref:"selector"};var SCe=bCe(CCe,[["render",function(e,t,n,r,o,i){return j(),I("div",DCe,null,512)}]]);const kCe={ref:"editorBoxRef",class:"editor-box"},_Ce=P({__name:"Editor",props:te({type:{type:String,default:"button"}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e,{expose:t}){const n=ye(void 0),r=X("toolbarRef"),o=F(e,"value"),i=B({});!function(e){Lz.changeLanguage(e)}("en");const a={toolbarKeys:(()=>{switch(e.type){case"button":return["bold","underline","italic","through"];case"text":return["bold","underline","italic","through","sup","sub","color","bgColor","bulletedList","numberedList","insertLink"];case"header":return["bold","underline","italic","through","color","bgColor","bulletedList","numberedList","insertLink"]}})()},u={autoFocus:!1,placeholder:""},l=B(!1);let s=!1;const c=()=>{if(!n.value)return;if(!r.value)return;const e=n.value.getEditableContainer();if(!e)return;const t=e.getBoundingClientRect();if(!r.value.selector)return;const o=r.value.$el.querySelector(".w-e-toolbar");let a=300;o&&(a=o.getBoundingClientRect().width);const u=t.left+(t.width-a)/2;i.value={top:t.top-56+"px",left:`${u}px`}},d=e=>{n.value=e,ee((()=>{window.addEventListener("resize",c);const t=lI.getToolbar(e);t&&t.$box.find('button[data-menu-key="insertLink"]').on("click",(()=>{s=!0}))}))},f=()=>{l.value=!0,ee((()=>{c()}))},p=()=>{s?s=!1:l.value=!1};return ue((()=>{const e=n.value;null!=e&&(e.destroy(),window.removeEventListener("resize",c))})),t({focus:()=>{l.value=!0,n.value?.focus()},blur:()=>{l.value=!1}}),(e,t)=>(j(),I("div",kCe,[se(N(H(SCe),{ref_key:"toolbarRef",ref:r,class:"toolbar",mode:"default",editor:H(n),style:de(H(i)),defaultConfig:a},null,8,["editor","style"]),[[ce,H(l)]]),N(H(ECe),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"editor",mode:"simple",defaultConfig:u,onOnCreated:d,onOnFocus:f,onOnBlur:p},null,8,["modelValue"])],512))}}),OCe=p(_Ce,[["__scopeId","data-v-ca4c9ef8"]]),ACe=P({__name:"Button",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=X("editorRef"),o=Q({get:()=>t.value[e.data.key].attr,set(n){t.value[e.data.key].attr=n}}),i=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r)}})),a=()=>{r.value?.focus()},u=()=>{r.value?.blur()};return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:L((()=>[R("div",{style:de(H(i))},[N(OCe,{ref_key:"editorRef",ref:r,value:H(o).content,"onUpdate:value":n[0]||(n[0]=e=>H(o).content=e)},null,8,["value"])],4)])),_:1},8,["data","cell-key","block-type","block-index"]))}}),TCe=P({__name:"Link",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=X("editorRef"),o=Q({get:()=>t.value[e.data.key].attr,set(n){t.value[e.data.key].attr=n}}),i=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r)}})),a=()=>{r.value?.focus()},u=()=>{r.value?.blur()};return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:L((()=>[R("div",{style:de(H(i))},[N(OCe,{ref_key:"editorRef",ref:r,value:H(o).content,"onUpdate:value":n[0]||(n[0]=e=>H(o).content=e)},null,8,["value"])],4)])),_:1},8,["data","cell-key","block-type","block-index"]))}}),BCe=P({__name:"Divider",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r)}}));return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex},{default:L((()=>[R("div",{style:de(H(r))},null,4)])),_:1},8,["data","cell-key","block-type","block-index"]))}}),PCe=P({__name:"Header",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=X("editorRef"),o=Q({get:()=>t.value[e.data.key].attr,set(n){t.value[e.data.key].attr=n}}),i=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r),width:"100%"}})),a=()=>{r.value?.focus()},u=()=>{r.value?.blur()};return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:L((()=>[R("div",{style:de(H(i))},[N(OCe,{ref_key:"editorRef",ref:r,value:H(o).content,"onUpdate:value":n[0]||(n[0]=e=>H(o).content=e),type:"header"},null,8,["value"])],4)])),_:1},8,["data","cell-key","block-type","block-index"]))}}),FCe=P({__name:"Text",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=X("editorRef"),o=Q({get:()=>t.value[e.data.key].attr,set(n){t.value[e.data.key].attr=n}}),i=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r),width:"100%"}})),a=()=>{r.value?.focus()},u=()=>{r.value?.blur()};return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex,onSelect:a,onUnSelect:u},{default:L((()=>[R("div",{style:de(H(i))},[N(OCe,{ref_key:"editorRef",ref:r,value:H(o).content,"onUpdate:value":n[0]||(n[0]=e=>H(o).content=e),type:"text"},null,8,["value"])],4)])),_:1},8,["data","cell-key","block-type","block-index"]))}}),jCe={class:"block-none"},ICe=p({},[["render",function(e,t){return j(),I("div",jCe,[re(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-1e66913b"]]),MCe=["src","alt"],NCe=p(P({__name:"Image",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r)}})),o=Q({get:()=>t.value[e.data.key].attr,set(n){t.value[e.data.key].attr=n}});return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex},{default:L((()=>[R("div",{style:de(H(r))},[H(o).src?(j(),I("img",{key:0,src:H(o).src,alt:H(o).alt},null,8,MCe)):(j(),q(ICe,{key:1},{default:L((()=>n[0]||(n[0]=[$("Image")]))),_:1,__:[0]}))],4)])),_:1},8,["data","cell-key","block-type","block-index"]))}}),[["__scopeId","data-v-8d5a55cb"]]),LCe=P({__name:"Menu",props:{data:{type:Object,required:!0},cellKey:{type:String,required:!0},blockIndex:{type:Number,required:!0}},setup(e){const{blockConfigMap:t}=nu(),{configToStyle:n}=no(),r=Q((()=>{const{style:r}=t.value[e.data.key];return{...n(r)}})),o=Q((()=>t.value[e.data.key].attr));return(t,n)=>(j(),q(lu,{data:e.data,"cell-key":e.cellKey,"block-type":e.data.type,"block-index":e.blockIndex},{default:L((()=>[R("div",null,[0===H(o).links?.length?(j(),q(ICe,{key:0},{default:L((()=>n[0]||(n[0]=[$("Menu")]))),_:1,__:[0]})):V("",!0),(j(!0),I(M,null,me(H(o).links,(e=>(j(),I("a",{key:e.id,style:de(H(r))},K(e.label),5)))),128))])])),_:1},8,["data","cell-key","block-type","block-index"]))}}),RCe=["data-cell-key"],zCe={key:0,class:"column-placeholder"},UCe=P({__name:"Cell",props:{data:{type:Object,required:!0},blockKey:{type:String,required:!0}},setup(e){const{cellMap:t,cellConfigMap:n,blockMap:r,insertBlockToCell:o,moveBlockInCell:i,moveBlockBetweenCells:a}=nu(),{configToStyle:u}=no(),l=B(null),s=B(null),c=B([]),d=e=>{e&&(l.value=e,A(e))},f=Q((()=>`${e.data.width}%`)),p=Q((()=>{const{style:t}=n.value[e.blockKey];return{...u(t),width:f.value}})),h=Q((()=>t.value[e.blockKey]?t.value[e.blockKey].children.filter((e=>!!r.value[e])).map((e=>r.value[e])):[])),v=Q((()=>h.value&&h.value.length>0)),g=B(!1),y=B(-1),m=B(-1),b=B(""),w=B(""),x=B({x:0,y:0}),E=Q((()=>g.value&&b.value===e.blockKey&&-1!==m.value)),C=B([]),D=Q((()=>{if(!v.value||!g.value||-1===y.value)return h.value||[];const e=[...h.value||[]];if(E.value){if(m.value===y.value)return e;const t=e.splice(m.value,1)[0];return e.splice(y.value>m.value?y.value-1:y.value,0,t),e}const t={key:"drag-placeholder",type:"placeholder",name:"Placeholder"};return y.value<=e.length?e.splice(y.value,0,t):e.push(t),e})),S=()=>{if(!l.value||!s.value||0===c.value.length)return;const e=[],t=l.value.getBoundingClientRect();c.value.forEach(((n,r)=>{if(!n)return;const o=n.getBoundingClientRect();e.push({index:r,top:o.top-t.top,bottom:o.bottom-t.top,center:o.top+o.height/2-t.top,height:o.height})})),e.sort(((e,t)=>e.top-t.top)),C.value=e},k=()=>{if(!l.value)return void(y.value=0);const e=l.value.getBoundingClientRect(),t=x.value.y-e.top;t<20?y.value=0:t>e.height-20?y.value=h.value.length:C.value.length||(S(),C.value.length)?y.value=((e,t)=>{if(0===t.length)return 0;if(e<t[0].top)return 0;if(e>t[t.length-1].bottom)return t.length;let n=0,r=t.length-1;for(;n<=r;){const o=Math.floor((n+r)/2),i=t[o];if(e>=i.top&&e<=i.bottom)return e<i.top+i.height/2?i.index:i.index+1;e<i.top?r=o-1:n=o+1}return n<t.length?n:t.length})(t,C.value):y.value=0},_=Bt((()=>{k()}),10,{leading:!0,trailing:!0}),O=()=>{g.value=!1,y.value=-1,m.value=-1,b.value="",w.value="",C.value=[]},[,A]=Ba((()=>({accept:["ADD_BASE_BLOCK","SORT_BASE_BLOCK"],hover:Bt(((e,t)=>{if(w.value=e.type,g.value||S(),!t.isOver())return void O();g.value=!0,"SORT_BASE_BLOCK"===e.type&&(m.value=void 0!==e.sourceIndex?e.sourceIndex:-1,b.value=e.sourceCellKey||"");const n=t.getClientOffset();n&&(x.value={x:n.x,y:n.y},_())}),16),drop(t){if("ADD_BASE_BLOCK"===t.type&&(v.value&&-1!==y.value?o(y.value,e.blockKey,t.blockData):o(0,e.blockKey,t.blockData)),"SORT_BASE_BLOCK"===t.type&&-1!==y.value)if(t.sourceCellKey===e.blockKey){const n=t.sourceIndex<y.value?y.value-1:y.value;t.sourceIndex!==n&&i(e.blockKey,t.sourceIndex,y.value)}else t.sourceCellKey&&a(t.sourceCellKey,e.blockKey,t.sourceIndex,y.value,t.blockData.key);O()},collect:e=>(e.isOver()||O(),{})}))),T=Pt((()=>{g.value&&S()}),100,{leading:!0,maxWait:200}),P=Pt((()=>{g.value&&S()}),100,{leading:!0,maxWait:200});return Z((()=>{window.addEventListener("scroll",T,{passive:!0}),window.addEventListener("resize",P,{passive:!0})})),le((()=>{window.removeEventListener("scroll",T),window.removeEventListener("resize",P),_.cancel(),T.cancel(),P.cancel()})),(t,n)=>(j(),I("div",{ref:d,class:ne(["cell-container",{"drop-active":H(g)}]),style:de(H(p)),"data-cell-key":e.blockKey},[R("div",{ref_key:"contentRef",ref:s,class:"cell-content"},[(j(!0),I(M,null,me(H(D),((t,r)=>{return j(),I(M,{key:t.key||`placeholder-${r}`},["placeholder"!==t.type?(j(),I("div",{key:0,class:"block-wrapper",ref_for:!0,ref:e=>((e,t)=>{e&&(c.value.length<=t&&(c.value=c.value.concat(new Array(t-c.value.length+1).fill(null))),c.value[t]=e)})(e,r)},[(j(),q(be((i=t.type,{button:ACe,link:TCe,divider:BCe,header:PCe,text:FCe,image:NCe,menu:LCe}[i]||null)),{data:t,"block-index":(o=r,!g.value||-1===y.value||o<y.value?o:o-1),"cell-key":e.blockKey,class:"block-item"},null,8,["data","block-index","cell-key"]))],512)):(j(),I("div",{key:1,class:ne(["block-placeholder",{active:H(g)}])},n[0]||(n[0]=[R("div",{class:"placeholder-content"},[R("span",null,"Place new content here")],-1)]),2))],64);var o,i})),128))],512),H(v)?V("",!0):(j(),I("div",zCe,n[1]||(n[1]=[R("span",null,"Drag and drop contents to this column",-1)])))],14,RCe))}}),HCe=p(UCe,[["__scopeId","data-v-36bdbe4c"]]),$Ce=["onMousedown"],VCe=p(P({__name:"Columns",props:{index:Number,data:{type:Object,required:!0}},setup(e){const{columnsConfigMap:t,cellMap:n,selectedBlockKey:r,pageConfig:o}=nu(),{configToStyle:i}=no(),a=ye(null),u=B([]),l=B(!1),s=B(-1),c=B(0),d=B([]),f=Q((()=>{const{style:n}=t.value[e.data.key];return{...i(n),width:o.value.style.width}})),p=Q((()=>r.value===e.data.key)),h=B(null);J((()=>e.data.children.length),(()=>v()));const v=()=>{if(!e.data?.children?.length)return;const t=e.data.children.length,r=Math.floor(100/t),o=100-r*t;u.value=e.data.children.map(((e,i)=>{const a=n.value[e];if("number"!=typeof a.width||isNaN(a.width)){const e=i===t-1?r+o:r;return a.width=e,e}return a.width})),g()},g=()=>{if(!u.value||0===u.value.length)return;const t=u.value.reduce(((e,t)=>e+(isNaN(t)?0:t)),0);if(100!==t){const r=100-t,o=u.value.length-1;u.value[o]=Math.max(10,(u.value[o]||0)+r),e.data.children[o]&&(n.value[e.data.children[o]].width=u.value[o])}},y=()=>{document.addEventListener("mousemove",E,{passive:!1,capture:!0}),document.addEventListener("mouseup",D,{passive:!1,capture:!0}),document.addEventListener("touchmove",b,{passive:!1,capture:!0}),document.addEventListener("touchend",D,{passive:!1,capture:!0}),document.addEventListener("touchcancel",D,{passive:!1,capture:!0})},m=()=>{document.removeEventListener("mousemove",E,{capture:!0}),document.removeEventListener("mouseup",D,{capture:!0}),document.removeEventListener("touchmove",b,{capture:!0}),document.removeEventListener("touchend",D,{capture:!0}),document.removeEventListener("touchcancel",D,{capture:!0})},b=e=>{if(!l.value||!e.touches[0])return;e.preventDefault();const t={clientX:e.touches[0].clientX,preventDefault:()=>e.preventDefault()};E(t)};let w=null,x=null;const E=e=>{e.preventDefault(),l.value&&(x=e,null===w&&(w=requestAnimationFrame(C)))},C=()=>{if(w=null,!x||!l.value)return;const t=x,r=s.value;if(r<0||r>=u.value.length-1||d.value.length<2||d.value[0]<=0||d.value[1]<=0)return;const o=d.value[0]+d.value[1],i=t.clientX-c.value,a=Math.max(50,Math.min(o-50,d.value[0]+i)),f=u.value[r]+u.value[r+1],p=f-10;let v=Math.round(a/o*f);v=Math.max(10,Math.min(p,v));let g=f-v;var y,m;u.value[r]=v,u.value[r+1]=g,y=r,m=r+1,h.value&&clearTimeout(h.value),h.value=window.setTimeout((()=>{n.value[e.data.children[y]].width=u.value[y],n.value[e.data.children[m]].width=u.value[m],h.value=null}),16)},D=t=>{if(t.preventDefault(),l.value=!1,null!==w&&(cancelAnimationFrame(w),w=null),h.value){clearTimeout(h.value),h.value=null;const t=s.value;t>=0&&t<u.value.length-1&&(n.value[e.data.children[t]].width=u.value[t],n.value[e.data.children[t+1]].width=u.value[t+1])}m(),document.body.style.userSelect="",document.body.style.cursor="",x=null};return Z((()=>{v()})),le((()=>{null!==w&&cancelAnimationFrame(w),h.value&&clearTimeout(h.value),m()})),(t,r)=>(j(),q(lu,{data:e.data,"block-type":"columns","block-index":e.index},{default:L((()=>[R("div",{ref_key:"columnsLayoutRef",ref:a,class:"columns-layout",style:de(H(f))},[(j(!0),I(M,null,me(e.data.children,((t,r)=>(j(),I(M,{key:t},[N(HCe,{blockKey:t,data:H(n)[t]},null,8,["blockKey","data"]),r<e.data.children.length-1?se((j(),I("div",{key:0,class:ne(["column-divider",{active:H(l)&&H(s)===r}]),onMousedown:t=>((t,n)=>{if(n<0||n>=e.data.children.length-1)return;t.preventDefault(),l.value=!0,s.value=n,c.value=t.clientX,0===u.value.length&&v();const r=a.value?.querySelectorAll(".cell-container");if(!r||r.length<=n+1)return void(l.value=!1);const o=r[n].getBoundingClientRect().width,i=r[n+1].getBoundingClientRect().width;o>0&&i>0?(d.value=[o,i],y(),document.body.style.userSelect="none",document.body.style.cursor="col-resize"):l.value=!1})(t,r)},null,42,$Ce)),[[ce,H(p)]]):V("",!0)],64)))),128))],4)])),_:1},8,["data","block-index"]))}}),[["__scopeId","data-v-50d34a0a"]]),WCe={key:0,class:"empty-container"},KCe=P({__name:"Canvas",setup(e){const{pageConfig:t,columnsMaps:n,selectBlock:r,insertColumnSourceAt:o,moveColumnSource:i}=nu(),a=B(null),u=B(null),l=e=>{e&&(a.value=e,A(e))},s=B(new Map),c=B([]),d=W({needsUpdate:!0,isUpdating:!1,lastUpdateTime:0,lastColumnsLength:0}),f=B({x:0,y:0}),p=W({isDragging:!1,isProcessingDrop:!1,placeholderIndex:-1,highlightIndex:-1,insertPosition:null,currentDragType:null,sortingActive:!1}),h=W({isSorting:!1,sourceIndex:-1,lastAppliedTarget:-1,originalOrder:[],draggedElement:null,dragSourceDisplayIndex:-1}),v=B(0),g=Q((()=>{if(h.isSorting)return n.value;if(!p.isDragging||p.placeholderIndex<0)return n.value;const e=[...n.value],t=Math.min(Math.max(0,p.placeholderIndex),e.length);return e.splice(t,0,{key:"drag-placeholder",type:"placeholder",name:"Placeholder",children:[]}),e})),y=Q((()=>({backgroundColor:t.value.style.backgroundColor}))),m=e=>{const t=g.value[e];if(!t)return e;if(!h.isSorting)return e;const r=n.value.findIndex((e=>e===t));return-1===r?e:r},b={isAllowedDragType:e=>"SORT_COLUMNS_BLOCK"===e||0===n.value.length||"ADD_COLUMNS_BLOCK"===e,findTargetPosition(e){if(0===c.value.length)return null;if(e<c.value[0].top)return{targetIndex:0,targetPosition:"before"};const t=c.value[c.value.length-1];if(e>t.bottom)return{targetIndex:t.index,targetPosition:"after"};for(const n of c.value)if((!h.isSorting||n.index!==h.sourceIndex)&&e>=n.top&&e<=n.bottom)return{targetIndex:n.index,targetPosition:e<n.center?"before":"after"};for(let n=0;n<c.value.length-1;n++){const t=c.value[n],r=c.value[n+1];if((!h.isSorting||t.index!==h.sourceIndex&&r.index!==h.sourceIndex)&&e>t.bottom&&e<r.top)return{targetIndex:t.index,targetPosition:"after"}}return null},getMoveToIndex:e=>e?"before"===e.targetPosition?e.targetIndex:e.targetIndex+1:-1,shouldSkipMove:(e,t,n)=>t===e||t===e+1||t===n,getNewSourceIndex:(e,t)=>t>e?t-1:t},w=(e=!1)=>{if((!d.isUpdating||e)&&(d.needsUpdate||e)){d.isUpdating=!0;try{const e=a.value;if(!e)return;const t=e.getBoundingClientRect(),r=[],o=e.querySelectorAll(".block-columns-wrapper");if(0===o.length)return c.value=[],void(d.needsUpdate=!1);o.forEach(((e,n)=>{const o=e.getBoundingClientRect(),i=e.dataset.index;let a=i?parseInt(i,10):n;r.push({index:a,domIndex:n,top:o.top-t.top,bottom:o.bottom-t.top,height:o.height,center:o.top-t.top+o.height/2,element:e})})),c.value=r.sort(((e,t)=>e.top-t.top)),d.needsUpdate=!1,d.lastUpdateTime=Date.now(),d.lastColumnsLength=n.value.length}finally{d.isUpdating=!1}}};J((()=>n.value.length),((e,t)=>{e!==t&&(d.needsUpdate=!0,ee((()=>{w()})))}));const x=()=>{r("","")},E=Bt((e=>{p.isProcessingDrop||(f.value={x:e.clientX,y:e.clientY},p.isDragging&&(h.isSorting?k(f.value):S(f.value)))}),16),C=()=>{p.isDragging&&!p.isProcessingDrop&&D()},D=()=>{p.highlightIndex=-1,p.insertPosition=null},S=e=>{if(!p.isDragging||p.isProcessingDrop||h.isSorting)return;if(!b.isAllowedDragType(p.currentDragType||""))return void(p.placeholderIndex=-1);const t=a.value;if(!t)return;const n=t.getBoundingClientRect(),r=e.y-n.top;if(0===c.value.length)return void(p.placeholderIndex=0);d.needsUpdate&&w();const o=b.findTargetPosition(r);if(!o)return;const{targetIndex:i,targetPosition:u}=o;p.highlightIndex=i,p.insertPosition=u,p.placeholderIndex="before"===u?i:i+1},k=Bt((e=>{h.isSorting&&!p.isProcessingDrop&&(d.needsUpdate&&w(!0),_(e))}),16,{leading:!0,trailing:!0}),_=e=>{if(!h.isSorting)return;const t=a.value?.getBoundingClientRect();if(!t)return;const n=e.y-t.top,r=b.findTargetPosition(n);if(!r)return;const o=b.getMoveToIndex(r);if(b.shouldSkipMove(h.sourceIndex,o,h.lastAppliedTarget))return;p.highlightIndex=r.targetIndex,p.insertPosition=r.targetPosition,v.value++,i(h.sourceIndex,o);const u=b.getNewSourceIndex(h.sourceIndex,o);h.lastAppliedTarget=o,h.sourceIndex=u,d.needsUpdate=!0,ee((()=>{w(!0)}))},O=()=>{p.isDragging=!1,p.isProcessingDrop=!1,p.currentDragType=null,p.placeholderIndex=-1,p.highlightIndex=-1,p.insertPosition=null,p.sortingActive=!1,h.isSorting=!1,h.sourceIndex=-1,h.originalOrder=[],h.lastAppliedTarget=-1,h.draggedElement=null,h.dragSourceDisplayIndex=-1,d.needsUpdate=!0,ee((()=>w()))},[,A]=Ba((()=>({accept:["ADD_COLUMNS_BLOCK","ADD_BASE_BLOCK","SORT_COLUMNS_BLOCK"],hover:Bt(((e,t)=>{if(p.isProcessingDrop)return;const r=t.isOver({shallow:!0});p.currentDragType=e.type;const o="SORT_COLUMNS_BLOCK"===e.type||b.isAllowedDragType(e.type),i=r&&t.canDrop()&&o;if(!p.isDragging||i||h.isSorting||(p.placeholderIndex=-1),p.isDragging=i,!o&&"SORT_COLUMNS_BLOCK"!==e.type)return;if(!r)return;const u=t.getClientOffset();u&&("SORT_COLUMNS_BLOCK"===e.type&&"sourceIndex"in e?(h.isSorting||(e=>{if(h.isSorting)return;w(!0);let t=null,r=-1;for(const n of c.value)if(n.index===e){r=n.domIndex,t=n.element;break}if(!t){const n=a.value;n&&n.querySelectorAll(".block-columns-wrapper").forEach(((n,o)=>{parseInt(n.dataset.index||"-1",10)===e&&(t=n,r=o)}))}-1===r&&(r=e),h.isSorting=!0,h.sourceIndex=e,h.originalOrder=[...n.value],h.lastAppliedTarget=-1,h.draggedElement=t,h.dragSourceDisplayIndex=r,p.isDragging=!0,p.currentDragType="SORT_COLUMNS_BLOCK",p.sortingActive=!0,v.value=0,d.needsUpdate=!0,w(!0)})(e.sourceIndex),k(u)):"ADD_COLUMNS_BLOCK"!==e.type&&"ADD_BASE_BLOCK"!==e.type||S(u))}),16,{leading:!0,trailing:!0}),drop:(e,t)=>{if(!p.isProcessingDrop){p.isProcessingDrop=!0;try{if(!t.isOver({shallow:!0}))return;"SORT_COLUMNS_BLOCK"===e.type?(h.isSorting=!1,h.sourceIndex=-1,h.originalOrder=[],h.lastAppliedTarget=-1,h.draggedElement=null,h.dragSourceDisplayIndex=-1,p.sortingActive=!1,p.highlightIndex=-1,p.insertPosition=null,v.value=0,d.needsUpdate=!0,ee((()=>w(!0)))):"ADD_COLUMNS_BLOCK"!==e.type&&"ADD_BASE_BLOCK"!==e.type||(e=>{try{const{type:t,blockData:r}=e;if(!r)return;if(!b.isAllowedDragType(t))return;if("ADD_COLUMNS_BLOCK"===t){const e=p.placeholderIndex>=0?p.placeholderIndex:n.value.length;o(e)}else"ADD_BASE_BLOCK"===t&&o(0)}finally{d.needsUpdate=!0,ee((()=>w(!0)))}})(e)}finally{setTimeout((()=>{O()}),50)}}},collect:e=>(p.isDragging&&!e.isOver()&&(h.isSorting||(p.placeholderIndex=-1),p.isDragging=!1),{})})));return(e,t)=>(j(),I("div",{ref:l,class:"canvas-area",onClick:ge(x,["stop"])},[R("div",{ref_key:"canvasRef",ref:u,class:"canvas-container",style:de(H(y)),onMousemove:t[0]||(t[0]=(...e)=>H(E)&&H(E)(...e)),onMouseleave:C},[(j(!0),I(M,null,me(H(g),((e,n)=>(j(),I(M,{key:e.key||`placeholder-${n}`},["columns"===e.type?(j(),I("div",{key:0,ref_for:!0,ref:e=>((e,t)=>{if(!e)return void s.value.delete(t);const n=m(t);e.dataset.index=n.toString(),s.value.set(t,e),d.needsUpdate=!0})(e,n),class:"block-columns-wrapper"},[N(VCe,{data:e,index:m(n)},null,8,["data","index"])],512)):V("",!0),"placeholder"===e.type?(j(),I("div",{key:1,class:ne(["block-placeholder",{active:H(p).isDragging}])},t[1]||(t[1]=[R("div",{class:"placeholder-content"},[R("span",null,"Place the new content here")],-1)]),2)):V("",!0)],64)))),128)),0!==H(n).length||H(p).isDragging?V("",!0):(j(),I("div",WCe,t[2]||(t[2]=[R("div",{class:"empty-message"},"No content here. Drag content from left.",-1)])))],36)]))}}),qCe=p(KCe,[["__scopeId","data-v-0ed9adc7"]]),GCe=["innerHTML"],XCe=P({__name:"index",setup(e){const{html:t,generateHtml:n}=ro();return n(),(e,n)=>(j(),I("div",{innerHTML:H(t)},null,8,GCe))}}),YCe={class:"editor-tools"},ZCe=p(P({__name:"index",setup(e){const t=()=>{m({title:"Preview",width:800,height:600,component:XCe})};return(e,n)=>{const r=O;return j(),I("div",YCe,[R("div",null,[R("span",{class:"cursor-pointer",onClick:t},[N(r,{name:"drag-preview",size:"18"})])]),R("div",null,[V("",!0)])])}}}),[["__scopeId","data-v-428569d7"]]),JCe={class:"editor-container"},QCe={class:"flex-1"},eDe=p(P({__name:"Editor",setup:e=>(e,t)=>(j(),I("div",JCe,[N(ZCe),R("div",QCe,[N(qCe)])]))}),[["__scopeId","data-v-b95fec5b"]]),tDe={class:"text"},nDe=p(P({__name:"block",props:{type:{type:String,required:!0},data:{type:Object,required:!0}},setup(e){const[,t]=Sa((()=>({type:"columns"===e.type?"ADD_COLUMNS_BLOCK":"ADD_BASE_BLOCK",item:{type:"columns"===e.type?"ADD_COLUMNS_BLOCK":"ADD_BASE_BLOCK",blockData:_t(e.data)}})));return(n,r)=>{const o=O;return j(),I("div",{ref:H(t),class:"block-item"},[N(o,{name:`drag-${e.type}`,size:"18"},null,8,["name"]),R("div",tDe,K(e.data.name),1)],512)}}}),[["__scopeId","data-v-ea0cad5e"]]),rDe={class:"block-panel"},oDe={class:"block-list"},iDe=p(P({__name:"index",setup(e){const t=B([{type:"columns",name:"Columns",key:"0"},{type:"button",name:"Button",key:"0"},{type:"link",name:"Link",key:"0"},{type:"divider",name:"Divider",key:"0"},{type:"header",name:"Header",key:"0"},{type:"text",name:"Text",key:"0"},{type:"image",name:"Image",key:"0"},{type:"menu",name:"Menu",key:"0"}]);return(e,n)=>(j(),I("div",rDe,[R("div",oDe,[(j(!0),I(M,null,me(H(t),(e=>(j(),q(nDe,{key:e.type,type:e.type,data:e},null,8,["type","data"])))),128))])]))}}),[["__scopeId","data-v-2cd77b18"]]),aDe={class:"editor-menu"},uDe=p(P({__name:"EditorMenu",setup:e=>(e,t)=>(j(),I("div",aDe,[N(iDe)]))}),[["__scopeId","data-v-7b19c6e6"]]),lDe=p({},[["render",function(e,t){const n=Ft;return j(),q(n,{"arrow-placement":"right","display-directive":"show"},{default:L((()=>[re(e.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-be0a8b1b"]]),sDe={class:"columns-panel"},cDe={class:"layout-grid"},dDe=["onClick"],fDe={class:"layout-preview"},pDe={class:"text"},hDe={key:0,class:"layout-option active mt-16px"},vDe={class:"layout-preview"},gDe={class:"text"},yDe=P({__name:"ColumnsPanel",setup(e){const{columnsMap:t,cellMap:n,selectedBlockKey:r,generateNewCell:o}=nu(),{autoSaveFn:i}=to(),a=Q((()=>t.value[r.value])),u=[{type:"single",columns:[100]},{type:"two-equal",columns:[50,50]},{type:"three-equal",columns:[33,33,33]},{type:"four-equal",columns:[25,25,25,25]},{type:"two-left-small",columns:[33,67]},{type:"two-right-small",columns:[67,33]},{type:"four-left-small",columns:[17,33,17,33]},{type:"four-right-small",columns:[33,17,33,17]}],l=new Map(u.map((e=>[e.type,e.columns]))),s=B(null),c=Q((()=>{const e=a.value?.children;return e?.length?e.map((e=>n.value[e].width||0)):[]})),d=Q((()=>{const e=c.value;if(!e.length)return"";for(let t=0;t<u.length;t++){const n=u[t];if(n.columns.length!==e.length)continue;let r=!0;for(let t=0;t<e.length;t++)if(Math.abs(e[t]-n.columns[t])>3){r=!1;break}if(r)return n.type}return""})),f=Q((()=>c.value.length>0&&u.some((e=>e.columns.length===c.value.length&&e.columns.every(((e,t)=>Math.abs(e-c.value[t])<=1)))))),p=Q((()=>f.value?d.value:"")),h=e=>{if(s.value=e,!a.value)return;const u=(c=e,l.get(c)||[100]);var c;const d=a.value.children||[],f=Math.max(0,u.length-d.length),p=f>0?Array.from({length:f},(()=>o())):[],h=u.map(((e,t)=>{if(t<d.length)return n.value[d[t]].width=e,d[t];const r=p[t-d.length];return r.width=e,r.key}));r.value&&(t.value[r.value].children=h),i()};return(e,t)=>(j(),I("div",sDe,[R("div",cDe,[(j(),I(M,null,me(u,(e=>R("div",{key:e.type,class:ne(["layout-option",{active:H(p)===e.type}]),onClick:t=>h(e.type)},[R("div",fDe,[(j(!0),I(M,null,me(e.columns,((e,t)=>(j(),I("div",{key:t,class:"column",style:de({width:e+"%"})},[R("span",pDe,K(e),1)],4)))),128))])],10,dDe))),64))]),H(f)?V("",!0):(j(),I("div",hDe,[R("div",vDe,[(j(!0),I(M,null,me(H(c),((e,t)=>(j(),I("div",{key:t,class:"column",style:de({width:e+"%"})},[R("span",gDe,K(e),1)],4)))),128))])]))]))}}),mDe=p(yDe,[["__scopeId","data-v-8fe129c8"]]),bDe={class:"style-container"},wDe={class:"style-rows"},xDe={class:"style-label"},EDe={class:"style-value"},CDe=p(P({__name:"BaseContainer",props:{label:{type:String,default:""}},setup:e=>(t,n)=>(j(),I("div",bDe,[R("div",wDe,[R("div",xDe,K(e.label),1),R("div",EDe,[re(t.$slots,"value",{},void 0,!0)])]),re(t.$slots,"options",{},void 0,!0)]))}),[["__scopeId","data-v-351aa9d1"]]),DDe=P({__name:"Head",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>{const r=gt,o=vt;return j(),q(CDe,{label:"Heading Type"},{value:L((()=>[N(o,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},{default:L((()=>[N(r,{value:"22px"},{default:L((()=>n[1]||(n[1]=[$("H1")]))),_:1,__:[1]}),N(r,{value:"20px"},{default:L((()=>n[2]||(n[2]=[$("H2")]))),_:1,__:[2]}),N(r,{value:"18px"},{default:L((()=>n[3]||(n[3]=[$("H3")]))),_:1,__:[3]}),N(r,{value:"16px"},{default:L((()=>n[4]||(n[4]=[$("H4")]))),_:1,__:[4]})])),_:1},8,["value"])])),_:1})}}}),SDe={class:"w-32px"},kDe=P({__name:"Color",props:te({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>{const r=jt;return j(),q(CDe,{label:e.label},{value:L((()=>[R("div",SDe,[N(r,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e),modes:["hex"]},{label:L((()=>n[1]||(n[1]=[R("span",null,null,-1)]))),_:1},8,["value"])])])),_:1},8,["label"])}}}),_De={class:"w-180px"},ODe=P({__name:"Width",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value"),n=B(100);J((()=>t.value),(e=>{n.value=Number.parseFloat(e)}),{immediate:!0});const r=e=>{t.value=`${e}%`};return(e,t)=>{const o=It;return j(),q(CDe,{label:"Width"},{value:L((()=>[R("div",_De,[N(o,{value:n.value,"onUpdate:value":[t[0]||(t[0]=e=>n.value=e),r],step:1},null,8,["value"])])])),_:1})}}}),ADe={class:"flex items-center h-32px"},TDe={key:0,class:"ml-8px whitespace-nowrap"},BDe=P({__name:"WidthAuto",props:{value:{default:""},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value"),n=B(!0),r=B(100);J((()=>t.value),(e=>{"auto"===e?n.value=!0:(n.value=!1,r.value=Number.parseFloat(e)),n.value||(r.value=Number.parseFloat(e))}),{immediate:!0});const o=e=>{r.value=100,t.value=e?"100%":`${r.value}%`},i=e=>{t.value=`${e}%`};return(e,t)=>{const a=wt,u=It;return j(),q(CDe,{label:"Width"},{value:L((()=>[t[2]||(t[2]=R("span",{class:"mr-12px"},"Auto On",-1)),N(a,{value:n.value,"onUpdate:value":[t[0]||(t[0]=e=>n.value=e),o]},null,8,["value"])])),options:L((()=>[R("div",ADe,[N(u,{value:r.value,"onUpdate:value":[t[1]||(t[1]=e=>r.value=e),i],step:1,disabled:n.value},null,8,["value","disabled"]),n.value?V("",!0):(j(),I("span",TDe,K(r.value)+"%",1))])])),_:1})}}}),PDe=P({__name:"BaseNumber",props:te({unit:{type:String,default:"px"},step:{type:Number,default:1}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value"),n=B(0);J((()=>t.value),(e=>{n.value=e?Number.parseFloat(e):0}),{immediate:!0});const r=n=>{t.value=`${n||0}${e.unit}`};return(t,o)=>{const i=Tt,a=Nt,u=Mt;return j(),q(u,{class:"w-130px"},{default:L((()=>[N(i,{value:H(n),"onUpdate:value":[o[0]||(o[0]=e=>U(n)?n.value=e:null),r],min:0,step:e.step,placeholder:""},null,8,["value","step"]),N(a,{class:"w-40px text-center"},{default:L((()=>[$(K(e.unit),1)])),_:1})])),_:1})}}}),FDe=P({__name:"WidthNumber",props:{value:{default:"500px"},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>(j(),q(CDe,{label:"Width"},{value:L((()=>[N(PDe,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},null,8,["value"])])),_:1}))}}),jDe={class:"w-100px"},IDe=P({__name:"FontWeight",props:te({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value"),n=[{label:"Normal",value:"normal"},{label:"Bold",value:"bold"}];return t.value||(t.value=n[0].value),(e,r)=>{const o=Dt;return j(),q(CDe,{label:"Font Weight"},{value:L((()=>[R("div",jDe,[N(o,{value:t.value,"onUpdate:value":r[0]||(r[0]=e=>t.value=e),options:n},null,8,["value"])])])),_:1})}}}),MDe=P({__name:"FontSize",props:{value:{default:"14px"},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>(j(),q(CDe,{label:"Font Size"},{value:L((()=>[N(PDe,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},null,8,["value"])])),_:1}))}}),NDe=P({__name:"LineHeight",props:{value:{default:"120%"},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>(j(),q(CDe,{label:"Line Height"},{value:L((()=>[N(PDe,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e),unit:"%",step:10},null,8,["value"])])),_:1}))}}),LDe=P({__name:"LetterSpacing",props:{value:{default:"0px"},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>(j(),q(CDe,{label:"Letter Spacing"},{value:L((()=>[N(PDe,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},null,8,["value"])])),_:1}))}}),RDe=P({__name:"TextAlign",props:te({label:{default:""}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>{const r=gt,o=vt;return j(),q(CDe,{label:e.label||"Text Align"},{value:L((()=>[N(o,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},{default:L((()=>[N(r,{value:"left"},{default:L((()=>n[1]||(n[1]=[$("Left")]))),_:1,__:[1]}),N(r,{value:"center"},{default:L((()=>n[2]||(n[2]=[$("Center")]))),_:1,__:[2]}),N(r,{value:"right"},{default:L((()=>n[3]||(n[3]=[$("Right")]))),_:1,__:[3]})])),_:1},8,["value"])])),_:1},8,["label"])}}}),zDe={class:"flex flex-col gap-8px"},UDe={class:"w-92px"},HDe={class:"w-32px"},$De=P({__name:"BaseBorder",props:{value:{default:()=>({width:"0",style:"solid",color:""})},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value"),n=[{label:"Solid",value:"solid"},{label:"Dotted",value:"dotted"},{label:"Dashed",value:"dashed"}];return(e,r)=>{const o=Dt,i=jt;return j(),I("div",zDe,[N(PDe,{value:t.value.width,"onUpdate:value":r[0]||(r[0]=e=>t.value.width=e),placeholder:""},null,8,["value"]),R("div",UDe,[N(o,{value:t.value.style,"onUpdate:value":r[1]||(r[1]=e=>t.value.style=e),options:n,placeholder:""},null,8,["value"])]),R("div",HDe,[N(i,{value:t.value.color,"onUpdate:value":r[2]||(r[2]=e=>t.value.color=e),modes:["hex"]},{label:L((()=>r[3]||(r[3]=[R("span",null,null,-1)]))),_:1},8,["value"])])])}}}),VDe=P({__name:"Line",props:{value:{default:()=>({width:"0",style:"solid",color:""})},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>(j(),q(CDe,{label:"Line"},{value:L((()=>[N($De,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},null,8,["value"])])),_:1}))}}),WDe={class:"flex items-center h-32px"},KDe=p({},[["render",function(e,t){return j(),I("div",WDe,[re(e.$slots,"default")])}]]),qDe=P({__name:"MoreOptions",props:{show:{type:Boolean,default:!1},topLabel:{default:"Top"},rightLabel:{default:"Right"},leftLabel:{default:"Left"},bottomLabel:{default:"Bottom"}},setup:e=>(e,t)=>{const n=Et,r=Ct;return e.show?(j(),q(r,{key:1,"x-gap":"8","y-gap":"8",cols:2},{default:L((()=>[N(n,null,{default:L((()=>[N(KDe,null,{default:L((()=>[$(K(e.topLabel),1)])),_:1}),re(e.$slots,"top")])),_:3}),N(n,null,{default:L((()=>[N(KDe,null,{default:L((()=>[$(K(e.rightLabel),1)])),_:1}),re(e.$slots,"right")])),_:3}),N(n,null,{default:L((()=>[N(KDe,null,{default:L((()=>[$(K(e.leftLabel),1)])),_:1}),re(e.$slots,"left")])),_:3}),N(n,null,{default:L((()=>[N(KDe,null,{default:L((()=>[$(K(e.bottomLabel),1)])),_:1}),re(e.$slots,"bottom")])),_:3})])),_:3})):(j(),I(M,{key:0},[N(KDe,null,{default:L((()=>t[0]||(t[0]=[$("All Sides")]))),_:1,__:[0]}),re(e.$slots,"all")],64))}}),GDe=P({__name:"Border",props:te({label:{default:""}},{value:{default:()=>({more:!1,all:{width:"0",style:"solid",color:""},top:{width:"0",style:"solid",color:""},left:{width:"0",style:"solid",color:""},right:{width:"0",style:"solid",color:""},bottom:{width:"0",style:"solid",color:""}})},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value"),n=e=>{e?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return(e,r)=>{const o=wt;return j(),q(CDe,{label:e.label||"Border"},{value:L((()=>[r[6]||(r[6]=R("span",{class:"mr-12px"},"More Options",-1)),N(o,{value:t.value.more,"onUpdate:value":[r[0]||(r[0]=e=>t.value.more=e),n]},null,8,["value"])])),options:L((()=>[N(qDe,{show:t.value.more},{all:L((()=>[N($De,{value:t.value.all,"onUpdate:value":r[1]||(r[1]=e=>t.value.all=e)},null,8,["value"])])),top:L((()=>[N($De,{value:t.value.top,"onUpdate:value":r[2]||(r[2]=e=>t.value.top=e)},null,8,["value"])])),left:L((()=>[N($De,{value:t.value.left,"onUpdate:value":r[3]||(r[3]=e=>t.value.left=e)},null,8,["value"])])),right:L((()=>[N($De,{value:t.value.right,"onUpdate:value":r[4]||(r[4]=e=>t.value.right=e)},null,8,["value"])])),bottom:L((()=>[N($De,{value:t.value.bottom,"onUpdate:value":r[5]||(r[5]=e=>t.value.bottom=e)},null,8,["value"])])),_:1},8,["show"])])),_:1},8,["label"])}}}),XDe=P({__name:"Padding",props:te({label:{default:""}},{value:{default:()=>({more:!1,all:"",top:"",left:"",right:"",bottom:""})},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value"),n=e=>{e?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return(e,r)=>{const o=wt;return j(),q(CDe,{label:e.label||"Padding"},{value:L((()=>[r[6]||(r[6]=R("span",{class:"mr-12px"},"More Options",-1)),N(o,{value:t.value.more,"onUpdate:value":[r[0]||(r[0]=e=>t.value.more=e),n]},null,8,["value"])])),options:L((()=>[N(qDe,{show:t.value.more},{all:L((()=>[N(PDe,{value:t.value.all,"onUpdate:value":r[1]||(r[1]=e=>t.value.all=e)},null,8,["value"])])),top:L((()=>[N(PDe,{value:t.value.top,"onUpdate:value":r[2]||(r[2]=e=>t.value.top=e)},null,8,["value"])])),left:L((()=>[N(PDe,{value:t.value.left,"onUpdate:value":r[3]||(r[3]=e=>t.value.left=e)},null,8,["value"])])),right:L((()=>[N(PDe,{value:t.value.right,"onUpdate:value":r[4]||(r[4]=e=>t.value.right=e)},null,8,["value"])])),bottom:L((()=>[N(PDe,{value:t.value.bottom,"onUpdate:value":r[5]||(r[5]=e=>t.value.bottom=e)},null,8,["value"])])),_:1},8,["show"])])),_:1},8,["label"])}}}),YDe=P({__name:"Rounded",props:{value:{default:()=>({more:!1,all:"",top:"",left:"",right:"",bottom:""})},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value"),n=e=>{e?(t.value.top=t.value.all,t.value.right=t.value.all,t.value.bottom=t.value.all,t.value.left=t.value.all):t.value.all=t.value.top};return(e,r)=>{const o=wt;return j(),q(CDe,{label:"Rounded Border"},{value:L((()=>[r[6]||(r[6]=R("span",{class:"mr-12px"},"More Options",-1)),N(o,{value:t.value.more,"onUpdate:value":[r[0]||(r[0]=e=>t.value.more=e),n]},null,8,["value"])])),options:L((()=>[N(qDe,{show:t.value.more,"top-label":"Top Left","left-label":"Bottom Left","right-label":"Top Right","bottom-label":"Bottom Right"},{all:L((()=>[N(PDe,{value:t.value.all,"onUpdate:value":r[1]||(r[1]=e=>t.value.all=e)},null,8,["value"])])),top:L((()=>[N(PDe,{value:t.value.top,"onUpdate:value":r[2]||(r[2]=e=>t.value.top=e)},null,8,["value"])])),left:L((()=>[N(PDe,{value:t.value.left,"onUpdate:value":r[3]||(r[3]=e=>t.value.left=e)},null,8,["value"])])),right:L((()=>[N(PDe,{value:t.value.right,"onUpdate:value":r[4]||(r[4]=e=>t.value.right=e)},null,8,["value"])])),bottom:L((()=>[N(PDe,{value:t.value.bottom,"onUpdate:value":r[5]||(r[5]=e=>t.value.bottom=e)},null,8,["value"])])),_:1},8,["show"])])),_:1})}}}),ZDe={class:"w-140px"},JDe=P({__name:"Layout",props:te({label:{default:""}},{value:{default:""},valueModifiers:{}}),emits:["update:value"],setup(e){const t=F(e,"value"),n=[{label:"Horizontal",value:"inline-block"},{label:"Vertical",value:"block"}];return t.value||(t.value=n[0].value),(e,r)=>{const o=Dt;return j(),q(CDe,{label:"Layout"},{value:L((()=>[R("div",ZDe,[N(o,{value:t.value,"onUpdate:value":r[0]||(r[0]=e=>t.value=e),options:n},null,8,["value"])])])),_:1})}}});function QDe(e){const t=P({setup:(t,{slots:n})=>()=>N(eSe,{options:e},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!we(e)}(n)?n:{default:()=>[n]})});return[t]}const eSe=P({props:{value:{type:Object,default:()=>({})},options:{type:Array,default:()=>[]}},setup:(e,{slots:t})=>()=>N(M,null,[e.options.map((n=>function(e,t,n){const{key:r,attrKey:o,label:i}=e,a=r||o;switch(o){case"color":case"backgroundColor":return N(kDe,{value:t[a],"onUpdate:value":e=>t[a]=e,label:i},null);case"head":return N(DDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"padding":return N(XDe,{value:t[a],"onUpdate:value":e=>t[a]=e,label:i},null);case"border":return N(GDe,{value:t[a],"onUpdate:value":e=>t[a]=e,label:i},null);case"borderTop":return N(VDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"width":return N(ODe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"widthAuto":return N(BDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"widthNumber":return N(FDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"fontWeight":return N(IDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"fontSize":return N(MDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"lineHeight":return N(NDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"letterSpacing":return N(LDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"textAlign":return N(RDe,{value:t[a],"onUpdate:value":e=>t[a]=e,label:i},null);case"borderRadius":return N(YDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"layout":return N(JDe,{value:t[a],"onUpdate:value":e=>t[a]=e},null);case"custom":return function(e,t){return e.render?N(M,null,[e.render()]):e.key?t[e.key]?.():void 0}(e,n)}}(n,e.value,t)))])}),tSe={class:"mb-8px"},nSe={class:"py-16px"},rSe=P({__name:"ColumnPropertiesPanel",setup(e){const{selectedBlockKey:t,columnsMap:n,cellMap:r,cellConfigMap:o,applyNewWidthColumnsInCell:i,delColumnsInCell:a}=nu(),{autoSaveFn:u}=to(),l=X("tabsRef"),s=Q((()=>n.value[t.value])),c=Q((()=>s.value.children.map((e=>r.value[e])))),d=B(0),f=()=>{const e=[];c.value.forEach((t=>{e.push(t.width)}));const n=Math.floor(100/(e.length+1)),r=e.reduce(((e,t)=>e+t),0),o=(100-(r+n))/r;e.push(n);for(let t=0;t<e.length-1;t++)e[t]=Math.floor(e[t]+e[t]*o);i(t.value,e),d.value=e.length-1,ee((()=>{l.value?.syncBarPosition()}))},p=()=>{if(c.value.length<=1)return;const e=c.value.reduce(((e,t)=>{const n=t.width;return{...e,[t.key]:n}}),{}),n=c.value[d.value];delete e[n.key];let r=Object.values(e);const o=r.reduce(((e,t)=>e+t),0),u=(100-o)/o;r=r.map((e=>Math.floor(e*(1+u))));const s=100-r.reduce(((e,t)=>e+t),0);0!==s&&(r[r.length-1]+=s),a(t.value,n.key),i(t.value,r),d.value>=r.length&&(d.value=r.length-1),ee((()=>{l.value?.syncBarPosition()}))},h=Q((()=>c.value[d.value]?.key||"")),v=Q({get:()=>o.value[h.value].style,set(e){o.value[h.value].style=e,u()}}),[g]=QDe([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"padding",label:"Padding"},{attrKey:"border",label:"Border"}]);return(e,t)=>{const n=mt,r=Rt,o=Lt;return j(),I("div",null,[R("div",tSe,[N(n,{onClick:f},{default:L((()=>t[2]||(t[2]=[$(" Add ")]))),_:1,__:[2]}),N(n,{class:"ml-10px",disabled:H(c).length<=1,onClick:p},{default:L((()=>t[3]||(t[3]=[$("Delete")]))),_:1,__:[3]},8,["disabled"])]),N(o,{ref_key:"tabsRef",ref:l,value:H(d),"onUpdate:value":t[0]||(t[0]=e=>U(d)?d.value=e:null),class:"mb-8px",type:"line"},{default:L((()=>[(j(!0),I(M,null,me(H(c),((e,t)=>(j(),q(r,{key:e.key,name:t,tab:`Column ${t+1}`},null,8,["name","tab"])))),128))])),_:1},8,["value"]),R("div",nSe,[H(h)?(j(),q(H(g),{key:0,value:H(v),"onUpdate:value":t[1]||(t[1]=e=>U(v)?v.value=e:null)},null,8,["value"])):V("",!0)])])}}}),oSe=p(rSe,[["__scopeId","data-v-3229e000"]]),iSe={class:"py-8px"},aSe=P({__name:"RowPropertiesPanel",setup(e){const{selectedBlockKey:t,columnsConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),i=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[a]=QDe([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"custom",render:()=>N(kDe,{label:"Content Background Color",value:i.value.backgroundColor,"onUpdate:value":e=>{i.value.backgroundColor=e}},null)},{attrKey:"padding",label:"Padding"}]);return(e,t)=>(j(),I("div",iSe,[N(H(a),{value:H(o),"onUpdate:value":t[0]||(t[0]=e=>U(o)?o.value=e:null)},null,8,["value"])]))}}),uSe=P({__name:"Columns",setup:e=>(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2","3"]},{default:L((()=>[N(n,{title:"Columns",name:"1"},{default:L((()=>[N(mDe)])),_:1}),N(n,{title:"Column Properties",name:"2"},{default:L((()=>[N(oSe)])),_:1}),N(n,{title:"Row Properties",name:"3"},{default:L((()=>[N(aSe)])),_:1})])),_:1})}}),lSe={class:"mt-12px"},sSe={class:"mt-12px"},cSe=P({__name:"Link",props:{value:{},valueModifiers:{},target:{},targetModifiers:{}},emits:["update:value","update:target"],setup(e){const t=F(e,"value"),n=F(e,"target"),r=B(!1),o=e=>{t.value=e?"__UNSUBSCRIBE_URL__":""};return(e,i)=>{const a=kt,u=wt;return j(),q(CDe,{label:"Link"},{options:L((()=>[R("div",null,[N(a,{value:t.value,"onUpdate:value":i[0]||(i[0]=e=>t.value=e),disabled:H(r)},null,8,["value","disabled"])]),R("div",lSe,[N(u,{value:n.value,"onUpdate:value":i[1]||(i[1]=e=>n.value=e),"checked-value":"_blank","unchecked-value":"_self"},null,8,["value"]),i[3]||(i[3]=R("span",{class:"ml-8px"},"Open link in new tab",-1))]),R("div",sSe,[N(u,{value:H(r),"onUpdate:value":[i[2]||(i[2]=e=>U(r)?r.value=e:null),o]},null,8,["value"]),i[4]||(i[4]=R("span",{class:"ml-8px"},"Unsubscribe",-1))])])),_:1})}}}),dSe={class:"pb-10px"},fSe={class:"py-8px"},pSe={class:"py-8px"},hSe=P({__name:"Button",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].attr,set(e){n.value[t.value].attr=e,r()}}),i=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),a=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[u]=QDe([{attrKey:"custom",render:()=>N(cSe,{value:o.value.href,"onUpdate:value":e=>o.value.href=e,target:o.value.target,"onUpdate:target":e=>o.value.target=e},null)}]),[l]=QDe([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"color",label:"Text Color"},{attrKey:"widthAuto",key:"width",label:"Width"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"},{attrKey:"padding"},{attrKey:"border"},{attrKey:"borderRadius"}]),[s]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2","3"]},{default:L((()=>[N(n,{title:"Action",name:"1"},{default:L((()=>[R("div",dSe,[N(H(u))])])),_:1}),N(n,{title:"Button Options",name:"2"},{default:L((()=>[R("div",fSe,[N(H(l),{value:H(i),"onUpdate:value":t[0]||(t[0]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"3"},{default:L((()=>[R("div",pSe,[N(H(s),{value:H(a),"onUpdate:value":t[1]||(t[1]=e=>U(a)?a.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),vSe={class:"pb-10px"},gSe={class:"py-8px"},ySe={class:"py-8px"},mSe=P({__name:"Link",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].attr,set(e){n.value[t.value].attr=e,r()}}),i=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),a=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[u]=QDe([{attrKey:"custom",render:()=>N(cSe,{value:o.value.href,"onUpdate:value":e=>o.value.href=e,target:o.value.target,"onUpdate:target":e=>o.value.target=e},null)}]),[l]=QDe([{attrKey:"color",label:"Text Color"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"}]),[s]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2","3"]},{default:L((()=>[N(n,{title:"Action",name:"1"},{default:L((()=>[R("div",vSe,[N(H(u))])])),_:1}),N(n,{title:"Link Options",name:"2"},{default:L((()=>[R("div",gSe,[N(H(l),{value:H(i),"onUpdate:value":t[0]||(t[0]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"3"},{default:L((()=>[R("div",ySe,[N(H(s),{value:H(a),"onUpdate:value":t[1]||(t[1]=e=>U(a)?a.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),bSe={class:"py-8px"},wSe={class:"py-8px"},xSe=P({__name:"Divider",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),i=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[a]=QDe([{attrKey:"width"},{attrKey:"borderTop"}]),[u]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2"]},{default:L((()=>[N(n,{title:"Line",name:"1"},{default:L((()=>[R("div",bSe,[N(H(a),{value:H(o),"onUpdate:value":t[0]||(t[0]=e=>U(o)?o.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"2"},{default:L((()=>[R("div",wSe,[N(H(u),{value:H(i),"onUpdate:value":t[1]||(t[1]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),ESe={class:"py-8px"},CSe={class:"py-8px"},DSe=P({__name:"Header",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),i=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[a]=QDe([{attrKey:"head",key:"fontSize"},{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"color",label:"Text Color"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"}]),[u]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2"]},{default:L((()=>[N(n,{title:"Header",name:"1"},{default:L((()=>[R("div",ESe,[N(H(a),{value:H(o),"onUpdate:value":t[0]||(t[0]=e=>U(o)?o.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"2"},{default:L((()=>[R("div",CSe,[N(H(u),{value:H(i),"onUpdate:value":t[1]||(t[1]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),SSe={class:"py-8px"},kSe={class:"py-8px"},_Se=P({__name:"Text",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),i=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[a]=QDe([{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"color",label:"Text Color"},{attrKey:"lineHeight"},{attrKey:"letterSpacing"}]),[u]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2"]},{default:L((()=>[N(n,{title:"Text",name:"1"},{default:L((()=>[R("div",SSe,[N(H(a),{value:H(o),"onUpdate:value":t[0]||(t[0]=e=>U(o)?o.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"2"},{default:L((()=>[R("div",kSe,[N(H(u),{value:H(i),"onUpdate:value":t[1]||(t[1]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),OSe=P({__name:"Image",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>{const r=kt;return j(),q(CDe,{label:"Image URL"},{options:L((()=>[N(r,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},null,8,["value"])])),_:1})}}}),ASe=P({__name:"Title",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const t=F(e,"value");return(e,n)=>{const r=kt;return j(),q(CDe,{label:"Alternate Text"},{options:L((()=>[N(r,{value:t.value,"onUpdate:value":n[0]||(n[0]=e=>t.value=e)},null,8,["value"])])),_:1})}}}),TSe={class:"pb-10px"},BSe={class:"pb-10px"},PSe={class:"py-8px"},FSe=P({__name:"Image",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].attr,set(e){n.value[t.value].attr=e,r()}}),i=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),a=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[u]=QDe([{attrKey:"custom",render:()=>N(OSe,{value:o.value.src,"onUpdate:value":e=>o.value.src=e},null)},{attrKey:"widthAuto",key:"width"},{attrKey:"custom",render:()=>N(ASe,{value:o.value.alt,"onUpdate:value":e=>o.value.alt=e},null)}]),[l]=QDe([{attrKey:"custom",render:()=>N(cSe,{value:o.value.href,"onUpdate:value":e=>o.value.href=e,target:o.value.target,"onUpdate:target":e=>o.value.target=e},null)}]),[s]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2","3"]},{default:L((()=>[N(n,{title:"Image",name:"1"},{default:L((()=>[R("div",TSe,[N(H(u),{value:H(i),"onUpdate:value":t[0]||(t[0]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Action",name:"2"},{default:L((()=>[R("div",BSe,[N(H(l),{value:H(i),"onUpdate:value":t[1]||(t[1]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"3"},{default:L((()=>[R("div",PSe,[N(H(s),{value:H(a),"onUpdate:value":t[2]||(t[2]=e=>U(a)?a.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),jSe={class:"flex-1"},ISe={class:"flex-1"},MSe=P({__name:"Item",props:te({id:{},index:{},moveLink:{type:Function},findLink:{type:Function}},{label:{},labelModifiers:{},href:{},hrefModifiers:{}}),emits:te(["del"],["update:label","update:href"]),setup(e,{emit:t}){const n=e,r=t,o=F(e,"label"),i=F(e,"href"),a=()=>{r("del")},[u,l,s]=Sa({type:"MenuLink",item:()=>({id:n.id,index:n.index}),collect:e=>({isDragging:e.isDragging()}),end:(e,t)=>{const{id:r,index:o}=e;t.didDrop()||n.moveLink(r,o)}}),[,c]=Ba((()=>({accept:"MenuLink",hover({id:e}){if(e!==n.id){const{index:t}=n.findLink(n.id);n.moveLink(e,t)}}}))),d=e=>{e&&s(c(e))},f=Q((()=>u.value.isDragging?0:1));return(e,t)=>{const n=kt,r=O;return j(),I("li",{ref:d,class:"link-items",style:de({opacity:H(f)})},[R("div",jSe,[N(n,{value:o.value,"onUpdate:value":t[0]||(t[0]=e=>o.value=e)},null,8,["value"])]),R("div",ISe,[N(n,{value:i.value,"onUpdate:value":t[1]||(t[1]=e=>i.value=e)},null,8,["value"])]),R("div",{class:"w-auto cursor-pointer",onClick:a},[N(r,{name:"drag-remove",size:"13"})]),R("div",{ref:H(l),class:"w-auto cursor-grab"},[N(r,{name:"drag-sort",size:"16"})],512)],4)}}}),NSe=p(MSe,[["__scopeId","data-v-e4eac8d4"]]),LSe={class:"w-full"},RSe={class:"link-group"},zSe=P({__name:"List",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].attr.links||[],set(e){n.value[t.value].attr.links=e,r()}}),i=()=>{o.value.push({id:gn(6),label:"",href:""})},a=e=>{const t=o.value.filter((t=>`${t.id}`===e))[0];return{link:t,index:o.value.indexOf(t)}},u=(e,t)=>{const{link:n,index:r}=a(e);o.value.splice(r,1),o.value.splice(t,0,n)};return(e,t)=>{const n=mt;return j(),I("div",LSe,[R("ul",RSe,[(j(!0),I(M,null,me(H(o),((e,t)=>(j(),q(NSe,{label:e.label,"onUpdate:label":t=>e.label=t,href:e.href,"onUpdate:href":t=>e.href=t,key:e.id,id:e.id,index:t,"find-link":a,"move-link":u,onDel:e=>(e=>{o.value.splice(e,1)})(t)},null,8,["label","onUpdate:label","href","onUpdate:href","id","index","onDel"])))),128))]),N(n,{block:"",class:"mt-12px",onClick:i},{default:L((()=>t[0]||(t[0]=[$("Add")]))),_:1,__:[0]})])}}}),USe=p(zSe,[["__scopeId","data-v-f35858c9"]]),HSe={class:"py-8px"},$Se={class:"py-8px"},VSe=P({__name:"Menu",setup(e){const{selectedBlockKey:t,blockConfigMap:n}=nu(),{autoSaveFn:r}=to(),o=Q({get:()=>n.value[t.value].style,set(e){n.value[t.value].style=e,r()}}),i=Q({get:()=>n.value[t.value].containerStyle,set(e){n.value[t.value].containerStyle=e,r()}}),[a]=QDe([{attrKey:"fontWeight"},{attrKey:"fontSize"},{attrKey:"letterSpacing"},{attrKey:"color",label:"Text Color"},{attrKey:"layout",key:"display"},{attrKey:"padding"}]),[u]=QDe([{attrKey:"textAlign"},{attrKey:"padding"}]);return(e,t)=>{const n=zt;return j(),q(lDe,{"default-expanded-names":["1","2","3"]},{default:L((()=>[N(n,{title:"Menu Items",name:"1"},{default:L((()=>[N(USe)])),_:1}),N(n,{title:"Style",name:"2"},{default:L((()=>[R("div",HSe,[N(H(a),{value:H(o),"onUpdate:value":t[0]||(t[0]=e=>U(o)?o.value=e:null)},null,8,["value"])])])),_:1}),N(n,{title:"Container",name:"3"},{default:L((()=>[R("div",$Se,[N(H(u),{value:H(i),"onUpdate:value":t[1]||(t[1]=e=>U(i)?i.value=e:null)},null,8,["value"])])])),_:1})])),_:1})}}}),WSe={class:"h-full pb-100px flex items-center justify-center"},KSe=p({},[["render",function(e,t){const n=Ut;return j(),I("div",WSe,[N(n,{size:"large",description:"Please select a component"})])}]]),qSe=P({__name:"Content",setup(e){const{selectedBlockType:t,selectedBlockKey:n}=nu(),r=Q((()=>{switch(t.value){case"columns":return uSe;case"button":return hSe;case"link":return mSe;case"divider":return xSe;case"header":return DSe;case"text":return _Se;case"image":return FSe;case"menu":return VSe;default:return KSe}}));return(e,t)=>(j(),q(be(H(r)),{key:H(n)}))}}),GSe={class:"p-20px"},XSe=P({__name:"Page",setup(e){const{pageConfig:t}=nu(),n=Q({get:()=>t.value.style,set(e){t.value.style=e}}),[r]=QDe([{attrKey:"backgroundColor",label:"Background Color"},{attrKey:"widthNumber",label:"Width",key:"width"}]);return(e,t)=>(j(),I("div",GSe,[N(H(r),{value:H(n),"onUpdate:value":t[0]||(t[0]=e=>U(n)?n.value=e:null)},null,8,["value"])]))}}),YSe=p(P({__name:"ConfigTabs",setup(e){const t=B("config"),n=[{name:"config",label:"Content",component:qSe},{name:"page",label:"Page",component:XSe}];return(e,r)=>{const o=Rt,i=Lt;return j(),q(i,{value:H(t),"onUpdate:value":r[0]||(r[0]=e=>U(t)?t.value=e:null),type:"line"},{default:L((()=>[(j(),I(M,null,me(n,(e=>N(o,{key:e.name,name:e.name,tab:e.label},{default:L((()=>[(j(),q(be(e.component)))])),_:2},1032,["name","tab"]))),64))])),_:1},8,["value"])}}}),[["__scopeId","data-v-83e94fc5"]]),ZSe={class:"editor-sidebar"},JSe=p(P({__name:"EditorSidebar",setup:e=>(e,t)=>(j(),I("div",ZSe,[N(YSe)]))}),[["__scopeId","data-v-584e5790"]]),QSe={class:"email-editor"},eke=p(P({__name:"index",props:{save:{}},setup(e,{expose:t}){const n=e,{setData:r,getData:o,resetData:i,setSaveFn:a}=to(),{html:u,generateHtml:l}=ro();return n.save&&a(n.save),ue((()=>{i()})),t({setEmailData:e=>{r(e)},getEmailData:()=>o(),getEmailHTML:()=>(l(),u.value)}),(e,t)=>(j(),q(tu,null,{default:L((()=>[R("div",QSe,[N(uDe),N(eDe),N(JSe)])])),_:1}))}}),[["__scopeId","data-v-a2ccb84d"]]),tke={class:"mb-20px"},nke={class:"w-320px"},rke={class:"flex items-center"},oke=P({__name:"form",props:te({data:{default:null},refresh:{}},{show:{type:Boolean,default:!1},showModifiers:{}}),emits:["update:show"],setup(e){const t=e,n=ae(t,"data"),r=F(e,"show"),i=X("editorRef"),a=B(1),u=B(""),l=()=>{r.value=!1},s=B(!1),c=async(e=!1)=>{if(n.value)try{e||(s.value=!0),await Te({id:n.value.id,type:a.value,temp_name:u.value,render:i.value?.getEmailData()||"",content:i.value?.getEmailHTML()||""},e)}finally{e||(s.value=!1)}},d=async()=>{await c(!0),l(),t.refresh()};return Z((()=>{(async()=>{if(s.value=!0,n.value)try{u.value=n.value.name;const{message:e}=await Ae({id:n.value.id});o(e)&&i.value?.setEmailData(e.render)}finally{s.value=!1}})()})),(e,t)=>{const n=St,r=kt,o=Ht,a=mt;return j(),I("div",null,[t[5]||(t[5]=R("div",{class:"mb-14px font-bold text-18px text-font2 leading-28px"},"Template Editor",-1)),N(o,null,{default:L((()=>[V("",!0),R("div",tke,[N(eke,{ref_key:"editorRef",ref:i,save:c},null,512)]),N(n,{label:"Template name"},{default:L((()=>[R("div",nke,[N(r,{value:H(u),"onUpdate:value":t[1]||(t[1]=e=>U(u)?u.value=e:null)},null,8,["value"])])])),_:1})])),_:1}),R("div",rke,[N(a,{onClick:l},{default:L((()=>t[4]||(t[4]=[$("Back")]))),_:1,__:[4]}),N(a,{type:"primary",loading:H(s),disabled:H(s),class:"ml-12px",onClick:d},{default:L((()=>[$(K(e.$t("Public.Btn.Confirm")),1)])),_:1},8,["loading","disabled"])])])}}}),ike={class:"p-24px"},ake={class:"w-280px"},uke={class:"ml-24px"},lke=P({__name:"index",props:{refresh:{},showForm:{}},setup(e,{expose:t}){const n=e,r=X("formRef"),a=W({type:1,temp_name:`template_${i(new Date,"yyyyMMddHHmmss")}`,upload_path:"",content:"",render:""}),u={temp_name:{required:!0,trigger:["blur","input"],message:"Template name is required"},upload_path:{validator:()=>!(0===a.type&&!a.upload_path)||new Error("Please upload HTML file")}},l=()=>{const e="/www/server/panel/data/mail/in_bulk/content";vn({path:e,size:5,uploadData:{accept:["html"].map((e=>`.${e}`)).join(","),multiple:!1},onUploadSuccess:t=>{a.upload_path=`${e}/${t[0].name}`}})};return t({onConfirm:async()=>{await(r.value?.validate());const{message:e}=await Ie(0===a.type?{temp_name:a.temp_name,type:a.type,upload_path:a.upload_path}:{temp_name:a.temp_name,type:a.type,content:'<table style="background-color: rgb(255, 255, 255); width: 100%;"><tr><td><div style="padding: 0px; width: 500px; margin: 0px auto;"><table style="width: 100%;"><tr><td style="width: 100%; padding: 0px;"></td></tr></table></div></td></tr><tr><td><div style="padding: 0px; width: 500px; margin: 0px auto;"><table style="width: 100%;"><tr><td style="width: 100%; padding: 0px;"><div style="text-align: center; padding: 10px;"><div style="display: inline-block; width: 100%; height: 1px; line-height: 1px; vertical-align: middle; border-top: 1px solid rgb(187, 187, 187);"></div></div><div style="text-align: center; padding: 10px;"><a href="__UNSUBSCRIBE_URL__" target="_blank" style="display: inline-block; color: rgb(162, 162, 162); font-weight: normal; font-size: 12px; line-height: 120%; letter-spacing: 0px;"><p><u>Unsubscribe</u></p></a></div></td></tr></table></div></td></tr></table>',render:'{"version":"2.0","pageConfig":{"meta":{"version":"2.0","createdAt":"","updatedAt":""},"style":{"backgroundColor":"#ffffff","width":"500px"}},"blockMap":{"9d79c91fd764":{"key":"9d79c91fd764","type":"divider","name":"Divider"},"b37fb9a4cfad":{"key":"b37fb9a4cfad","type":"link","name":"Link"}},"blockConfigMap":{"9d79c91fd764":{"key":"9d79c91fd764","name":"Divider","type":"divider","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:12","updatedAt":"2025-03-25 11:16:12"},"attr":{},"style":{"display":"inline-block","width":"100%","height":"1px","lineHeight":"1px","verticalAlign":"middle","borderTop":{"color":"#bbbbbb","width":"1px","style":"solid"}},"containerStyle":{"textAlign":"center","padding":{"more":false,"all":"10px","top":"0","left":"0","right":"0","bottom":"0"}}},"b37fb9a4cfad":{"key":"b37fb9a4cfad","name":"Link","type":"link","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:18","updatedAt":"2025-03-25 11:16:18"},"attr":{"href":"__UNSUBSCRIBE_URL__","target":"_blank","content":"<p><u>Unsubscribe</u></p>"},"style":{"display":"inline-block","color":"#A2A2A2FF","fontWeight":"normal","fontSize":"12px","lineHeight":"120%","letterSpacing":"0px"},"containerStyle":{"textAlign":"center","padding":{"more":false,"all":"10px","top":"0","left":"0","right":"0","bottom":"0"}}}},"cellMap":{"29b965b1ee6b":{"key":"29b965b1ee6b","width":100,"name":"Cell","type":"cell","children":[]},"91fef345521e":{"key":"91fef345521e","width":100,"name":"Cell","type":"cell","children":["9d79c91fd764","b37fb9a4cfad"]}},"cellConfigMap":{"29b965b1ee6b":{"key":"29b965b1ee6b","name":"Cell","type":"cell","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:05","updatedAt":"2025-03-25 11:16:05"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"},"border":{"more":false,"all":{"color":"","width":"0","style":"solid"},"top":{"color":"","width":"0","style":"solid"},"right":{"color":"","width":"0","style":"solid"},"bottom":{"color":"","width":"0","style":"solid"},"left":{"color":"","width":"0","style":"solid"}}},"containerStyle":{}},"91fef345521e":{"key":"91fef345521e","name":"Cell","type":"cell","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:08","updatedAt":"2025-03-25 11:16:08"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"},"border":{"more":false,"all":{"color":"","width":"0","style":"solid"},"top":{"color":"","width":"0","style":"solid"},"right":{"color":"","width":"0","style":"solid"},"bottom":{"color":"","width":"0","style":"solid"},"left":{"color":"","width":"0","style":"solid"}}},"containerStyle":{}}},"columnsConfigMap":{"75faa7472294":{"key":"75faa7472294","name":"Columns","type":"columns","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:05","updatedAt":"2025-03-25 11:16:05"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"}},"containerStyle":{"backgroundColor":""}},"73fc2135ce3e":{"key":"73fc2135ce3e","name":"Columns","type":"columns","meta":{"version":"2.0","createdAt":"2025-03-25 11:16:08","updatedAt":"2025-03-25 11:16:08"},"attr":{},"style":{"backgroundColor":"","padding":{"more":false,"all":"0","top":"0","left":"0","right":"0","bottom":"0"}},"containerStyle":{"backgroundColor":""}}},"columnsMap":{"75faa7472294":{"key":"75faa7472294","type":"columns","name":"Columns","children":["29b965b1ee6b"]},"73fc2135ce3e":{"key":"73fc2135ce3e","type":"columns","name":"Columns","children":["91fef345521e"]}},"columnsSource":["75faa7472294","73fc2135ce3e"]}'});n.refresh(),1===a.type&&o(e)&&n.showForm(e.data)}}),(e,t)=>{const n=gt,o=vt,i=St,s=kt,c=mt,d=dn;return j(),I("div",ike,[N(d,{ref_key:"formRef",ref:r,model:H(a),rules:u},{default:L((()=>[N(i,{label:"Template mode"},{default:L((()=>[N(o,{value:H(a).type,"onUpdate:value":t[0]||(t[0]=e=>H(a).type=e)},{default:L((()=>[N(n,{value:1},{default:L((()=>t[2]||(t[2]=[$("Drag")]))),_:1,__:[2]}),N(n,{value:0},{default:L((()=>t[3]||(t[3]=[$("Upload HTML")]))),_:1,__:[3]})])),_:1},8,["value"])])),_:1}),N(i,{label:"Template name",path:"temp_name"},{default:L((()=>[R("div",ake,[N(s,{value:H(a).temp_name,"onUpdate:value":t[1]||(t[1]=e=>H(a).temp_name=e)},null,8,["value"])])])),_:1}),se(N(i,{label:"HTML File",path:"upload_path"},{default:L((()=>[N(c,{onClick:l},{default:L((()=>[$(K(e.$t("Public.Btn.Import")),1)])),_:1}),R("div",uke,[R("span",null,K(e.$t("Mail.Mass.index_43")),1),R("span",{class:ne(H(a).upload_path?"text-default":"text-error")},K(H(a).upload_path||e.$t("Mail.Mass.index_44")),3)])])),_:1},512),[[ce,0===H(a).type]])])),_:1},8,["model"])])}}}),ske=P({__name:"preview",props:{row:{}},setup(e){const t=ae(e,"row"),n=B(""),r=B(null);Z((async()=>{await i(),(()=>{if(r.value){const e=r.value.contentDocument||r.value.contentWindow.document;e.open(),e.write(n.value),e.close()}})()}));const i=async()=>{const{message:e}=await Ae({id:t.value.id});o(e)&&(n.value=e.content)};return i(),(e,t)=>(j(),I("iframe",{ref_key:"iframeRef",ref:r,width:"800",height:"600",style:{border:"none"}},null,512))}}),cke={class:"relative"},dke=P({__name:"index",setup(e){const{t:t}=G(),n=W({show:!1,data:{refresh:()=>{C()},showForm:e=>{a.value=e,r.value=!0}}}),r=B(!1),a=B(null),u=async()=>{n.show=!0},l=()=>{vn({path:"/tmp/upload",size:1,confirmText:t("Public.Btn.Import"),uploadData:{accept:["zip"].map((e=>`.${e}`)).join(","),multiple:!1},onUploadSuccess:async e=>{const t=e[0];await ze({path:`/tmp/upload/${t.name}`}),C()}})},{keys:s,table:c,columns:d,setLoading:f}=qt([{type:"selection",width:40},{key:"name",title:"Name"},{key:"type",title:"Mode",render:e=>0===e.type?"Upload HTML":"Drag"},{key:"created",title:"Add Time",render:e=>i(e.created)},sn({width:360,options:e=>[{label:"Create task",onClick:()=>{(e=>{Fo("task"),_n.value=e,ee((()=>{On.value=!0}))})(e.id)}},{label:"Duplicate",onClick:()=>{v(e)}},{label:t("Public.Btn.Export"),onClick:()=>{g(e)}},{label:"Preview",onClick:()=>{y(e)}},{label:t("Public.Btn.Edit"),disabled:0===e.type,onClick:()=>{w(e)}},{label:t("Public.Btn.Del"),onClick:()=>{x(e)}}]})]),p=[{key:"import",label:"Batch Export",onBatch:async e=>{const{message:t}=await Ne({ids:e.map((e=>e.id)).join(",")});o(t)&&b(t.result)}}],v=async e=>{await Me({id:`${e.id}`}),C()},g=async e=>{const{message:t}=await Ne({ids:`${e.id}`});o(t)&&b(t.result)},y=e=>{m({title:`Preview [${e.name}]`,width:800,data:{row:e},component:ske})},w=e=>{a.value=e,r.value=!0},x=e=>{D({title:`Delete Template [${e.name}]`,content:"Are you sure you want to delete this template?",onConfirm:async()=>{await Le({id:e.id}),C()}})},E=W({p:1,size:10}),C=async()=>{try{f(!0);const{message:e}=await Re(ie(E));o(e)&&(c.data=h(e.data)?e.data:[],c.total=e.total)}finally{f(!1)}};return C(),(e,t)=>{const o=mt,i=Kt,f=bn,h=ln,v=Yt,g=_;return j(),I("div",cke,[se(N(v,null,{toolsLeft:L((()=>[N(o,{type:"primary",onClick:u},{default:L((()=>t[6]||(t[6]=[$("Add Template")]))),_:1,__:[6]}),N(o,{onClick:l},{default:L((()=>[$(K(e.$t("Public.Btn.Import")),1)])),_:1})])),table:L((()=>[N(i,{"checked-row-keys":H(s),"onUpdate:checkedRowKeys":t[0]||(t[0]=e=>U(s)?s.value=e:null),loading:H(c).loading,data:H(c).data,columns:H(d)},null,8,["checked-row-keys","loading","data","columns"])])),pageLeft:L((()=>[N(f,{"checked-row-keys":H(s),"onUpdate:checkedRowKeys":t[1]||(t[1]=e=>U(s)?s.value=e:null),data:H(c).data,options:p},null,8,["checked-row-keys","data"])])),pageRight:L((()=>[N(h,{page:H(E).p,"onUpdate:page":t[2]||(t[2]=e=>H(E).p=e),"page-size":H(E).size,"onUpdate:pageSize":t[3]||(t[3]=e=>H(E).size=e),"item-count":H(c).total,onRefresh:C},null,8,["page","page-size","item-count"])])),_:1},512),[[ce,!H(r)]]),N(g,{show:H(n).show,"onUpdate:show":t[4]||(t[4]=e=>H(n).show=e),title:"Add Template",data:H(n).data,width:500,footer:!0,component:lke},null,8,["show","data"]),H(r)?(j(),q(oke,{key:0,show:H(r),"onUpdate:show":t[5]||(t[5]=e=>U(r)?r.value=e:null),data:H(a),refresh:C},null,8,["show","data"])):V("",!0)])}}}),fke=(e={})=>A.post("/plugin?action=a&name=mail_sys&s=get_mail_type_list",e),pke=P({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e,{expose:t}){const n=F(e,"value"),r=B([]),{loading:o,setLoading:i}=Zt(),a=async()=>{try{i(!0);const{message:e}=await fke();h(e)&&(r.value=e.map((e=>({label:e.mail_type,value:e.id}))))}finally{i(!1)}};return a(),t({getType:a}),(e,t)=>{const i=Dt;return j(),q(i,xe(e.$attrs,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),options:H(r),loading:H(o)}),null,16,["value","options","loading"])}}}),hke={class:"px-20px pt-24px pb-8px"},vke={class:"w-300px"},gke={class:"w-300px"},yke=P({__name:"index",props:{row:{},onRefresh:{}},setup(e,{expose:t}){const{t:n}=G(),r=e,{row:o,onRefresh:i}=r;ee((()=>{u.etypes=o.mail_type.map((e=>pn(Object.keys(e)[0])))}));const a=B(null),u=W({etypes:[]}),l={etypes:{trigger:"change",validator:()=>!!u.etypes.length||new Error(n("Mail.Unsubscribe.index_16"))}};return t({onConfirm:async()=>{await(a.value?.validate()),await Ue({etypes:u.etypes.join(","),recipients:o.recipient,active:o.active}),i?.()}}),(e,t)=>{const n=kt,r=St,i=dn;return j(),I("div",hke,[N(i,{ref_key:"formRef",ref:a,model:H(u),rules:l},{default:L((()=>[N(r,{label:e.$t("Config.Alarm.index_43")},{default:L((()=>[R("div",vke,[N(n,{value:H(o).recipient,"onUpdate:value":t[0]||(t[0]=e=>H(o).recipient=e),readonly:!0},null,8,["value"])])])),_:1},8,["label"]),N(r,{label:"Groups",path:"etypes"},{default:L((()=>[R("div",gke,[N(pke,{ref:"typeSelect",value:H(u).etypes,"onUpdate:value":t[1]||(t[1]=e=>H(u).etypes=e),multiple:"",filterable:""},null,8,["value"])])])),_:1})])),_:1},8,["model"])])}}}),mke={class:"p-20px"},bke={class:"w-320px"},wke={class:"flex-1"},xke={class:"flex items-center h-32px mb-8px"},Eke={class:"w-320px"},Cke=P({__name:"index",props:{active:{},group:{},refresh:{}},setup(e,{expose:t}){const{t:n}=G(),r=e,{refresh:o}=r,i=B(null),a=W({etypes:-1!==r.group?[r.group]:[],type:1,file:"",content:""}),u={etypes:{trigger:"change",validator:()=>!!a.etypes.length||new Error(n("Mail.Unsubscribe.index_16"))},data:{validator:()=>1!==a.type||a.content?!(0===a.type&&!a.file)||new Error("Please upload the file"):new Error("Please enter the content")}},l=()=>{b("/www/server/panel/plugin/mail_sys/data/example_recipients.txt")};return t({onConfirm:async()=>{await(i.value?.validate()),1===a.type&&await He({etypes:a.etypes.join(","),recipient_content:a.content}),0===a.type&&await $e({etypes:a.etypes.join(","),file:a.file}),o?.()}}),(e,t)=>{const n=St,r=At,o=vt,s=En,c=dn,d=g,f=hn;return j(),I("div",mke,[N(c,{ref_key:"formRef",ref:i,model:H(a),rules:u},{default:L((()=>[N(n,{label:"Groups",path:"etypes"},{default:L((()=>[R("div",bke,[N(pke,{ref:"typeSelect",value:H(a).etypes,"onUpdate:value":t[0]||(t[0]=e=>H(a).etypes=e),multiple:"",filterable:""},null,8,["value"])])])),_:1}),N(n,{label:"Data",path:"data"},{default:L((()=>[R("div",wke,[R("div",xke,[N(o,{value:H(a).type,"onUpdate:value":t[1]||(t[1]=e=>H(a).type=e)},{default:L((()=>[N(r,{value:1},{default:L((()=>t[4]||(t[4]=[$("Paste data")]))),_:1,__:[4]}),N(r,{value:0},{default:L((()=>t[5]||(t[5]=[$("Upload file")]))),_:1,__:[5]})])),_:1},8,["value"])]),se(R("div",Eke,[N(s,{value:H(a).content,"onUpdate:value":t[2]||(t[2]=e=>H(a).content=e),rows:6,placeholder:"Please paste in the data"},null,8,["value"])],512),[[ce,1===H(a).type]]),se(R("div",null,[N(jr,{value:H(a).file,"onUpdate:value":t[3]||(t[3]=e=>H(a).file=e),path:"/www/server/panel/data/mail/in_bulk/recipient",accept:["txt","json"]},null,8,["value"])],512),[[ce,0===H(a).type]])])])),_:1})])),_:1},8,["model"]),N(f,{class:"mt-8px ml-24px"},{default:L((()=>[R("li",null,[$(K(e.$t("Mail.Mass.index_74"))+" ",1),N(d,{target:"_blank",onClick:l},{default:L((()=>t[6]||(t[6]=[$("Download the template")]))),_:1,__:[6]})])])),_:1})])}}}),Dke=B([]),Ske=async()=>{const{message:e}=await fke();Dke.value=h(e)?e:[]},kke={class:"p-20px"},_ke={class:"flex-1"},Oke={class:"mt-12px"},Ake={class:"px-20px pt-24px pb-8px"},Tke={class:"w-150px"},Bke=P({__name:"set",setup(e){const{t:t}=G(),n=B(""),{table:r,columns:o,setLoading:i}=qt([{key:"mail_type",title:"Group Name"},sn({width:120,options:e=>[{label:t("Public.Btn.Edit"),disabled:0===e.id,onClick:()=>{u(e)}},{label:t("Public.Btn.Delete"),disabled:0===e.id,onClick:()=>{l(e)}}]})]),a=async()=>{const e=n.value.trim();var t;""!==e?(await(t={mail_type:e},A.post("/plugin?action=a&name=mail_sys&s=add_mail_type",t,{requestOptions:{loading:T.global.t("Mail.Api.index_22"),successMessage:!0}})),s(),n.value=""):C.error("Please enter group name")},u=e=>{c.title="Edit Group",f.id=e.id,f.mail_type=e.mail_type,c.show=!0},l=e=>{D({title:`Delete Group [${e.mail_type}]`,content:"Are you sure you want to delete this group?",onConfirm:async()=>{var t;await(t={ids:`${e.id}`},A.post("/plugin?action=a&name=mail_sys&s=del_mail_type_list",t,{requestOptions:{loading:T.global.t("Mail.Api.index_37"),successMessage:!0}})),s()}})},s=async()=>{try{i(!0),await Ske(),r.data=Dke.value}finally{i(!1)}},c=k(),d=B(null),f=W({id:-1,mail_type:""}),p={mail_type:{required:!0,message:"Please enter group name",trigger:["blur","change"]}},h=async()=>{var e;await(d.value?.validate()),await(e=ie(f),A.post("/plugin?action=a&name=mail_sys&s=edit_mail_type",e,{requestOptions:{loading:T.global.t("Mail.Api.index_42"),successMessage:!0}})),await s()};return s(),(e,t)=>{const i=kt,u=mt,l=$t,s=Kt,v=St,g=dn,y=_;return j(),I("div",kke,[N(l,null,{default:L((()=>[R("div",_ke,[N(i,{value:H(n),"onUpdate:value":t[0]||(t[0]=e=>U(n)?n.value=e:null),placeholder:"Please enter group name"},null,8,["value"])]),R("div",null,[N(u,{type:"primary",onClick:a},{default:L((()=>[$(K(e.$t("Public.Btn.Add")),1)])),_:1})])])),_:1}),R("div",Oke,[N(s,{"max-height":300,loading:H(r).loading,data:H(r).data,columns:H(o)},null,8,["loading","data","columns"])]),N(y,{show:H(c).show,"onUpdate:show":t[2]||(t[2]=e=>H(c).show=e),title:H(c).title,width:350,footer:!0,onConfirm:h},{default:L((()=>[R("div",Ake,[N(g,{ref_key:"formRef",ref:d,model:H(f),rules:p},{default:L((()=>[N(v,{label:"Group Name",path:"mail_type"},{default:L((()=>[R("div",Tke,[N(i,{value:H(f).mail_type,"onUpdate:value":t[1]||(t[1]=e=>H(f).mail_type=e),placeholder:""},null,8,["value"])])])),_:1})])),_:1},8,["model"])])])),_:1},8,["show","title"])])}}}),Pke={class:"w-200px"},Fke=P({__name:"index",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(e){const{t:t}=G(),n=F(e,"value"),r=Q((()=>{const e=Dke.value.map((e=>({label:e.mail_type,value:e.id})));return e.unshift({label:t("Public.All"),value:-1}),e})),o=({option:e})=>`Group: ${e.label}`,i=()=>{m({title:"Group Management",width:360,component:Bke})},{loading:a,setLoading:u}=Zt();return(async()=>{try{u(!0),await Ske()}finally{u(!1)}})(),le((()=>{Dke.value=[]})),(e,t)=>{const u=mt,l=Dt;return j(),I("div",Pke,[N(l,{value:n.value,"onUpdate:value":t[0]||(t[0]=e=>n.value=e),loading:H(a),options:H(r),renderTag:o},{action:L((()=>[N(u,{block:"",onClick:i},{default:L((()=>t[1]||(t[1]=[$("Group Management")]))),_:1,__:[1]})])),_:1},8,["value","loading","options"])])}}}),jke={class:"px-20px pt-24px pb-8px"},Ike={class:"w-240px"},Mke=P({__name:"batch",props:{rows:{}},emits:["refresh"],setup(e,{expose:t,emit:n}){const r=e,o=n,{t:i}=G(),{rows:a}=r,u=X("formRef"),l=W({type:null}),s={type:{trigger:"change",validator:()=>null!==l.type||new Error(i("Mail.Unsubscribe.index_16"))}},c=Q((()=>Dke.value.map((e=>({label:e.mail_type,value:e.id}))))),{loading:d,setLoading:f}=Zt();return(async()=>{try{f(!0),await Ske()}finally{f(!1)}})(),t({onConfirm:async()=>{await(u.value?.validate()),await Ve({etypes:`${l.type||0}`,recipients:a.map((e=>e.recipient)).join(","),active:a[0].active}),o("refresh")}}),(e,t)=>{const n=Dt,r=St,o=dn;return j(),I("div",jke,[N(o,{ref_key:"formRef",ref:u,model:H(l),rules:s},{default:L((()=>[N(r,{label:"Groups",path:"type"},{default:L((()=>[R("div",Ike,[N(n,{value:H(l).type,"onUpdate:value":t[0]||(t[0]=e=>H(l).type=e),loading:H(d),options:H(c),multiple:"",filterable:""},null,8,["value","loading","options"])])])),_:1})])),_:1},8,["model"])])}}}),Nke={class:"text-center fw-bold text-18px color-font2"},Lke={class:"w-96% h-200px mx-auto"},Rke=P({__name:"index",props:{active:{default:0}},setup(e){const t=ae(e,"active"),n=v("--chart-tooltip-bg-color"),r=v("--color-border"),o=(e=[])=>[{data:e}],i=(e=[])=>[{name:"Count",type:"line",data:e,itemStyle:{color:"#20a53a"},smooth:!0,showSymbol:!1,sampling:"average",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(32, 164, 58, 0.4)"},{offset:.7,color:"rgba(32, 164, 58, 0)"}]}}}],a=Y({tooltip:{trigger:"axis",order:"seriesDesc",backgroundColor:n.value,borderColor:"transparent",textStyle:{color:"#c7c7c7"},axisPointer:{type:"shadow"}},grid:{top:"16%",left:"2%",right:"2%",bottom:"4%",containLabel:!0},xAxis:o(),yAxis:{type:"value",splitLine:{lineStyle:{color:r.value}}},series:i()}),{loading:u,setLoading:l}=Zt(),s=async()=>{try{l(!0);const{message:e}=await We({active:t.value});if(h(e)){const t=e.map((e=>e.month)),n=e.map((e=>e.count));a.xAxis=o(t),a.series=i(n)}}finally{l(!1)}};return s(),J((()=>t.value),(()=>{s()})),(e,n)=>{const r=xt;return j(),q(r,{class:"mb-16px",show:H(u)},{default:L((()=>[R("div",Nke,K(H(t)?e.$t("Mail.Mass.index_71"):e.$t("Mail.Mass.index_72"))+" "+K(e.$t("Mail.Mass.index_73")),1),R("div",Lke,[N(Xt,{height:200,option:H(a)},null,8,["option"])])])),_:1},8,["show"])}}}),zke=P({__name:"index",setup(e,{expose:t}){const{t:n}=G(),r=W({p:1,size:10,active:1,keyword:""}),a=()=>{m({title:n("Mail.Mass.index_75"),width:540,minHeight:170,footer:!0,data:{active:r.active,group:An.value,refresh:()=>{h()}},component:Cke})},u=e=>{r.active=e,r.p=1,h()},l=()=>{r.p=1,h()},{keys:s,table:c,columns:d,setLoading:f}=qt([{type:"selection",width:40},{key:"recipient",title:n("Mail.Unsubscribe.index_1"),ellipsis:{tooltip:!0}},{key:"mail_type",title:"Group Name",render:e=>e.mail_type.map((e=>Object.values(e)[0])).join(", ")},{key:"created",title:n("Mail.Unsubscribe.index_19"),width:"12%",minWidth:140,render:e=>i(e.created)},sn({width:250,options:e=>[{label:n("Mail.Mass.index_76"),onClick:async()=>{m({title:n("Mail.Mass.index_76"),width:500,footer:!0,data:{row:e,onRefresh:()=>{h()}},component:yke})}},{label:e.active?n("Mail.Mass.index_72"):n("Mail.Mass.index_71"),show:!1,onClick:async()=>{D({title:`${e.active?n("Mail.Mass.index_72"):n("Mail.Mass.index_71")} [${e.recipient}]`,content:n("Mail.Mass.index_77",[e.active?n("Mail.Mass.index_72"):n("Mail.Mass.index_71")]),onConfirm:async()=>{await Ke({recipient:e.recipient,active:0===e.active?1:0}),h()}})}},{label:n("Public.Btn.Del"),onClick:async()=>{D({title:`${n("Public.Btn.Del")} [${e.recipient}]`,content:n("Mail.Mass.index_78",[e.active?n("Mail.Mass.index_71"):n("Mail.Mass.index_72")]),onConfirm:async()=>{await qe({mails:`${e.recipient}`,active:e.active}),h()}})}}]})]),p=[{key:"del",label:n("Public.Batch.Del"),onBatch:e=>{D({title:n("Public.Batch.Del"),content:n("Site.Batch.index_11"),onConfirm:async()=>{await qe({mails:e.map((e=>e.recipient)).join("\n"),active:r.active}),h()}})}},{key:"category",label:"Batch set group",onBatch:e=>{m({title:"Batch set group",width:440,footer:!0,data:{rows:e,onRefresh:()=>{h()}},component:Mke})}}],h=async()=>{try{f(!0);const{message:e}=await Ge({...-1===An.value?{}:{etype:An.value},search:r.keyword,p:r.p,size:r.size,active:r.active});o(e)&&(c.data=e.data,c.total=e.total)}finally{s.value=[],f(!1)}};return Z((()=>{h()})),le((()=>{An.value=-1})),t({init:h}),(e,t)=>{const n=mt,o=gt,i=vt,f=xn,v=Kt,g=bn,y=ln,m=Yt,b=Vt;return j(),q(b,null,{default:L((()=>[N(Rke,{active:H(r).active},null,8,["active"]),N(m,null,{toolsLeft:L((()=>[N(n,{type:"primary",onClick:a},{default:L((()=>[$(K(e.$t("Public.Btn.Import")),1)])),_:1})])),toolsRight:L((()=>[N(i,{value:H(r).active,"onUpdate:value":t[0]||(t[0]=e=>H(r).active=e),onUpdateValue:u},{default:L((()=>[N(o,{label:e.$t("Mail.Mass.index_71"),value:1},null,8,["label"]),N(o,{label:e.$t("Mail.Mass.index_72"),value:0},null,8,["label"])])),_:1},8,["value"]),N(Fke,{value:H(An),"onUpdate:value":[t[1]||(t[1]=e=>U(An)?An.value=e:null),h]},null,8,["value"]),N(f,{value:H(r).keyword,"onUpdate:value":t[2]||(t[2]=e=>H(r).keyword=e),width:240,placeholder:e.$t("Mail.Unsubscribe.index_5"),onSearch:l},null,8,["value","placeholder"])])),table:L((()=>[N(v,{"checked-row-keys":H(s),"onUpdate:checkedRowKeys":t[3]||(t[3]=e=>U(s)?s.value=e:null),"row-key":"id",loading:H(c).loading,data:H(c).data,columns:H(d)},null,8,["checked-row-keys","loading","data","columns"])])),pageLeft:L((()=>[N(g,{"checked-row-keys":H(s),"onUpdate:checkedRowKeys":t[4]||(t[4]=e=>U(s)?s.value=e:null),"row-key":"id",data:H(c).data,options:p},null,8,["checked-row-keys","data"])])),pageRight:L((()=>[N(y,{page:H(r).p,"onUpdate:page":t[5]||(t[5]=e=>H(r).p=e),"page-size":H(r).size,"onUpdate:pageSize":t[6]||(t[6]=e=>H(r).size=e),"item-count":H(c).total,"store-key":"mail-unsubscribe",onRefresh:h},null,8,["page","page-size","item-count"])])),_:1})])),_:1})}}}),Uke={class:"p-20px"},Hke={class:"mt-12px"},$ke={class:"mt-12px"},Vke={class:"w-300px"},Wke={class:"w-300px"},Kke={class:"ml-32px"},qke=P({__name:"AddGroup",props:{refresh:{}},setup(e,{expose:t}){const n=e,r=X("formRef"),o=W({type:1,input_name:"",select_name:null,file_path:""}),i={name:{trigger:["blur","input","change"],validator:()=>1!==o.type||o.input_name?!(0===o.type&&!o.select_name)||new Error("Please select the group name"):new Error("Please enter the group name")},file_path:{message:"Please upload file",trigger:["change"],validator:()=>!(0===o.type&&!o.file_path)||new Error("Please upload file")}},a=B([]),u=()=>{const e="/www/server/panel/data/mail/in_bulk/recipient";vn({path:e,size:5,uploadData:{accept:["txt"].map((e=>`.${e}`)).join(","),multiple:!1},onUploadSuccess:t=>{o.file_path=`${e}/${t[0].name}`}})};return(async()=>{const{message:e}=await Xe();h(e)&&(a.value=e.map((e=>({label:e.mail_type,value:e.mail_type}))))})(),t({onConfirm:async()=>{await(r.value?.validate()),await Ye({is_new:o.type,group_name:0===o.type?o.select_name||"":o.input_name,file_path:o.file_path}),n.refresh()}}),(e,t)=>{const n=At,l=vt,s=St,c=kt,d=Dt,f=mt,p=dn,h=hn;return j(),I("div",Uke,[N(p,{ref_key:"formRef",ref:r,model:H(o),rules:i},{default:L((()=>[N(s,{label:" "},{default:L((()=>[N(l,{value:H(o).type,"onUpdate:value":t[0]||(t[0]=e=>H(o).type=e)},{default:L((()=>[R("div",null,[N(n,{value:1},{default:L((()=>t[3]||(t[3]=[$("Create a new group and import")]))),_:1,__:[3]})]),R("div",Hke,[N(n,{value:0},{default:L((()=>t[4]||(t[4]=[$("Import into existing group")]))),_:1,__:[4]})]),R("div",$ke,[N(n,{value:2},{default:L((()=>t[5]||(t[5]=[$("Only create a new group")]))),_:1,__:[5]})])])),_:1},8,["value"])])),_:1}),N(s,{label:"Group name",path:"name"},{default:L((()=>[se(R("div",Vke,[N(c,{value:H(o).input_name,"onUpdate:value":t[1]||(t[1]=e=>H(o).input_name=e)},null,8,["value"])],512),[[ce,1===H(o).type||2===H(o).type]]),se(R("div",Wke,[N(d,{value:H(o).select_name,"onUpdate:value":t[2]||(t[2]=e=>H(o).select_name=e),options:H(a)},null,8,["value","options"])],512),[[ce,0===H(o).type]])])),_:1}),2!==H(o).type?(j(),q(s,{key:0,label:"File",path:"file_path"},{default:L((()=>[N(f,{onClick:u},{default:L((()=>[$(K(e.$t("Public.Btn.Import")),1)])),_:1}),R("div",Kke,[R("span",null,K(e.$t("Mail.Mass.index_43")),1),R("span",{class:ne(H(o).file_path?"text-default":"text-error")},K(H(o).file_path||e.$t("Mail.Mass.index_44")),3)])])),_:1})):V("",!0)])),_:1},8,["model"]),N(h,{class:"ml-20px mt-8px"},{default:L((()=>t[6]||(t[6]=[R("li",null,"Currently, Only group files exported from YakPanel are supported for import.",-1)]))),_:1,__:[6]})])}}}),Gke={class:"p-20px pb-32px"},Xke={class:"flex items-center h-32px"},Yke={class:"mt-8px"},Zke=P({__name:"BatchExport",props:{rows:{default:()=>[]}},setup(e,{expose:t}){const n=e,r=W({type:0});return t({onConfirm:async()=>{const{message:e}=await Ze({is_split:r.type,ids:n.rows.map((e=>e.id)).join(",")});o(e)&&b(e.result)}}),(e,t)=>{const n=At,o=vt,i=St,a=dn;return j(),I("div",Gke,[N(a,null,{default:L((()=>[N(i,{label:"Export method","show-feedback":!1},{default:L((()=>[N(o,{value:H(r).type,"onUpdate:value":t[0]||(t[0]=e=>H(r).type=e)},{default:L((()=>[R("div",Xke,[N(n,{value:0},{default:L((()=>t[1]||(t[1]=[$(" Export each group to a separate file ")]))),_:1,__:[1]})]),R("div",Yke,[N(n,{value:1},{default:L((()=>t[2]||(t[2]=[$(" Export multiple groups into a single file ")]))),_:1,__:[2]})])])),_:1},8,["value"])])),_:1})])),_:1})])}}}),Jke={class:"px-20px pt-24px pb-8px"},Qke={class:"w-240px"},e_e=P({__name:"BatchMerge",props:{rows:{default:()=>[]},refresh:{}},setup(e,{expose:t}){const n=e,r=W({target_group:n.rows[0].id}),o=B([]);return o.value=n.rows.map((e=>({label:e.mail_type,value:e.id}))),t({onConfirm:async()=>{await Je({source_groups:n.rows.map((e=>e.id)).join(","),target_group:r.target_group}),n.refresh()}}),(e,t)=>{const n=Dt,i=St,a=dn;return j(),I("div",Jke,[N(a,null,{default:L((()=>[N(i,{label:"Merge to"},{default:L((()=>[R("div",Qke,[N(n,{value:H(r).target_group,"onUpdate:value":t[0]||(t[0]=e=>H(r).target_group=e),options:H(o)},null,8,["value","options"])])])),_:1})])),_:1})])}}}),t_e={class:"p-20px pt-24px pb-8px"},n_e={class:"w-200px"},r_e=P({__name:"RenameGroup",props:{row:{},isEdit:{type:Boolean},refresh:{}},setup(e,{expose:t}){const n=e,{row:r,isEdit:o,refresh:i}=n,a=B(null),u=W({mail_type:r?r.mail_type:""}),l={mail_type:{required:!0,trigger:"blur",message:"Please enter group name"}};return t({onConfirm:async()=>{await(a.value?.validate()),o&&r?await Qe({...ie(u),id:r.id}):await et(ie(u)),i?.()}}),(e,t)=>{const n=kt,r=St,o=dn;return j(),I("div",t_e,[N(o,{ref_key:"formRef",ref:a,model:H(u),rules:l},{default:L((()=>[N(r,{label:"Group Name",path:"mail_type"},{default:L((()=>[R("div",n_e,[N(n,{value:H(u).mail_type,"onUpdate:value":t[0]||(t[0]=e=>H(u).mail_type=e),placeholder:"Please enter group name"},null,8,["value"])])])),_:1})])),_:1},8,["model"])])}}}),o_e=P({__name:"index",setup(e,{expose:t}){const{t:n}=G(),r=()=>{w()},a=W({show:!1,title:"Add Group",data:{refresh:r}}),u=()=>{a.title="Add Group",a.show=!0},l=W({p:1,size:10,type:-1,keyword:""}),{keys:s,table:c,columns:d,setLoading:f}=qt([{type:"selection",width:40},{key:"mail_type",title:"Group Name",render:e=>N("a",{class:"bt-link",href:"javascript:;",onClick:()=>{(e=>{An.value=e,Fo("contact")})(e.id)}},[e.mail_type])},{key:"subscribers",title:n("Mail.Mass.index_71"),align:"center"},{key:"unsubscribers",title:n("Mail.Mass.index_72"),align:"center"},{key:"created",title:n("Mail.Unsubscribe.index_19"),render:e=>i(e.created)},sn({width:200,options:e=>[{label:n("Mail.Mass.index_83"),show:!1,onClick:()=>{Cn(e.subscribe_url)}},{label:n("Docker.Container.index_15"),onClick:()=>{b(e)}},{label:n("Public.Btn.Del"),onClick:()=>{D({title:n("Public.Btn.Del"),content:n("Mail.Mass.index_85",[e.mail_type]),onConfirm:async()=>{await tt({ids:e.id}),w()}})}}]})]),p=[{key:"del",type:"confirm",label:n("Public.Batch.Del"),confirm:{title:n("Public.Batch.Del"),desc:n("Site.Batch.index_11"),api:e=>tt({ids:e.id},!1),done:()=>{w()},columns:[{key:"mail_type",title:"Groups",ellipsis:{tooltip:{width:"trigger"}}}]}},{key:"export",label:"Batch export",onBatch:e=>{v(e)}},{key:"merge",label:"Batch merge",onBatch:e=>{y(e)}}],h=W({show:!1,title:"Export Group",data:{rows:[]}}),v=e=>{h.data.rows=e,h.show=!0},g=W({show:!1,title:"Merge Group",data:{rows:[],refresh:r}}),y=e=>{g.data.rows=e,g.show=!0},m=W({show:!1,title:"Edit Group",data:{row:null,isEdit:!1,refresh:r}}),b=e=>{m.data.row=e,m.data.isEdit=!0,m.show=!0},w=async()=>{try{f(!0);const{message:e}=await nt({search:l.keyword,p:l.p,size:l.size});o(e)&&(c.data=e.data,c.total=e.total)}finally{s.value=[],f(!1)}};return Z((()=>{w()})),t({init:w}),(e,t)=>{const n=mt,r=xn,o=Kt,i=bn,f=ln,v=Yt,y=_;return j(),I("div",null,[N(v,null,{toolsLeft:L((()=>[N(n,{type:"primary",onClick:u},{default:L((()=>t[9]||(t[9]=[$("Add Group")]))),_:1,__:[9]})])),toolsRight:L((()=>[N(r,{value:H(l).keyword,"onUpdate:value":t[0]||(t[0]=e=>H(l).keyword=e),width:240,placeholder:e.$t("Config.Alarm.index_67"),onSearch:w},null,8,["value","placeholder"])])),table:L((()=>[N(o,{"checked-row-keys":H(s),"onUpdate:checkedRowKeys":t[1]||(t[1]=e=>U(s)?s.value=e:null),"row-key":"id",loading:H(c).loading,data:H(c).data,columns:H(d)},null,8,["checked-row-keys","loading","data","columns"])])),pageLeft:L((()=>[N(i,{"checked-row-keys":H(s),"onUpdate:checkedRowKeys":t[2]||(t[2]=e=>U(s)?s.value=e:null),"row-key":"id",data:H(c).data,options:p},null,8,["checked-row-keys","data"])])),pageRight:L((()=>[N(f,{page:H(l).p,"onUpdate:page":t[3]||(t[3]=e=>H(l).p=e),"page-size":H(l).size,"onUpdate:pageSize":t[4]||(t[4]=e=>H(l).size=e),"item-count":H(c).total,onRefresh:w},null,8,["page","page-size","item-count"])])),_:1}),N(y,{show:H(a).show,"onUpdate:show":t[5]||(t[5]=e=>H(a).show=e),title:H(a).title,width:530,data:H(a).data,footer:!0,component:qke},null,8,["show","title","data"]),N(y,{show:H(m).show,"onUpdate:show":t[6]||(t[6]=e=>H(m).show=e),title:H(m).title,width:400,data:H(m).data,footer:!0,component:r_e},null,8,["show","title","data"]),N(y,{show:H(h).show,"onUpdate:show":t[7]||(t[7]=e=>H(h).show=e),title:H(h).title,width:440,data:H(h).data,footer:!0,component:Zke},null,8,["show","title","data"]),N(y,{show:H(g).show,"onUpdate:show":t[8]||(t[8]=e=>H(g).show=e),title:H(g).title,width:440,data:H(g).data,footer:!0,component:e_e},null,8,["show","title","data"])])}}}),i_e={class:"px-20px py-24px"},a_e={class:"w-300px"},u_e={class:"h-32px flex items-center"},l_e={class:"h-32px flex items-center"},s_e={class:"h-32px flex items-center"},c_e=P({__name:"Scan",props:{refresh:{type:Function}},setup(e,{expose:t}){const n=X("formRef"),r=W({etype:null,oper:1}),o={etype:{trigger:"change",validator:()=>!!r.etype||new Error("Please select group")}},i=B([]);return(async()=>{const{message:e}=await Xe();h(e)&&(i.value=e.map((e=>({label:e.mail_type,value:e.id}))))})(),t({onConfirm:async()=>{await(n.value?.validate()),await rt({etype:r.etype||0,oper:r.oper}),setTimeout((()=>{e.refresh?.()}),1e3)}}),(e,t)=>{const a=Dt,u=St,l=At,s=vt,c=dn;return j(),I("div",i_e,[N(c,{ref_key:"formRef",ref:n,form:H(r),rules:o,"label-width":"150"},{default:L((()=>[N(u,{label:"Group",path:"etype"},{default:L((()=>[R("div",a_e,[N(a,{value:H(r).etype,"onUpdate:value":t[0]||(t[0]=e=>H(r).etype=e),options:H(i)},null,8,["value","options"])])])),_:1}),N(u,{label:"Method","show-feedback":!1},{default:L((()=>[N(s,{value:H(r).oper,"onUpdate:value":t[1]||(t[1]=e=>H(r).oper=e),options:H(i)},{default:L((()=>[R("div",u_e,[N(l,{value:1},{default:L((()=>t[2]||(t[2]=[$("no-operation")]))),_:1,__:[2]})]),R("div",l_e,[N(l,{value:2},{default:L((()=>t[3]||(t[3]=[$("Added to the exception prevention table")]))),_:1,__:[3]})]),R("div",s_e,[N(l,{value:3},{default:L((()=>t[4]||(t[4]=[$("The abnormal mailbox is deleted from the group")]))),_:1,__:[4]})])])),_:1},8,["value","options"])])),_:1})])),_:1},8,["form"])])}}}),d_e={class:"p-20px"},f_e={class:"h-400px"},p_e=P({__name:"ScanLogs",setup(e){const{loading:t,setLoading:n}=Zt(),r=B("None"),i=B(null),a=B(!1),u=B(0),l=async()=>{s(!0)},s=async(e=!1)=>{try{e&&n(!0);const{message:t}=await mn({path:"/www/server/panel/plugin/mail_sys/data/check_email_valid.txt"});o(t)?(r.value=t.data?t.data:"None",u.value=0,r.value.includes("Check finished")||r.value.includes("扫描完成")?f():a.value&&d()):c()}finally{e&&n(!1)}},c=()=>{u.value++,u.value>=3?f():a.value&&d()},d=()=>{a.value&&(null!==i.value&&clearTimeout(i.value),i.value=window.setTimeout((()=>{s(!1)}),1e3))},f=()=>{null!==i.value&&(clearTimeout(i.value),i.value=null),a.value=!1};return ue((()=>{f()})),Z((()=>{s(!0),a.value||(a.value=!0,u.value=0,d())})),(e,n)=>{const o=mt,i=yn;return j(),I("div",d_e,[N(o,{class:"mb-8px",type:"primary",onClick:l},{default:L((()=>[$(K(e.$t("Public.Btn.Refresh")),1)])),_:1}),R("div",f_e,[N(i,{loading:H(t),log:H(r)},null,8,["loading","log"])])])}}}),h_e={class:"ml-8px"},v_e=P({__name:"index",setup(e,{expose:t}){const{t:n}=G(),r=B(!1),a=async e=>{await y({source:362}),await De({operation:e?1:0})},u=W({p:1,size:10,status:"bounced",search:""}),l=B([]),s=W({show:!1,data:{refresh:()=>{f()}}}),c=()=>{s.show=!0},d=W({show:!1}),f=()=>{d.show=!0},{keys:p,table:v,columns:g,setLoading:m}=qt([{type:"selection",width:40},{key:"recipient",title:n("Mail.Unsubscribe.index_1")},{key:"task_name",title:n("Mail.Mass.index_23"),render:e=>`${e.task_name} (${i(e.task_time)})`},{key:"status",title:n("Ftp.Table.index_3")},{key:"state",title:n("Config.Safe.index_156"),render:e=>e.state||e.count>=3?n("Mail.Mass.index_95"):n("Mail.Mass.index_96")},{key:"created",title:n("Mail.Unsubscribe.index_19"),render:e=>i(e.created)},sn({width:200,options:e=>[{label:n("Public.Btn.Del"),onClick:async()=>{D({title:n("Public.Btn.Del"),content:n("Mail.Mass.index_85",[e.recipient]),onConfirm:async()=>{await ot({ids:e.id}),E()}})}}]})]),b=[{key:"del",type:"confirm",label:n("Public.Batch.Del"),confirm:{title:n("Public.Batch.Del"),desc:n("Site.Batch.index_11"),api:e=>ot({ids:e.id},!1),done:()=>{E()},columns:[{key:"recipient",title:n("Mail.Unsubscribe.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}}],w=()=>{u.p=1,E()},x=()=>{D({title:n("Public.Btn.Clear"),content:n("Mail.Mass.index_94"),onConfirm:async()=>{await at({status:u.status}),E()}})},E=async()=>{try{m(!0);const{message:e}=await it(ie(u));o(e)&&(v.data=e.data,v.total=e.total)}finally{p.value=[],m(!1)}},{loading:C,setLoading:S}=Zt(),k=async()=>{await(async()=>{try{S(!0);const{message:e}=await ut();h(e)&&(l.value=e.map((e=>({label:e.status,value:e.status}))),e.length>0&&(u.status=e[0].status))}finally{S(!1)}})(),E()};return k(),(async()=>{const{message:e}=await Se();o(e)&&(r.value=e.abnormal_mail_check_switch)})(),t({init:k}),(e,t)=>{const n=mt,o=wt,i=Dt,h=xn,y=Kt,m=bn,D=ln,S=Yt,k=_,O=Vt;return j(),q(O,null,{default:L((()=>[N(S,null,{toolsLeft:L((()=>[N(n,{type:"primary",onClick:c},{default:L((()=>t[9]||(t[9]=[$("Scan Invalid Domains")]))),_:1,__:[9]}),N(n,{onClick:f},{default:L((()=>t[10]||(t[10]=[$("Scan Logs")]))),_:1,__:[10]}),N(n,{onClick:x},{default:L((()=>[$(K(e.$t("Public.Btn.Clear")),1)])),_:1}),R("div",h_e,[t[11]||(t[11]=R("span",{class:"mr-12px"},"Auto block failed emails",-1)),N(o,{value:H(r),"onUpdate:value":[t[0]||(t[0]=e=>U(r)?r.value=e:null),a]},null,8,["value"])])])),toolsRight:L((()=>[N(i,{class:"w-200px",loading:H(C),value:H(u).status,"onUpdate:value":[t[1]||(t[1]=e=>H(u).status=e),w],options:H(l)},null,8,["loading","value","options"]),N(h,{value:H(u).search,"onUpdate:value":t[2]||(t[2]=e=>H(u).search=e),width:240,placeholder:e.$t("Config.Alarm.index_67"),onSearch:E},null,8,["value","placeholder"])])),table:L((()=>[N(y,{"checked-row-keys":H(p),"onUpdate:checkedRowKeys":t[3]||(t[3]=e=>U(p)?p.value=e:null),"row-key":"id",loading:H(v).loading,data:H(v).data,columns:H(g)},null,8,["checked-row-keys","loading","data","columns"])])),pageLeft:L((()=>[N(m,{"checked-row-keys":H(p),"onUpdate:checkedRowKeys":t[4]||(t[4]=e=>U(p)?p.value=e:null),"row-key":"id",data:H(v).data,options:b},null,8,["checked-row-keys","data"])])),pageRight:L((()=>[N(D,{page:H(u).p,"onUpdate:page":t[5]||(t[5]=e=>H(u).p=e),"page-size":H(u).size,"onUpdate:pageSize":t[6]||(t[6]=e=>H(u).size=e),"item-count":H(v).total,onRefresh:E},null,8,["page","page-size","item-count"])])),_:1}),N(k,{show:H(s).show,"onUpdate:show":t[7]||(t[7]=e=>H(s).show=e),title:"Scan Invalid Domains",width:540,footer:!0,"confirm-text":"Scan",component:c_e,data:H(s).data},null,8,["show","data"]),N(k,{show:H(d).show,"onUpdate:show":t[8]||(t[8]=e=>H(d).show=e),title:"Scan Logs",width:720,component:p_e},null,8,["show"])])),_:1})}}}),g_e={key:0,class:"pt-40px pb-40px"},y_e={class:"text-center my-24px"},m_e={class:"flex justify-center"},b_e={class:"w-76%"},w_e=p(P({__name:"conversion",setup(e){const t=d(),{isFree:n}=z(t),r=()=>{f({source:360})};return(e,t)=>{const o=mt,i=Wt;return j(),I("div",null,[H(n)?(j(),I("div",g_e,[t[0]||(t[0]=R("div",{class:"mb-24px text-center text-24px font-bold"},"Automation",-1)),t[1]||(t[1]=R("div",{class:"text-center text-14px color-desc"}," Pro Edition Exclusive Features ",-1)),R("div",y_e,[N(o,{type:"primary",class:"px-20px h-38px text-15px",onClick:r},{default:L((()=>[$(K(e.$t("WP.Transition.index_7")),1)])),_:1})]),R("div",m_e,[R("div",b_e,[N(i,{class:"w-full",width:"100%",src:H("/static/vite/images/auto-pro-Dl8DXXI8.png")},null,8,["src"])])])])):re(e.$slots,"default",{key:1},void 0,!0)])}}}),[["__scopeId","data-v-258f8949"]]),x_e=[{key:"default",title:"Simple welcome email",description:"Send a welcome email to new subscribers",data:{triggers:[{type:"subscriber_added",group_ids:[]}],root:{broken:!1,complete:!1,email_id:0,from:"",from_name:"",id:0,name:"",next:null,nodeKey:"a86bac74",parentNodeKey:"root",parent_id:0,subject:"",track_opens:!0,track_clicks:!0,track_unsubscribe:!0,type:"email"}}}],E_e={class:"p-24px"},C_e={class:"w-260px"},D_e={class:"template-list"},S_e={class:"template-title"},k_e={class:"template-desc"},__e=p(P({__name:"index",setup(e,{expose:t}){const n=X("formRef"),r=W({name:""}),i=B("default"),a={name:{required:!0,message:"Please enter the task name",trigger:"blur"}},u=Ee();return t({onConfirm:async()=>{await(n.value?.validate());const e=x_e.filter((e=>e.key===i.value))[0];if(e){const{message:t}=await lt({name:r.name,triggers:e.data.triggers,root:e.data.root});C.success("Add successfully"),o(t)&&u.push(`/flow/${t.id}`)}}}),(e,t)=>{const o=kt,u=St,l=dn;return j(),I("div",E_e,[N(l,{ref_key:"formRef",ref:n,model:H(r),rules:a},{default:L((()=>[N(u,{label:"Task name",path:"name"},{default:L((()=>[R("div",C_e,[N(o,{value:H(r).name,"onUpdate:value":t[0]||(t[0]=e=>H(r).name=e)},null,8,["value"])])])),_:1}),N(u,{label:"Template","show-feedback":!1},{default:L((()=>[R("div",D_e,[(j(!0),I(M,null,me(H(x_e),(e=>(j(),I("div",{key:e.key,class:ne(["template-item",{active:H(i)===e.key}])},[R("div",S_e,K(e.title),1),R("div",k_e,K(e.description),1)],2)))),128))])])),_:1})])),_:1},8,["model"])])}}}),[["__scopeId","data-v-5af2dd72"]]),O_e={class:"px-20px pt-28px pb-12px"},A_e={class:"w-240px"},T_e=P({__name:"index",props:{row:{default:null}},setup(e,{expose:t}){const n=e,r=X("formRef"),o=W({name:""}),i={name:{required:!0,trigger:"blur",message:"Please enter the name"}};return(()=>{const{row:e}=n;e&&(o.name=e.name||"")})(),t({onConfirm:async()=>{await(r.value?.validate()),await st({id:n.row.id,name:o.name}),n.row.name=o.name}}),(e,t)=>{const n=kt,a=St,u=dn;return j(),I("div",O_e,[N(u,{ref_key:"formRef",ref:r,model:H(o),rules:i},{default:L((()=>[N(a,{label:"Name",path:"name"},{default:L((()=>[R("div",A_e,[N(n,{value:H(o).name,"onUpdate:value":t[0]||(t[0]=e=>H(o).name=e)},null,8,["value"])])])),_:1})])),_:1},8,["model"])])}}}),B_e=P({__name:"index",setup(e){const{t:t}=G(),n=W({show:!1}),r=()=>{n.show=!0},{table:i,columns:a,setLoading:u}=qt([{key:"name",title:"Name"},{key:"status",title:"Status",render:e=>N(wt,{value:e.status,checkedValue:1,uncheckedValue:0,size:"small",onUpdateValue:async t=>{await ct({id:e.id,status:t}),e.status=t}},null)},{key:"sent",title:"Delivered / Sent",render:e=>`${e.delivered} / ${e.sent}`},{key:"clicked",title:"Clicked",render:e=>`${e.clicked}%`},{key:"opened",title:"Opened",render:e=>`${e.opened}%`},sn({width:260,options:e=>[{label:"Duplicate",onClick:()=>{l(e)}},{label:"Rename",onClick:()=>{c(e)}},{label:t("Public.Btn.Edit"),disabled:1===e.status,onClick:()=>{f(e)}},{label:t("Public.Btn.Delete"),onClick:()=>{p(e)}}]})]),l=async e=>{const t=C.loading("Copying, please wait...");try{const{message:t}=await dt({id:e.id});if(o(t)){const n=e=>{let t=e;for(;t;)t.id=0,o(t)&&"condition"===t.type&&(n(t.yes),n(t.no)),t=t.next};n(t.root),await lt({name:`${e.name} - Copy`,triggers:t.triggers,root:t.root},!1),g(),C.success("Copy success")}}finally{t.close()}},s=W({show:!1,title:"Rename the automation",data:{row:null}}),c=e=>{s.data.row=e,s.show=!0},d=Ee(),f=e=>{d.push(`/flow/${e.id}`)},p=e=>{D({title:`Delete [${e.name}]`,content:"Are you sure to delete this item?",onConfirm:async()=>{try{u(!0),await ft({id:e.id}),g()}finally{u(!1)}}})},v=W({keyword:"",p:1,p_size:10}),g=async()=>{try{u(!0);const{message:e}=await pt(ie(v));o(e)&&(i.data=h(e.list)?e.list:[],i.total=e.total)}finally{u(!1)}};return g(),(e,t)=>{const o=mt,u=Kt,l=ln,c=Yt,d=_;return j(),q(w_e,null,{default:L((()=>[N(c,null,{toolsLeft:L((()=>[N(o,{type:"primary",onClick:r},{default:L((()=>t[4]||(t[4]=[$("New automation")]))),_:1,__:[4]})])),table:L((()=>[N(u,{loading:H(i).loading,data:H(i).data,columns:H(a)},null,8,["loading","data","columns"])])),pageRight:L((()=>[N(l,{page:H(v).p,"onUpdate:page":t[0]||(t[0]=e=>H(v).p=e),"page-size":H(v).p_size,"onUpdate:pageSize":t[1]||(t[1]=e=>H(v).p_size=e),"item-count":H(i).total,onRefresh:g},null,8,["page","page-size","item-count"])])),_:1}),N(d,{show:H(n).show,"onUpdate:show":t[2]||(t[2]=e=>H(n).show=e),title:"Add Automated Task",width:500,footer:!0,component:__e},null,8,["show"]),N(d,{show:H(s).show,"onUpdate:show":t[3]||(t[3]=e=>H(s).show=e),title:H(s).title,width:440,data:H(s).data,footer:!0,component:T_e},null,8,["show","title","data"])])),_:1})}}});e("default",P({__name:"index",setup(e){const t=[{key:"overview",label:"Overview",component:_r},{key:"task",label:"Marketing Task",component:Po},{key:"template",label:"Template",component:dke},{key:"contact",label:"Subscribers",component:zke},{key:"mail",label:"Groups",component:o_e},{key:"invalid",label:"Suspend List",component:v_e},{key:"automation",label:"Automation",component:B_e}];return(e,r)=>{const o=n,i=Vt;return j(),q(i,{class:"p-16px"},{default:L((()=>[N(o,{value:H(kn),"onUpdate:value":r[0]||(r[0]=e=>U(kn)?kn.value=e:null),options:t},null,8,["value"])])),_:1})}}}))}}}));