2023-11-29 17:52:18 +08:00
import { d as g9 , r as v2 , s as HP , i as UP , w as VP , k as WP , t as qP , o as v9 , c as m9 } from "./@vue.108c970a.js" ; var Pv ; if ( typeof global > "u" ) { if ( "ActiveXObject" in window ) { var d5 = "\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668" ; d5 += `
2023-11-21 11:51:27 +08:00
Sorry , wangEditor V5 + versions do not support IE browser . ` ,console.error(d5)}p5(),h5()}else global&&((Pv=global.navigator)===null||Pv===void 0?void 0:Pv.userAgent.match("QQBrowser"))&&(p5(),h5());function p5(){typeof globalThis>"u"&&(window.globalThis=window)}function h5(){typeof AggregateError>"u"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof global=="object"){var GP=Object.getOwnPropertyDescriptor(global,"window");(!global.window||GP.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)}}),global.document!=null&&global.document.getElementsByTagName==null&&(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 .
* / f u n c t i o n g 5 ( e ) { r e t u r n O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( e ) = = = " [ o b j e c t O b j e c t ] " } f u n c t i o n Z t ( e ) { v a r t , n ; r e t u r n g 5 ( e ) = = = ! 1 ? ! 1 : ( t = e . c o n s t r u c t o r , t = = = v o i d 0 ? ! 0 : ( n = t . p r o t o t y p e , ! ( g 5 ( n ) = = = ! 1 | | n . h a s O w n P r o p e r t y ( " i s P r o t o t y p e O f " ) = = = ! 1 ) ) ) } f u n c t i o n H t ( e ) { f o r ( v a r t = a r g u m e n t s . l e n g t h , n = A r r a y ( t > 1 ? t - 1 : 0 ) , r = 1 ; r < t ; r + + ) n [ r - 1 ] = a r g u m e n t s [ r ] ; { v a r i = t N [ e ] , o = i ? t y p e o f i = = " f u n c t i o n " ? i . a p p l y ( n u l l , n ) : i : " u n k n o w n e r r o r n r : " + e ; t h r o w E r r o r ( " [ I m m e r ] " + o ) } } f u n c t i o n O a ( e ) { r e t u r n ! ! e & & ! ! e [ x n ] } f u n c t i o n B a ( e ) { r e t u r n ! ! e & & ( f u n c t i o n ( t ) { i f ( ! t | | t y p e o f t ! = " o b j e c t " ) r e t u r n ! 1 ; v a r n = O b j e c t . g e t P r o t o t y p e O f ( t ) ; i f ( n = = = n u l l ) r e t u r n ! 0 ; v a r r = O b j e c t . h a s O w n P r o p e r t y . c a l l ( n , " c o n s t r u c t o r " ) & & n . c o n s t r u c t o r ; r e t u r n r = = = O b j e c t | | t y p e o f r = = " f u n c t i o n " & & F u n c t i o n . t o S t r i n g . c a l l ( r ) = = = n N } ( e ) | | A r r a y . i s A r r a y ( e ) | | ! ! e [ C 5 ] | | ! ! e . c o n s t r u c t o r [ C 5 ] | | E $ ( e ) | | C $ ( e ) ) } f u n c t i o n q c ( e , t , n ) { n = = = v o i d 0 & & ( n = ! 1 ) , T s ( e ) = = = 0 ? ( n ? O b j e c t . k e y s : O $ ) ( e ) . f o r E a c h ( f u n c t i o n ( r ) { n & & t y p e o f r = = " s y m b o l " | | t ( r , e [ r ] , e ) } ) : e . f o r E a c h ( f u n c t i o n ( r , i ) { r e t u r n t ( i , r , e ) } ) } f u n c t i o n T s ( e ) { v a r t = e [ x n ] ; r e t u r n t ? t . i > 3 ? t . i - 4 : t . i : A r r a y . i s A r r a y ( e ) ? 1 : E $ ( e ) ? 2 : C $ ( e ) ? 3 : 0 } f u n c t i o n m 2 ( e , t ) { r e t u r n T s ( e ) = = = 2 ? e . h a s ( t ) : O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( e , t ) } f u n c t i o n K P ( e , t ) { r e t u r n T s ( e ) = = = 2 ? e . g e t ( t ) : e [ t ] } f u n c t i o n y 9 ( e , t , n ) { v a r r = T s ( e ) ; r = = = 2 ? e . s e t ( t , n ) : r = = = 3 ? ( e . d e l e t e ( t ) , e . a d d ( n ) ) : e [ t ] = n } f u n c t i o n Y P ( e , t ) { r e t u r n e = = = t ? e ! = = 0 | | 1 / e = = 1 / t : e ! = e & & t ! = t } f u n c t i o n E $ ( e ) { r e t u r n Q P & & e i n s t a n c e o f M a p } f u n c t i o n C $ ( e ) { r e t u r n e N & & e i n s t a n c e o f S e t } f u n c t i o n X o ( e ) { r e t u r n e . o | | e . t } f u n c t i o n D $ ( e ) { i f ( A r r a y . i s A r r a y ( e ) ) r e t u r n A r r a y . p r o t o t y p e . s l i c e . c a l l ( e ) ; v a r t = r N ( e ) ; d e l e t e t [ x n ] ; f o r ( v a r n = O $ ( t ) , r = 0 ; r < n . l e n g t h ; r + + ) { v a r i = n [ r ] , o = t [ i ] ; o . w r i t a b l e = = = ! 1 & & ( o . w r i t a b l e = ! 0 , o . c o n f i g u r a b l e = ! 0 ) , ( o . g e t | | o . s e t ) & & ( t [ i ] = { c o n f i g u r a b l e : ! 0 , w r i t a b l e : ! 0 , e n u m e r a b l e : o . e n u m e r a b l e , v a l u e : e [ i ] } ) } r e t u r n O b j e c t . c r e a t e ( O b j e c t . g e t P r o t o t y p e O f ( e ) , t ) } f u n c t i o n S $ ( e , t ) { r e t u r n t = = = v o i d 0 & & ( t = ! 1 ) , x $ ( e ) | | O a ( e ) | | ! B a ( e ) | | ( T s ( e ) > 1 & & ( e . s e t = e . a d d = e . c l e a r = e . d e l e t e = X P ) , O b j e c t . f r e e z e ( e ) , t & & q c ( e , f u n c t i o n ( n , r ) { r e t u r n S $ ( r , ! 0 ) } , ! 0 ) ) , e } f u n c t i o n X P ( ) { H t ( 2 ) } f u n c t i o n x $ ( e ) { r e t u r n e = = n u l l | | t y p e o f e ! = " o b j e c t " | | O b j e c t . i s F r o z e n ( e ) } f u n c t i o n s i ( e ) { v a r t = i N [ e ] ; r e t u r n t | | H t ( 1 8 , e ) , t } f u n c t i o n v 5 ( ) { r e t u r n o s | | H t ( 0 ) , o s } f u n c t i o n N v ( e , t ) { t & & ( s i ( " P a t c h e s " ) , e . u = [ ] , e . s = [ ] , e . v = t ) } f u n c t i o n n h ( e ) { y 2 ( e ) , e . p . f o r E a c h ( J P ) , e . p = n u l l } f u n c t i o n y 2 ( e ) { e = = = o s & & ( o s = e . l ) } f u n c t i o n m 5 ( e ) { r e t u r n o s = { p : [ ] , l : o s , h : e , m : ! 0 , _ : 0 } } f u n c t i o n J P ( e ) { v a r t = e [ x n ] ; t . i = = = 0 | | t . i = = = 1 ? t . j ( ) : t . O = ! 0 } f u n c t i o n I v ( e , t ) { t . _ = t . p . l e n g t h ; v a r n = t . p [ 0 ] , r = e ! = = v o i d 0 & & e ! = = n ; r e t u r n t . h . g | | s i ( " E S 5 " ) . S ( t , e , r ) , r ? ( n [ x n ] . P & & ( n h ( t ) , H t ( 4 ) ) , B a ( e ) & & ( e = r h ( t , e ) , t . l | | i h ( t , e ) ) , t . u & & s i ( " P a t c h e s " ) . M ( n [ x n ] , e , t . u , t . s ) ) : e = r h ( t , n , [ ] ) , n h ( t ) , t . u & & t . v ( t . u , t . s ) , e ! = = b 9 ? e : v o i d 0 } f u n c t i o n r h ( e , t , n ) { i f ( x $ ( t ) ) r e t u r n t ; v a r r = t [ x n ] ; i f ( ! r ) r e t u r n q c ( t , f u n c t i o n ( o , a ) { r e t u r n y 5 ( e , r , t , o , a , n ) } , ! 0 ) , t ; i f ( r . A ! = = e ) r e t u r n t ; i f ( ! r . P ) r e t u r n i h ( e , r . t , ! 0 ) , r . t ; i f ( ! r . I ) { r . I = ! 0 , r . A . _ - - ; v a r i = r . i = = = 4 | | r . i = = = 5 ? r . o = D $ ( r . k ) : r . o ; q c ( r . i = = = 3 ? n e w S e t ( i ) : i , f u n c t i o n ( o , a ) { r e t u r n y 5 ( e , r , i , o , a , n ) } ) , i h ( e , i , ! 1 ) , n & & e . u & & s i ( " P a t c h e s " ) . R ( r , n , e . u , e . s ) } r e t u r n r . o } f u n c t i o n y 5 ( e , t , n , r , i , o ) { i f ( i = = = n & & H t ( 5 ) , O a ( i ) ) { v a r a = r h ( e , i , o & & t & & t . i ! = = 3 & & ! m 2 ( t . D , r ) ? o . c o n c a t ( r ) : v o i d 0 ) ; i f ( y 9 ( n , r , a ) , ! O a ( a ) ) r e t u r n ; e . m = ! 1 } i f ( B a ( i ) & & ! x $ ( i ) ) { i f ( ! e . h . F & & e . _ < 1 ) r e t u r n ; r h ( e , i ) , t & & t . A . l | | i h ( e , i ) } } f u n c t i o n i h ( e , t , n ) { n = = = v o i d 0 & & ( n = ! 1 ) , e . h . F & & e . m & & S $ ( t , n ) } f u n c t i o n R v ( e , t ) { v a r n = e [ x n ] ; r e t u r n ( n ? X o ( n ) : e ) [ t ] } f u n c t i o n b 5 ( e , t ) { i f ( t i n e ) f o r ( v a r n = O b j e c t . g e t P r o t o t y p e O f ( e ) ; n ; ) { v a r r = O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( n , t ) ; i f ( r ) r e t u r n r ; n = O b j e c t . g e t P r o t o t y p e O f ( n ) } } f u n c t i o n b 2 ( e ) { e . P | | ( e . P = ! 0 , e . l & & b 2 ( e . l ) ) } f u n c t i o n j v ( e ) { e . o | | ( e . o = D $ ( e . t ) ) } f u n c t i o n $ 2 ( e , t , n ) { v a r r = E $ ( t ) ? s i ( " M a p S e t " ) . N ( t , n ) : C $ ( t ) ? s i ( " M a p S e t " ) . T ( t , n ) : e . g ? f u n c t i o n ( i , o ) { v a r a = A r r a y . i s A r r a y ( i ) , u = { i : a ? 1 : 0 , A : o ? o . A : v 5 ( ) , P : ! 1 , I : ! 1 , D : { } , l : o , t : i , k : n u l l , o : n u l l , j : n u l l , C : ! 1 } , s = u , l = B p ; a & & ( s = [ u ] , l = F p ) ; v a r c = P r o x y . r e v o c a b l e ( s , l ) , f = c . r e v o k e , d = c . p r o x y ; r e t u r n u . k = d , u . j = f , d } ( t , n ) : s i ( " E S 5 " ) . J ( t , n ) ; r e t u r n ( n ? n . A : v 5 ( ) ) . p . p u s h ( r ) , r } f u n c t i o n Z P ( e ) { r e t u r n O a ( e ) | | H t ( 2 2 , e ) , f u n c t i o n t ( n ) { i f ( ! B a ( n ) ) r e t u r n n ; v a r r , i = n [ x n ] , o = T s ( n ) ; i f ( i ) { i f ( ! i . P & & ( i . i < 4 | | ! s i ( " E S 5 " ) . K ( i ) ) ) r e t u r n i . t ; i . I = ! 0 , r = $ 5 ( n , o ) , i . I = ! 1 } e l s e r = $ 5 ( n , o ) ; r e t u r n q c ( r , f u n c t i o n ( a , u ) { i & & K P ( i . t , a ) = = = u | | y 9 ( r , a , t ( u ) ) } ) , o = = = 3 ? n e w S
Could not completely normalize the editor after ` .concat(l, ` iterations ! This is usually due to incorrect normalization logic that leaves a node in an invalid state .
` ));var f=r(e).pop();if(W.has(e,f)){var d=E.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),i=_.parent(r),o=E.node(e,i);return o},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:i}=n;if(_.isPath(t)){if(i==="start"){var[,o]=W.first(e,t);t=o}else if(i==="end"){var[,a]=W.last(e,t);t=a}}return R.isRange(t)&&(i==="start"?t=R.start(t):i==="end"?t=R.end(t):t=_.common(t.anchor.path,t.focus.path)), $ e.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath(e,t){return W.has(e,t)},pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.pathRefs(e);return u.delete(i),i.current=null,a}},o=E.pathRefs(e);return o.add(i),i},pathRefs(e){var t=A5.get(e);return t||(t=new Set,A5.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(_.isPath(t)){var i;if(r==="end"){var[,o]=W.last(e,t);i=o}else{var[,a]=W.first(e,t);i=a}var u=W.get(e,i);if(!X.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:i,offset:r==="end"?u.text.length:0}}if(R.isRange(t)){var[s,l]=R.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.pointRefs(e);return u.delete(i),i.current=null,a}},o=E.pointRefs(e);return o.add(i),i},pointRefs(e){var t=O5.get(e);return t||(t=new Set,O5.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(!n)return;var a=E.range(e,n),[u,s]=R.edges(a),l=i?s:u,c=!1,f="",d=0,p=0,g=0;for(var[v,m]of E.nodes(e,{at:n,reverse:i,voids:o})){if(te.isElement(v)){if(!o&&e.isVoid(v)){yield E.start(e,m);continue}if(e.isInline(v))continue;if(E.hasInlines(e,v)){var y=_.isAncestor(m,s.path)?s:E.end(e,m),h=_.isAncestor(m,u.path)?u:E.start(e,m);f=E.string(e,{anchor:h,focus:y},{voids:o}),c=!0}}if(X.isText(v)){var $ =_.equals(m,l.path);for( $ ?(p=i?l.offset:v.text.length-l.offset,g=l.offset):(p=v.text.length,g=i?p:0),( $ ||c||r==="offset")&&(yield{path:m,offset:g},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,i),f=F $ (f,d,i)[1]}if(g=i?g-d:g+d,p=p-d,p<0){d=-p;break}d=0,yield{path:m,offset:g}}}}function w(C,D,A){return D==="character"?B $ (C,A):D==="word"?dN(C,A):D==="line"||D==="block"?C.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(!!o){var a=E.before(e,o,{voids:r});if(!!a){var[,u]=E.first(e,[]),s=[a.path,u];if(_.isPath(o)&&o.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(_.isPath(o)){var[l]=E.parent(e,o);i=f=>l.children.includes(f)}else i=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:i,mode:n,voids:r});return c}}},range(e,t,n){if(R.isRange(t)&&!n)return t;var r=E.start(e,t),i=E.end(e,n||t);return{anchor:r,focus:i}},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:a}=i,u=E.rangeRefs(e);return u.delete(i),i.current=null,a}},o=E.rangeRefs(e);return o.add(i),i},rangeRefs(e){var t=B5.get(e);return t||(t=new Set,B5.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){x5.set(e,t)},start(e,t){return E.point(e,t,{edge:"start"})},string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,i=E.range(e,t),[o,a]=R.edges(i),u="";for(var[s,l]of E.nodes(e,{at:i,match:X.isText,voids:r})){var c=s.text;_.equals(l,a.path)&&(c=c.slice(0,a.offset)),_.equals(l,o.path)&&(c=c.slice(o.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[i,o]=R.edges(t);if(i.offset!==0||o.offset!==0||R.isCollapsed(t))return t;var a=E.above(e,
* 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 S6(e,t){const n=/ \ $ / g , r = "$$$$" ; let i = [ e ] ; if ( t == null ) return i ; for ( const o of Object . keys ( t ) ) if ( o !== "_" ) { let a = t [ o ] ; typeof a == "string" && ( a = n [ Symbol . replace ] ( a , r ) ) , i = JL ( i , new RegExp ( ` % \\ { ${ o } \\ } ` , "g" ) , a ) } return i } var gO = ( uu = XL ( "apply" ) , class { constructor ( t ) { Object . defineProperty ( this , uu , { value : ZL } ) , this . locale = { strings : { } , pluralize ( n ) { return n === 1 ? 0 : 1 } } , Array . isArray ( t ) ? t . forEach ( D6 ( this , uu ) [ uu ] , this ) : D6 ( this , uu ) [ uu ] ( t ) } translate ( t , n ) { return this . translateArray ( t , n ) . join ( "" ) } translateArray ( t , n ) { if ( ! KL ( this . locale . strings , t ) ) throw new Error ( ` missing string: ${ t } ` ) ; const r = this . locale . strings [ t ] ; if ( typeof r == "object" ) { if ( n && typeof n . smart _count < "u" ) { const o = this . locale . pluralize ( n . smart _count ) ; return S6 ( r [ o ] , n ) } throw new Error ( "Attempted to use a string with plural forms, but no value was given for %{smart_count}" ) } return S6 ( r , n ) } } ) ; function ZL ( e ) { if ( ! ( e != null && e . strings ) ) return ; const t = this . locale ; this . locale = { ... t , strings : { ... t . strings , ... e . strings } } , this . locale . pluralize = e . pluralize || t . pluralize } var vO = function ( ) { var t = { } , n = t . _fns = { } ; t . emit = function ( a , u , s , l , c , f , d ) { var p = r ( a ) ; p . length && i ( a , p , [ u , s , l , c , f , d ] ) } , t . on = function ( a , u ) { n [ a ] || ( n [ a ] = [ ] ) , n [ a ] . push ( u ) } , t . once = function ( a , u ) { function s ( ) { u . apply ( this , arguments ) , t . off ( a , s ) } this . on ( a , s ) } , t . off = function ( a , u ) { var s = [ ] ; if ( a && u ) { var l = this . _fns [ a ] , c = 0 , f = l ? l . length : 0 ; for ( c ; c < f ; c ++ ) l [ c ] !== u && s . push ( l [ c ] ) } s . length ? this . _fns [ a ] = s : delete this . _fns [ a ] } ; function r ( o ) { var a = n [ o ] ? n [ o ] : [ ] , u = o . indexOf ( ":" ) , s = u === - 1 ? [ o ] : [ o . substring ( 0 , u ) , o . substring ( u + 1 ) ] , l = Object . keys ( n ) , c = 0 , f = l . length ; for ( c ; c < f ; c ++ ) { var d = l [ c ] ; if ( d === "*" && ( a = a . concat ( n [ d ] ) ) , s . length === 2 && s [ 0 ] === d ) { a = a . concat ( n [ d ] ) ; break } } return a } function i ( o , a , u ) { var s = 0 , l = a . length ; for ( s ; s < l && a [ s ] ; s ++ ) a [ s ] . event = o , a [ s ] . apply ( a [ s ] , u ) } return t } ; let QL = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict" ; var eM = { urlAlphabet : QL } ; let { urlAlphabet : tM } = eM ; { if ( typeof navigator < "u" && navigator . product === "ReactNative" && typeof crypto > "u" ) throw new Error ( "React Native does not have a built-in secure random generator. If you don\u2019t need unpredictable IDs use `nanoid/non-secure`. For secure IDs, import `react-native-get-random-values` before Nano ID." ) ; if ( typeof msCrypto < "u" && typeof crypto > "u" ) throw new Error ( "Import file with `if (!window.crypto) window.crypto = window.msCrypto` before importing Nano ID to fix IE 11 support" ) ; if ( typeof crypto > "u" ) throw new Error ( "Your browser does not have secure random generator. If you don\u2019t need unpredictable IDs, you can use nanoid/non-secure." ) } let mO = e => crypto . getRandomValues ( new Uint8Array ( e ) ) , yO = ( e , t , n ) => { let r = ( 2 << Math . log ( e . length - 1 ) / Math . LN2 ) - 1 , i = - ~ ( 1.6 * r * t / e . length ) ; return ( ) => { let o = "" ; for ( ; ; ) { let a = n ( i ) , u = i ; for ( ; u -- ; ) if ( o += e [ a [ u ] & r ] || "" , o . length === t ) return o } } } , nM = ( e , t ) => yO ( e , t , mO ) , rM = ( e = 21 ) => { let t = "" , n = crypto . getRandomValues ( new Uint8Array ( e ) ) ; for ( ; e -- ; ) { let r = n [ e ] & 63 ; r < 36 ? t += r . toString ( 36 ) : r < 62 ? t += ( r - 26 ) . toString ( 36 ) . toUpperCase ( ) : r < 63 ? t += "_" : t += "-" } return t } ; var iM = { nanoid : rM , customAlphabet : nM , customRandom : yO , urlAlphabet : tM , random : mO } , Gv = function ( t ) { if ( typeof t != "number" || isNaN ( t ) ) throw new TypeError ( "Expected a number, got " + typeof t ) ; var n = t < 0 , r = [ "B" , "KB" , "MB" , "GB" , "TB" , "PB" , "EB" , "ZB" , "YB" ] ; if ( n && ( t = - t ) , t < 1 ) return ( n ? "-" : "" ) + t + " B" ; var i = Math . min ( Math . floor ( Math . log ( t ) / Math . log ( 1024 ) ) , r . length - 1 ) ; t = Number ( t / Math . pow ( 1024 , i ) ) ; var o = r [ i ] ; return t >= 10 || t % 1 === 0 ? ( n ? "-" : "" ) + t . toFixed ( 0 ) + " " + o : ( n ? "-" : "" ) + t . toFixed ( 1 ) + " " + o } ; function bO ( e , t ) { this . text = e = e || "" , this . hasWild = ~ e . indexOf ( "*" ) , this . separator = t , this . parts = e . split ( t ) } bO . prototype . match = function ( e ) { var t = ! 0 , n = this . parts , r , i = n . length , o ; if ( typeof e == "string" || e instanceof String ) if ( ! this . hasWild && this . text != e ) t = ! 1 ; else { for ( o = ( e || "" ) . split ( this . separator ) , r = 0 ; t && r < i ; r ++ ) n [ r ] !== "*" && ( r < o . length ? t = n [ r ] === o [ r ] : t = ! 1 ) ; t = t && o } else if ( typeof e . splice == "function" ) for ( t = [ ] , r = e . length ; r -- ; ) this . match ( e [ r ] ) && ( t [ t . length ] = e [ r ] ) ; else if ( typeof e == "object" ) { t = { } ; for ( var a in e ) this . match ( a ) && ( t [ a ] = e [ a ] ) } return t } ; var oM = function ( e , t , n ) { var r = new bO ( e , n || /[\/\.]/ ) ; return typeof t < "u" ? r . match ( t ) : r } , aM = /[\/\+\.]/ , uM = function ( e , t ) { functi
id : $ { r [ o ] . id }
type : $ { r [ o ] . type } ` )}),r.length>0&&ne(this,fl)[fl](),i.length>0){let o= ` Multiple errors occurred while adding files :
` ;if(i.forEach(a=>{o+= `
* $ { a . message } ` }),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:o},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(i,o);{const a=new Error(o);throw a.errors=i,a}}}removeFiles(t,n){const{files:r,currentUploads:i}=this.getState(),o={...r},a={...i},u=Object.create(null);t.forEach(f=>{r[f]&&(u[f]=r[f],delete o[f])});function s(f){return u[f]===void 0}Object.keys(a).forEach(f=>{const d=i[f].fileIDs.filter(s);if(d.length===0){delete a[f];return}a[f]={...i[f],fileIDs:d}});const l={currentUploads:a,files:o};Object.keys(o).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log( ` Removed $ { c . length } files ` ):this.log( ` Removed files : $ { c . join ( ", " ) } ` )}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i={...t[r],isPaused:!0};t[r]=i}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const i={...t[r],isPaused:!1,error:null};t[r]=i}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(i=>t[i].error);if(n.forEach(i=>{const o={...t[i],isPaused:!1,error:null};t[i]=o}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ne(this,ni)[ni](n,{forceAllowNewUpload:!0});return ne(this,ri)[ri](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=ne(this,ni)[ni]([t],{forceAllowNewUpload:!0});return ne(this,ri)[ri](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id)){this.log( ` Not setting progress for a file that has been removed : $ { t . id } ` );return}const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const n=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(n.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const r=n.filter(l=>l.progress.bytesTotal!=null),i=n.filter(l=>l.progress.bytesTotal==null);if(r.length===0){const l=n.length*100,c=i.reduce((d,p)=>d+p.progress.percentage,0),f=Math.round(c/l*100);this.setState({totalProgress:f});return}let o=r.reduce((l,c)=>l+c.progress.bytesTotal,0);const a=o/r.length;o+=a*i.length;let u=0;r.forEach(l=>{u+=l.progress.bytesUploaded}),i.forEach(l=>{u+=a*(l.progress.percentage||0)/100});let s=o===0?0:Math.round(u/o*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){(typeof window.navigator.onLine<"u"?window.navigator.onLine:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,n){if(typeof t!="function"){const a= ` Expected a plugin class , but got $ { t === null ? "null" : typeof t } . Please verify that the plugin was impor
Uppy plugins must have unique \ ` id \` options. See https://uppy.io/docs/plugins/#id. ` ; throw new Error ( a ) } return t . VERSION && this . log ( ` Using ${ i } v ${ t . VERSION } ` ) , r . type in ne ( this , zt ) [ zt ] ? ne ( this , zt ) [ zt ] [ r . type ] . push ( r ) : ne ( this , zt ) [ zt ] [ r . type ] = [ r ] , r . install ( ) , this } getPlugin ( t ) { for ( const n of Object . values ( ne ( this , zt ) [ zt ] ) ) { const r = n . find ( i => i . id === t ) ; if ( r != null ) return r } } [ DO ] ( t ) { return ne ( this , zt ) [ zt ] [ t ] } iteratePlugins ( t ) { Object . values ( ne ( this , zt ) [ zt ] ) . flat ( 1 ) . forEach ( t ) } removePlugin ( t ) { this . log ( ` Removing plugin ${ t . id } ` ) , this . emit ( "plugin-remove" , t ) , t . uninstall && t . uninstall ( ) ; const n = ne ( this , zt ) [ zt ] [ t . type ] , r = n . findIndex ( a => a . id === t . id ) ; r !== - 1 && n . splice ( r , 1 ) ; const o = { plugins : { ... this . getState ( ) . plugins , [ t . id ] : void 0 } } ; this . setState ( o ) } close ( ) { this . log ( ` Closing Uppy instance ${ this . opts . id } : removing all files and uninstalling plugins ` ) , this . reset ( ) , ne ( this , sl ) [ sl ] ( ) , this . iteratePlugins ( t => { this . removePlugin ( t ) } ) , typeof window < "u" && window . removeEventListener && ( window . removeEventListener ( "online" , ne ( this , rr ) [ rr ] ) , window . removeEventListener ( "offline" , ne ( this , rr ) [ rr ] ) ) } hideInfo ( ) { const { info : t } = this . getState ( ) ; this . setState ( { info : t . slice ( 1 ) } ) , this . emit ( "info-hidden" ) } info ( t , n , r ) { n === void 0 && ( n = "info" ) , r === void 0 && ( r = 3e3 ) ; const i = typeof t == "object" ; this . setState ( { info : [ ... this . getState ( ) . info , { type : n , message : i ? t . message : t , details : i ? t . details : null } ] } ) , setTimeout ( ( ) => this . hideInfo ( ) , r ) , this . emit ( "info-visible" ) } log ( t , n ) { const { logger : r } = this . opts ; switch ( n ) { case "error" : r . error ( t ) ; break ; case "warning" : r . warn ( t ) ; break ; default : r . debug ( t ) ; break } } restore ( t ) { return this . log ( ` Core: attempting to restore upload " ${ t } " ` ) , this . getState ( ) . currentUploads [ t ] ? ne ( this , ri ) [ ri ] ( t ) : ( ne ( this , aa ) [ aa ] ( t ) , Promise . reject ( new Error ( "Nonexistent upload" ) ) ) } [ SO ] ( ) { return ne ( this , ni ) [ ni ] ( ... arguments ) } addResultData ( t , n ) { if ( ! ne ( this , Qv ) [ Qv ] ( t ) ) { this . log ( ` Not setting result for an upload that has been removed: ${ t } ` ) ; return } const { currentUploads : r } = this . getState ( ) , i = { ... r [ t ] , result : { ... r [ t ] . result , ... n } } ; this . setState ( { currentUploads : { ... r , [ t ] : i } } ) } upload ( ) { var t ; ( t = ne ( this , zt ) [ zt ] . uploader ) != null && t . length || this . log ( "No uploader type plugins are used" , "warning" ) ; let { files : n } = this . getState ( ) ; const r = this . opts . onBeforeUpload ( n ) ; return r === ! 1 ? Promise . reject ( new Error ( "Not starting the upload because onBeforeUpload returned false" ) ) : ( r && typeof r == "object" && ( n = r , this . setState ( { files : n } ) ) , Promise . resolve ( ) . then ( ( ) => { ne ( this , Xv ) [ Xv ] ( n ) , ne ( this , Jv ) [ Jv ] ( n ) } ) . catch ( i => { ne ( this , Tt ) [ Tt ] ( i ) } ) . then ( ( ) => { const { currentUploads : i } = this . getState ( ) , o = Object . values ( i ) . flatMap ( s => s . fileIDs ) , a = [ ] ; Object . keys ( n ) . forEach ( s => { const l = this . getFile ( s ) ; ! l . progress . uploadStarted && o . indexOf ( s ) === - 1 && a . push ( l . id ) } ) ; const u = ne ( this , ni ) [ ni ] ( a ) ; return ne ( this , ri ) [ ri ] ( u ) } ) . catch ( i => { ne ( this , Tt ) [ Tt ] ( i , { showInformer : ! 1 } ) } ) ) } } function xM ( e , t ) { t === void 0 && ( t = this . getFiles ( ) ) ; const { maxFileSize : n , minFileSize : r , maxTotalFileSize : i , maxNumberOfFiles : o , allowedFileTypes : a } = this . opts . restrictions ; if ( o && t . length + 1 > o ) throw new Tr ( ` ${ this . i18n ( "youCanOnlyUploadX" , { smart _count : o } )} ` ) ; if ( a && ! a . some ( s => s . indexOf ( "/" ) > - 1 ? e . type ? uM ( e . type . replace ( /;.*?$/ , "" ) , s ) : ! 1 : s [ 0 ] === "." && e . extension ? e . extension . toLowerCase ( ) === s . substr ( 1 ) . toLowerCase ( ) : ! 1 ) ) { const s = a . join ( ", " ) ; throw new Tr ( this . i18n ( "youCanOnlyUploadFileTypes" , { types : s } ) ) } if ( i && e . size != null ) { let u = 0 ; if ( u += e . size , t . forEach ( s => { u += s . size } ) , u > i ) throw new Tr ( this . i18n ( "exceedsSize" , { size : Gv ( i ) , file : e . name } ) ) } if ( n && e . size != null && e . size > n ) throw new Tr ( this . i18n ( "exceedsSize" , { size : Gv ( n ) , file : e . name } ) ) ; if ( r && e . size != null && e . size < r ) throw new Tr ( this . i18n ( "inferiorSize" , { size : Gv ( r ) } ) ) } function AM ( e ) { const { minNumberOfFiles : t } = this . opts . restrictions ; if ( Object . keys ( e ) . length < t ) throw new Tr ( ` ${ this . i18n ( "youHaveToAtLeastSelectX" , { smart _count : t } )} ` ) } function OM ( e ) { const { requiredMetaFields : t } = this . opts . restrictions , { hasOwnProperty : n } = Object . prototype , r = [ ] , i = [ ] ; for ( let o = 0 ; o < t . length ; o ++ ) if ( ! n . call ( e . meta , t [ o ] ) || e . meta [ t [ o ] ] === "" ) { const a = new Tr ( ` ${ this . i18n ( "missingRequiredMetaFieldOnFile" , { fileName : e . name } )} ` ) ; r . push ( a ) , i . push ( t [ o ] ) , ne ( this , Tt ) [ Tt ] ( a , { file : e , showInformer : ! 1 ,
* is - plain - object < https : //github.com/jonschlinkert/is-plain-object>
*
* Copyright ( c ) 2014 - 2017 , Jon Schlinkert .
* Released under the MIT License .
* / f u n c t i o n o 8 ( e ) { r e t u r n O b j e c t . p r o t o t y p e . t o S t r i n g . c a l l ( e ) = = = " [ o b j e c t O b j e c t ] " } a t ( { t a r g e t : " O b j e c t " , s t a t : ! 0 , f o r c e d : M H } , { k e y s : f u n c t i o n ( e ) { r e t u r n K u ( A o ( e ) ) } } ) ; v a r z H = { i s H i s t o r y ( e ) { r e t u r n o 8 ( t = e ) ! = = ! 1 & & ( ( n = t . c o n s t r u c t o r ) = = = v o i d 0 | | o 8 ( r = n . p r o t o t y p e ) ! = = ! 1 & & r . h a s O w n P r o p e r t y ( " i s P r o t o t y p e O f " ) ! = = ! 1 ) & & A r r a y . i s A r r a y ( e . r e d o s ) & & A r r a y . i s A r r a y ( e . u n d o s ) & & ( e . r e d o s . l e n g t h = = = 0 | | G i . i s O p e r a t i o n L i s t ( e . r e d o s [ 0 ] ) ) & & ( e . u n d o s . l e n g t h = = = 0 | | G i . i s O p e r a t i o n L i s t ( e . u n d o s [ 0 ] ) ) ; v a r t , n , r } } , c 1 = n e w W e a k M a p , f 1 = n e w W e a k M a p , H u = { i s H i s t o r y E d i t o r : e = > z H . i s H i s t o r y ( e . h i s t o r y ) & & E . i s E d i t o r ( e ) , i s M e r g i n g : e = > f 1 . g e t ( e ) , i s S a v i n g : e = > c 1 . g e t ( e ) , r e d o ( e ) { e . r e d o ( ) } , u n d o ( e ) { e . u n d o ( ) } , w i t h o u t M e r g i n g ( e , t ) { v a r n = H u . i s M e r g i n g ( e ) ; f 1 . s e t ( e , ! 1 ) , t ( ) , f 1 . s e t ( e , n ) } , w i t h o u t S a v i n g ( e , t ) { v a r n = H u . i s S a v i n g ( e ) ; c 1 . s e t ( e , ! 1 ) , t ( ) , c 1 . s e t ( e , n ) } } , H H = ( e , t ) = > e . t y p e = = = " s e t _ s e l e c t i o n " | | ! ( ! t | | e . t y p e ! = = " i n s e r t _ t e x t " | | t . t y p e ! = = " i n s e r t _ t e x t " | | e . o f f s e t ! = = t . o f f s e t + t . t e x t . l e n g t h | | ! _ . e q u a l s ( e . p a t h , t . p a t h ) ) | | ! ( ! t | | e . t y p e ! = = " r e m o v e _ t e x t " | | t . t y p e ! = = " r e m o v e _ t e x t " | | e . o f f s e t + e . t e x t . l e n g t h ! = = t . o f f s e t | | ! _ . e q u a l s ( e . p a t h , t . p a t h ) ) , U H = ( e , t ) = > e . t y p e ! = = " s e t _ s e l e c t i o n " | | e . p r o p e r t i e s ! = n u l l & & e . n e w P r o p e r t i e s ! = n u l l , V H = ( e , t ) = > ! ( ! t | | e . t y p e ! = = " s e t _ s e l e c t i o n " | | t . t y p e ! = = " s e t _ s e l e c t i o n " ) , W H = e = > e . t y p e ! = = " s e t _ s e l e c t i o n " , q H = U . S t r i n g , G e = f u n c t i o n ( e ) { i f ( r 0 ( e ) = = = " S y m b o l " ) t h r o w T y p e E r r o r ( " C a n n o t c o n v e r t a S y m b o l v a l u e t o a s t r i n g " ) ; r e t u r n q H ( e ) } , e w = f u n c t i o n ( ) { v a r e = m t ( t h i s ) , t = " " ; r e t u r n e . g l o b a l & & ( t + = " g " ) , e . i g n o r e C a s e & & ( t + = " i " ) , e . m u l t i l i n e & & ( t + = " m " ) , e . d o t A l l & & ( t + = " s " ) , e . u n i c o d e & & ( t + = " u " ) , e . s t i c k y & & ( t + = " y " ) , t } , G H = k s . P R O P E R , V 2 = R e g E x p . p r o t o t y p e , W O = V 2 . t o S t r i n g , K H = r e ( e w ) , Y H = j e ( f u n c t i o n ( ) { r e t u r n W O . c a l l ( { s o u r c e : " a " , f l a g s : " b " } ) ! = " / a / b " } ) , X H = G H & & W O . n a m e ! = " t o S t r i n g " ; ( Y H | | X H ) & & p n ( R e g E x p . p r o t o t y p e , " t o S t r i n g " , f u n c t i o n ( ) { v a r e = m t ( t h i s ) , t = G e ( e . s o u r c e ) , n = e . f l a g s ; r e t u r n " / " + t + " / " + G e ( n = = = v o i d 0 & & T a ( V 2 , e ) & & ! ( " f l a g s " i n V 2 ) ? K H ( e ) : n ) } , { u n s a f e : ! 0 } ) ; v a r j d , J H = N t ? O b j e c t . d e f i n e P r o p e r t i e s : f u n c t i o n ( e , t ) { m t ( e ) ; f o r ( v a r n , r = O o ( t ) , i = K u ( t ) , o = i . l e n g t h , a = 0 ; o > a ; ) g r . f ( e , n = i [ a + + ] , r [ n ] ) ; r e t u r n e } , W 2 = q a ( " d o c u m e n t " , " d o c u m e n t E l e m e n t " ) , q O = Z $ ( " I E _ P R O T O " ) , d 1 = f u n c t i o n ( ) { } , G O = f u n c t i o n ( e ) { r e t u r n " < s c r i p t > " + e + " < \ / s c r i p t > " } , a 8 = f u n c t i o n ( e ) { e . w r i t e ( G O ( " " ) ) , e . c l o s e ( ) ; v a r t = e . p a r e n t W i n d o w . O b j e c t ; r e t u r n e = n u l l , t } , N p = f u n c t i o n ( ) { t r y { j d = n e w A c t i v e X O b j e c t ( " h t m l f i l e " ) } c a t c h { } v a r e , t ; N p = t y p e o f d o c u m e n t < " u " ? d o c u m e n t . d o m a i n & & j d ? a 8 ( j d ) : ( ( t = X c ( " i f r a m e " ) ) . s t y l e . d i s p l a y = " n o n e " , W 2 . a p p e n d C h i l d ( t ) , t . s r c = S t r i n g ( " j a v a s c r i p t : " ) , ( e = t . c o n t e n t W i n d o w . d o c u m e n t ) . o p e n ( ) , e . w r i t e ( G O ( " d o c u m e n t . F = O b j e c t " ) ) , e . c l o s e ( ) , e . F ) : a 8 ( j d ) ; f o r ( v a r n = E h . l e n g t h ; n - - ; ) d e l e t e N p . p r o t o t y p e [ E h [ n ] ] ; r e t u r n N p ( ) } ; n 0 [ q O ] = ! 0 ; v a r a 0 = O b j e c t . c r e a t e | | f u n c t i o n ( e , t ) { v a r n ; r e t u r n e ! = = n u l l ? ( d 1 . p r o t o t y p e = m t ( e ) , n = n e w d 1 , d 1 . p r o t o t y p e = n u l l , n [ q O ] = e ) : n = N p ( ) , t = = = v o i d 0 ? n : J H ( n , t ) } , q 2 = s t ( " u n s c o p a b l e s " ) , G 2 = A r r a y . p r o t o t y p e ; G 2 [ q 2 ] = = n u l l & & g r . f ( G 2 , q 2 , { c o n f i g u r a b l e : ! 0 , v a l u e : a 0 ( n u l l ) } ) ; v a r x c = f u n c t i o n ( e ) { G 2 [ q 2 ] [ e ] = ! 0 } , Z H = H O . i n c l u d e s ; a t ( { t a r g e t : " A r r a y " , p r o t o : ! 0 } , { i n c l u d e s : f u n c t i o n ( e ) { r e t u r n Z H ( t h i s , e , a r g u m e n t s . l e n g t h > 1 ? a r g u m e n t s [ 1 ] : v o i d 0 ) } } ) , x c ( " i n c l u d e s " ) ; v a r Q H = s t ( " m a t c h " ) , t w = f u n c t i o n ( e ) { v a r t ; r e t u r n Y e ( e ) & & ( ( t = e [ Q H ] ) ! = = v o i d 0 ? ! ! t : l r ( e ) = = " R e g E x p " ) } , e U = U . T y p e E r r o r , n w = f u n c t i o n ( e ) { i f ( t w ( e ) ) t h r o w e U ( " T h e m e t h o d d o e s n ' t a c c e p t r e g u l a r e x p r e s s i o n s " ) ; r e t u r n e } , t U = s t ( " m a t c h " ) , r w = f u n c t i o n ( e ) { v a r t = / . / ; t r y { " / . / " [ e ] ( t ) } c a t c h { t r y { r e t u r n t [ t U ] = ! 1 , " / . / " [ e ] ( t ) } c a t c h { } } r e t u r n ! 1 } , n U = r e ( " " . i n d e x O f ) ; a t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : ! r w ( " i n c l u d e s " ) } , { i n c l u d e s : f u n c t i o n ( e ) { r e t u r n ! ! ~ n U ( G e ( X n ( t h i s ) ) , G e ( n w ( e ) ) , a r g u m e n t s . l e n g t h > 1 ? a r g u m e n t s [ 1 ] : v o i d 0 ) } } ) ; v a r u 8 , r U = / " / g , i U = r e ( " " . r e p l a c e ) ; a t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : ( u 8 = " a n c h o r " , j e ( f u n c t i o n ( ) { v a r e = " " [ u 8 ] ( ' " ' ) ; r e t u r n e ! = = e . t o L o w e r C a s e ( ) | | e . s p l i t ( ' " ' ) . l e n g t h > 3 } ) ) } , { a n c h o r : f u n c t i o n ( e ) { r e t u r n t = " a " , n = " n a m e " , r = e , i = G e ( X n ( t h i s ) ) , o = " < " + t , n ! = = " " & & ( o + = " " + n + ' = " ' + i U ( G e ( r ) , r U , " & q u o t ; " ) + ' " ' ) , o + " > " + i + " < / " + t + " > " ; v a r t , n , r , i , o } } ) ; v a r K 2 = f u n c t i o n ( e , t , n ) { v a r r , i ; m t ( e ) ; t r y { i f ( ! ( r = k a ( e , " r e t u r n " ) ) ) { i f ( t = = = " t h r o w " ) t h r o w n ; r e t u r n n } r = B e ( r , e ) } c a t c h ( o ) { i = ! 0 , r = o } i f ( t = = = " t h r o w " ) t h r o w n ; i f ( i ) t h r o w r ; r e t u r n m t ( r ) , n } , o U = f u n c t i o n ( e , t , n , r ) { t r y { r e t u r n r ? t ( m t ( n ) [ 0 ] , n [ 1 ] ) : t ( n ) } c a t c h ( i ) { K 2 ( e , " t h r o w " , i ) } } , m s = { } , a U = s t ( " i t e r a t o r " ) , u U = A r r a y . p r o t o t y p e , K O = f u n c t i o n ( e ) { r e t u r n e ! = = v o i d
` )&&e.flags==="s")}),MU=U.RegExp,cw=je(function(){var e=MU("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),zU=tn.get,HU=G $ ("native-string-replace",String.prototype.replace),Sh=RegExp.prototype.exec,Z2=Sh,UU=re("".charAt),VU=re("".indexOf),WU=re("".replace),h1=re("".slice),g1=function(){var e=/a/,t=/b*/g;return Be(Sh,e,"a"),Be(Sh,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),y8=s0.BROKEN_CARET,v1=/()??/.exec("")[1]!==void 0;(g1||v1||y8||lw||cw)&&(Z2=function(e){var t,n,r,i,o,a,u,s=this,l=zU(s),c=Ge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Be(Z2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=y8&&s.sticky,g=Be(ew,s),v=s.source,m=0,y=c;if(p&&(g=WU(g,"y",""),VU(g,"g")===-1&&(g+="g"),y=h1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&UU(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),v1&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),g1&&(r=s.lastIndex),i=Be(Sh,p?n:s,y),p?i?(i.input=h1(i.input,m),i[0]=h1(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:g1&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),v1&&i&&i.length>1&&Be(HU,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=a0(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var ef=Z2;at({target:"RegExp",proto:!0,forced:/./.exec!==ef},{exec:ef});var fw=Function.prototype,b8=fw.apply,qU=fw.bind, $ 8=fw.call,dw=typeof Reflect=="object"&&Reflect.apply||(qU? $ 8.bind(b8):function(){return $ 8.apply(b8,arguments)}),GU=st("species"),m1=RegExp.prototype,pw=function(e,t,n,r){var i=st(e),o=!je(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[GU]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=re(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var g=re(l),v=c.exec;return v===ef||v===m1.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});pn(String.prototype,e,s[0]),pn(m1,i,s[1])}r&&sr(m1[i],"sham",!0)},KU=ZO.charAt,hw=function(e,t,n){return t+(n?KU(e,t).length:1)},YU=Math.floor,y1=re("".charAt),XU=re("".replace),b1=re("".slice),JU=/ \$ ([ $ &' ` ] | \ d { 1 , 2 } | < [ ^ > ] * > ) / g , ZU = /\$([$&'`]|\d{1,2})/g , QU = function ( e , t , n , r , i , o ) { var a = n + e . length , u = r . length , s = ZU ; return i !== void 0 && ( i = Ao ( i ) , s = JU ) , XU ( o , s , function ( l , c ) { var f ; switch ( y1 ( c , 0 ) ) { case "$" : return "$" ; case "&" : return e ; case "`" : return b1 ( t , 0 , n ) ; case "'" : return b1 ( t , a ) ; case "<" : f = i [ b1 ( c , 1 , - 1 ) ] ; break ; default : var d = + c ; if ( d === 0 ) return l ; if ( d > u ) { var p = YU ( d / 10 ) ; return p === 0 ? l : p <= u ? r [ p - 1 ] === void 0 ? y1 ( c , 1 ) : r [ p - 1 ] + y1 ( c , 1 ) : l } f = r [ d - 1 ] } return f === void 0 ? "" : f } ) } , eV = U . TypeError , tf = function ( e , t ) { var n = e . exec ; if ( Ue ( n ) ) { var r = Be ( n , e , t ) ; return r !== null && mt ( r ) , r } if ( lr ( e ) === "RegExp" ) return Be ( ef , e , t ) ; throw eV ( "RegExp#exec called on incompatible receiver" ) } , Q2 = st ( "replace" ) , tV = Math . max , nV = Math . min , rV = re ( [ ] . concat ) , $1 = re ( [ ] . push ) , w8 = re ( "" . indexOf ) , E8 = re ( "" . slice ) , iV = "a" . replace ( /./ , "$0" ) === "$0" , C8 = ! ! /./ [ Q2 ] && /./ [ Q2 ] ( "a" , "$0" ) === "" ; pw ( "replace" , function ( e , t , n ) { var r = C8 ? "$" : "$0" ; return [ function ( i , o ) { var a = Xn ( this ) , u = i == null ? void 0 : ka ( i , Q2 ) ; return u ? Be ( u , i , a , o ) : Be ( t , Ge ( a ) , i , o ) } , function ( i , o ) { var a = mt ( this ) , u = Ge ( i ) ; if ( typeof o == "string" && w8 ( o , r ) === - 1 && w8 ( o , "$<" ) === - 1 ) { var s = n ( t , a , u , o ) ; if ( s . done ) return s . value } var l = Ue ( o ) ; l || ( o = Ge ( o ) ) ; var c = a . global ; if ( c ) { var f = a . unicode ; a . lastIndex = 0 } for ( var d = [ ] ; ; ) { var p = tf ( a , u ) ; if ( p === null || ( $1 ( d , p ) , ! c ) ) break ; Ge ( p [ 0 ] ) === "" && ( a . lastIndex = hw ( u , _s ( a . lastIndex ) , f ) ) } for ( var g , v = "" , m = 0 , y = 0 ; y < d . length ; y ++ ) { for ( var h = Ge ( ( p = d [ y ] ) [ 0 ] ) , $ = tV ( nV ( Uf ( p . index ) , u . length ) , 0 ) , w = [ ] , C = 1 ; C < p . length ; C ++ ) $1 ( w , ( g = p [ C ] ) === void 0 ? g : String ( g ) ) ; var D = p . groups ; if ( l ) { var A = rV ( [ h ] , w , $ , u ) ; D !== void 0 && $1 ( A , D ) ; var I = Ge ( dw ( o , void 0 , A ) ) } else I = QU ( h , u , $ , w , D , o ) ; $ >= m && ( v += E8 ( u , m , $ ) + I , m = $ + h . length ) } return v + E8 ( u , m ) } ] } , ! ! je ( function ( ) { var e = /./ ; return e . exec = function ( ) { var t = [ ] ; return t . groups = { a : "7" } , t } , "" . replace ( e , "$<a>" ) !== "7" } ) || ! iV || C8 ) ; / * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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 .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r e b = f u n c t i o n ( e , t ) { r e t u r n e b = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( n , r ) { n . _ _ p r o t o _ _ = r } | | f u n c t i o n ( n , r ) { f o r ( v a r i i n r ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( r , i ) & & ( n [ i ] = r [ i ] ) } , e b ( e , t ) } ; f u n c t i o n N s ( e , t ) { i f ( t y p e o f t ! = " f u n c t i o n " & & t ! = = n u l l ) t h r o w n e w T y p e E r r o r ( " C l a s s e x t e n d s v a l u e " + S t r i n g ( t ) + " i s n o t a c o n s t r u c t o r o r n u l l " ) ; f u n c t i o n n ( ) { t h i s . c o n s t r u c t o r = e } e b ( e , t ) , e . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( n . p r o t o t y p e = t . p r o t o t y p e , n e w n ) } v a r W n = f u n c t i o n ( ) { r e t u r n W n = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , n = 1 , r = a r g u m e n t s . l e n g t h ; n < r ; n + + ) f o r ( v a r i i n t = a r g u m e n t s [ n ] ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , i ) & & ( e [ i ] = t [ i ] ) ; r e t u r n e } , W n . a p p l y ( t h i s , a r g u m e n t s ) } ; f u n c t i o n z n ( e ) { v a r t = t y p e o f S y m b o l = = " f u n c t i o n " & & S y m b o l . i t e r a t o r , n = t & & e [ t ] , r = 0 ; i f ( n ) r e t u r n n . c a l l ( e ) ; i f ( e & & t y p e o f e . l e n g t h = = " n u m b e r " ) r e t u r n { n e x t : f u n c t i o n ( ) { r e t u r n e & & r > = e . l e n g t h & & ( e = v o i d 0 ) , { v a l u e : e & & e [ r + + ] , d o n e : ! e } } } ; t h r o w n e w T y p e E r r o r ( t ? " O b j e c t i s n o t i t e r a b l e . " : " S y m b o l . i t e r a t o r i s n o t d e f i n e d . " ) } f u n c t i o n O e ( e , t ) { v a r n = t y p e o f S y m b o l = = " f u n c t i o n " & & e [ S y m b o l . i t e r a t o r ] ; i f ( ! n ) r e t u r n e ; v a r r , i , o = n . c a l l ( e ) , a = [ ] ; t r y { f o r ( ; ( t = = = v o i d 0 | | t - - > 0 ) & & ! ( r = o . n e x t ( ) ) . d o n e ; ) a . p u s h ( r . v a l u e ) } c a t c h ( u ) { i = { e r r o r : u } } f i n a l l y { t r y { r & & ! r . d o n e & & ( n = o . r e t u r n ) & & n . c a l l ( o ) } f i n a l l y { i f ( i ) t h r o w i . e r r o r } } r e t u r n a } f u n c t i o n t b ( e , t ) { f o r ( v a r n = 0 , r = t . l e n g t h , i = e . l e n g t h ; n < r ; n + + , i + + ) e [ i ] = t [ n ] ; r e t u r n e } v a r o V = 0 , D 8 = f u n c t i o n ( ) { t h i s . i d = " " + o V + + } , a V = t n . s e t , u V = t n . g e t t e r F o r ( " A r r a y I t e r a t o r " ) , m c = u w ( A r r a y , " A r r a y " , f u n c t i o n ( e , t ) { a V ( t h i s , { t y p e : " A r r a y I t e r a t o r " , t a r g e t : O o ( e ) , i n d e x : 0 , k i n d : t } ) } , f u n c t i o n ( ) { v a r e = u V ( t h i s ) , t = e . t a r g e t , n = e . k i n d , r = e . i n d e x + + ; r e t u r n ! t | | r > = t . l e n g t h ? ( e . t a r g e t = v o i d 0 , { v a l u e : v o i d 0 , d o n e : ! 0 } ) : n = = " k e y s " ? { v a l u e : r , d o n e : ! 1 } : n = = " v a l u e s " ? { v a l u e : t [ r ] , d o n e : ! 1 } : { v a l u e : [ r , t [ r ] ] , d o n e : ! 1 } } , " v a l u e s " ) ; m s . A r g u m e n t s = m s . A r r a y , x c ( " k e y s " ) , x c ( " v a l u e s " ) , x c ( " e n t r i e s " ) ; v a r b s = f u n c t i o n ( e , t , n ) { f o r ( v a r r i n t ) p n ( e , r , t [ r ] , n ) ; r e t u r n e } , s V = U . A r r a y , l V = M a t h . m a x , n b = f u n c t i o n ( e , t , n ) { f o r ( v a r r = G a ( e ) , i = v s ( t , r ) , o = v s ( n = = = v o i d 0 ? r : n , r ) , a = s V ( l V ( o - i , 0 ) ) , u = 0 ; i < o ; i + + , u + + ) Q c ( a , u , e [ i ] ) ; r e t u r n a . l e n g t h = u , a } , S 8 = J c . f , x 8 = t y p e o f w i n d o w = = " o b j e c t " & & w i n d o w & & O b j e c t . g e t O w n P r o p e r t y N a m e s ? O b j e c t . g e t O w n P r o p e r t y N a m e s ( w i n d o w ) : [ ] , c V = { f : f u n c t i o n ( e ) { r e t u r n x 8 & & l r ( e ) = = " W i n d o w " ? f u n c t i o n ( t ) { t r y { r e t u r n S 8 ( t ) } c a t c h { r e t u r n n b ( x 8 ) } } ( e ) : S 8 ( O o ( e ) ) } } , A 8 = j e ( f u n c t i o n ( ) { i f ( t y p e o f A r r a y B u f f e r = = " f u n c t i o n " ) { v a r e = n e w A r r a y B u f f e r ( 8 ) ; O b j e c t . i s E x t e n s i b l e ( e ) & & O b j e c t . d e f i n e P r o p e r t y ( e , " a " , { v a l u e : 8 } ) } } ) , M d = O b j e c t . i s E x t e n s i b l e , u a = j e ( f u n c t i o n ( ) { M d ( 1 ) } ) | | A 8 ? f u n c t i o n ( e ) { r e t u r n ! ! Y e ( e ) & & ( ! A 8 | | l r ( e ) ! = " A r r a y B u f f e r " ) & & ( ! M d | | M d ( e ) ) } : M d , f V = ! j e ( f u n c t i o n ( ) { r e t u r n O b j e c t . i s E x t e n s i b l e ( O b j e c t . p r e v e n t E x t e n s i o n s ( { } ) ) } ) , l 0 = H f ( f u n c t i o n ( e ) { v a r t = g r . f , n = ! 1 , r = K $ ( " m e t a " ) , i = 0 , o = f u n c t i o n ( u ) { t ( u , r , { v a l u e : { o b j e c t I D : " O " + i + + , w e a k D a t a : { } } } ) } , a = e . e x p o r t s = { e n a b l e : f u n c t i o n ( ) { a . e n a b l e = f u n c t i o n ( ) { } , n = ! 0 ; v a r u = J c . f , s = r e ( [ ] . s p l i c e ) , l = { } ; l [ r ] = 1 , u ( l ) . l e n g t h & & ( J c . f = f u n c t i o n ( c ) { f o r ( v a r f = u ( c ) , d = 0 , p = f . l e n g t h ; d < p ; d + + ) i f ( f [ d ] = = = r ) { s ( f , d , 1 ) ; b r e a k } r e t u r n f } , a t ( { t a r g e t : " O b j e c t " , s t a t : ! 0 , f o r c e d : ! 0 } , { g e t O w n P r o p e r t y N a m e s : c V . f } ) ) } , f a s t K e y : f u n c t i o n ( u , s ) { i f ( ! Y e ( u ) ) r e t u r n t y p e o f u = = " s y m b o l " ? u : ( t y p e o f u = = " s t r i n g " ? " S " : " P " ) + u ; i f ( ! v t ( u , r ) ) { i f ( ! u a ( u ) ) r e t u r n " F " ; i f ( ! s ) r e t u r n " E " ; o ( u ) } r e t u r n u [ r ] . o b j e c t I D } , g e t W e a k D a t a : f u n c t i o n ( u , s ) { i f ( ! v t ( u , r ) ) { i f ( ! u a ( u ) ) r e t u r n ! 0 ; i f ( ! s ) r e t u r n ! 1 ; o ( u ) } r e t u r n u [ r ] . w e a k D a t a } , o n F r e e z e : f u n c t i o n ( u ) { r e t u r n f V & & n & & u a ( u ) & & ! v t ( u , r ) & & o ( u ) , u } } ; n 0 [ r ] = ! 0 } ) , d V = U . T y p e E r r o r , I p = f u n c t i o n ( e , t ) { t h i s . s t o p p e d = e , t h i s . r e s u l t = t } , O 8 = I p . p r o t o t y p e , n f = f u n c t i o n ( e , t , n ) { v a r r , i , o , a , u , s , l , c = n & & n . t h a t , f = ! ( ! n | | ! n . A S _ E N T R I E S ) , d = ! ( ! n | | ! n . I S _ I T E R A T O R ) , p = ! ( ! n | | ! n . I N T E R R U P T E D ) , g = _ a ( t , c ) , v = f u n c t i o n ( y ) { r e t u r n r & & K 2 ( r , " n o r m a l " , y ) , n e w I p ( ! 0 , y ) } , m = f u n c t i o n ( y ) { r e t u r n f ? ( m t ( y ) , p ? g ( y [ 0 ] , y [ 1 ] , v ) : g ( y [ 0 ] , y [ 1 ] ) ) : p ? g ( y , v ) : g ( y ) } ; i f ( d ) r = e ; e l s e { i f ( ! ( i = i w ( e ) ) ) t h r o w d V ( Q g ( e ) + " i s n o t i t e r a b l e " ) ; i f ( K O ( i ) ) { f o r ( o = 0 , a = G a ( e ) ; a > o ; o + + ) i f ( ( u = m ( e [ o ] ) ) & & T a ( O 8 , u ) ) r e t u r n u ; r e t u r n n e w I p ( ! 1 ) } r = Y O ( e , i ) } f o r ( s = r . n e x t ; ! ( l = B e ( s , r ) ) . d o n e ; ) { t r y { u = m ( l . v a l u e ) } c a t c h ( y ) { K 2 ( r , " t h r o w " , y ) } i f ( t y p e o f u = = " o b j e c t " & & u & & T a ( O 8 , u ) ) r e t u r n u } r e t u r n n e w I p ( ! 1 ) } , p V = U . T y p e E r r o r , c 0 = f u n c t i o n ( e , t ) { i f ( T a ( t , e ) ) r e t u r n e ; t h r o w p V ( " I n c o r r e c t i n v o
` )}return i};function cB(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;o==3?t(i,e):o!=1&&o!=9&&o!=11||cB(i,t)}}function M8(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Zi.ELEMENT_NODE?"":t.tagName.toLowerCase()}(function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(Zi||(Zi={})),globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var sb=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Ac=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox \/ (?:[0-7][0-9]|[0-8][0-6])(?: \. )).*/i.test(navigator.userAgent);var El=typeof navigator<"u"&&/Version \/ [ \d \. ]+.*Safari/.test(navigator.userAgent),xV=typeof navigator<"u"&&/Edge? \/ (?:[0-6][0-9]|[0-7][0-8])(?: \. )/i.test(navigator.userAgent),AV=typeof navigator<"u"&&/Chrome? \/ (?:[0-7][0-5]|[0-6][0-9])(?: \. )/i.test(navigator.userAgent),lb=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent);typeof navigator<"u"&&/.*QQBrowser/.test(navigator.userAgent);var Cl=!AV&&!xV&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",x={getWindow:function(e){var t=uB.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=jp.get(t);return n||(n=new D8,jp.set(t,n)),n},setNewKey:function(e){var t=new D8;jp.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i= $ s.get(r);if(i==null){if(E.isEditor(r))return n;break}var o=rf.get(r);if(o==null)break;n.unshift(o),r=i}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=x.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return $ s.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=x.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[x.findPath(e,t)[0]];return W.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=mw.get(e);else{var r=x.findKey(e,t);n=yw.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,o=i!==void 0&&i,a=x.toDOMNode(e,e);try{r=nr(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=R.isBackward(t),o=x.toDOMPoint(e,n),a=R.isCollapsed(t)?o:x.toDOMPoint(e,r),u=x.getWindow(e).document.createRange(),s=Oe(i?a:o,2),l=s[0],c=s[1],f=Oe(i?o:a,2),d=f[0],p=f[1],g=!!(nr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(nr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,g?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,i,o=Oe(E.node(e,t.path),1)[0],a=x.toDOMNode(e,o);E.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=zn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,g=f.getAttribute("data-slate-length"),v=s+(g==null?p:parseInt(g,10));if(t.offset<=v){i=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.err
` )))&&f--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=x.toSlateNode(e,c);return{path:x.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return E.hasPath(e,n.path)&&E.hasPath(e,r.path)},getNodeType:function(e){return te.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return W.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],i=E.nodes(e,{universal:!0});try{for(var o=zn(i),a=o.next();!a.done;a=o.next()){var u=Oe(a.value,1)[0];te.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Oe(E.nodes(e,{match:function(o){return n.checkNodeType(o,t)},universal:!0}),1),i=r[0];return i==null?null:i[0]},getSelectedTextNode:function(e){var t=Oe(E.nodes(e,{match:function(r){return X.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=Oe(E.nodes(e,{match:function(i){return i===t},universal:!0}),1),r=n[0];return r!=null&&Oe(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(E.isEnd(e,n.anchor,t)||E.isEnd(e,n.focus,t))},getTextarea:function(e){var t=rb.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return f0.get(e)||null},getHoverbar:function(e){return xh.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var i=n-e.getText().replace(/ \r | \n |( \r \n )/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,o=x.getTextarea(e). $ textArea,a=o==null?void 0:o[0].childNodes;if(a)try{for(var u=zn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(v){return!(!te.isElement(v)||e.isInline(v))},universal:!0});try{for(var f=zn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var g=p[0];cB(x.toDOMNode(e,g),function(v,m){var y=O(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||m.removeChild(v)})}}}catch(v){r={error:v}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=E.nodes(e,{match:function(u){return e.isVoid(u)}}),i=0;try{for(var o=zn(r),a=o.next();!a.done;a=o.next())a.value,i++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var n=x.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=E.node(e,t);if(n==null)return!1;var r=Oe(n,1)[0].children;return r.length===1&&r[0].text===""}},OV=1,fB={},of={};function BV(e,t){var n=e.key,r=e.factory,i=e.config,o=Wn(Wn({},i),t||{});if(of[n]!=null)throw new Error("Duplicated key '"+n+"' in menu items");of[n]=r,function(a,u){u!=null&&(fB[a]=u)}(n,o)}var z8=st("species"),ww=function(e){var t=qa(e),n=gr.f;Nt&&t&&!t[z8]&&n(t,z8,{configurable:!0,get:function(){return this}})},FV=gr.f,H8=l0.fastKey,U8=tn.set,x1=tn.getterFor,TV={getConstructor:function(e,t,n,r){var i=e(function(l,c){c0(l,o),U8(l,{type:t,index:a0(null),first:void 0,last:void 0,size:0}),Nt||(l.size=0),c!=null&&nf(c,l[r],{that:l,AS_ENTRIES:n})}),o=i.prototype,a=x1(t),u=function(l,c,f){var d,p,g=a(l),v=s(l,c);return v?v.value=f:(g.last=v={index:p=H8(c,!0),key:c,value:f,previous:d=g.last,next:void 0,removed:!1},g.first||(g.first=v),d&&(d.next=v),Nt?g.size++:l.s
\ v \ f \ r \ xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF ` ,V8=re("".replace),Ah="["+cb+"]",PV=RegExp("^"+Ah+Ah+"*"),NV=RegExp(Ah+Ah+"* $ "),A1=function(e){return function(t){var n=Ge(Xn(t));return 1&e&&(n=V8(n,PV,"")),2&e&&(n=V8(n,NV,"")),n}},IV={start:A1(1),end:A1(2),trim:A1(3)},RV=ks.PROPER,jV=IV.trim;at({target:"String",proto:!0,forced:function(e){return je(function(){return!!cb[e]()||" \u 200B \x 85 \u 180E"[e]()!==" \u 200B \x 85 \u 180E"||RV&&cb[e].name!==e})}("trim")},{trim:function(){return jV(this)}});var Ew=[];function LV(e){Ew.push(e)}var dB={};function MV(e){var t=e.type,n=e.elemToHtml;dB[t||""]=n}function zV(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function HV(e,t){var n=e.type,r=n===void 0?"":n,i=e.children,o=i===void 0?[]:i,a=E.isVoid(t,e),u="";a||(u=o.map(function(c){return AB(c,t)}).join(""));var s=function(c){return dB[c]||zV}(r),l=s(e,u,t);return a||Ew.forEach(function(c){return l=c(e,l)}),l}var af,cu,W8,O1,Oh=U.Promise,UV=U.TypeError,VV=st("species"),pB=function(e,t){var n,r=mt(e).constructor;return r===void 0||(n=mt(r)[VV])==null?t:function(i){if(o0(i))return i;throw UV(Qg(i)+" is not a constructor")}(n)},hB=re([].slice),gB=/(?:ipad|iphone|ipod).*applewebkit/i.test(Gu),Qi=lr(U.process)=="process",fb=U.setImmediate,db=U.clearImmediate,WV=U.process,B1=U.Dispatch,qV=U.Function,q8=U.MessageChannel,GV=U.String,F1=0,Oc={};try{af=U.location}catch{}var Cw=function(e){if(vt(Oc,e)){var t=Oc[e];delete Oc[e],t()}},T1=function(e){return function(){Cw(e)}},G8=function(e){Cw(e.data)},K8=function(e){U.postMessage(GV(e),af.protocol+"//"+af.host)};fb&&db||(fb=function(e){var t=hB(arguments,1);return Oc[++F1]=function(){dw(Ue(e)?e:qV(e),void 0,t)},cu(F1),F1},db=function(e){delete Oc[e]},Qi?cu=function(e){WV.nextTick(T1(e))}:B1&&B1.now?cu=function(e){B1.now(T1(e))}:q8&&!gB?(O1=(W8=new q8).port2,W8.port1.onmessage=G8,cu=_a(O1.postMessage,O1)):U.addEventListener&&Ue(U.postMessage)&&!U.importScripts&&af&&af.protocol!=="file:"&&!je(K8)?(cu=K8,U.addEventListener("message",G8,!1)):cu="onreadystatechange"in Xc("script")?function(e){W2.appendChild(Xc("script")).onreadystatechange=function(){W2.removeChild(this),Cw(e)}}:function(e){setTimeout(T1(e),0)});var Dl,ra,Bc,Iu,k1,_1,P1,Y8,vB={set:fb,clear:db},KV=/ipad|iphone|ipod/i.test(Gu)&&U.Pebble!==void 0,YV=/web0s(?!.*chrome)/i.test(Gu),XV=Vf.f,N1=vB.set,X8=U.MutationObserver||U.WebKitMutationObserver,J8=U.document,Z8=U.process,Wd=U.Promise,Q8=XV(U,"queueMicrotask"),mB=Q8&&Q8.value;mB||(Dl=function(){var e,t;for(Qi&&(e=Z8.domain)&&e.exit();ra;){t=ra.fn,ra=ra.next;try{t()}catch(n){throw ra?Iu():Bc=void 0,n}}Bc=void 0,e&&e.enter()},gB||Qi||YV||!X8||!J8?!KV&&Wd&&Wd.resolve?((P1=Wd.resolve(void 0)).constructor=Wd,Y8=_a(P1.then,P1),Iu=function(){Y8(Dl)}):Qi?Iu=function(){Z8.nextTick(Dl)}:(N1=_a(N1,U),Iu=function(){N1(Dl)}):(k1=!0,_1=J8.createTextNode(""),new X8(Dl).observe(_1,{characterData:!0}),Iu=function(){_1.data=k1=!k1}));var I1,eC,yB,tC,bB=mB||function(e){var t={fn:e,next:void 0};Bc&&(Bc.next=t),ra||(ra=t,Iu()),Bc=t},JV=function(e){var t,n;this.promise=new e(function(r,i){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=i}),this.resolve=mo(t),this.reject=mo(n)},Dw={f:function(e){return new JV(e)}},pb=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ZV=typeof window=="object", $ B=vB.set,QV=st("species"),xr="Promise",nC=tn.getterFor(xr),eW=tn.set,tW=tn.getterFor(xr),Zo=Oh&&Oh.prototype,kr=Oh,Sl=Zo,wB=U.TypeError,hb=U.document,Sw=U.process,Yu=Dw.f,nW=Yu,rW=!!(hb&&hb.createEvent&&U.dispatchEvent),EB=Ue(U.PromiseRejectionEvent),CB=!1,Fc=Zc(xr,function(){var e=t0(kr),t=e!==String(kr);if(!t&&Yc===66)return!0;if(Yc>=51&&/native code/.test(e))return!1;var n=new kr(function(i){i(1)}),r=function(i){i(function(){},function(){})};return(n.constructor={})[QV]=r,!(CB=n.then(function(){})instanceof r)||!t&&ZV&&!EB}),iW=Fc||!ow(function(e){kr.all(e).catch(function(){})}),DB=function(e){var t;return!(!Ye(e)||!Ue(t=e.then))&&t},xw=function(e,t){if(!e.notified){e.notifie
` )>=0)return;c&&(c=kB(c),cC(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(cC(u, `
` )||u.push({text: `
` }));var f=O(l);u.push(Ow(f,a))}}),u)}(e,t),r=function(o){for(var a in Bh)if(o[0].matches(a))return Bh[a];return xW}(e),i=r(e[0],n,t);return E.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/ \s +/gm," ")}]),Aw.forEach(function(o){i=o(e[0],i,t)})),i}function L1(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/ \s +/gm," ").replace(/<br>/g, `
` ));var n=e[0].textContent||"";n=function(i){return i.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g," \x AE").replace(/©/g," \x A9").replace(/™/g," \u 2122")}(n);var r={text:n=kB(n)};return Aw.forEach(function(i){r=i(e[0],r,t)}),r}function Ow(e,t){FB.forEach(function(r){var i=r.selector,o=r.preParseHtml;e[0].matches(i)&&(e=O(o(e[0])))});var n=M8(e);return n==="span"?e.attr("data-w-e-type")?j1(e,t):L1(e,t):n==="code"?M8(e.parent())==="pre"?j1(e,t):L1(e,t):BB.includes(n)?L1(e,t):j1(e,t)}function _B(e,t,n){var r=O(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function PB(e,t){t===void 0&&(t=""),t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/ \n /).map(function(r){return"<p>"+r+"</p>"}).join(""));var n=O("<div>"+t+"</div>");return Array.from(n.children()).map(function(r){return Ow(O(r),e)})}var AW=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]),OW=function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,o=t.deleteBackward;return t.insertText=function(a){t.getConfig().readOnly||r(a)},t.apply=function(a){var u,s,l,c,f,d,p,g,v=[];switch(a.type){case"insert_text":case"remove_text":case"set_node":try{for(var m=zn(E.levels(t,{at:a.path})),y=m.next();!y.done;y=m.next()){var h=Oe(y.value,2), $ =h[0],w=h[1],C=x.findKey(t, $ );v.push([w,C])}}catch(ee){u={error:ee}}finally{try{y&&!y.done&&(s=m.return)&&s.call(m)}finally{if(u)throw u.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var D=zn(E.levels(t,{at:_.parent(a.path)})),A=D.next();!A.done;A=D.next()){var I=Oe(A.value,2); $ =I[0],w=I[1],C=x.findKey(t, $ ),v.push([w,C])}}catch(ee){l={error:ee}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}break;case"move_node":try{for(var M=zn(E.levels(t,{at:_.common(_.parent(a.path),_.parent(a.newPath))})),V=M.next();!V.done;V=M.next()){var Y=Oe(V.value,2); $ =Y[0],w=Y[1],C=x.findKey(t, $ ),v.push([w,C])}}catch(ee){f={error:ee}}finally{try{V&&!V.done&&(d=M.return)&&d.call(M)}finally{if(f)throw f.error}}}i(a);try{for(var J=zn(v),Z=J.next();!Z.done;Z=J.next()){var se=Oe(Z.value,2);w=se[0],C=se[1], $ =Oe(E.node(t,w),1)[0],jp.set( $ ,C)}}catch(ee){p={error:ee}}finally{try{Z&&!Z.done&&(g=J.return)&&g.call(J)}finally{if(p)throw p.error}}},t.deleteBackward=function(a){if(a!=="line")return o(a);if(e.selection&&R.isCollapsed(e.selection)){var u=E.above(e,{match:function(f){return E.isBlock(e,f)},at:e.selection});if(u){var s=Oe(u,2)[1],l=E.range(e,s,e.selection.anchor),c=function(f,d){var p=E.range(f,R.end(d)),g=Array.from(E.positions(f,{at:d})),v=0,m=g.length,y=Math.floor(m/2);if(oC(f,E.range(f,g[v]),p))return E.range(f,g[v],p);if(g.length<2)return E.range(f,g[g.length-1],p);for(;y!==g.length&&y!==v;)oC(f,E.range(f,g[y]),p)?m=y:v=y,y=Math.floor((v+m)/2);return E.range(f,g[m],p)}(t,l);R.isCollapsed(c)||P.delete(e,{at:c})}}},t.onChange=function(){var a=t.selection;a!=null&&ub.set(t,a),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return AB(u,t)}).join("")},t.getText=function(){var a=t.children;return(a===void 0?[]:a).map(function(u){return W.string(u)}).join( `
` )},t.getSelectionText=function(){var a=t.selection;return a==null?"":E.string(e,a)},t.getElemsByType=function(a,u){var s,l;u===void 0&&(u=!1);var c=[],f=E.nodes(t,{at:[],universal:!0});try{for(var d=zn(f),p=d.next();!p.done;p=d.next()){var g=Oe(p.value,1)[0];if(te.isElement(g)&&(u?g.type.indexOf(a)>=0:g.type===a)){var v=OB(x.findKey(t,g).id);c.push(Wn(Wn({},g),{id:v}))}}}catch(m){s={error:m}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(s)throw s.error}}return c},t.getElemsByTypePrefix=function(a){return t.getElemsByType(a,!0)},t.isEmpty=function(){var a=t.children,u=a===void 0?[]:a;if(u.length>1)return!1;var s=u[0];if(s==null)return!0;if(te.isElement(s)&&s.type==="paragraph"){var l=s.children,c=l===void 0?[]:l;if(c.length>1)return!1;var f=c[0];if(f==null||X.isText(f)&&f.text==="")return!0}return!1},t.clear=function(){P.removeNodes(t,{at:{anchor:E.start(t,[]),focus:E.end(t,[])},mode:"highest"}),t.children.length===0&&P.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(a){return x.getParentNode(t,a)},t.dangerouslyInsertHtml=function(a,u){if(a===void 0&&(a=""),u===void 0&&(u=!1),a){var s=document.createElement("div");s.innerHTML=a;var l=Array.from(s.childNodes);if(l=l.filter(function(p){var g=p.nodeType,v=p.nodeName;return g===Zi.TEXT_NODE||g===Zi.ELEMENT_NODE&&!AW.has(v.toLowerCase())}),l.length!==0){var c=t.selection;if(c!=null){var f=null;x.isSelectedEmptyParagraph(t)&&!u&&(f=[c.focus.path[0]]),s.setAttribute("hidden","true"),document.body.appendChild(s);var d=0;l.forEach(function(p){var g=p.nodeType,v=p.nodeName,m=p.textContent,y=m===void 0?"":m;if(g!==Zi.TEXT_NODE)if(v!=="BR"){var h=p, $ =!1;if(BB.includes(v.toLowerCase())) $ =!0;else for(var w in Bh)if(h.matches(w)){ $ =!0;break}if( $ ){var C=Ow(O(h),t);return t.isInline(C)?(t.insertNode(C),C.type==="link"&&t.insertFragment([{text:""}])):P.insertNodes(t,C,{mode:"highest"}),d++,void(x.isSelectedVoidNode(t)&&t.move(1))}var D=window.getComputedStyle(h).display;x.isSelectedEmptyParagraph(t)||D.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(h.innerHTML,!0)}else t.insertText( `
` );else{if(!y||!y.trim())return;t.insertNode({text:y})}}),d&&f&&x.isEmptyPath(t,f)&&P.removeNodes(t,{at:f}),s.remove()}}}},t.setHtml=function(a){a===void 0&&(a="");var u=t.isDisabled(),s=t.isFocused(),l=JSON.stringify(t.selection);t.enable(),t.focus(),t.select([]),t.deleteFragment(),P.setNodes(t,{type:"paragraph"},{mode:"highest"});var c=PB(t,a);if(P.insertFragment(t,c),s||(t.deselect(),t.blur()),u&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(l))}catch{t.select(E.start(t,[]))}},t},BW=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var i=t.selection;if(i){var o=Oe(R.edges(i),2),a=o[0],u=o[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!R.isCollapsed(i)||s){var c=x.toDOMRange(t,i),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(C){C.textContent&&C.textContent.trim()!==""&&(d=C)}),l){var p=Oe(l,1)[0],g=c.cloneRange(),v=x.toDOMNode(t,p);g.setEndAfter(v),f=g.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(C){var D=C.getAttribute("data-slate-zero-width")==="n";C.textContent=D? `
` :""}),sB(d)){var m=d.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(d),f.appendChild(m),d=m}var y=t.getFragment(),h=JSON.stringify(y), $ =window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment", $ ),r.setData("application/x-slate-fragment", $ );var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),r.setData("text/html",w.innerHTML),r.setData("text/plain",SV(w)),f.ownerDocument.body.removeChild(w),r}}},t.insertData=function(r){var i,o,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/ \r \n | \r | \n /),d=!1;try{for(var p=zn(f),g=p.next();!g.done;g=p.next()){var v=g.value;d&&P.splitNodes(t,{always:!0}),n(v),d=!0}}catch(m){i={error:m}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}},t},yc=function(e){return e!=null},FW={object:!0,function:!0,undefined:!0},TW=function(e){if(!function(t){return!!yc(t)&&hasOwnProperty.call(FW,typeof t)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}},kW=/^ \s *class[ \s {/}]/,_W=Function.prototype.toString,fC=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!TW(t)}(e)&&!kW.test(_W.call(e))},Bw=function(e){return e!=null},PW=Object.keys,NW=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return PW(Bw(e)?Object(e):e)},IW=function(e){if(!Bw(e))throw new TypeError("Cannot use null or undefined");return e},RW=Math.max,dC=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,o=RW(arguments.length,2);for(e=Object(IW(e)),i=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<o;++r)NW(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},jW=Array.prototype.forEach,LW=Object.create,MW=function(e,t){var n;for(n in e)t[n]=e[n]},pC=function(e){var t=LW(null);return jW.call(arguments,function(n){Bw(n)&&MW(Object(n),t)}),t},M1="razdwatrzy",zW=String.prototype.indexOf,Al=typeof M1.contains=="function"&&M1.contains("dwa")===!0&&M1.contains("foo")===!1?String.prototype.contains:function(e){return zW.call(this,e,arguments[1])>-1},Gd=Hf(function(e){var t=e.exports=function(n,r){var i,o,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],yc(n)?(i=Al.call(n,"c"),o=Al.call(n,"e"),a=Al.call(n,"w")):(i=a=!0,o=!1),s={value:r,configurable:i,enumerable:o,writable:a},u?dC(pC(u),s):s};t.gs=function(n,r,i){var o,a,u,s;return typeof n!="string"?(u=i,i=r,r=n,n=null):u=arguments[3],yc(r)?fC(r)?yc(i)?fC(i)||(u=i,i=void 0):i=void 0:(u=r,r=i=void 0):r=void 0,yc(n)?(o=Al.call(n,"c"),a=Al.call(n,"e")):(o=!0,a=!1),s={get:r,set:i,configurable:o,enumerable:a},u?dC(pC(u),s):s}}),z1=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},HW=Hf(function(e,t){var n,r,i,o,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(m,y){var h;return z1(y),g.call(this,"__ee__")?h=this.__ee__:(h=v.value=f(null),d(this,"__ee__",v),v.value=null),h[m]?typeof h[m]=="object"?h[m].push(y):h[m]=[h[m],y]:h[m]=y,this},r=function(m,y){var h, $ ;return z1(y), $ =this,n.call(this,m,h=function(){i.call( $ ,m,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},i=function(m,y){var h, $ ,w,C;if(z1(y),!g.call(this,"__ee__"))return this;if(!(h=this.__ee__)[m])return this;if(typeof( $ =h[m])=="object")for(C=0;w= $ [C];++C)w!==y&&w.__eeOnceListener__!==y||( $ .length===2?h[m]= $ [C?0:1]: $ .splice(C,1));else $ !==y&& $ .__eeOnceListener__!==y||delete h[m]
` :e)}function U1(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),de("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e}," \u FEFF",t?de("br",null):null)}function iq(e,t,n){if(e.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=x.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw new Error("Can not get config.decorate");var o=x.findPath(n,e),a=i([e,o]),u=X.decorations(e,a),s=u.map(function(f,d){var p=function(g,v,m,y,h){v===void 0&&(v=!1);var $ =g.text,w=x.findPath(h,m),C=_.parent(w);if(E.isEditor(y))throw new Error("Text node "+JSON.stringify(m)+" parent is Editor");return h.isVoid(y)?U1(W.string(y).length): $ !==""||y.children[y.children.length-1]!==m||h.isInline(y)||E.string(h,C)!==""? $ ===""?U1():v&& $ .slice(-1)=== `
` ?yC( $ ,!0):yC( $ ):U1(0,!0)}(f,d===u.length-1,e,t,n);return p=function(g,v){var m=v;return _w.forEach(function(y){m=y(g,m)}),m}(f,p),de("span",{"data-slate-leaf":!0},p)}),l=function(f){return"w-e-text-"+f}(r.id),c=de("span",{"data-slate-node":"text",id:l,key:r.id},s);return Jn(function(){var f= $ w(l);f!=null&&(yw.set(r,f),p0.set(e,f),d0.set(f,e))}),c}function mb(e,t,n,r){return rf.set(e,t), $ s.set(e,n),te.isElement(e)?rq(e,r):iq(e,n,r)}function oq(e,t){var n,r=e. $ scroll,i=function(v){return"w-e-textarea-"+v}(e.id),o=t.getConfig(),a=o.readOnly,u=o.autoFocus,s=function(v,m){return m===void 0&&(m=!1),gs("div#"+v,{props:{contentEditable:!m}})}(i,a),l=t.children||[];s.children=l.map(function(v,m){var y=mb(v,m,t,t);return IB(y),y});var c=P8.get(e);if(c==null&&(c=!0),c){var f=function(v,m){return O( ` < div
id = "`+v+`"
data - slate - editor
data - slate - node = "value"
suppressContentEditableWarning
role = "textarea"
spellCheck = "true"
autoCorrect = "true"
autoCapitalize = "true"
> < / d i v > ` ) } ( i ) ; r . a p p e n d ( f ) , e . $ t e x t A r e a = f , n = f [ 0 ] , ( p = m j ( [ y j , C j , B j , b j , E j ] ) ) ( n , s ) , P 8 . s e t ( e , ! 1 ) , N 8 . s e t ( e , p ) } e l s e { v a r d = I 8 . g e t ( e ) , p = N 8 . g e t ( e ) ; i f ( d = = n u l l | | p = = n u l l ) r e t u r n ; n = d . e l m , p ( d , s ) } i f ( n ! = n u l l | | ( n = $ w ( i ) ) ! = n u l l ) { i f ( ( c ? u : t . i s F o c u s e d ( ) ) & & n . f o c u s ( { p r e v e n t S c r o l l : ! 0 } ) , c ) { v a r g = b w ( n ) ; g & & u B . s e t ( t , g ) } m w . s e t ( t , n ) , p 0 . s e t ( t , n ) , d 0 . s e t ( n , t ) , I 8 . s e t ( e , s ) } } f u n c t i o n b C ( e ) { r e t u r n t y p e o f e = = " o b j e c t " & & e ! = n u l l & & e . n o d e T y p e = = = 1 } f u n c t i o n $ C ( e , t ) { r e t u r n ( ! t | | e ! = = " h i d d e n " ) & & e ! = = " v i s i b l e " & & e ! = = " c l i p " } f u n c t i o n V 1 ( e , t ) { i f ( e . c l i e n t H e i g h t < e . s c r o l l H e i g h t | | e . c l i e n t W i d t h < e . s c r o l l W i d t h ) { v a r n = g e t C o m p u t e d S t y l e ( e , n u l l ) ; r e t u r n $ C ( n . o v e r f l o w Y , t ) | | $ C ( n . o v e r f l o w X , t ) | | f u n c t i o n ( r ) { v a r i = f u n c t i o n ( o ) { i f ( ! o . o w n e r D o c u m e n t | | ! o . o w n e r D o c u m e n t . d e f a u l t V i e w ) r e t u r n n u l l ; t r y { r e t u r n o . o w n e r D o c u m e n t . d e f a u l t V i e w . f r a m e E l e m e n t } c a t c h { r e t u r n n u l l } } ( r ) ; r e t u r n ! ! i & & ( i . c l i e n t H e i g h t < r . s c r o l l H e i g h t | | i . c l i e n t W i d t h < r . s c r o l l W i d t h ) } ( e ) } r e t u r n ! 1 } f u n c t i o n Y d ( e , t , n , r , i , o , a , u ) { r e t u r n o < e & & a > t | | o > e & & a < t ? 0 : o < = e & & u < = n | | a > = t & & u > = n ? o - e - r : a > t & & u < n | | o < e & & u > n ? a - t + i : 0 } f u n c t i o n w C ( e , t ) { v a r n = w i n d o w , r = t . s c r o l l M o d e , i = t . b l o c k , o = t . i n l i n e , a = t . b o u n d a r y , u = t . s k i p O v e r f l o w H i d d e n E l e m e n t s , s = t y p e o f a = = " f u n c t i o n " ? a : f u n c t i o n ( w e ) { r e t u r n w e ! = = a } ; i f ( ! b C ( e ) ) t h r o w n e w T y p e E r r o r ( " I n v a l i d t a r g e t " ) ; f o r ( v a r l = d o c u m e n t . s c r o l l i n g E l e m e n t | | d o c u m e n t . d o c u m e n t E l e m e n t , c = [ ] , f = e ; b C ( f ) & & s ( f ) ; ) { i f ( ( f = f . p a r e n t E l e m e n t ) = = = l ) { c . p u s h ( f ) ; b r e a k } f ! = n u l l & & f = = = d o c u m e n t . b o d y & & V 1 ( f ) & & ! V 1 ( d o c u m e n t . d o c u m e n t E l e m e n t ) | | f ! = n u l l & & V 1 ( f , u ) & & c . p u s h ( f ) } f o r ( v a r d = n . v i s u a l V i e w p o r t ? n . v i s u a l V i e w p o r t . w i d t h : i n n e r W i d t h , p = n . v i s u a l V i e w p o r t ? n . v i s u a l V i e w p o r t . h e i g h t : i n n e r H e i g h t , g = w i n d o w . s c r o l l X | | p a g e X O f f s e t , v = w i n d o w . s c r o l l Y | | p a g e Y O f f s e t , m = e . g e t B o u n d i n g C l i e n t R e c t ( ) , y = m . h e i g h t , h = m . w i d t h , $ = m . t o p , w = m . r i g h t , C = m . b o t t o m , D = m . l e f t , A = i = = = " s t a r t " | | i = = = " n e a r e s t " ? $ : i = = = " e n d " ? C : $ + y / 2 , I = o = = = " c e n t e r " ? D + h / 2 : o = = = " e n d " ? w : D , M = [ ] , V = 0 ; V < c . l e n g t h ; V + + ) { v a r Y = c [ V ] , J = Y . g e t B o u n d i n g C l i e n t R e c t ( ) , Z = J . h e i g h t , s e = J . w i d t h , e e = J . t o p , a e = J . r i g h t , f e = J . b o t t o m , _ e = J . l e f t ; i f ( r = = = " i f - n e e d e d " & & $ > = 0 & & D > = 0 & & C < = p & & w < = d & & $ > = e e & & C < = f e & & D > = _ e & & w < = a e ) r e t u r n M ; v a r v e = g e t C o m p u t e d S t y l e ( Y ) , i e = p a r s e I n t ( v e . b o r d e r L e f t W i d t h , 1 0 ) , I e = p a r s e I n t ( v e . b o r d e r T o p W i d t h , 1 0 ) , T = p a r s e I n t ( v e . b o r d e r R i g h t W i d t h , 1 0 ) , F = p a r s e I n t ( v e . b o r d e r B o t t o m W i d t h , 1 0 ) , k = 0 , N = 0 , H = " o f f s e t W i d t h " i n Y ? Y . o f f s e t W i d t h - Y . c l i e n t W i d t h - i e - T : 0 , j = " o f f s e t H e i g h t " i n Y ? Y . o f f s e t H e i g h t - Y . c l i e n t H e i g h t - I e - F : 0 ; i f ( l = = = Y ) k = i = = = " s t a r t " ? A : i = = = " e n d " ? A - p : i = = = " n e a r e s t " ? Y d ( v , v + p , p , I e , F , v + A , v + A + y , y ) : A - p / 2 , N = o = = = " s t a r t " ? I : o = = = " c e n t e r " ? I - d / 2 : o = = = " e n d " ? I - d : Y d ( g , g + d , d , i e , T , g + I , g + I + h , h ) , k = M a t h . m a x ( 0 , k + v ) , N = M a t h . m a x ( 0 , N + g ) ; e l s e { k = i = = = " s t a r t " ? A - e e - I e : i = = = " e n d " ? A - f e + F + j : i = = = " n e a r e s t " ? Y d ( e e , f e , Z , I e , F + j , A , A + y , y ) : A - ( e e + Z / 2 ) + j / 2 , N = o = = = " s t a r t " ? I - _ e - i e : o = = = " c e n t e r " ? I - ( _ e + s e / 2 ) + H / 2 : o = = = " e n d " ? I - a e + T + H : Y d ( _ e , a e , s e , i e , T + H , I , I + h , h ) ; v a r Q = Y . s c r o l l L e f t , c e = Y . s c r o l l T o p ; A + = c e - ( k = M a t h . m a x ( 0 , M a t h . m i n ( c e + k , Y . s c r o l l H e i g h t - Z + j ) ) ) , I + = Q - ( N = M a t h . m a x ( 0 , M a t h . m i n ( Q + N , Y . s c r o l l W i d t h - s e + H ) ) ) } M . p u s h ( { e l : Y , t o p : k , l e f t : N } ) } r e t u r n M } f u n c t i o n E C ( e ) { r e t u r n e = = = O b j e c t ( e ) & & O b j e c t . k e y s ( e ) . l e n g t h ! = = 0 } f u n c t i o n a q ( e , t ) { v a r n = ! e . o w n e r D o c u m e n t . d o c u m e n t E l e m e n t . c o n t a i n s ( e ) ; i f ( E C ( t ) & & t y p e o f t . b e h a v i o r = = " f u n c t i o n " ) r e t u r n t . b e h a v i o r ( n ? [ ] : w C ( e , t ) ) ; i f ( ! n ) { v a r r = f u n c t i o n ( i ) { r e t u r n i = = = ! 1 ? { b l o c k : " e n d " , i n l i n e : " n e a r e s t " } : E C ( i ) ? i : { b l o c k : " s t a r t " , i n l i n e : " n e a r e s t " } } ( t ) ; r e t u r n f u n c t i o n ( i , o ) { o = = = v o i d 0 & & ( o = " a u t o " ) ; v a r a = " s c r o l l B e h a v i o r " i n d o c u m e n t . b o d y . s t y l e ; i . f o r E a c h ( f u n c t i o n ( u ) { v a r s = u . e l , l = u . t o p , c = u . l e f t ; s . s c r o l l & & a ? s . s c r o l l ( { t o p : l , l e f t : c , b e h a v i o r : o } ) : ( s . s c r o l l T o p = l , s . s c r o l l L e f t = c ) } ) } ( w C ( e , r ) , r . b e h a v i o r ) } } f u n c t i o n j n ( e , t ) { r e t u r n P a ( t ) & & x . h a s D O M N o d e ( e , t , { e d i t a b l e : ! 0 } ) } f u n c t i o n C C ( e , t ) { i f ( e . g e t C o n f i g ( ) . r e a d O n l y ) r e t u r n ! 1 ; v a r n = j u ( e , t ) & & x . t o S l a t e N o d e ( e , t ) ; r e t u r n E . i s V o i d ( e , n ) } f u n c t i o n j u ( e , t ) { r e t u r n P a ( t ) & & x . h a s D O M N o d e ( e , t ) } f u n c t i o n j B ( e , t , n ) { n = = = v o i d 0 & & ( n = ! 1 ) ; v a r r = t . s e l e c t i o n , i = t . g e t C o n f i g ( ) , o = x . f i n d D o c u m e n t O r S h a d o w R o o t ( t ) . g e t S e l e c t i o n ( ) ; i f ( o & & ( ! e . i s C o m p o s i n g | | n ) & & t . i s F o c u s e d ( ) ) { v a r a = o . t y p e ! = = " N o n e " ; i f ( r | | a ) { v a r u = m w . g e t ( t ) , s = ! 1 ; i f ( u . c o n t a i n s ( o . a n c h o r N o d e ) & & u . c o n t a i n s ( o . f o c u s N o d e ) & & ( s = ! 0 ) , a & & s & & r ) { v a r l = x . t o S l a t e R a n g e ( t , o , { e x a c t M a t c h : ! 0 , s u p p r e s s T h r o w : ! 0 } ) ; i f ( l & & R . e q u a l s ( l , r ) ) { v a r c = ! 0 ; i f ( R . i s C o l l a p s e d ( r ) ) { v a r f = o . a n c h o r N o d e , d = o . a n c h o r O f f s e t ; i f ( f = = = u ) { v a r p = u . c h i l d N o d e s , g
` +r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}var Iw=function(){function e(t,n){var r=this;n===void 0&&(n=!1),this. $ elem=O('<div class="w-e-bar-item"></div>'),this. $ button=O('<button type="button"></button>'),this.disabled=!1,this.menu=t;var i=t.tag,o=t.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var a=t.title,u=t.hotkey,s=u===void 0?"":u,l=t.iconSvg,c=l===void 0?"":l,f=this. $ button;if(c){var d=O(c);Pw(d),f.append(d)}else f.text(a);MB(f,c,a,s,n),n&&c&&f.append(O('<span class="title">'+a+"</span>")),o&&f.css("width",o+"px"),this. $ elem.append(f),Jn(function(){return r.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this. $ button.on("click",function(n){n.preventDefault(),En(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=En(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=En(this),n=this. $ button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=En(this),n=this. $ button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var i="disabled";r?n.addClass(i):n.removeClass(i),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),pq=function(e){function t(n,r){return r===void 0&&(r=!1),e.call(this,n,r)||this}return Ns(t,e),t.prototype.onButtonClick=function(){},t}(Iw),Rw=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=ab.get(t);n==null&&(n=new Set,ab.set(t,n)),n.add(this),Rp.set(this,t)},e.prototype.renderContent=function(t){var n=this. $ elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this. $ elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this. $ elem.show(),this.isShow=!0;var t=Rp.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this. $ elem.hide(),this.isShow=!1;var t=Rp.get(this);t&&t.emit("modalOrPanelHide")}},e}(),hq=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r. $ elem=O('<div class="w-e-drop-panel"></div>'),r}return Ns(t,e),t.prototype.genSelfElem=function(){return null},t}(Rw),gq=function(e){function t(n,r){r===void 0&&(r=!1);var i=e.call(this,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var o=Nw();i. $ button.append(o)}return i}return Ns(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=En(this);if(this.dropPanel==null){var i=new hq(r),o=n.getPanelContentElem(r);i.renderContent(o),i.appendTo(this. $ elem),i.show(),this.dropPanel=i}else{var a=this.dropPanel;a.isShow?a.hide():(o=n.getPanelContentElem(r),a.renderContent(o),a.show())}var u=this.dropPanel;if(u.isShow){var s=this. $ elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u. $ elem.css({left:"none",right:"0"}):u. $ elem.css({left:"0",right:"none"})}}},t}(Iw),vq=function(e){function t(n,r){r===void 0&&(r=0);var i=e.call(this,n)||this;i.type="modal",i. $ elem=O('<div class="w-e-modal"></div>'),i.width=0,r&&(i.width=r);var o=i. $ elem;return o.on("click",function(a){return a.stopPropagation()}),o.on("keyup",function(a){a.code==="Escape"&&(i.hide(),n.restoreSelection())}),i}return Ns(t,e),t.prototype.genSelfElem=function(){var n=this,r=O('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),i=Rp.get(this);return r.on("click",function(){n.hide(),i==null||i.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,i=this. $ elem;i.attr("style",""),r&&i.css("width",r+"px"),i.css(n)},t}(Rw);function Cn(e,t,n){var r=O('<label class="babel-container"></label>');r.append("<span>"+e+
You has disabled editor scroll , please do this yourself ` ,void console.warn(w)}var C=O("#"+ $ );if(C.length!==0){var D=C[0];if(!x.hasDOMNode(h,D))return w="Element (found by id is '"+ $ +"') is not in editor DOM",w+= `
\u901A\u8FC7 id '`+$+"' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185 ",void console.error(w,D);var A=x.getTextarea(h),I=A.$textAreaContainer,M=A.$scroll,V=C.offset().top,Y=I.offset().top;M[0].scrollBy({top:V-Y,behavior:" smooth " } ) } } , h . showProgressBar = function ( $ ) { $ < 1 || x . getTextarea ( h ) . changeProgress ( $ ) } , h . hidePanelOrModal = function ( ) { var $ = ab . get ( h ) ; $ != null && $ . forEach ( function ( w ) { return w . hide ( ) } ) } , h . enable = function ( ) { h . getConfig ( ) . readOnly = ! 1 , h . updateView ( ) } , h . disable = function ( ) { h . getConfig ( ) . readOnly = ! 0 , h . updateView ( ) } , h . isDisabled = function ( ) { return h . getConfig ( ) . readOnly } , h . toDOMNode = function ( $ ) { return x . toDOMNode ( h , $ ) } , h . fullScreen = function ( ) { if ( ! h . isFullScreen ) { var $ = null , w = x . getToolbar ( h ) ; w && ( $ = w . $box ) ; var C = x . getTextarea ( h ) . $box . parent ( ) ; if ( $ && $ . parent ( ) [ 0 ] !== C [ 0 ] ) throw new Error ( ` Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
\u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4 ` );C.addClass("w-e-full-screen-container");var D=C.css("z-index");C.attr("data-z-index",D.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var $ =x.getTextarea(h). $ box.parent();setTimeout(function(){ $ .removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return x.getTextarea(h). $ textAreaContainer[0]},h}(BW(aN()))))))));if(n&&function(y,h){return _B(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=hO(fB), $ ={},w=y.MENU_CONF,C=w===void 0?{}:w;return R $ (h,function(D,A){ $ [A]=Wn(Wn({},D),C[A]||{})}),delete y.MENU_CONF,Wn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF: $ ,hoverbarKeys:{},customAlert:function(D,A){window.alert(A+ ` :
` +D)}},y)}(i);_8.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=PB(l,a)),o&&o.length&&(l.children=o),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),x.normalizeContent(l),n){var p=new dq(n);rb.set(l,p),ib.set(p,l),p.changeViewState(),Jn(function(){var y=p. $ scroll;y!=null&&y.height()<300&&console.warn( ` \u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300 px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
Textarea height < 300 px . This may be cause modal and hoverbar position error ` ,y)});var g=void 0;Object.keys(d).length>0&&(g=new wq,ob.set(g,l),xh.set(l,g)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return HB(y,h,l,l)});var v=c.onCreated,m=c.onDestroyed;return v&&l.on("created",function(){return v(l)}),m&&l.on("destroyed",function(){return m(l)}),Jn(function(){return l.emit("created")}),l}var Cq=u0("splice"),Dq=U.TypeError,Sq=Math.max,xq=Math.min;at({target:"Array",proto:!0,forced:!Cq},{splice:function(e,t){var n,r,i,o,a,u,s=Ao(this),l=Ga(s),c=vs(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=xq(Sq(Uf(t),0),l-c)),l+n-r>9007199254740991)throw Dq("Maximum allowed length exceeded");for(i=jO(s,r),o=0;o<r;o++)(a=c+o)in s&&Qc(i,o,s[a]);if(i.length=r,n<r){for(o=c;o<l-r;o++)u=o+n,(a=o+r)in s?s[u]=s[a]:delete s[u];for(o=l;o>l-r+n;o--)delete s[o-1]}else if(n>r)for(o=l-r;o>c;o--)u=o+n-1,(a=o+r-1)in s?s[u]=s[a]:delete s[u];for(o=0;o<n;o++)s[o+c]=arguments[o+2];return s.length=l-r+n,i}});var Aq=function(){function e(t,n){var r=this;this. $ toolbar=O('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=pO(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var i=O(t);if(i.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this. $ box=i;var o=this. $ toolbar;o.on("mousedown",function(a){return a.preventDefault()}),i.append(o),Jn(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,n="",r=this. $ toolbar,i=this.config,o=i.toolbarKeys,a=o===void 0?[]:o,u=i.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=i.excludeKeys,c=l===void 0?[]:l,f=hO(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(g,v){f.splice(s.index+v,0,g)}));var d=f.filter(function(g){if(typeof g=="string"){if(c.includes(g))return!1}else if(c.includes(g.key))return!1;return!0}),p=d.length;d.forEach(function(g,v){if(g==="|"){if(v===0||v+1===p||n==="|")return;var m=LB();return r.append(m),void(n=g)}if(typeof g=="string")return t.registerSingleItem(g,t),void(n=g);t.registerGroup(g),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this. $ toolbar,i=function(l){return new SC(l)}(t),o=t.menuKeys,a=o===void 0?[]:o,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,i)}),r.append(i. $ elem)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),i=n instanceof SC,o=this.menus,a=o[t];if(a==null){var u=of[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),o[t]=a}else console.warn("Duplicated toolbar menu key '"+t+ ` '
\u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '`+t+"' ");var s=zB(a,i);this.toolbarItems.push(s),vw.set(s,r),i?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=gw.get(this);if(t==null)throw new Error(" Can not get editor instance ");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();function Oq(e,t){if(e==null)throw new Error(" Cannot create toolbar , because editor is null ");var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(u,s){return _B(u," data - w - e - toolbar ",s)}(e,n))throw new Error(" Repeated create toolbar by selector '"+n+"' ");var o=Wn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new Aq(n,o);return gw.set(a,e),f0.set(e,a),a}var Bq=ks.EXISTS,Fq=gr.f,UB=Function.prototype,Tq=re(UB.toString),VB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,kq=re(VB.exec);function WB(e){var t=e.server,n=t===void 0?" ":t,r=e.fieldName,i=r===void 0?" ":r,o=e.maxFileSize,a=o===void 0?10485760:o,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,g=p===void 0?{}:p,v=e.withCredentials,m=v!==void 0&&v,y=e.timeout,h=y===void 0?1e4:y,$=e.onBeforeUpload,w=$===void 0?function(Z){return Z}:$,C=e.onSuccess,D=C===void 0?function(Z,se){}:C,A=e.onError,I=A===void 0?function(Z,se,ee){console.error(Z.name+" upload error " , se , ee ) } : A , M = e . onProgress , V = M === void 0 ? function ( Z ) { } : M ; if ( ! n ) throw new Error ( ` Cannot get upload server address
\u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740 ` );if(!i)throw new Error( ` Cannot get fieldName
\u6CA1\u6709\u914D\u7F6E fieldName ` );var Y=n;d&&(Y=function(Z,se){var ee=Oe(Z.split("#"),2),ae=ee[0],fe=ee[1],_e=[];R $ (se,function(ie,Ie){_e.push(Ie+"="+ie)});var ve=_e.join("&");return ae=ae.indexOf("?")>0?ae+"&"+ve:ae+"?"+ve,fe?ae+"#"+fe:ae}(Y,c));var J=new zf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(jz,{endpoint:Y,headers:g,formData:!0,fieldName:i,bundle:!0,withCredentials:m,timeout:h});return J.on("upload-success",function(Z,se){var ee=se.body,ae=ee===void 0?{}:ee;try{D(Z,ae)}catch(fe){console.error("wangEditor upload file - onSuccess error",fe)}J.removeFile(Z.id)}),J.on("progress",function(Z){Z<1||V(Z)}),J.on("error",function(Z){console.error("wangEditor file upload error",Z.stack)}),J.on("upload-error",function(Z,se,ee){try{I(Z,se,ee)}catch(ae){console.error("wangEditor upload file - onError error",ae)}J.removeFile(Z.id)}),J.on("restriction-failed",function(Z,se){try{I(Z,se)}catch(ee){console.error("wangEditor upload file - onError error",ee)}J.removeFile(Z.id)}),J}function eo(e){return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(e)}function _q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){_q(e,i,n[i])})}return e}function pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AC(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 hi(e,t,n){return t&&AC(e.prototype,t),n&&AC(e,n),e}function Na(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uf(e,t){if(t&&(eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Na(e)}function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ws(e)}function yb(e,t){return yb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},yb(e,t)}function h0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yb(e,t)}Nt&&!Bq&&Fq(UB,"name",{configurable:!0,get:function(){try{return kq(VB,Tq(this))[1]}catch{return""}}});var Pq={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)}},ui=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pi(this,e),this.init(t,n)}return hi(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Pq,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,
` )&&e.flags==="s")}),dK=ge.RegExp,pK=ut(function(){var e=dK("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),hK=xb.get,gK=Hw("native-string-replace",String.prototype.replace),jh=RegExp.prototype.exec,Ob=jh,vK=le("".charAt),mK=le("".indexOf),yK=le("".replace),Z1=le("".slice),Q1=(J1=/b*/g,pt(jh,ZC=/a/,"a"),pt(jh,J1,"a"),ZC.lastIndex!==0||J1.lastIndex!==0),QC=fF.BROKEN_CARET,em=/()??/.exec("")[1]!==void 0;(Q1||em||QC||fK||pK)&&(Ob=function(e){var t,n,r,i,o,a,u,s=this,l=hK(s),c=it(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=pt(Ob,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=QC&&s.sticky,g=pt(cF,s),v=s.source,m=0,y=c;if(p&&(g=yK(g,"y",""),mK(g,"g")===-1&&(g+="g"),y=Z1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&vK(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),em&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),Q1&&(r=s.lastIndex),i=pt(jh,p?n:s,y),p?i?(i.input=Z1(i.input,m),i[0]=Z1(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Q1&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),em&&i&&i.length>1&&pt(gK,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=hF(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var cf=Ob;_t({target:"RegExp",proto:!0,forced:/./.exec!==cf},{exec:cf});var e3=Function.prototype,eD=e3.apply,bK=e3.bind,tD=e3.call,gF=typeof Reflect=="object"&&Reflect.apply||(bK?tD.bind(eD):function(){return tD.apply(eD,arguments)}), $ K=kn("species"),tm=RegExp.prototype,t3=function(e,t,n,r){var i=kn(e),o=!ut(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!ut(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[ $ K]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=le(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var g=le(l),v=c.exec;return v===cf||v===tm.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});sf(String.prototype,e,s[0]),sf(tm,i,s[1])}r&&Es(tm[i],"sham",!0)},wK=le("".charAt),nD=le("".charCodeAt),EK=le("".slice),rD=function(e){return function(t,n){var r,i,o=it(Zn(t)),a=Ls(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=nD(o,a))<55296||r>56319||a+1===u||(i=nD(o,a+1))<56320||i>57343?e?wK(o,a):r:e?EK(o,a,a+2):i-56320+(r-55296<<10)+65536}},CK={codeAt:rD(!1),charAt:rD(!0)}.charAt,n3=function(e,t,n){return t+(n?CK(e,t).length:1)},DK=Math.floor,nm=le("".charAt),SK=le("".replace),rm=le("".slice),xK=/ \$ ([ $ &' ` ] | \ d { 1 , 2 } | < [ ^ > ] * > ) / g , AK = /\$([$&'`]|\d{1,2})/g , OK = function ( e , t , n , r , i , o ) { var a = n + e . length , u = r . length , s = AK ; return i !== void 0 && ( i = Gf ( i ) , s = xK ) , SK ( o , s , function ( l , c ) { var f ; switch ( nm ( c , 0 ) ) { case "$" : return "$" ; case "&" : return e ; case "`" : return rm ( t , 0 , n ) ; case "'" : return rm ( t , a ) ; case "<" : f = i [ rm ( c , 1 , - 1 ) ] ; break ; default : var d = + c ; if ( d === 0 ) return l ; if ( d > u ) { var p = DK ( d / 10 ) ; return p === 0 ? l : p <= u ? r [ p - 1 ] === void 0 ? nm ( c , 1 ) : r [ p - 1 ] + nm ( c , 1 ) : l } f = r [ d - 1 ] } return f === void 0 ? "" : f } ) } , BK = ge . TypeError , ff = function ( e , t ) { var n = e . exec ; if ( Ut ( n ) ) { var r = pt ( n , e , t ) ; return r !== null && On ( r ) , r } if ( to ( e ) === "RegExp" ) return pt ( cf , e , t ) ; throw BK ( "RegExp#exec called on incompatible receiver" ) } , Bb = kn ( "replace" ) , FK = Math . max , TK = Math . min , kK = le ( [ ] . concat ) , im = le ( [ ] . push ) , iD = le ( "" . indexOf ) , oD = le ( "" . slice ) , _K = "a" . replace ( /./ , "$0" ) === "$0" , aD = ! ! /./ [ Bb ] && /./ [ Bb ] ( "a" , "$0" ) === "" ; t3 ( "replace" , function ( e , t , n ) { var r = aD ? "$" : "$0" ; return [ function ( i , o ) { var a = Zn ( this ) , u = i == null ? void 0 : y0 ( i , Bb ) ; return u ? pt ( u , i , a , o ) : pt ( t , it ( a ) , i , o ) } , function ( i , o ) { var a = On ( this ) , u = it ( i ) ; if ( typeof o == "string" && iD ( o , r ) === - 1 && iD ( o , "$<" ) === - 1 ) { var s = n ( t , a , u , o ) ; if ( s . done ) return s . value } var l = Ut ( o ) ; l || ( o = it ( o ) ) ; var c = a . global ; if ( c ) { var f = a . unicode ; a . lastIndex = 0 } for ( var d = [ ] ; ; ) { var p = ff ( a , u ) ; if ( p === null || ( im ( d , p ) , ! c ) ) break ; it ( p [ 0 ] ) === "" && ( a . lastIndex = n3 ( u , Kf ( a . lastIndex ) , f ) ) } for ( var g , v = "" , m = 0 , y = 0 ; y < d . length ; y ++ ) { for ( var h = it ( ( p = d [ y ] ) [ 0 ] ) , $ = FK ( TK ( Ls ( p . index ) , u . length ) , 0 ) , w = [ ] , C = 1 ; C < p . length ; C ++ ) im ( w , ( g = p [ C ] ) === void 0 ? g : String ( g ) ) ; var D = p . groups ; if ( l ) { var A = kK ( [ h ] , w , $ , u ) ; D !== void 0 && im ( A , D ) ; var I = it ( gF ( o , void 0 , A ) ) } else I = OK ( h , u , $ , w , D , o ) ; $ >= m && ( v += oD ( u , m , $ ) + I , m = $ + h . length ) } return v + oD ( u , m ) } ] } , ! ! ut ( function ( ) { var e = /./ ; return e . exec = function ( ) { var t = [ ] ; return t . groups = { a : "7" } , t } , "" . replace ( e , "$<a>" ) !== "7" } ) || ! _K || aD ) ; var Fb = kn ( "unscopables" ) , Tb = Array . prototype ; Tb [ Fb ] == null && js . f ( Tb , Fb , { configurable : ! 0 , value : hF ( null ) } ) ; var vF = function ( e ) { Tb [ Fb ] [ e ] = ! 0 } , PK = w0 . find , uD = ! 0 ; "find" in [ ] && Array ( 1 ) . find ( function ( ) { uD = ! 1 } ) , _t ( { target : "Array" , proto : ! 0 , forced : uD } , { find : function ( e ) { return PK ( this , e , arguments . length > 1 ? arguments [ 1 ] : void 0 ) } } ) , vF ( "find" ) ; var NK = kn ( "match" ) , mF = function ( e ) { var t ; return Hn ( e ) && ( ( t = e [ NK ] ) !== void 0 ? ! ! t : to ( e ) == "RegExp" ) } , IK = ge . TypeError , RK = kn ( "species" ) , jK = function ( e , t ) { var n , r = On ( e ) . constructor ; return r === void 0 || ( n = On ( r ) [ RK ] ) == null ? t : function ( i ) { if ( Jw ( i ) ) return i ; throw IK ( ZB ( i ) + " is not a constructor"
\ v \ f \ r \ xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF ` ,lD=le("".replace),Lh="["+kb+"]",UK=RegExp("^"+Lh+Lh+"*"),VK=RegExp(Lh+Lh+"* $ "),om=function(e){return function(t){var n=it(Zn(t));return 1&e&&(n=lD(n,UK,"")),2&e&&(n=lD(n,VK,"")),n}},WK={start:om(1),end:om(2),trim:om(3)},qK=b0.PROPER,GK=WK.trim;function r3(e){return O("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function Ms(e){return e.length===0?"":e[0].outerHTML}function zs(e){return e.length?e[0].tagName.toLowerCase():""}function cr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}_t({target:"String",proto:!0,forced:(_l="trim",ut(function(){return!!kb[_l]()||" \u 200B \x 85 \u 180E"[_l]()!==" \u 200B \x 85 \u 180E"||qK&&kb[_l].name!==_l}))},{trim:function(){return GK(this)}}),_t({global:!0},{globalThis:ge}),fh&&(O.fn.css=fh),zr&&(O.fn.append=zr),i6&&(O.fn.prepend=i6),as&&(O.fn.addClass=as),us&&(O.fn.removeClass=us),ss&&(O.fn.hasClass=ss),Mr&&(O.fn.on=Mr),e6&&(O.fn.off=e6),vo&&(O.fn.focus=vo),jr&&(O.fn.attr=jr),uh&&(O.fn.removeAttr=uh),cs&&(O.fn.hide=cs),ch&&(O.fn.show=ch),gh&&(O.fn.parents=gh),ls&&(O.fn.dataset=ls),Lr&&(O.fn.val=Lr),ph&&(O.fn.text=ph),go&&(O.fn.html=go),ds&&(O.fn.children=ds),ps&&(O.fn.remove=ps),fs&&(O.fn.find=fs),sh&&(O.fn.width=sh),lh&&(O.fn.height=lh),n6&&(O.fn.filter=n6),hs&&(O.fn.empty=hs);var KK={selector:"p",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return!!X.isText(i)||!!n.isInline(i)})).length===0&&(t=[{text:r.text().replace(/ \s +/gm," ")}]),{type:"paragraph",children:t}}},_b=function(e,t){return _b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},_b(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 tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_b(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var bo=function(){return bo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bo.apply(this,arguments)};function Bo(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(l){try{s(r.next(l))}catch(c){o(c)}}function u(l){try{s(r.throw(l))}catch(c){o(c)}}function s(l){var c;l.done?i(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(e,t||[])).next())})}function Fo(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function $F(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ke(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function cD(e){var t=ke(E.nodes(e,{match:function(a){return e.children[0]===a},mode:"highest"}),1),n=t[0];if(n==null)return!1;var r=n[0];if(!te.isElement(r)||r.type==="paragraph"||W.string(r)!=="")return!1;var i=r.children,o=i===void 0?[]:i;return!!X.isText(o[0])&&(P.setNodes(e,{type:"paragraph"}),!0)}var YK={renderElems:[Jq],elemsToHtml:[Zq],parseElemsHtml:[KK],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(i){cD(r)||t(i)},r.deleteForward=function(i){cD(r)||n(i)},r}},XK=/ "/g,JK=le(" ".replace),bc=function(e,t,n,r){var i=it(Zn(e)),o=" < "+t;return n!==" "&&(o+=" "+n+'=" '+JK(it(r),XK,""")+' "'),o+" > "+i+" < / " + t + " > " } , $ c = f u n c t i o n ( e ) { r e t u r n u t ( f u n c t i o n ( ) { v a r t = " " [ e ] ( ' " ' ) ; r e t u r n t ! = = t . t o L o w e r C a s e ( ) | | t . s p l i t ( ' " ' ) . l e n g t h > 3 } ) } ; f u n c t i o n a m ( e , t ) { v a r n = t , r = e , i = r . b o l d , o = r . i t a l i c , a = r . u n d e r l i n e ; r e t u r n i & & ( n = " < s t r o n g > " + n + " < / s t r o n g > " ) , r . c o d e & & ( n = " < c o d e > " + n + " < / c o d e > " ) , o & & ( n = " < e m > " + n + " < / e m > " ) , a & & ( n = " < u > " + n + " < / u > " ) , r . t h r o u g h & & ( n = " < s > " + n + " < / s > " ) , r . s u b & & ( n = " < s u b > " + n + " < / s u b > " ) , r . s u p & & ( n = " < s u p > " + n + " < / s u p > " ) , n } f u n c t i o n U o ( e , t ) { r e t u r n e . l e n g t h ! = = 0 & & ( ! ! e [ 0 ] . m a t c h e s ( t ) | | e . f i n d ( t ) . l e n g t h > 0 ) } _ t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : $ c ( " b o l d " ) } , { b o l d : f u n c t i o n ( ) { r e t u r n b c ( t h i s , " b " , " " , " " ) } } ) , _ t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : $ c ( " i t a l i c s " ) } , { i t a l i c s : f u n c t i o n ( ) { r e t u r n b c ( t h i s , " i " , " " , " " ) } } ) , _ t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : $ c ( " s u b " ) } , { s u b : f u n c t i o n ( ) { r e t u r n b c ( t h i s , " s u b " , " " , " " ) } } ) , _ t ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : $ c ( " s u p " ) } , { s u p : f u n c t i o n ( ) { r e t u r n b c ( t h i s , " s u p " , " " , " " ) } } ) ; v a r f D = { C S S R u l e L i s t : 0 , C S S S t y l e D e c l a r a t i o n : 0 , C S S V a l u e L i s t : 0 , C l i e n t R e c t L i
< li data - value = "0" class = "clear" >
< svg viewBox = "0 0 1024 1024" > < path d = "M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z" > < / p a t h > < / s v g >
` +u+ `
< / l i >
` );return i.prepend(s),i[0]},e}(),nX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("color.color"),n.iconSvg=aY,n.mark="color",n}return tt(t,e),t}(kF),rX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("color.bgColor"),n.iconSvg=uY,n.mark="bgColor",n}return tt(t,e),t}(kF),mD=["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)"],iX={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&Ia(o,{color:r}),i&&Ia(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!X.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((r3(t)||zs(n=O(t))!=="span")&&(n=O("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),Ms(n)):t},preParseHtml:[tX],parseStyleHtml:function(e,t,n){var r=O(e);if(!X.isText(t))return t;var i=t,o=cr(r,"color");o&&(i.color=o);var a=cr(r,"background-color");return a||(a=cr(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new nX},config:{colors:mD}},{key:"bgColor",factory:function(){return new rX},config:{colors:mD}}]},oX=function(e){if(typeof e!="string")return!1;var t=e.match(aX);if(!t)return!1;var n=t[1];return n?!!(uX.test(n)||sX.test(n)):!1},aX=/^(?: \w +:)? \/ \/ ( \S +) $ /,uX=/^localhost[ \: ? \d ]*(?:[^ \: ? \d ] \S *)? $ /,sX=/^[^ \s \. ]+ \. \S {2,} $ /,lX=iF.includes;function E0(e){return e===void 0&&(e="r"),e+"-"+U9()}function i3(e){return e.replace(/</g,"<").replace(/>/g,">")}function _F(e,t,n,r){return Bo(this,void 0,void 0,function(){var i,o;return Fo(this,function(a){switch(a.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(o=a.sent())=="string")return t.alert(o,"error"),[2,!1];if(o==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function PF(e,t,n){return Bo(this,void 0,void 0,function(){var r;return Fo(this,function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}})})}function o3(e){return e.selection==null||!!x.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function fm(e,t){return{type:"link",url:i3(e),children:t?[{text:t}]:[]}}function NF(e,t,n){return Bo(this,void 0,void 0,function(){var r,i,o;return Fo(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),o3(e)?[2]:[4,_F("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,PF("insertLink",e,n)]:[2];case 2:return r=a.sent(),(i=e.selection)==null?[2]:(R.isCollapsed(i)?(e.insertText(" "),o=fm(r,t),P.insertNodes(e,o),e.insertFragment([{text:" "}])):E.string(e,i)!==t?(e.deleteFragment(),o=fm(r,t),P.insertNodes(e,o)):(o=fm(r),P.wrapNodes(e,o,{split:!0}),P.collapse(e,{edge:"end"})),[2])}})})
` )return e.deleteBackward("character"),void P.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n( `
` )},r}},KX=function(){function e(){this.title=q("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this. $ content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!ke(E.nodes(t,{match:function(n){return x.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this. $ content==null){var n=O('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(o){var a=o.target;if(a!=null){o.preventDefault();var u=O(a).text();t.insertText(u)}}),this. $ content=n}var r=this. $ content;if(r==null)return document.createElement("ul");r.empty();var i=t.getMenuConfig("emotion").emotions;return(i===void 0?[]:i).forEach(function(o){var a=O("<li>"+o+"</li>");r.append(a)}),r[0]},e}(),YX={menus:[{key:"emotion",factory:function(){return new KX},config:{emotions:" \u {1F600} \u {1F603} \u {1F604} \u {1F601} \u {1F606} \u {1F605} \u {1F602} \u {1F923} \u {1F60A} \u {1F607} \u {1F642} \u {1F643} \u {1F609} \u {1F60C} \u {1F60D} \u {1F618} \u {1F617} \u {1F619} \u {1F61A} \u {1F60B} \u {1F61B} \u {1F61D} \u {1F61C} \u {1F913} \u {1F60E} \u {1F60F} \u {1F612} \u {1F61E} \u {1F614} \u {1F61F} \u {1F615} \u {1F641} \u {1F623} \u {1F616} \u {1F62B} \u {1F629} \u {1F622} \u {1F62D} \u {1F624} \u {1F620} \u {1F621} \u {1F633} \u {1F631} \u {1F628} \u {1F917} \u {1F914} \u {1F636} \u {1F611} \u {1F62C} \u {1F644} \u {1F62F} \u {1F634} \u {1F637} \u {1F911} \u {1F608} \u {1F921} \u {1F4A9} \u {1F47B} \u {1F480} \u {1F440} \u {1F463} \u {1F450} \u {1F64C} \u {1F44F} \u {1F91D} \u {1F44D} \u {1F44E} \u {1F44A} \u 270A \u {1F91B} \u {1F91C} \u {1F91E} \u 270C \u FE0F \u {1F918} \u {1F44C} \u {1F448} \u {1F449} \u {1F446} \u {1F447} \u 261D \u FE0F \u 270B \u {1F91A} \u {1F590} \u {1F596} \u {1F44B} \u {1F919} \u {1F4AA} \u {1F595} \u 270D \u FE0F \u {1F64F}".split(" ")}}]},XX={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},JX={selector:"font",preParseHtml:function(e){var t=O(e);if(zs(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",XX[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},ZX=le("".indexOf);_t({target:"String",proto:!0,forced:!OF("includes")},{includes:function(e){return!!~ZX(it(Zn(this)),it(AF(e)),arguments.length>1?arguments[1]:void 0)}});var Ti,zp,zF=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!ke(E.nodes(t,{match:function(n){return x.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),QX=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=q("fontSize.title"),n.iconSvg=sY,n.mark="fontSize",n}return tt(t,e),t.prototype.getOptions=function(n){var r=[],i=n.getMenuConfig(this.mark).fontSizeList,o=i===void 0?[]:i;r.push({text:q("fontSize.default"),value:""}),o.forEach(function(u){r.push({text:u,value:u})});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},t}(zF),tp=function(e){return e&&e.Math==Math&&e},Ee=tp(typeof globalThis=="object"&&globalThis)||tp(typeof window=="object"&&window)||tp(typeof self=="object"&&sel
` ).map(function(o){return{type:"paragraph",children:[{text:o}]}});P.insertNodes(t,i,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,i,o=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u= $ F(a),s=u.next();!s.done;s=u.next()){var l=ke(s.value,1)[0];l&&o.push(W.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}P.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:o.join( `
` )}]}]};P.insertNodes(t,c,{mode:"highest"})},e}(),vQ={key:"codeBlock",factory:function(){return new gQ}};_t({target:"String",proto:!0,forced: $ c("anchor")},{anchor:function(e){return bc(this,"a","name",e)}}),t3("match",function(e,t,n){return[function(r){var i=Zn(this),o=r==null?void 0:y0(r,e);return o?pt(o,r,i):new RegExp(r)[e](it(i))},function(r){var i=On(this),o=it(r),a=n(t,i,o);if(a.done)return a.value;if(!i.global)return ff(i,o);var u=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;(s=ff(i,o))!==null;){var f=it(s[0]);l[c]=f,f===""&&(i.lastIndex=n3(o,Kf(i.lastIndex),u)),c++}return c===0?null:l}]});var mQ={type:"pre",renderElem:function(e,t,n){return de("pre",null,t)}},yQ={type:"code",renderElem:function(e,t,n){return de("code",null,t)}},bQ={selector:"pre",parseElemHtml:function(e,t,n){var r=O(e);return(t=t.filter(function(i){return x.getNodeType(i)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(i){return x.getNodeType(i)==="code"})}}}, $ Q={menus:[vQ],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var o=x.getSelectedNodeByType(i,"code");if(o!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=W.string(l),p=f.anchor.offset,g=d.slice(0,p).split( `
` ),v=g.length;return v===0?"":g[v-1]}(o,i);if(a){var u=a.match(/^ \s +/);if(u!=null&&u[0]!=null){var s=u[0];return void i.insertText( `
` +s)}}i.insertText( `
` )}else t()},i.normalizeNode=function(o){var a=ke(o,2),u=a[0],s=a[1],l=x.getNodeType(u);return l==="code"&&s.length<=1&&P.setNodes(i,{type:"paragraph"},{at:s}),l==="pre"&&(x.isLastNode(i,u)&&P.insertNodes(i,x.genEmptyParagraph(),{at:[s[0]+1]}),x.getNodeType(u.children[0])!=="code"&&(P.unwrapNodes(i),P.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([u,s])},i.insertData=function(o){if(x.getSelectedNodeByType(i,"code")!=null){var a=o.getData("text/plain");E.insertText(i,a)}else r(o)},i},renderElems:[mQ,yQ],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=O(e);if(zs(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:O(e)[0].textContent||""}]}}},bQ]},wQ=function(){function e(){this.title=q("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),EQ={menus:[{key:"fullScreen",factory:function(){return new wQ}}]},CQ=function(){function e(){this.title=q("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!R.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var i=[r.anchor.path[0]];P.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:i}),t.select(E.start(t,i))}},e}(),DQ=[xY,iX,WZ,YZ,eQ,nQ,_X,cQ,YX,mX, $ Q,GX,QY,YK,RX,oQ,EQ,{menus:[{key:"enter",factory:function(){return new CQ}}]}];gn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),gn("zh-CN",{listModule:{unOrderedList:" \u 65E0 \u 5E8F \u 5217 \u 8868",orderedList:" \u 6709 \u 5E8F \u 5217 \u 8868"}});var oS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $ T(e){var t={exports:{}};return e(t,t.exports),t.exports}var _i,Up,op=function(e){return e&&e.Math==Math&&e},Ae=op(typeof globalThis=="object"&&globalThis)||op(typeof window=="object"&&window)||op(typeof self=="object"&&self)||op(typeof oS=="object"&&oS)||function(){return this}()||Function("return th
` )&&e.flags==="s")}),Jee=Ae.RegExp,Zee=Wt(function(){var e=Jee("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),Qee=Qb.get,ete= $ 3("native-string-replace",String.prototype.replace),tg=RegExp.prototype.exec,i4=tg,tte=Ne("".charAt),nte=Ne("".indexOf),rte=Ne("".replace),_m=Ne("".slice),Pm=(km=/b*/g,an(tg,SS=/a/,"a"),an(tg,km,"a"),SS.lastIndex!==0||km.lastIndex!==0),xS=Kee.BROKEN_CARET,Nm=/()??/.exec("")[1]!==void 0;(Pm||Nm||xS||Xee||Zee)&&(i4=function(e){var t,n,r,i,o,a,u,s=this,l=Qee(s),c=Or(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=an(i4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xS&&s.sticky,g=an(qee,s),v=s.source,m=0,y=c;if(p&&(g=rte(g,"y",""),nte(g,"g")===-1&&(g+="g"),y=_m(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tte(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Nm&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),Pm&&(r=s.lastIndex),i=an(tg,p?n:s,y),p?i?(i.input=_m(i.input,m),i[0]=_m(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Pm&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Nm&&i&&i.length>1&&an(ete,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=IT(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var ng=i4;Vs({target:"RegExp",proto:!0,forced:/./.exec!==ng},{exec:ng});var T3=Function.prototype,AS=T3.apply,ite=T3.bind,OS=T3.call,ote=typeof Reflect=="object"&&Reflect.apply||(ite?OS.bind(AS):function(){return OS.apply(AS,arguments)}),ate=Gr("species"),Im=RegExp.prototype,ute=Ne("".charAt),BS=Ne("".charCodeAt),ste=Ne("".slice),FS=function(e){return function(t,n){var r,i,o=Or(rd(t)),a=T0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=BS(o,a))<55296||r>56319||a+1===u||(i=BS(o,a+1))<56320||i>57343?e?ute(o,a):r:e?ste(o,a,a+2):i-56320+(r-55296<<10)+65536}},lte={codeAt:FS(!1),charAt:FS(!0)}.charAt,cte=function(e,t,n){return t+(n?lte(e,t).length:1)},fte=Math.floor,Rm=Ne("".charAt),dte=Ne("".replace),jm=Ne("".slice),pte=/ \$ ([ $ &' ` ] | \ d { 1 , 2 } | < [ ^ > ] * > ) / g , hte = /\$([$&'`]|\d{1,2})/g , gte = function ( e , t , n , r , i , o ) { var a = n + e . length , u = r . length , s = hte ; return i !== void 0 && ( i = F0 ( i ) , s = pte ) , dte ( o , s , function ( l , c ) { var f ; switch ( Rm ( c , 0 ) ) { case "$" : return "$" ; case "&" : return e ; case "`" : return jm ( t , 0 , n ) ; case "'" : return jm ( t , a ) ; case "<" : f = i [ jm ( c , 1 , - 1 ) ] ; break ; default : var d = + c ; if ( d === 0 ) return l ; if ( d > u ) { var p = fte ( d / 10 ) ; return p === 0 ? l : p <= u ? r [ p - 1 ] === void 0 ? Rm ( c , 1 ) : r [ p - 1 ] + Rm ( c , 1 ) : l } f = r [ d - 1 ] } return f === void 0 ? "" : f } ) } , vte = Ae . TypeError , mte = function ( e , t ) { var n = e . exec ; if ( qt ( n ) ) { var r = an ( n , e , t ) ; return r !== null && wo ( r ) , r } if ( ba ( e ) === "RegExp" ) return an ( ng , e , t ) ; throw vte ( "RegExp#exec called on incompatible receiver" ) } , o4 = Gr ( "replace" ) , yte = Math . max , bte = Math . min , $te = Ne ( [ ] . concat ) , Lm = Ne ( [ ] . push ) , TS = Ne ( "" . indexOf ) , kS = Ne ( "" . slice ) , wte = "a" . replace ( /./ , "$0" ) === "$0" , _S = ! ! /./ [ o4 ] && /./ [ o4 ] ( "a" , "$0" ) === "" ; ( function ( e , t , n , r ) { var i = Gr ( e ) , o = ! Wt ( function ( ) { var l = { } ; return l [ i ] = function ( ) { return 7 } , "" [ e ] ( l ) != 7 } ) , a = o && ! Wt ( function ( ) { var l = ! 1 , c = /a/ ; return e === "split" && ( ( c = { } ) . constructor = { } , c . constructor [ ate ] = function ( ) { return c } , c . flags = "" , c [ i ] = /./ [ i ] ) , c . exec = function ( ) { return l = ! 0 , null } , c [ i ] ( "" ) , ! l } ) ; if ( ! o || ! a || n ) { var u = Ne ( /./ [ i ] ) , s = t ( i , "" [ e ] , function ( l , c , f , d , p ) { var g = Ne ( l ) , v = c . exec ; return v === ng || v === Im . exec ? o && ! p ? { done : ! 0 , value : u ( c , f , d ) } : { done : ! 0 , value : g ( f , c , d ) } : { done : ! 1 } } ) ; Zh ( String . prototype , e , s [ 0 ] ) , Zh ( Im , i , s [ 1 ] ) } r && df ( Im [ i ] , "sham" , ! 0 ) } ) ( "replace" , function ( e , t , n ) { var r = _S ? "$" : "$0" ; return [ function ( i , o ) { var a = rd ( this ) , u = i == null ? void 0 : DT ( i , o4 ) ; return u ? an ( u , i , a , o ) : an ( t , Or ( a ) , i , o ) } , function ( i , o ) { var a = wo ( this ) , u = Or ( i ) ; if ( typeof o == "string" && TS ( o , r ) === - 1 && TS ( o , "$<" ) === - 1 ) { var s = n ( t , a , u , o ) ; if ( s . done ) return s . value } var l = qt ( o ) ; l || ( o = Or ( o ) ) ; var c = a . global ; if ( c ) { var f = a . unicode ; a . lastIndex = 0 } for ( var d = [ ] ; ; ) { var p = mte ( a , u ) ; if ( p === null || ( Lm ( d , p ) , ! c ) ) break ; Or ( p [ 0 ] ) === "" && ( a . lastIndex = cte ( u , TT ( a . lastIndex ) , f ) ) } for ( var g , v = "" , m = 0 , y = 0 ; y < d . length ; y ++ ) { for ( var h = Or ( ( p = d [ y ] ) [ 0 ] ) , $ = yte ( bte ( T0 ( p . index ) , u . length ) , 0 ) , w = [ ] , C = 1 ; C < p . length ; C ++ ) Lm ( w , ( g = p [ C ] ) === void 0 ? g : String ( g ) ) ; var D = p . groups ; if ( l ) { var A = $te ( [ h ] , w , $ , u ) ; D !== void 0 && Lm ( A , D ) ; var I = Or ( ote ( o , void 0 , A ) ) } else I = gte ( h , u , $ , w , D , o ) ; $ >= m && ( v += kS ( u , m , $ ) + I , m = $ + h . length ) } return v + kS ( u , m ) } ] } , ! ! Wt ( function ( ) { var e = /./ ; return e . exec = function ( ) { var t = [ ] ; return t . groups = { a : "7" } , t } , "" . replace ( e , "$<a>" ) !== "7" } ) || ! wte || _S ) , Vs ( { global : ! 0 } , { globalThis : Ae } ) ; var Ete = { selector : "li" , parseElemHtml : function ( e , t , n ) { var r = O ( e ) ; return ( t = t . filter ( function ( i ) { return ! ! X . isText ( i ) || ! ! n . isInline ( i ) } ) ) . length === 0 && ( t = [ { text : r . text ( ) . replace ( /\s+/gm , " " ) } ] ) , { type : "list-item" , children : t } } } , Cte = { selector : "ul" , parseElemHtml : function ( e , t , n ) { return { type : "bulleted-list" , children : t . filter ( function ( r ) { return x . getNodeType ( r ) === "list-item" } ) } } } , Dte = { selector : "ol" , parseElemHtml : function ( e , t , n ) { return { type : "numbered-list" , children : t . filter ( function ( r ) { return x . getNodeType ( r ) === "list-item" } ) } } } , a4 = function ( e , t ) { retu
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 .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / f u n c t i o n U T ( e , t ) { i f ( t y p e o f t ! = " f u n c t i o n " & & t ! = = n u l l ) t h r o w n e w T y p e E r r o r ( " C l a s s e x t e n d s v a l u e " + S t r i n g ( t ) + " i s n o t a c o n s t r u c t o r o r n u l l " ) ; f u n c t i o n n ( ) { t h i s . c o n s t r u c t o r = e } a 4 ( e , t ) , e . p r o t o t y p e = t = = = n u l l ? O b j e c t . c r e a t e ( t ) : ( n . p r o t o t y p e = t . p r o t o t y p e , n e w n ) } f u n c t i o n u 4 ( e , t ) { v a r n = t y p e o f S y m b o l = = " f u n c t i o n " & & e [ S y m b o l . i t e r a t o r ] ; i f ( ! n ) r e t u r n e ; v a r r , i , o = n . c a l l ( e ) , a = [ ] ; t r y { f o r ( ; ( t = = = v o i d 0 | | t - - > 0 ) & & ! ( r = o . n e x t ( ) ) . d o n e ; ) a . p u s h ( r . v a l u e ) } c a t c h ( u ) { i = { e r r o r : u } } f i n a l l y { t r y { r & & ! r . d o n e & & ( n = o . r e t u r n ) & & n . c a l l ( o ) } f i n a l l y { i f ( i ) t h r o w i . e r r o r } } r e t u r n a } v a r P S , V T = f u n c t i o n ( ) { f u n c t i o n e ( ) { t h i s . t a g = " b u t t o n " } r e t u r n e . p r o t o t y p e . g e t L i s t N o d e = f u n c t i o n ( t ) { v a r n = t h i s . t y p e ; r e t u r n x . g e t S e l e c t e d N o d e B y T y p e ( t , n ) } , e . p r o t o t y p e . g e t V a l u e = f u n c t i o n ( t ) { r e t u r n " " } , e . p r o t o t y p e . i s A c t i v e = f u n c t i o n ( t ) { r e t u r n ! ! t h i s . g e t L i s t N o d e ( t ) } , e . p r o t o t y p e . i s D i s a b l e d = f u n c t i o n ( t ) { r e t u r n t . s e l e c t i o n = = n u l l | | ! ! x . g e t S e l e c t e d E l e m s ( t ) . s o m e ( f u n c t i o n ( n ) { i f ( E . i s V o i d ( t , n ) & & E . i s B l o c k ( t , n ) ) r e t u r n ! 0 ; v a r r = n . t y p e ; r e t u r n ! ! [ " p r e " , " c o d e " , " t a b l e " ] . i n c l u d e s ( r ) | | v o i d 0 } ) } , e . p r o t o t y p e . g e t M a t c h L i s t T y p e = f u n c t i o n ( t ) { v a r n = u 4 ( E . n o d e s ( t , { m a t c h : f u n c t i o n ( o ) { r e t u r n e g ( o ) } , u n i v e r s a l : ! 0 } ) , 1 ) , r = n [ 0 ] ; i f ( r = = n u l l ) r e t u r n " " ; v a r i = u 4 ( r , 1 ) [ 0 ] ; r e t u r n x . g e t N o d e T y p e ( i ) } , e . p r o t o t y p e . e x e c = f u n c t i o n ( t , n ) { v a r r = t h i s . t y p e , i = t h i s . i s A c t i v e ( t ) ; P . u n w r a p N o d e s ( t , { m a t c h : f u n c t i o n ( u ) { r e t u r n e g ( u ) } , s p l i t : ! 0 } ) , P . s e t N o d e s ( t , { t y p e : i ? " p a r a g r a p h " : " l i s t - i t e m " } ) ; v a r o = { t y p e : r , c h i l d r e n : [ ] } ; i | | P . w r a p N o d e s ( t , o ) ; v a r a = t h i s . g e t M a t c h L i s t T y p e ( t ) ; a ! = " " & & a ! = = r & & P . w r a p N o d e s ( t , o ) } , e } ( ) , S t e = ' < s v g v i e w B o x = " 0 0 1 0 2 4 1 0 2 4 " > < p a t h d = " M 3 8 4 6 4 h 6 4 0 v 1 2 8 H 3 8 4 V 6 4 z m 0 3 8 4 h 6 4 0 v 1 2 8 H 3 8 4 v - 1 2 8 z m 0 3 8 4 h 6 4 0 v 1 2 8 H 3 8 4 v - 1 2 8 z M 0 1 2 8 a 1 2 8 1 2 8 0 1 1 2 5 6 0 1 2 8 1 2 8 0 0 1 - 2 5 6 0 z m 0 3 8 4 a 1 2 8 1 2 8 0 1 1 2 5 6 0 1 2 8 1 2 8 0 0 1 - 2 5 6 0 z m 0 3 8 4 a 1 2 8 1 2 8 0 1 1 2 5 6 0 1 2 8 1 2 8 0 0 1 - 2 5 6 0 z " > < / p a t h > < / s v g > ' , x t e = ' < s v g v i e w B o x = " 0 0 1 0 2 4 1 0 2 4 " > < p a t h d = " M 3 8 4 8 3 2 h 6 4 0 v 1 2 8 H 3 8 4 z m 0 - 3 8 4 h 6 4 0 v 1 2 8 H 3 8 4 z m 0 - 3 8 4 h 6 4 0 v 1 2 8 H 3 8 4 z M 1 9 2 0 v 2 5 6 H 1 2 8 V 6 4 H 6 4 V 0 z M 1 2 8 5 2 6 . 0 1 6 v 5 0 . 0 1 6 h 1 2 8 v 6 4 H 6 4 v - 1 4 6 . 0 1 6 l 1 2 8 - 6 0 V 3 8 4 H 6 4 v - 6 4 h 1 9 2 v 1 4 6 . 0 1 6 z M 2 5 6 7 0 4 v 3 2 0 H 6 4 v - 6 4 h 1 2 8 v - 6 4 H 6 4 v - 6 4 h 1 2 8 v - 6 4 H 6 4 v - 6 4 z " > < / p a t h > < / s v g > ' , A t e = f u n c t i o n ( e ) { f u n c t i o n t ( ) { v a r n = e ! = = n u l l & & e . a p p l y ( t h i s , a r g u m e n t s ) | | t h i s ; r e t u r n n . t y p e = " b u l l e t e d - l i s t " , n . t i t l e = q ( " l i s t M o d u l e . u n O r d e r e d L i s t " ) , n . i c o n S v g = S t e , n } r e t u r n U T ( t , e ) , t } ( V T ) , O t e = f u n c t i o n ( e ) { f u n c t i o n t ( ) { v a r n = e ! = = n u l l & & e . a p p l y ( t h i s , a r g u m e n t s ) | | t h i s ; r e t u r n n . t y p e = " n u m b e r e d - l i s t " , n . t i t l e = q ( " l i s t M o d u l e . o r d e r e d L i s t " ) , n . i c o n S v g = x t e , n } r e t u r n U T ( t , e ) , t } ( V T ) , B t e = { k e y : " b u l l e t e d L i s t " , f a c t o r y : f u n c t i o n ( ) { r e t u r n n e w A t e } } , F t e = { k e y : " n u m b e r e d L i s t " , f a c t o r y : f u n c t i o n ( ) { r e t u r n n e w O t e } } , T t e = / " / g , k t e = N e ( " " . r e p l a c e ) ; V s ( { t a r g e t : " S t r i n g " , p r o t o : ! 0 , f o r c e d : ( P S = " a n c h o r " , W t ( f u n c t i o n ( ) { v a r e = " " [ P S ] ( ' " ' ) ; r e t u r n e ! = = e . t o L o w e r C a s e ( ) | | e . s p l i t ( ' " ' ) . l e n g t h > 3 } ) ) } , { a n c h o r : f u n c t i o n ( e ) { r e t u r n t = " a " , n = " n a m e " , r = e , i = O r ( r d ( t h i s ) ) , o = " < " + t , n ! = = " " & & ( o + = " " + n + ' = " ' + k t e ( O r ( r ) , T t e , " & q u o t ; " ) + ' " ' ) , o + " > " + i + " < / " + t + " > " ; v a r t , n , r , i , o } } ) ; v a r N S = f u n c t i o n ( e , t , n ) { v a r r = w 3 ( t ) ; r i n e ? o d . f ( e , r , m 3 ( 0 , n ) ) : e [ r ] = n } , W T = G r ( " i s C o n c a t S p r e a d a b l e " ) , I S = A e . T y p e E r r o r , _ t e = Y h > = 5 1 | | ! W t ( f u n c t i o n ( ) { v a r e = [ ] ; r e t u r n e [ W T ] = ! 1 , e . c o n c a t ( ) [ 0 ] ! = = e } ) , P t e = H T ( " c o n c a t " ) , N t e = f u n c t i o n ( e ) { i f ( ! i r ( e ) ) r e t u r n ! 1 ; v a r t = e [ W T ] ; r e t u r n t ! = = v o i d 0 ? ! ! t : n 4 ( e ) } ; V s ( { t a r g e t : " A r r a y " , p r o t o : ! 0 , f o r c e d : ! _ t e | | ! P t e } , { c o n c a t : f u n c t i o n ( e ) { v a r t , n , r , i , o , a = F 0 ( t h i s ) , u = z T ( a , 0 ) , s = 0 ; f o r ( t = - 1 , r = a r g u m e n t s . l e n g t h ; t < r ; t + + ) i f ( N t e ( o = t = = = - 1 ? a : a r g u m e n t s [ t ] ) ) { i f ( s + ( i = D 3 ( o ) ) > 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 ) t h r o w I S ( " M a x i m u m a l l o w e d i n d e x e x c e e d e d " ) ; f o r ( n = 0 ; n < i ; n + + , s + + ) n i n o & & N S ( u , s , o [ n ] ) } e l s e { i f ( s > = 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 ) t h r o w I S ( " M a x i m u m a l l o w e d i n d e x e x c e e d e d " ) ; N S ( u , s + + , o ) } r e t u r n u . l e n g t h = s , u } } ) ; v a r I t e = { r e n d e r E l e m s : [ A e e , O e e , B e e ] , e l e m s T o H t m l : [ F e e , T e e , k e e ] , p a r s e E l e m s H t m l : [ E t e , D t e , C t e ] , m e n u s : [ B t e , F t e ] , e d i t o r P l u g i n : f u n c t i o n ( e ) { v a r t = e . i n s e r t B r e a k , n = e . d e l e t e B a c k w a r d ; e . i n s e r t N o d e ; v a r r = e ; r e t u r n r . i n s e r t B r e a k = f u n c t i o n ( ) { v a r i = r . s e l e c t i o n ; i f ( i ! = n u l l ) { v a r o = x . g e t S e l e c t e d N o d e B y T y p e ( r , " l i s t - i t e m " ) ; i f ( o ! = n u l l ) { v a r a = x . g e t P a r e n t N o d e ( r , o ) , u = ( a = = n u l l ? v o i d 0 : a . c h i l d r e n ) | | [ ] ; i f ( o = = = u [ u . l e n g t h - 1 ] & & W . s t r i n g ( o ) = = = " " ) { P . r e m o v e N o d e s ( r , { m a t c h : f u n c t i o n ( l ) { r e t u r n x . c h e c k N o d e T y p e ( l , " l i s t - i t e m " ) } } ) ; v a r s = [ i . a n c h o r . p a t h [ 0 ] + 1 ] ; r e t u r n P . i n s e r t N o d e s ( r , x . g e
` )&&e.flags==="s")}),Wne=De.RegExp,qne=Ot(function(){var e=Wne("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),Gne=g4.get,Kne=I3("native-string-replace",String.prototype.replace),ag=RegExp.prototype.exec,m4=ag,Yne=xe("".charAt),Xne=xe("".indexOf),Jne=xe("".replace),Wm=xe("".slice),qm=(Vm=/b*/g,St(ag,ex=/a/,"a"),St(ag,Vm,"a"),ex.lastIndex!==0||Vm.lastIndex!==0),tx=uk.BROKEN_CARET,Gm=/()??/.exec("")[1]!==void 0;(qm||Gm||tx||Vne||qne)&&(m4=function(e){var t,n,r,i,o,a,u,s=this,l=Gne(s),c=Qt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=St(m4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=tx&&s.sticky,g=St(ak,s),v=s.source,m=0,y=c;if(p&&(g=Jne(g,"y",""),Xne(g,"g")===-1&&(g+="g"),y=Wm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Yne(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Gm&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),qm&&(r=s.lastIndex),i=St(ag,p?n:s,y),p?i?(i.input=Wm(i.input,m),i[0]=Wm(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:qm&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Gm&&i&&i.length>1&&St(Kne,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=ck(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var gf=m4;Do({target:"RegExp",proto:!0,forced:/./.exec!==gf},{exec:gf});var ug=Array.isArray||function(e){return oo(e)=="Array"},fk=function(){},Zne=[],dk=sd("Reflect","construct"),G3=/^ \s *(?:class|function) \b /,Qne=xe(G3.exec),ere=!G3.exec(fk),ql=function(e){if(!Gt(e))return!1;try{return dk(fk,Zne,e),!0}catch{return!1}},K3=!dk||Ot(function(){var e;return ql(ql.call)||!ql(Object)||!ql(function(){e=!0})||e})?function(e){if(!Gt(e))return!1;switch(W3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ere||!!Qne(G3,M3(e))}:ql,pk=function(e,t,n){var r=j3(t);r in e?ld.f(e,r,k3(0,n)):e[r]=n},tre=er("species"),Y3=function(e){return c4>=51||!Ot(function(){var t=[];return(t.constructor={})[tre]=function(){return{foo:1}},t[e](Boolean).foo!==1})},nre=xe([].slice),rre=Y3("slice"),ire=er("species"),Km=De.Array,ore=Math.max;function pr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function nx(e){var t=e.selection;if(t==null)return!1;var n=pr(E.nodes(e,{match:function(o){return x.checkNodeType(o,"table-cell")}}),1)[0];if(n){var r=pr(n,2)[1],i=E.start(e,r);if( $ e.equals(t.anchor,i))return!0}return!1}function rx(e,t){var n,r,i=E.nodes(e,{at:t,match:function(s){return x.getNodeType(s)==="table"}}),o=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u=a.next();!u.done;u=a.next())u.value,o=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}Do({target:"Array",proto:!0,forced:!rre},{slice:function(e,t){var n,r,i,o=ud(this),a=_0(o),u=hf(e,a),s=hf(t===void 0?a:t,a);if(ug(o)&&(n=o.constructor,(K3(n)&&(n===Km||ug(n.prototype))||Vn(n)&&(n=n[ire])===null)&&(n=void 0),n===Km||n===void 0))return nre(o,u,s);for(r=new(n===void 0?Km:n)(ore(s-u,0)),i=0;u<s;u++,i++)u in o&&pk(r,i,o[u]);return r.length=i,r}});var ix=xe(xe.bind),are=er("species"),ox=De.Array,ure=function(e,t){return new(function(n){var r;return ug(n)&&(r=n.constructor,(K3(r)&&(r===ox||ug(r.prototype))||Vn(r)&&(r=r[are])===null)&&(r=void 0)),r===void 0?ox:r}(e))(t===0?0:t)},ax=xe([].push),Ii=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,o=e==6,a=e==7,u=e==5||o;return function(s,l,c,f){for(var d,p,g=R3(s),v=YT(g),m=function(C,D){return ZT(C),D===void 0?C:ix?ix(C,D):function(){return C.apply(D,arguments)}}(l,c),y=_0(v),h=0, $ =f||ure,w=t? $ (s,y):n||a? $ (s,0):void 0;y>h;h++)if((u||h in v)&&(p=m(d=v[h],h,g),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:ax(w,d)}else switch(e){case 4:return!1;case 7:ax(w,d)}return o?-1:r||i?i:w}},P0={forEach:Ii(0),map:Ii(1),filter:Ii(2),some:Ii(3),every:Ii(4),find:Ii(5),findIndex:Ii(6),filterReject:Ii(7)},sre=P0.map;Do({target:"Array",proto:!0,forced:!Y3("map")},{map:function(e){return sre(this,e,arguments.length>1?arguments[1]:void 0)}});var lre=V3?{}.toString:function(){return"[object "+W3(this)+"]"};function N0(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function hk(e){return N0(e).every(function(t){return!!t.isHeader})}V3||pf(Object.prototype,"toString",lre,{unsafe:!0});var cre=H3.PROPER,y4=RegExp.prototype,gk=y4.toString,fre=xe(ak),dr
\ v \ f \ r \ xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF ` ,hx=xe("".replace),sg="["+E4+"]",Bre=RegExp("^"+sg+sg+"*"),Fre=RegExp(sg+sg+"* $ "),Xm=function(e){return function(t){var n=Qt(Co(t));return 1&e&&(n=hx(n,Bre,"")),2&e&&(n=hx(n,Fre,"")),n}},Tre={start:Xm(1),end:Xm(2),trim:Xm(3)},kre=H3.PROPER,_re=Tre.trim;function $ k(e){return e.length?e[0].tagName.toLowerCase():""}Do({target:"String",proto:!0,forced:function(e){return Ot(function(){return!!E4[e]()||" \u 200B \x 85 \u 180E"[e]()!==" \u 200B \x 85 \u 180E"||kre&&E4[e].name!==e})}("trim")},{trim:function(){return _re(this)}}),Do({global:!0},{globalThis:De}),zr&&(O.fn.append=zr),Mr&&(O.fn.on=Mr),vo&&(O.fn.focus=vo),jr&&(O.fn.attr=jr),Lr&&(O.fn.val=Lr),go&&(O.fn.html=go),ls&&(O.fn.dataset=ls),as&&(O.fn.addClass=as),us&&(O.fn.removeClass=us),ds&&(O.fn.children=ds),dh&&(O.fn.each=dh),fs&&(O.fn.find=fs);var vf=!1,wk=0,Ek=0,mf=null,yf=null,Nc=O("body");function Ck(e){vf=!1,yf=null,mf=null,Nc.off("mousemove",Dk),Nc.off("mouseup",Ck)}Nc.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),vf=!0;var n=e.clientX;wk=n;var r=t.getBoundingClientRect().width;Ek=r,Nc.on("mousemove",Dk),Nc.on("mouseup",Ck)}});var Dk=Fa(function(e){if(vf&&yf!=null&&mf!=null){e.preventDefault();var t=e.clientX,n=Ek+(t-wk);(n=Math.floor(100*n)/100)<30&&(n=30),P.setNodes(yf,{width:n.toString()},{at:mf})}},100),Pre={type:"table",renderElem:function(e,t,n){var r=function(l,c){if(l.isDisabled())return!1;var f=l.selection;if(f==null||R.isCollapsed(f))return!0;var d=f.anchor,p=f.focus,g=x.findPath(l,c),v=E.start(l,g),m=E.end(l,g),y= $ e.compare(d,m)<=0&& $ e.compare(d,v)>=0,h= $ e.compare(p,m)<=0&& $ e.compare(p,v)>=0;return!!(y&&h&&_.equals(d.path.slice(0,3),p.path.slice(0,3)))}(n,e),i=e.width,o=i===void 0?"auto":i,a=x.isNodeSelected(n,e),u=N0(e),s=de("div",{className:"table-container","data-selected":a,on:{mousedown:function(l){if(l.target.tagName==="DIV"&&l.preventDefault(),!n.isDisabled()){var c=x.findPath(n,e),f=E.start(n,c),d=n.selection;d!=null?d.anchor.path[0]!==c[0]&&n.select(f):n.select(f)}}}},de("table",{width:o,contentEditable:r},de("colgroup",null,u.map(function(l){var c=l.width;return de("col",{width:c===void 0?"auto":c})})),de("tbody",null,t)));return s}},Nre={type:"table-row",renderElem:function(e,t,n){return de("tr",null,t)}},Ire={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var g=x.getParentNode(d,p);if(g==null)return!1;var v=x.getParentNode(d,g);return v!=null&&N0(v).some(function(m){return m===p})}(n,e),i=e,o=i.colSpan,a=o===void 0?1:o,u=i.rowSpan,s=u===void 0?1:u,l=i.isHeader,c=l!==void 0&&l;if(!r)return de("td",{colSpan:a,rowSpan:s},t);var f=de(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Fa(function(d){var p=this.elm;if(p!=null){var g=p.getBoundingClientRect(),v=g.left,m=g.width,y=g.top,h=g.height, $ =d.clientX,w=d.clientY;vf||( $ >v+m-5&& $ <v+m&&w>y&&w<y+h?(p.style.cursor="col-resize",yf=n,mf=x.findPath(n,e)):vf||(p.style.cursor="auto",yf=null,mf=null))}},100)}},t);return f}},Rre={type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},jre={type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},Lre={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,o=n.rowSpan,a=o===void 0?1:o,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}},Mre={selector:"table",preParseHtml:function(e){var t=O(e);if( $ k(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},zre=P0.filter;Do({target:"Array",proto:!0,forced:!Y3("filter")},{filter:function(e){return zre(this,e,arguments.length>1?arguments[1]:void 0)}});var Hre=Math.floor,Jm=xe("".charAt),Ure=xe("".replace),Zm=xe("".slice),Vre=/ \$ ([ $ &' ` ] | \ d { 1 , 2 } | < [ ^ > ] * > ) / g , Wre = / \ $ ( [ $ & ' ` ] | \ d { 1
` )},s.deleteBackward=function(l){if(!nx(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=rx(s,f),p=rx(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(x.getSelectedNodeByType(s,"table")){var c=E.above(e);x.checkNodeType(c[0],"table-cell")&&P.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),P.select(e,f[1]);else{var d=s.children||[],p=d.length;if(x.checkNodeType(d[p-1],"table")){var g=x.genEmptyParagraph();P.insertNodes(s,g,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){nx(s)||r(l)},s.normalizeNode=function(l){var c=pr(l,2),f=c[0],d=c[1];if(x.getNodeType(f)!=="table")return i([f,d]);if(x.isLastNode(s,f)){var p=x.genEmptyParagraph();P.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(x.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c=== `
` ||/<img[^>]+>/.test(l.getData("text/html"))?o(l):E.insertText(s,c)}else o(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=x.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(_.equals(f.path.slice(0,3),d.path.slice(0,3)))if(W.string(c).length!==0){var p=x.findPath(s,c),g={anchor:E.start(s,p),focus:E.end(s,p)};s.select(g)}else u();else u()}else u()}else u()},s}};gn("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"}}),gn("zh-CN",{videoModule:{delete:" \u 5220 \u 9664 \u 89C6 \u 9891",uploadVideo:" \u 4E0A \u 4F20 \u 89C6 \u 9891",insertVideo:" \u 63D2 \u 5165 \u 89C6 \u 9891",videoSrc:" \u 89C6 \u 9891 \u 5730 \u 5740",videoSrcPlaceHolder:" \u 89C6 \u 9891 \u 6587 \u 4EF6 url \u 6216 \u 7B2C \u 4E09 \u 65B9 <iframe>",videoPoster:" \u 89C6 \u 9891 \u 5C01 \u 9762",videoPosterPlaceHolder:" \u 5C01 \u 9762 \u 56FE \u 7247 url",ok:" \u 786E \u 5B9A",editSize:" \u 4FEE \u 6539 \u 5C3A \u 5BF8",width:" \u 5BBD \u 5EA6",height:" \u 9AD8 \u 5EA6"}});/*! *****************************************************************************
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 .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r l g = f u n c t i o n ( ) { r e t u r n l g = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , n = 1 , r = a r g u m e n t s . l e n g t h ; n < r ; n + + ) f o r ( v a r i i n t = a r g u m e n t s [ n ] ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , i ) & & ( e [ i ] = t [ i ] ) ; r e t u r n e } , l g . a p p l y ( t h i s , a r g u m e n t s ) } ; f u n c t i o n I 0 ( e , t , n , r ) { r e t u r n n e w ( n | | ( n = P r o m i s e ) ) ( f u n c t i o n ( i , o ) { f u n c t i o n a ( l ) { t r y { s ( r . n e x t ( l ) ) } c a t c h ( c ) { o ( c ) } } f u n c t i o n u ( l ) { t r y { s ( r . t h r o w ( l ) ) } c a t c h ( c ) { o ( c ) } } f u n c t i o n s ( l ) { v a r c ; l . d o n e ? i ( l . v a l u e ) : ( c = l . v a l u e , c i n s t a n c e o f n ? c : n e w n ( f u n c t i o n ( f ) { f ( c ) } ) ) . t h e n ( a , u ) } s ( ( r = r . a p p l y ( e , t | | [ ] ) ) . n e x t ( ) ) } ) } f u n c t i o n R 0 ( e , t ) { v a r n , r , i , o , a = { l a b e l : 0 , s e n t : f u n c t i o n ( ) { i f ( 1 & i [ 0 ] ) t h r o w i [ 1 ] ; r e t u r n i [ 1 ] } , t r y s : [ ] , o p s : [ ] } ; r e t u r n o = { n e x t : u ( 0 ) , t h r o w : u ( 1 ) , r e t u r n : u ( 2 ) } , t y p e o f S y m b o l = = " f u n c t i o n " & & ( o [ S y m b o l . i t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } ) , o ; f u n c t i o n u ( s ) { r e t u r n f u n c t i o n ( l ) { r e t u r n f u n c t i o n ( c ) { i f ( n ) t h r o w n e w T y p e E r r o r ( " G e n e r a t o r i s a l r e a d y e x e c u t i n g . " ) ; f o r ( ; a ; ) t r y { i f ( n = 1 , r & & ( i = 2 & c [ 0 ] ? r . r e t u r n : c [ 0 ] ? r . t h r o w | | ( ( i = r . r e t u r n ) & & i . c a l l ( r ) , 0 ) : r . n e x t ) & & ! ( i = i . c a l l ( r , c [ 1 ] ) ) . d o n e ) r e t u r n i ; s w i t c h ( r = 0 , i & & ( c = [ 2 & c [ 0 ] , i . v a l u e ] ) , c [ 0 ] ) { c a s e 0 : c a s e 1 : i = c ; b r e a k ; c a s e 4 : r e t u r n a . l a b e l + + , { v a l u e : c [ 1 ] , d o n e : ! 1 } ; c a s e 5 : a . l a b e l + + , r = c [ 1 ] , c = [ 0 ] ; c o n t i n u e ; c a s e 7 : c = a . o p s . p o p ( ) , a . t r y s . p o p ( ) ; c o n t i n u e ; d e f a u l t : i f ( i = a . t r y s , ! ( ( i = i . l e n g t h > 0 & & i [ i . l e n g t h - 1 ] ) | | c [ 0 ] ! = = 6 & & c [ 0 ] ! = = 2 ) ) { a = 0 ; c o n t i n u e } i f ( c [ 0 ] = = = 3 & & ( ! i | | c [ 1 ] > i [ 0 ] & & c [ 1 ] < i [ 3 ] ) ) { a . l a b e l = c [ 1 ] ; b r e a k } i f ( c [ 0 ] = = = 6 & & a . l a b e l < i [ 1 ] ) { a . l a b e l = i [ 1 ] , i = c ; b r e a k } i f ( i & & a . l a b e l < i [ 2 ] ) { a . l a b e l = i [ 2 ] , a . o p s . p u s h ( c ) ; b r e a k } i [ 2 ] & & a . o p s . p o p ( ) , a . t r y s . p o p ( ) ; c o n t i n u e } c = t . c a l l ( e , a ) } c a t c h ( f ) { c = [ 6 , f ] , r = 0 } f i n a l l y { n = i = 0 } i f ( 5 & c [ 0 ] ) t h r o w c [ 1 ] ; r e t u r n { v a l u e : c [ 0 ] ? c [ 1 ] : v o i d 0 , d o n e : ! 0 } } ( [ s , l ] ) } } } f u n c t i o n d i e ( e ) { v a r t = t y p e o f S y m b o l = = " f u n c t i o n " & & S y m b o l . i t e r a t o r , n = t & & e [ t ] , r = 0 ; i f ( n ) r e t u r n n . c a l l ( e ) ; i f ( e & & t y p e o f e . l e n g t h = = " n u m b e r " ) r e t u r n { n e x t : f u n c t i o n ( ) { r e t u r n e & & r > = e . l e n g t h & & ( e = v o i d 0 ) , { v a l u e : e & & e [ r + + ] , d o n e : ! e } } } ; t h r o w n e w T y p e E r r o r ( t ? " O b j e c t i s n o t i t e r a b l e . " : " S y m b o l . i t e r a t o r i s n o t d e f i n e d . " ) } f u n c t i o n E a ( e , t ) { v a r n = t y p e o f S y m b o l = = " f u n c t i o n " & & e [ S y m b o l . i t e r a t o r ] ; i f ( ! n ) r e t u r n e ; v a r r , i , o = n . c a l l ( e ) , a = [ ] ; t r y { f o r ( ; ( t = = = v o i d 0 | | t - - > 0 ) & & ! ( r = o . n e x t ( ) ) . d o n e ; ) a . p u s h ( r . v a l u e ) } c a t c h ( u ) { i = { e r r o r : u } } f i n a l l y { t r y { r & & ! r . d o n e & & ( n = o . r e t u r n ) & & n . c a l l ( o ) } f i n a l l y { i f ( i ) t h r o w i . e r r o r } } r e t u r n a } f u n c t i o n p i e ( e ) { i f ( ! S y m b o l . a s y n c I t e r a t o r ) t h r o w n e w T y p e E r r o r ( " S y m b o l . a s y n c I t e r a t o r i s n o t d e f i n e d . " ) ; v a r t , n = e [ S y m b o l . a s y n c I t e r a t o r ] ; r e t u r n n ? n . c a l l ( e ) : ( e = d i e ( e ) , t = { } , r ( " n e x t " ) , r ( " t h r o w " ) , r ( " r e t u r n " ) , t [ S y m b o l . a s y n c I t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } , t ) ; f u n c t i o n r ( i ) { t [ i ] = e [ i ] & & f u n c t i o n ( o ) { r e t u r n n e w P r o m i s e ( f u n c t i o n ( a , u ) { ( f u n c t i o n ( s , l , c , f ) { P r o m i s e . r e s o l v e ( f ) . t h e n ( f u n c t i o n ( d ) { s ( { v a l u e : d , d o n e : c } ) } , l ) } ) ( a , u , ( o = e [ i ] ( o ) ) . d o n e , o . v a l u e ) } ) } } } v a r $ x = t y p e o f g l o b a l T h i s < " u " ? g l o b a l T h i s : t y p e o f w i n d o w < " u " ? w i n d o w : t y p e o f g l o b a l < " u " ? g l o b a l : t y p e o f s e l f < " u " ? s e l f : { } ; f u n c t i o n J 3 ( e ) { v a r t = { e x p o r t s : { } } ; r e t u r n e ( t , t . e x p o r t s ) , t . e x p o r t s } v a r R i , G p , l p = f u n c t i o n ( e ) { r e t u r n e & & e . M a t h = = M a t h & & e } , K = l p ( t y p e o f g l o b a l T h i s = = " o b j e c t " & & g l o b a l T h i s ) | | l p ( t y p e o f w i n d o w = = " o b j e c t " & & w i n d o w ) | | l p ( t y p e o f s e l f = = " o b j e c t " & & s e l f ) | | l p ( t y p e o f $ x = = " o b j e c t " & & $ x ) | | f u n c t i o n ( ) { r e t u r n t h i s } ( ) | | F u n c t i o n ( " r e t u r n t h i s " ) ( ) , J e = f u n c t i o n ( e ) { t r y { r e t u r n ! ! e ( ) } c a t c h { r e t u r n ! 0 } } , H r = ! J e ( f u n c t i o n ( ) { r e t u r n O b j e c t . d e f i n e P r o p e r t y ( { } , 1 , { g e t : f u n c t i o n ( ) { r e t u r n 7 } } ) [ 1 ] ! = 7 } ) , K l = F u n c t i o n . p r o t o t y p e . c a l l , K e = K l . b i n d ? K l . b i n d ( K l ) : f u n c t i o n ( ) { r e t u r n K l . a p p l y ( K l , a r g u m e n t s ) } , w x = { } . p r o p e r t y I s E n u m e r a b l e , E x = O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r , h i e = { f : E x & & ! w x . c a l l ( { 1 : 2 } , 1 ) ? f u n c t i o n ( e ) { v a r t = E x ( t h i s , e ) ; r e t u r n ! ! t & & t . e n u m e r a b l e } : w x } , j 0 = f u n c t i o n ( e , t ) { r e t u r n { e n u m e r a b l e : ! ( 1 & e ) , c o n f i g u r a b l e : ! ( 2 & e ) , w r i t a b l e : ! ( 4 & e ) , v a l u e : t } } , x k = F u n c t i o n . p r o t o t y p e , D 4 = x k . b i n d , S 4 = x k . c a l l , g i e = D 4 & & D 4 . b i n d ( S 4 ) , p e = D 4 ? f u n c t i o n ( e ) { r e t u r n e & & g i e ( S 4 , e ) } : f u n c t i o n ( e ) { r e t u r n e & & f u n c t i o n ( ) { r e t u r n S 4 . a p p l y ( e , a r g u m e n t s ) } } , v i e = p e ( { } . t o S t r i n g ) , m i e = p e ( " " . s l i c e ) , I r = f u n c t i o n ( e ) { r e t u r n m i e ( v i e ( e ) , 8 , - 1 ) } , r y = K . O b j e c t , y i e = p e ( " " . s p l i t ) , Z 3 = J e ( f u n c t i o n ( ) { r e t u r n ! r y ( " z " ) . p r o p e r t y I s E n u m e r a b l e ( 0 ) } ) ? f u n c t i o n ( e ) { r e t u r n I r ( e ) = = " S t r i n g " ? y i e ( e , " " ) : r y ( e ) } : r y , b i e = K . T y p e E r r o r , f d = f u n c t i o n ( e ) { i f ( e = = n u l l ) t h r o w b i e ( " C a n ' t c a l l m e t h o d o n " + e ) ; r e t u r n e } , T o = f u n c t i o n ( e ) { r e t u r n Z 3 ( f d ( e ) ) } , V e = f u n c t i o n ( e ) { r e t u r n t y
\ v \ f \ r \ xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF ` ,Nx=pe("".replace),vg="["+F4+"]",foe=RegExp("^"+vg+vg+"*"),doe=RegExp(vg+vg+"* $ "),oy=function(e){return function(t){var n=Mn(fd(t));return 1&e&&(n=Nx(n,foe,"")),2&e&&(n=Nx(n,doe,"")),n}},poe={start:oy(1),end:oy(2),trim:oy(3)},hoe=Ws.PROPER,goe=poe.trim;function Ix(e){return e.length?e[0].tagName.toLowerCase():""}function Pk(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=O(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}dn({target:"String",proto:!0,forced:(Xl="trim",Je(function(){return!!F4[Xl]()||" \u 200B \x 85 \u 180E"[Xl]()!==" \u 200B \x 85 \u 180E"||hoe&&F4[Xl].name!==Xl}))},{trim:function(){return goe(this)}}),dn({global:!0},{globalThis:K}),zr&&(O.fn.append=zr),Mr&&(O.fn.on=Mr),vo&&(O.fn.focus=vo),jr&&(O.fn.attr=jr),Lr&&(O.fn.val=Lr),go&&(O.fn.html=go),hh&&(O.fn.parent=hh),ss&&(O.fn.hasClass=ss),hs&&(O.fn.empty=hs);var voe={type:"video",renderElem:function(e,t,n){var r,i=e,o=i.src,a=o===void 0?"":o,u=i.poster,s=u===void 0?"":u,l=i.width,c=l===void 0?"auto":l,f=i.height,d=f===void 0?"auto":f,p=x.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0){var g=Pk(a,c,d);r=de("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:g})}else{var v=de("video",{poster:s,controls:!0},de("source",{src:a,type:"video/mp4"}), ` Sorry , your browser doesn ' t support embedded videos .
\u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891 ` );c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),r=de("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return gs("div",{props:{contentEditable:!1},on:{mousedown:function(m){return m.preventDefault()}}},r)}},cp,moe={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?"":r,o=n.poster,a=o===void 0?"":o,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f= ` < div data - w - e - type = "video" data - w - e - is - void >
` ;return i.trim().indexOf("<iframe ")===0?f+=Pk(i,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',f+= `
< / d i v > ` } } , y o e = O b j e c t . k e y s | | f u n c t i o n ( e ) { r e t u r n k k ( e , p g ) } , b o e = H r ? O b j e c t . d e f i n e P r o p e r t i e s : f u n c t i o n ( e , t ) { R t ( e ) ; f o r ( v a r n , r = T o ( t ) , i = y o e ( t ) , o = i . l e n g t h , a = 0 ; o > a ; ) g i . f ( e , n = i [ a + + ] , r [ n ] ) ; r e t u r n e } , T 4 = M a ( " d o c u m e n t " , " d o c u m e n t E l e m e n t " ) , N k = o E ( " I E _ P R O T O " ) , a y = f u n c t i o n ( ) { } , I k = f u n c t i o n ( e ) { r e t u r n " < s c r i p t > " + e + " < \ / s c r i p t > " } , R x = f u n c t i o n ( e ) { e . w r i t e ( I k ( " " ) ) , e . c l o s e ( ) ; v a r t = e . p a r e n t W i n d o w . O b j e c t ; r e t u r n e = n u l l , t } , K p = f u n c t i o n ( ) { t r y { c p = n e w A c t i v e X O b j e c t ( " h t m l f i l e " ) } c a t c h { } v a r e , t ; K p = t y p e o f d o c u m e n t < " u " ? d o c u m e n t . d o m a i n & & c p ? R x ( c p ) : ( ( t = E f ( " i f r a m e " ) ) . s t y l e . d i s p l a y = " n o n e " , T 4 . a p p e n d C h i l d ( t ) , t . s r c = S t r i n g ( " j a v a s c r i p t : " ) , ( e = t . c o n t e n t W i n d o w . d o c u m e n t ) . o p e n ( ) , e . w r i t e ( I k ( " d o c u m e n t . F = O b j e c t " ) ) , e . c l o s e ( ) , e . F ) : R x ( c p ) ; f o r ( v a r n = p g . l e n g t h ; n - - ; ) d e l e t e K p . p r o t o t y p e [ p g [ n ] ] ; r e t u r n K p ( ) } ; z 0 [ N k ] = ! 0 ; v a r u E = O b j e c t . c r e a t e | | f u n c t i o n ( e , t ) { v a r n ; r e t u r n e ! = = n u l l ? ( a y . p r o t o t y p e = R t ( e ) , n = n e w a y , a y . p r o t o t y p e = n u l l , n [ N k ] = e ) : n = K p ( ) , t = = = v o i d 0 ? n : b o e ( n , t ) } , k 4 = y t ( " u n s c o p a b l e s " ) , _ 4 = A r r a y . p r o t o t y p e ; _ 4 [ k 4 ] = = n u l l & & g i . f ( _ 4 , k 4 , { c o n f i g u r a b l e : ! 0 , v a l u e : u E ( n u l l ) } ) ; v a r R c = f u n c t i o n ( e ) { _ 4 [ k 4 ] [ e ] = ! 0 } , $ o e = T k . i n c l u d e s ; d n ( { t a r g e t : " A r r a y " , p r o t o : ! 0 } , { i n c l u d e s : f u n c t i o n ( e ) { r e t u r n $ o e ( t h i s , e , a r g u m e n t s . l e n g t h > 1 ? a r g u m e n t s [ 1 ] : v o i d 0 ) } } ) , R c ( " i n c l u d e s " ) ; v a r w o e = { s e l e c t o r : " i f r a m e , v i d e o , p " , p r e P a r s e H t m l : f u n c t i o n ( e ) { v a r t = O ( e ) , n = t ; i f ( I x ( t ) = = = " p " ) { v a r r = t . c h i l d r e n ( ) ; i f ( r . l e n g t h = = = 1 ) { v a r i = r [ 0 ] , o = i . t a g N a m e . t o L o w e r C a s e ( ) ; [ " i f r a m e " , " v i d e o " ] . i n c l u d e s ( o ) & & ( n = O ( i ) ) } } v a r a = I x ( n ) ; i f ( a ! = = " i f r a m e " & & a ! = = " v i d e o " | | n . p a r e n t ( ) . a t t r ( " d a t a - w - e - t y p e " ) = = = " v i d e o " ) r e t u r n n [ 0 ] ; v a r u = O ( ' < d i v d a t a - w - e - t y p e = " v i d e o " d a t a - w - e - i s - v o i d > < / d i v > ' ) ; r e t u r n u . a p p e n d ( n ) , u [ 0 ] } } , j x = p e ( p e . b i n d ) , D f = f u n c t i o n ( e , t ) { r e t u r n S o ( e ) , t = = = v o i d 0 ? e : j x ? j x ( e , t ) : f u n c t i o n ( ) { r e t u r n e . a p p l y ( t , a r g u m e n t s ) } } , m g = A r r a y . i s A r r a y | | f u n c t i o n ( e ) { r e t u r n I r ( e ) = = " A r r a y " } , R k = f u n c t i o n ( ) { } , E o e = [ ] , j k = M a ( " R e f l e c t " , " c o n s t r u c t " ) , s E = / ^ \ s * ( ? : c l a s s | f u n c t i o n ) \ b / , C o e = p e ( s E . e x e c ) , D o e = ! s E . e x e c ( R k ) , J l = f u n c t i o n ( e ) { i f ( ! V e ( e ) ) r e t u r n ! 1 ; t r y { r e t u r n j k ( R k , E o e , e ) , ! 0 } c a t c h { r e t u r n ! 1 } } , l E = ! j k | | J e ( f u n c t i o n ( ) { v a r e ; r e t u r n J l ( J l . c a l l ) | | ! J l ( O b j e c t ) | | ! J l ( f u n c t i o n ( ) { e = ! 0 } ) | | e } ) ? f u n c t i o n ( e ) { i f ( ! V e ( e ) ) r e t u r n ! 1 ; s w i t c h ( U 0 ( e ) ) { c a s e " A s y n c F u n c t i o n " : c a s e " G e n e r a t o r F u n c t i o n " : c a s e " A s y n c G e n e r a t o r F u n c t i o n " : r e t u r n ! 1 } r e t u r n D o e | | ! ! C o e ( s E , M 0 ( e ) ) } : J l , S o e = y t ( " s p e c i e s " ) , L x = K . A r r a y , x o e = f u n c t i o n ( e , t ) { r e t u r n n e w ( f u n c t i o n ( n ) { v a r r ; r e t u r n m g ( n ) & & ( r = n . c o n s t r u c t o r , ( l E ( r ) & & ( r = = = L x | | m g ( r . p r o t o t y p e ) ) | | Z e ( r ) & & ( r = r [ S o e ] ) = = = n u l l ) & & ( r = v o i d 0 ) ) , r = = = v o i d 0 ? L x : r } ( e ) ) ( t = = = 0 ? 0 : t ) } , M x = p e ( [ ] . p u s h ) , j i = f u n c t i o n ( e ) { v a r t = e = = 1 , n = e = = 2 , r = e = = 3 , i = e = = 4 , o = e = = 6 , a = e = = 7 , u = e = = 5 | | o ; r e t u r n f u n c t i o n ( s , l , c , f ) { f o r ( v a r d , p , g = L 0 ( s ) , v = Z 3 ( g ) , m = D f ( l , c ) , y = d d ( v ) , h = 0 , $ = f | | x o e , w = t ? $ ( s , y ) : n | | a ? $ ( s , 0 ) : v o i d 0 ; y > h ; h + + ) i f ( ( u | | h i n v ) & & ( p = m ( d = v [ h ] , h , g ) , e ) ) i f ( t ) w [ h ] = p ; e l s e i f ( p ) s w i t c h ( e ) { c a s e 3 : r e t u r n ! 0 ; c a s e 5 : r e t u r n d ; c a s e 6 : r e t u r n h ; c a s e 2 : M x ( w , d ) } e l s e s w i t c h ( e ) { c a s e 4 : r e t u r n ! 1 ; c a s e 7 : M x ( w , d ) } r e t u r n o ? - 1 : r | | i ? i : w } } , c E = { f o r E a c h : j i ( 0 ) , m a p : j i ( 1 ) , f i l t e r : j i ( 2 ) , s o m e : j i ( 3 ) , e v e r y : j i ( 4 ) , f i n d : j i ( 5 ) , f i n d I n d e x : j i ( 6 ) , f i l t e r R e j e c t : j i ( 7 ) } , A o e = c E . f i n d , z x = ! 0 ; " f i n d " i n [ ] & & A r r a y ( 1 ) . f i n d ( f u n c t i o n ( ) { z x = ! 1 } ) , d n ( { t a r g e t : " A r r a y " , p r o t o : ! 0 , f o r c e d : z x } , { f i n d : f u n c t i o n ( e ) { r e t u r n A o e ( t h i s , e , a r g u m e n t s . l e n g t h > 1 ? a r g u m e n t s [ 1 ] : v o i d 0 ) } } ) , R c ( " f i n d " ) ; v a r O o e = a E ? { } . t o S t r i n g : f u n c t i o n ( ) { r e t u r n " [ o b j e c t " + U 0 ( t h i s ) + " ] " } ; f u n c t i o n H x ( e , t , n , r ) { r e t u r n t = = = v o i d 0 & & ( t = " " ) , n = = = v o i d 0 & & ( n = " a u t o " ) , r = = = v o i d 0 & & ( r = " a u t o " ) , { t y p e : " v i d e o " , s r c : e , p o s t e r : t , w i d t h : n , h e i g h t : r , c h i l d r e n : [ { t e x t : " " } ] } } a E | | D n ( O b j e c t . p r o t o t y p e , " t o S t r i n g " , O o e , { u n s a f e : ! 0 } ) ; v a r U x , u y , B o e = { s e l e c t o r : ' d i v [ d a t a - w - e - t y p e = " v i d e o " ] ' , p a r s e E l e m H t m l : f u n c t i o n ( e , t , n ) { v a r r = O ( e ) , i = " " , o = " " , a = " a u t o " , u = " a u t o " , s = r . f i n d ( " i f r a m e " ) ; i f ( s . l e n g t h > 0 ) r e t u r n a = s . a t t r ( " w i d t h " ) | | " a u t o " , u = s . a t t r ( " h e i g h t " ) | | " a u t o " , H x ( i = s [ 0 ] . o u t e r H T M L , o , a , u ) ; v a r l = r . f i n d ( " v i d e o " ) ; r e t u r n ( i = l . a t t r ( " s r c " ) | | " " ) | | l . l e n g t h > 0 & & ( i = l . f i n d ( " s o u r c e " ) . a t t r ( " s r c " ) | | " " ) , a = l . a t t r ( " w i d t h " ) | | " a u t o " , u = l . a t t r ( " h e i g h t " ) | | " a u t o " , H x ( i , o = l . a t t r ( " p o s t e r " ) | | " " , a , u ) } } , L k = f u n c t i o n ( ) { v a r e = R t ( t h i s ) , t = " " ; r e t u r n e . g l o b a l & & ( t + = " g " ) , e . i g n o r e C a s e & & ( t + = " i " ) , e . m u l t i l i n e & & ( t + = " m " ) , e . d o t A l l & & ( t + = " s " ) , e . u n i c o d e & & ( t + = " u " ) , e . s t i c k y & & ( t + = " y " ) , t } , f E = K . R e g E x p , P 4 = J e ( f u n c t i o n ( ) { v a r e = f E ( " a " , " y " ) ; r e t u r n e . l a s t I n d e x = 2 , e . e x e c ( " a b c d " ) ! = n u l l } ) , F o e = P 4 | | J e ( f u n c t i o n ( ) { r e t u r n ! f E ( " a "
` )&&e.flags==="s")}),Poe=K.RegExp,Noe=Je(function(){var e=Poe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),Ioe=Fn.get,Roe=tE("native-string-replace",String.prototype.replace),yg=RegExp.prototype.exec,N4=yg,joe=pe("".charAt),Loe=pe("".indexOf),Moe=pe("".replace),sy=pe("".slice),ly=(uy=/b*/g,Ke(yg,Ux=/a/,"a"),Ke(yg,uy,"a"),Ux.lastIndex!==0||uy.lastIndex!==0),Vx=Toe.BROKEN_CARET,cy=/()??/.exec("")[1]!==void 0;(ly||cy||Vx||_oe||Noe)&&(N4=function(e){var t,n,r,i,o,a,u,s=this,l=Ioe(s),c=Mn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ke(N4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Vx&&s.sticky,g=Ke(Lk,s),v=s.source,m=0,y=c;if(p&&(g=Moe(g,"y",""),Loe(g,"g")===-1&&(g+="g"),y=sy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&joe(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),cy&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),ly&&(r=s.lastIndex),i=Ke(yg,p?n:s,y),p?i?(i.input=sy(i.input,m),i[0]=sy(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:ly&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),cy&&i&&i.length>1&&Ke(Roe,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=uE(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var bg=N4;dn({target:"RegExp",proto:!0,forced:/./.exec!==bg},{exec:bg});var dE=Function.prototype,Wx=dE.apply,zoe=dE.bind,qx=dE.call,Mk=typeof Reflect=="object"&&Reflect.apply||(zoe?qx.bind(Wx):function(){return qx.apply(Wx,arguments)}),Hoe=yt("species"),fy=RegExp.prototype,Uoe=pe("".charAt),Gx=pe("".charCodeAt),Voe=pe("".slice),Kx=function(e){return function(t,n){var r,i,o=Mn(fd(t)),a=H0(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=Gx(o,a))<55296||r>56319||a+1===u||(i=Gx(o,a+1))<56320||i>57343?e?Uoe(o,a):r:e?Voe(o,a,a+2):i-56320+(r-55296<<10)+65536}},zk={codeAt:Kx(!1),charAt:Kx(!0)},Woe=zk.charAt,qoe=function(e,t,n){return t+(n?Woe(e,t).length:1)},Goe=Math.floor,dy=pe("".charAt),Koe=pe("".replace),py=pe("".slice),Yoe=/ \$ ([ $ &' ` ] | \ d { 1 , 2 } | < [ ^ > ] * > ) / g , Xoe = /\$([$&'`]|\d{1,2})/g , Joe = function ( e , t , n , r , i , o ) { var a = n + e . length , u = r . length , s = Xoe ; return i !== void 0 && ( i = L0 ( i ) , s = Yoe ) , Koe ( o , s , function ( l , c ) { var f ; switch ( dy ( c , 0 ) ) { case "$" : return "$" ; case "&" : return e ; case "`" : return py ( t , 0 , n ) ; case "'" : return py ( t , a ) ; case "<" : f = i [ py ( c , 1 , - 1 ) ] ; break ; default : var d = + c ; if ( d === 0 ) return l ; if ( d > u ) { var p = Goe ( d / 10 ) ; return p === 0 ? l : p <= u ? r [ p - 1 ] === void 0 ? dy ( c , 1 ) : r [ p - 1 ] + dy ( c , 1 ) : l } f = r [ d - 1 ] } return f === void 0 ? "" : f } ) } , Zoe = K . TypeError , Qoe = function ( e , t ) { var n = e . exec ; if ( Ve ( n ) ) { var r = Ke ( n , e , t ) ; return r !== null && Rt ( r ) , r } if ( Ir ( e ) === "RegExp" ) return Ke ( bg , e , t ) ; throw Zoe ( "RegExp#exec called on incompatible receiver" ) } , I4 = yt ( "replace" ) , eae = Math . max , tae = Math . min , nae = pe ( [ ] . concat ) , hy = pe ( [ ] . push ) , Yx = pe ( "" . indexOf ) , Xx = pe ( "" . slice ) , rae = "a" . replace ( /./ , "$0" ) === "$0" , Jx = ! ! /./ [ I4 ] && /./ [ I4 ] ( "a" , "$0" ) === "" ; function Hk ( e ) { return e === void 0 && ( e = "r" ) , e + "-" + U9 ( ) } ( function ( e , t , n , r ) { var i = yt ( e ) , o = ! Je ( function ( ) { var l = { } ; return l [ i ] = function ( ) { return 7 } , "" [ e ] ( l ) != 7 } ) , a = o && ! Je ( function ( ) { var l = ! 1 , c = /a/ ; return e === "split" && ( ( c = { } ) . constructor = { } , c . constructor [ Hoe ] = function ( ) { return c } , c . flags = "" , c [ i ] = /./ [ i ] ) , c . exec = function ( ) { return l = ! 0 , null } , c [ i ] ( "" ) , ! l } ) ; if ( ! o || ! a || n ) { var u = pe ( /./ [ i ] ) , s = t ( i , "" [ e ] , function ( l , c , f , d , p ) { var g = pe ( l ) , v = c . exec ; return v === bg || v === fy . exec ? o && ! p ? { done : ! 0 , value : u ( c , f , d ) } : { done : ! 0 , value : g ( f , c , d ) } : { done : ! 1 } } ) ; Dn ( String . prototype , e , s [ 0 ] ) , Dn ( fy , i , s [ 1 ] ) } r && li ( fy [ i ] , "sham" , ! 0 ) } ) ( "replace" , function ( e , t , n ) { var r = Jx ? "$" : "$0" ; return [ function ( i , o ) { var a = fd ( this ) , u = i == null ? void 0 : wf ( i , I4 ) ; return u ? Ke ( u , i , a , o ) : Ke ( t , Mn ( a ) , i , o ) } , function ( i , o ) { var a = Rt ( this ) , u = Mn ( i ) ; if ( typeof o == "string" && Yx ( o , r ) === - 1 && Yx ( o , "$<" ) === - 1 ) { var s = n ( t , a , u , o ) ; if ( s . done ) return s . value } var l = Ve ( o ) ; l || ( o = Mn ( o ) ) ; var c = a . global ; if ( c ) { var f = a . unicode ; a . lastIndex = 0 } for ( var d = [ ] ; ; ) { var p = Qoe ( a , u ) ; if ( p === null || ( hy ( d , p ) , ! c ) ) break ; Mn ( p [ 0 ] ) === "" && ( a . lastIndex = qoe ( u , Fk ( a . lastIndex ) , f ) ) } for ( var g , v = "" , m = 0 , y = 0 ; y < d . length ; y ++ ) { for ( var h = Mn ( ( p = d [ y ] ) [ 0 ] ) , $ = eae ( tae ( H0 ( p . index ) , u . length ) , 0 ) , w = [ ] , C = 1 ; C < p . length ; C ++ ) hy ( w , ( g = p [ C ] ) === void 0 ? g : String ( g ) ) ; var D = p . groups ; if ( l ) { var A = nae ( [ h ] , w , $ , u ) ; D !== void 0 && hy ( A , D ) ; var I = Mn ( Mk ( o , void 0 , A ) ) } else I = Joe ( h , u , $ , w , D , o ) ; $ >= m && ( v += Xx ( u , m , $ ) + I , m = $ + h . length ) } return v + Xx ( u , m ) } ] } , ! ! Je ( function ( ) { var e = /./ ; return e . exec = function ( ) { var t = [ ] ; return t . groups = { a : "7" } , t } , "" . replace ( e , "$<a>" ) !== "7" } ) || ! rae || Jx ) ; var $g = K . Promise , wg = function ( e , t , n ) { for ( var r in t ) Dn ( e , r , t [ r ] , n ) ; return e } , iae = K . String , oae = K . TypeError , Ss = Object . setPrototypeOf || ( "__proto__" in { } ? function ( ) { var e , t = ! 1 , n = { } ; try { ( e = pe ( Object . getOwnPropertyDescriptor ( Object . prototype , "__proto__" ) . set ) ) ( n , [ ] ) , t = n instanceof Array } catch { } return function ( r , i ) { return Rt ( r ) , function ( o ) { if ( typeof o == "object" || Ve ( o ) ) return o ; throw oae ( "Can't set " + iae ( o ) + " as a prototype" ) } ( i ) , t ? e ( r , i ) : r . _ _proto _ _ = i , r } } ( ) : void 0 ) , aae = gi . f , Zx = yt ( "toStringTag" ) , Eg = function ( e , t , n ) { e && ! xt ( e
` )&&e.flags==="s")}),Ise=G.RegExp,Rse=Qe(function(){var e=Ise("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),jse=Tn.get,Lse=DE("native-string-replace",String.prototype.replace),kg=RegExp.prototype.exec,Q4=kg,Mse=Ce("".charAt),zse=Ce("".indexOf),Hse=Ce("".replace),Ry=Ce("".slice),jy=(Iy=/b*/g,Le(kg,WA=/a/,"a"),Le(kg,Iy,"a"),WA.lastIndex!==0||Iy.lastIndex!==0),qA=F_.BROKEN_CARET,Ly=/()??/.exec("")[1]!==void 0;(jy||Ly||qA||Nse||Rse)&&(Q4=function(e){var t,n,r,i,o,a,u,s=this,l=jse(s),c=co(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Le(Q4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=qA&&s.sticky,g=Le(B_,s),v=s.source,m=0,y=c;if(p&&(g=Hse(g,"y",""),zse(g,"g")===-1&&(g+="g"),y=Ry(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Mse(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),Ly&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),jy&&(r=s.lastIndex),i=Le(kg,p?n:s,y),p?i?(i.input=Ry(i.input,m),i[0]=Ry(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:jy&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),Ly&&i&&i.length>1&&Le(Lse,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=NE(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var _f=Q4;Pr({target:"RegExp",proto:!0,forced:/./.exec!==_f},{exec:_f});var IE=Function.prototype,GA=IE.apply,Use=IE.bind,KA=IE.call,__=typeof Reflect=="object"&&Reflect.apply||(Use?KA.bind(GA):function(){return KA.apply(GA,arguments)}),Vse=bt("species"),My=RegExp.prototype,Wse=bt("match"),qse=G.TypeError,Gse=bt("species"),P_=function(e,t){var n,r=jt(e).constructor;return r===void 0||(n=jt(r)[Gse])==null?t:function(i){if(_E(i))return i;throw qse(Sg(i)+" is not a constructor")}(n)},Kse=Ce("".charAt),YA=Ce("".charCodeAt),Yse=Ce("".slice),XA=function(e){return function(t,n){var r,i,o=co(Af(t)),a=FE(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=YA(o,a))<55296||r>56319||a+1===u||(i=YA(o,a+1))<56320||i>57343?e?Kse(o,a):r:e?Yse(o,a,a+2):i-56320+(r-55296<<10)+65536}},N_={codeAt:XA(!1),charAt:XA(!0)},Xse=N_.charAt,Jse=function(e,t,n){return t+(n?Xse(e,t).length:1)},Zse=G.Array,Qse=Math.max,e $ =function(e,t,n){for(var r=gd(e),i=kf(t,r),o=kf(n===void 0?r:n,r),a=Zse(Qse(o-i,0)),u=0;i<o;i++,u++)A_(a,u,e[i]);return a.length=u,a},ele=G.TypeError,JA=function(e,t){var n=e.exec;if(We(n)){var r=Le(n,e,t);return r!==null&&jt(r),r}if(fr(e)==="RegExp")return Le(_f,e,t);throw ele("RegExp#exec called on incompatible receiver")},Ou=F_.UNSUPPORTED_Y,tle=Math.min,I_=[].push,nle=Ce(/./.exec),Bu=Ce(I_),ac=Ce("".slice);(function(e,t,n,r){var i=bt(e),o=!Qe(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!Qe(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Vse]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Ce(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var g=Ce(l),v=c.exec;return v===_f||v===My.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});Sn(String.prototype,e,s[0]),Sn(My,i,s[1])}r&&Rr(My[i],"sham",!0)})("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a,u,s=co(Af(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!Xe(a=i)||!((u=a[Wse])!==void 0?u:fr(a)=="RegExp"))return Le(t,s,i,l);for(var c,f,d,p=[],g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),v=0,m=new RegExp(i.source,g+"g");(c=Le(_f,m,s))&&!((f=m.lastIndex)>v&&(Bu(p,ac(s,v,c.index)),c.length>1&&c.index<s.length&&__(I_,p,e $ (c,1)),d=c[0].length,v=f,p.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return v===s.length?!d&&nle(m,"")||Bu(p,""):Bu(p,ac(s,v)),p.length>l?e $ (p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:Le(t,this,i,o)}:t,[function(i,o){var a=Af(this),u=i==null?void 0:Ff(i,e);return u?Le(u,i,a,o):Le(r,co(a),i,o)},function(i,o){var a=jt(this),u=co(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=P_(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ou?"g":"y"),d=new l(Ou?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return JA(d,u)===null?[u]:[];for(var g=0,v=0,m=[];v<u.length;){d.lastIndex=Ou?0:v;var y,h=JA(d,Ou?ac(u,v):u);if(h===null||(y=tle(E_(d.lastIndex+(Ou?v:0)),u.length))===g)v=Jse(u,v,c);else{if(Bu(m,ac(u,g,v)),m.length===p)return m;for(var $ =1; $ <=h.length-1; $ ++)if(Bu(m,h[ $ ]),m.length===p)return m;v=g=y}}return Bu(m,ac(u,g)),m}]},!!Qe(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ou);/*
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 .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r _ g = f u n c t i o n ( ) { r e t u r n _ g = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , n = 1 , r = a r g u m e n t s . l e n g t h ; n < r ; n + + ) f o r ( v a r i i n t = a r g u m e n t s [ n ] ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , i ) & & ( e [ i ] = t [ i ] ) ; r e t u r n e } , _ g . a p p l y ( t h i s , a r g u m e n t s ) } ; f u n c t i o n R E ( e , t , n , r ) { r e t u r n n e w ( n | | ( n = P r o m i s e ) ) ( f u n c t i o n ( i , o ) { f u n c t i o n a ( l ) { t r y { s ( r . n e x t ( l ) ) } c a t c h ( c ) { o ( c ) } } f u n c t i o n u ( l ) { t r y { s ( r . t h r o w ( l ) ) } c a t c h ( c ) { o ( c ) } } f u n c t i o n s ( l ) { v a r c ; l . d o n e ? i ( l . v a l u e ) : ( c = l . v a l u e , c i n s t a n c e o f n ? c : n e w n ( f u n c t i o n ( f ) { f ( c ) } ) ) . t h e n ( a , u ) } s ( ( r = r . a p p l y ( e , t | | [ ] ) ) . n e x t ( ) ) } ) } f u n c t i o n j E ( e , t ) { v a r n , r , i , o , a = { l a b e l : 0 , s e n t : f u n c t i o n ( ) { i f ( 1 & i [ 0 ] ) t h r o w i [ 1 ] ; r e t u r n i [ 1 ] } , t r y s : [ ] , o p s : [ ] } ; r e t u r n o = { n e x t : u ( 0 ) , t h r o w : u ( 1 ) , r e t u r n : u ( 2 ) } , t y p e o f S y m b o l = = " f u n c t i o n " & & ( o [ S y m b o l . i t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } ) , o ; f u n c t i o n u ( s ) { r e t u r n f u n c t i o n ( l ) { r e t u r n f u n c t i o n ( c ) { i f ( n ) t h r o w n e w T y p e E r r o r ( " G e n e r a t o r i s a l r e a d y e x e c u t i n g . " ) ; f o r ( ; a ; ) t r y { i f ( n = 1 , r & & ( i = 2 & c [ 0 ] ? r . r e t u r n : c [ 0 ] ? r . t h r o w | | ( ( i = r . r e t u r n ) & & i . c a l l ( r ) , 0 ) : r . n e x t ) & & ! ( i = i . c a l l ( r , c [ 1 ] ) ) . d o n e ) r e t u r n i ; s w i t c h ( r = 0 , i & & ( c = [ 2 & c [ 0 ] , i . v a l u e ] ) , c [ 0 ] ) { c a s e 0 : c a s e 1 : i = c ; b r e a k ; c a s e 4 : r e t u r n a . l a b e l + + , { v a l u e : c [ 1 ] , d o n e : ! 1 } ; c a s e 5 : a . l a b e l + + , r = c [ 1 ] , c = [ 0 ] ; c o n t i n u e ; c a s e 7 : c = a . o p s . p o p ( ) , a . t r y s . p o p ( ) ; c o n t i n u e ; d e f a u l t : i f ( i = a . t r y s , ! ( ( i = i . l e n g t h > 0 & & i [ i . l e n g t h - 1 ] ) | | c [ 0 ] ! = = 6 & & c [ 0 ] ! = = 2 ) ) { a = 0 ; c o n t i n u e } i f ( c [ 0 ] = = = 3 & & ( ! i | | c [ 1 ] > i [ 0 ] & & c [ 1 ] < i [ 3 ] ) ) { a . l a b e l = c [ 1 ] ; b r e a k } i f ( c [ 0 ] = = = 6 & & a . l a b e l < i [ 1 ] ) { a . l a b e l = i [ 1 ] , i = c ; b r e a k } i f ( i & & a . l a b e l < i [ 2 ] ) { a . l a b e l = i [ 2 ] , a . o p s . p u s h ( c ) ; b r e a k } i [ 2 ] & & a . o p s . p o p ( ) , a . t r y s . p o p ( ) ; c o n t i n u e } c = t . c a l l ( e , a ) } c a t c h ( f ) { c = [ 6 , f ] , r = 0 } f i n a l l y { n = i = 0 } i f ( 5 & c [ 0 ] ) t h r o w c [ 1 ] ; r e t u r n { v a l u e : c [ 0 ] ? c [ 1 ] : v o i d 0 , d o n e : ! 0 } } ( [ s , l ] ) } } } f u n c t i o n r l e ( e ) { v a r t = t y p e o f S y m b o l = = " f u n c t i o n " & & S y m b o l . i t e r a t o r , n = t & & e [ t ] , r = 0 ; i f ( n ) r e t u r n n . c a l l ( e ) ; i f ( e & & t y p e o f e . l e n g t h = = " n u m b e r " ) r e t u r n { n e x t : f u n c t i o n ( ) { r e t u r n e & & r > = e . l e n g t h & & ( e = v o i d 0 ) , { v a l u e : e & & e [ r + + ] , d o n e : ! e } } } ; t h r o w n e w T y p e E r r o r ( t ? " O b j e c t i s n o t i t e r a b l e . " : " S y m b o l . i t e r a t o r i s n o t d e f i n e d . " ) } f u n c t i o n i l e ( e ) { i f ( ! S y m b o l . a s y n c I t e r a t o r ) t h r o w n e w T y p e E r r o r ( " S y m b o l . a s y n c I t e r a t o r i s n o t d e f i n e d . " ) ; v a r t , n = e [ S y m b o l . a s y n c I t e r a t o r ] ; r e t u r n n ? n . c a l l ( e ) : ( e = r l e ( e ) , t = { } , r ( " n e x t " ) , r ( " t h r o w " ) , r ( " r e t u r n " ) , t [ S y m b o l . a s y n c I t e r a t o r ] = f u n c t i o n ( ) { r e t u r n t h i s } , t ) ; f u n c t i o n r ( i ) { t [ i ] = e [ i ] & & f u n c t i o n ( o ) { r e t u r n n e w P r o m i s e ( f u n c t i o n ( a , u ) { ( f u n c t i o n ( s , l , c , f ) { P r o m i s e . r e s o l v e ( f ) . t h e n ( f u n c t i o n ( d ) { s ( { v a l u e : d , d o n e : c } ) } , l ) } ) ( a , u , ( o = e [ i ] ( o ) ) . d o n e , o . v a l u e ) } ) } } } v a r t $ = b t ( " u n s c o p a b l e s " ) , n $ = A r r a y . p r o t o t y p e ; n $ [ t $ ] = = n u l l & & v i . f ( n $ , t $ , { c o n f i g u r a b l e : ! 0 , v a l u e : N E ( n u l l ) } ) ; v a r x a , Z A , Q A , z y = f u n c t i o n ( e ) { n $ [ t $ ] [ e ] = ! 0 } , A s = { } , o l e = ! Q e ( f u n c t i o n ( ) { f u n c t i o n e ( ) { } r e t u r n e . p r o t o t y p e . c o n s t r u c t o r = n u l l , O b j e c t . g e t P r o t o t y p e O f ( n e w e ) ! = = e . p r o t o t y p e } ) , e 7 = B E ( " I E _ P R O T O " ) , r $ = G . O b j e c t , a l e = r $ . p r o t o t y p e , P g = o l e ? r $ . g e t P r o t o t y p e O f : f u n c t i o n ( e ) { v a r t = S E ( e ) ; i f ( A t ( t , e 7 ) ) r e t u r n t [ e 7 ] ; v a r n = t . c o n s t r u c t o r ; r e t u r n W e ( n ) & & t i n s t a n c e o f n ? n . p r o t o t y p e : t i n s t a n c e o f r $ ? a l e : n u l l } , i $ = b t ( " i t e r a t o r " ) , R _ = ! 1 ; [ ] . k e y s & & ( " n e x t " i n ( Q A = [ ] . k e y s ( ) ) ? ( Z A = P g ( P g ( Q A ) ) ) ! = = O b j e c t . p r o t o t y p e & & ( x a = Z A ) : R _ = ! 0 ) ; v a r u l e = x a = = n u l l | | Q e ( f u n c t i o n ( ) { v a r e = { } ; r e t u r n x a [ i $ ] . c a l l ( e ) ! = = e } ) ; u l e & & ( x a = { } ) , W e ( x a [ i $ ] ) | | S n ( x a , i $ , f u n c t i o n ( ) { r e t u r n t h i s } ) ; v a r L E = { I t e r a t o r P r o t o t y p e : x a , B U G G Y _ S A F A R I _ I T E R A T O R S : R _ } , s l e = v i . f , t 7 = b t ( " t o S t r i n g T a g " ) , N g = f u n c t i o n ( e , t , n ) { e & & ! A t ( e = n ? e : e . p r o t o t y p e , t 7 ) & & s l e ( e , t 7 , { c o n f i g u r a b l e : ! 0 , v a l u e : t } ) } , l l e = L E . I t e r a t o r P r o t o t y p e , c l e = f u n c t i o n ( ) { r e t u r n t h i s } , f l e = G . S t r i n g , d l e = G . T y p e E r r o r , O s = O b j e c t . s e t P r o t o t y p e O f | | ( " _ _ p r o t o _ _ " i n { } ? f u n c t i o n ( ) { v a r e , t = ! 1 , n = { } ; t r y { ( e = C e ( O b j e c t . g e t O w n P r o p e r t y D e s c r i p t o r ( O b j e c t . p r o t o t y p e , " _ _ p r o t o _ _ " ) . s e t ) ) ( n , [ ] ) , t = n i n s t a n c e o f A r r a y } c a t c h { } r e t u r n f u n c t i o n ( r , i ) { r e t u r n j t ( r ) , f u n c t i o n ( o ) { i f ( t y p e o f o = = " o b j e c t " | | W e ( o ) ) r e t u r n o ; t h r o w d l e ( " C a n ' t s e t " + f l e ( o ) + " a s a p r o t o t y p e " ) } ( i ) , t ? e ( r , i ) : r . _ _ p r o t o _ _ = i , r } } ( ) : v o i d 0 ) , p l e = h d . P R O P E R , h l e = h d . C O N F I G U R A B L E , n 7 = L E . I t e r a t o r P r o t o t y p e , $ p = L E . B U G G Y _ S A F A R I _ I T E R A T O R S , u c = b t ( " i t e r a t o r " ) , g l e = f u n c t i o n ( ) { r e t u r n t h i s } , j _ = f u n c t i o n ( e , t , n , r , i , o , a ) { ( f u n c t i o n ( y , h , $ , w ) { v a r C = h + " I t e r a t o r " ; y . p r o t o t y p e = N E ( l l e , { n e x t : V 0 ( + ! w , $ ) } ) , N g ( y , C , ! 1 ) , A s [ C ] = c l e } ) ( n , t , r ) ; v a r u , s , l , c = f u n c t i o n ( y ) { i f ( y = = = i & & v ) r e t u r n v ; i f ( ! $ p & & y i n p ) r e t u r n p [ y ] ; s w i t c h ( y ) { c a s e " k e y s " : c a s e " v a l u e s " : c a s e " e n t r i e s " : r e t u r
* 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),Mg!==void 0&&(Mg.Prism=t),t.languages.markup={comment:{pattern:/ <!-- ( ? : ( ? ! <!-- ) [ \ s \ S ] ) * ? -- > /,greedy:!0},prolog:{pattern:/ < \ ? [ \ s \ S ] + ? \ ? > /,greedy:!0},doctype:{pattern:/ < ! DOCTYPE ( ? : [ ^ > "'[\]]|" [ ^ "]*" | '[^' ] * ')+(?:\[(?:[^<"' \ ] ] | "[^" ] * "|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{" internal - subset ":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/" [ ^ "]*" | '[^' ] * '/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>' "]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:" [ ^ "]*" | '[^' ] * '|[^\s' ">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}}," special - attr ":[]," attr - value ":{pattern:/=\s*(?:" [ ^ "]*" | '[^' ] * '|[^\s' ">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:" attr - equals "},/" | '/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["' \ s ] ) / . source + "(?:" + n + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/ . source , "i" ) , lookbehind : ! 0 , inside : { "attr-name" : /^[^\s=]+/ , "attr-value" : { pattern : /=[\s\S]+/ , inside : { value : { pattern : /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/ , lookbehind : ! 0 , alias : [ r , "language-" + r ] , inside : t . languages [ r ] } , punctuation : [ { pattern : /^=/ , alias : "attr-equals" } , /"|'/ ] } } } } ) } } ) , t . languages . html = t . languages . markup , t . languages . mathml = t . languages . markup , t . languages . svg = t . languages . markup , t . languages . xml = t . languages . extend ( "markup" , { } ) , t . languages . ssml = t . languages . xml , t . languages . atom = t . languages . xml , t . languages . rss = t . languages . xml , function ( n ) { var r = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/ ; n . languages . css = { comment : /\/\*[\s\S]*?\*\// , atrule : { pattern : /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/ , inside : { rule : /^@[\w-]+/ , "selector-function-argument" : { pattern : /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/ , lookbehind : ! 0 , alias : "selector" } , keyword : { pattern : /(^|[^\w-])(?:and|not|only|or)(?![\w-])/ , lookbehind : ! 0 } } } , url : { pattern : RegExp ( "\\burl\\((?:" + r . source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/ . source + ")\\)" , "i" ) , greedy : ! 0 , inside : { function : /^url/i , punctuation : /^\(|\)$/ , string : { pattern : RegExp ( "^" + r . source + "$" ) , alias : "url" } } } , selector : { pattern : RegExp ( ` (^|[{} \\ s])[^{} \\ s](?:[^{};"' \\ s]| \\ s+(?![ \\ s{])| ` + r . source + ")*(?=\\s*\\{)" ) , lookbehind : ! 0 } , string : { pattern : r , greedy : ! 0 } , property : { pattern : /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i , lookbehind : ! 0 } , important : /!important\b/i , function : { pattern : /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i , lookbehind : ! 0 } , punctuation : /[(){};:,]/ } , n . languages . css . atrule . inside . rest = n . languages . css ; var i = n . languages . markup ; i && ( i . tag . addInlined ( "style" , "css" ) , i . tag . addAttribute ( "style" , "css" ) ) } ( t ) , t . languages . clike = { comment : [ { pattern : /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/ , lookbehind : ! 0 , greedy : ! 0 } , { pattern : / ( ^ | [ ^ \ \ : ] ) \ / \
` )&&e.flags==="s")}),_fe=Se.RegExp,Pfe=It(function(){var e=_fe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e," $ <a>c")!=="bc"}),Nfe=m $ .get,Ife=YE("native-string-replace",String.prototype.replace),Vg=RegExp.prototype.exec, $ $ =Vg,Rfe=Me("".charAt),jfe=Me("".indexOf),Lfe=Me("".replace),d2=Me("".slice),p2=(f2=/b*/g,kt(Vg,o9=/a/,"a"),kt(Vg,f2,"a"),o9.lastIndex!==0||f2.lastIndex!==0),a9=_P.BROKEN_CARET,h2=/()??/.exec("")[1]!==void 0;(p2||h2||a9||kfe||Pfe)&&( $ $ =function(e){var t,n,r,i,o,a,u,s=this,l=Nfe(s),c=ci(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=kt( $ $ ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=a9&&s.sticky,g=kt(kP,s),v=s.source,m=0,y=c;if(p&&(g=Lfe(g,"y",""),jfe(g,"g")===-1&&(g+="g"),y=d2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Rfe(c,s.lastIndex-1)!== `
` )&&(v="(?: "+v+")",y=" "+y,m++),n=new RegExp("^(?:"+v+")",g)),h2&&(n=new RegExp("^"+v+" $ (?! \\ s)",g)),p2&&(r=s.lastIndex),i=kt(Vg,p?n:s,y),p?i?(i.input=d2(i.input,m),i[0]=d2(i[0],m),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:p2&&i&&(s.lastIndex=s.global?i.index+i[0].length:r),h2&&i&&i.length>1&&kt(Ife,i[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(i[o]=void 0)}),i&&d)for(i.groups=a=Ffe(null),o=0;o<d.length;o++)a[(u=d[o])[0]]=i[u[1]];return i});var Rf= $ $ ;X0({target:"RegExp",proto:!0,forced:/./.exec!==Rf},{exec:Rf});var c5=Function.prototype,u9=c5.apply,Mfe=c5.bind,s9=c5.call,zfe=typeof Reflect=="object"&&Reflect.apply||(Mfe?s9.bind(u9):function(){return s9.apply(u9,arguments)}),Hfe=_o("species"),g2=RegExp.prototype,Ufe=_o("match"),Vfe=Se.TypeError,Wfe=_o("species"),qfe=function(e,t){var n,r=hr(e).constructor;return r===void 0||(n=hr(r)[Wfe])==null?t:function(i){if(SP(i))return i;throw Vfe(vP(i)+" is not a constructor")}(n)},Gfe=Me("".charAt),l9=Me("".charCodeAt),Kfe=Me("".slice),c9=function(e){return function(t,n){var r,i,o=ci(Bs(t)),a=a5(n),u=o.length;return a<0||a>=u?e?"":void 0:(r=l9(o,a))<55296||r>56319||a+1===u||(i=l9(o,a+1))<56320||i>57343?e?Gfe(o,a):r:e?Kfe(o,a,a+2):i-56320+(r-55296<<10)+65536}},Yfe={codeAt:c9(!1),charAt:c9(!0)}.charAt,Xfe=function(e,t,n){return t+(n?Yfe(e,t).length:1)},Jfe=Se.Array,Zfe=Math.max,f9=function(e,t,n){for(var r,i,o,a,u=u5(e),s=y $ (t,u),l=y $ (n===void 0?u:n,u),c=Jfe(Zfe(l-s,0)),f=0;s<l;s++,f++)r=c,i=f,o=e[s],a=void 0,(a=e5(i))in r?K0.f(r,a,t5(0,o)):r[a]=o;return c.length=f,c},Qfe=Se.TypeError,d9=function(e,t){var n=e.exec;if(en(n)){var r=kt(n,e,t);return r!==null&&hr(r),r}if(ho(e)==="RegExp")return kt(Rf,e,t);throw Qfe("RegExp#exec called on incompatible receiver")},_u=_P.UNSUPPORTED_Y,ede=Math.min,IP=[].push,tde=Me(/./.exec),Pu=Me(IP),gc=Me("".slice);(function(e,t,n,r){var i=_o(e),o=!It(function(){var l={};return l[i]=function(){return 7},""[e](l)!=7}),a=o&&!It(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Hfe]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return l=!0,null},c[i](""),!l});if(!o||!a||n){var u=Me(/./[i]),s=t(i,""[e],function(l,c,f,d,p){var g=Me(l),v=c.exec;return v===Rf||v===g2.exec?o&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:g(f,c,d)}:{done:!1}});If(String.prototype,e,s[0]),If(g2,i,s[1])}r&&Fs(g2[i],"sham",!0)})("split",function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(i,o){var a,u,s=ci(Bs(this)),l=o===void 0?4294967295:o>>>0;if(l===0)return[];if(i===void 0)return[s];if(!or(a=i)||!((u=a[Ufe])!==void 0?u:ho(a)=="RegExp"))return kt(t,s,i,l);for(var c,f,d,p=[],g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),v=0,m=new RegExp(i.source,g+"g");(c=kt(Rf,m,s))&&!((f=m.lastIndex)>v&&(Pu(p,gc(s,v,c.index)),c.length>1&&c.index<s.length&&zfe(IP,p,f9(c,1)),d=c[0].length,v=f,p.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return v===s.length?!d&&tde(m,"")||Pu(p,""):Pu(p,gc(s,v)),p.length>l?f9(p,0,l):p}:"0".split(void 0,0).length?function(i,o){return i===void 0&&o===0?[]:kt(t,this,i,o)}:t,[function(i,o){var a=Bs(this),u=i==null?void 0:yP(i,e);return u?kt(u,i,a,o):kt(r,ci(a),i,o)},function(i,o){var a=hr(this),u=ci(i),s=n(r,a,u,o,r!==t);if(s.done)return s.value;var l=qfe(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(_u?"g":"y"),d=new l(_u?"^(?:"+a.source+")":a,f),p=o===void 0?4294967295:o>>>0;if(p===0)return[];if(u.length===0)return d9(d,u)===null?[u]:[];for(var g=0,v=0,m=[];v<u.length;){d.lastIndex=_u?0:v;var y,h=d9(d,_u?gc(u,v):u);if(h===null||(y=ede(EP(d.lastIndex+(_u?v:0)),u.length))===g)v=Xfe(u,v,c);else{if(Pu(m,gc(u,g,v)),m.length===p)return m;for(var $ =1; $ <=h.length-1; $ ++)if(Pu(m,h[ $ ]),m.length===p)return m;v=g=y}}return Pu(m,gc(u,g)),m}]},!!It(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".s
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 .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r c t = f u n c t i o n ( ) { r e t u r n c t = O b j e c t . a s s i g n | | f u n c t i o n ( t ) { f o r ( v a r n , r = 1 , i = a r g u m e n t s . l e n g t h ; r < i ; r + + ) { n = a r g u m e n t s [ r ] ; f o r ( v a r o i n n ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( n , o ) & & ( t [ o ] = n [ o ] ) } r e t u r n t } , c t . a p p l y ( t h i s , a r g u m e n t s ) } , P t = f u n c t i o n ( ) { f u n c t i o n e ( ) { t h r o w n e w E r r o r ( ` \ u 4 E 0 D \ u 8 0 F D \ u 5 B 9 E \ u 4 F 8 B \ u 5 3 1 6
Can not construct a instance ` )}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=ct(ct({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=ct(ct({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=ct(ct({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=ct(ct({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){BV(t,n)},e.registerRenderElem=function(t){tq(t)},e.registerRenderStyle=function(t){eq(t)},e.registerElemToHtml=function(t){MV(t)},e.registerStyleToHtml=function(t){LV(t)},e.registerPreParseHtml=function(t){lW(t)},e.registerParseElemHtml=function(t){fW(t)},e.registerParseStyleHtml=function(t){cW(t)},e.registerModule=function(t){Ja(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Ja(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return Pt.registerMenu(c)}),n&&n.forEach(function(c){return Pt.registerRenderElem(c)}),r&&Pt.registerRenderStyle(r),i&&i.forEach(function(c){return Pt.registerElemToHtml(c)}),o&&Pt.registerStyleToHtml(o),a&&a.forEach(function(c){return Pt.registerPreParseHtml(c)}),u&&u.forEach(function(c){return Pt.registerParseElemHtml(c)}),s&&Pt.registerParseStyleHtml(s),l&&Pt.registerPlugin(l)}DQ.forEach(function(e){return Ja(e)});Ja(Ite);Ja(fie);Ja(Sue);Ja(mce);Ja(ude);var cde='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',fde='<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>',LP='<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>',dde='<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>',pde='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>';function hde(){return["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:q("editor.more"),iconSvg:dde,menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:q("editor.justify"),iconSvg:fde,menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:q("editor.indent"),iconSvg:cde,menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:q("editor.image"),iconSvg:LP,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:q("editor.video"),iconSvg:pde,menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]}function gde(){return["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle",
Please use '@${e}' event instead of props ` ,t}var zP=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Nde=g9({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=v2(null),r=HP(null),i=v2(""),o=()=>{if(!n.value)return;const u=qP(e.defaultContent);xde({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:Pde(_de({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Ui("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(i.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Ui("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Ui("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Ui("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Ui("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Ui("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Ui("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Ui("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return UP(()=>{o()}),VP(()=>e.modelValue,u=>{u!==i.value&&a(u)}),{box:n}}}),Ide={ref:"box",style:{height:"100%"}};function Rde(e,t,n,r,i,o){return v9(),m9("div",Ide,null,512)}var Xde=zP(Nde,[["render",Rde]]);const jde=g9({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=v2(null),n=r=>{if(!!t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");x.getToolbar(r)||Ade({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return WP(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),Lde={ref:"selector"};function Mde(e,t,n,r,i,o){return v9(),m9("div",Lde,null,512)}var Jde=zP(jde,[["render",Mde]]);export{Xde as E,Jde as T};