2020-03-29 09:07:30 +02:00
! function ( e , t ) { "object" == typeof exports && "object" == typeof module ? module . exports = t ( ) : "function" == typeof define && define . amd ? define ( [ ] , t ) : "object" == typeof exports ? exports . grapesjs = t ( ) : e . grapesjs = t ( ) } ( window , function ( ) { return function ( e ) { function t ( r ) { if ( n [ r ] ) return n [ r ] . exports ; var i = n [ r ] = { i : r , l : ! 1 , exports : { } } ; return e [ r ] . call ( i . exports , i , i . exports , t ) , i . l = ! 0 , i . exports } var n = { } ; return t . m = e , t . c = n , t . d = function ( e , n , r ) { t . o ( e , n ) || Object . defineProperty ( e , n , { enumerable : ! 0 , get : r } ) } , t . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , t . t = function ( e , n ) { if ( 1 & n && ( e = t ( e ) ) , 8 & n ) return e ; if ( 4 & n && "object" == typeof e && e && e . _ _esModule ) return e ; var r = Object . create ( null ) ; if ( t . r ( r ) , Object . defineProperty ( r , "default" , { enumerable : ! 0 , value : e } ) , 2 & n && "string" != typeof e ) for ( var i in e ) t . d ( r , i , function ( t ) { return e [ t ] } . bind ( null , i ) ) ; return r } , t . n = function ( e ) { var n = e && e . _ _esModule ? function ( ) { return e [ "default" ] } : function ( ) { return e } ; return t . d ( n , "a" , n ) , n } , t . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , t . p = "" , t ( t . s = "./src/index.js" ) } ( { "./node_modules/@babel/runtime/helpers/arrayWithHoles.js" : function ( e , t ) { function n ( e ) { if ( Array . isArray ( e ) ) return e } e . exports = n } , "./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js" : function ( e , t ) { function n ( e ) { if ( Array . isArray ( e ) ) { for ( var t = 0 , n = new Array ( e . length ) ; t < e . length ; t ++ ) n [ t ] = e [ t ] ; return n } } e . exports = n } , "./node_modules/@babel/runtime/helpers/classCallCheck.js" : function ( e , t ) { function n ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } e . exports = n } , "./node_modules/@babel/runtime/helpers/createClass.js" : function ( e , t ) { function n ( 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 r ( e , t , r ) { return t && n ( e . prototype , t ) , r && n ( e , r ) , e } e . exports = r } , "./node_modules/@babel/runtime/helpers/defineProperty.js" : function ( e , t ) { function n ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } e . exports = n } , "./node_modules/@babel/runtime/helpers/iterableToArray.js" : function ( e , t ) { function n ( e ) { if ( Symbol . iterator in Object ( e ) || "[object Arguments]" === Object . prototype . toString . call ( e ) ) return Array . from ( e ) } e . exports = n } , "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js" : function ( e , t ) { function n ( e , t ) { if ( Symbol . iterator in Object ( e ) || "[object Arguments]" === Object . prototype . toString . call ( e ) ) { var n = [ ] , r = ! 0 , i = ! 1 , o = void 0 ; try { for ( var s , a = e [ Symbol . iterator ] ( ) ; ! ( r = ( s = a . next ( ) ) . done ) && ( n . push ( s . value ) , ! t || n . length !== t ) ; r = ! 0 ) ; } catch ( l ) { i = ! 0 , o = l } finally { try { r || null == a [ "return" ] || a [ "return" ] ( ) } finally { if ( i ) throw o } } return n } } e . exports = n } , "./node_modules/@babel/runtime/helpers/nonIterableRest.js" : function ( e , t ) { function n ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) } e . exports = n } , "./node_modules/@babel/runtime/helpers/nonIterableSpread.js" : function ( e , t ) { function n ( ) { throw new TypeError ( "Invalid attempt to spread non-iterable instance" ) } e . exports = n } , "./node_modules/@babel/runtime/helpers/objectWithoutProperties.js" : function ( e , t , n ) { function r ( e , t ) { if ( null == e ) return { } ; var n , r , o = i ( e , t ) ; if ( Object . getOwnPropertySymbols ) { var s = Object . getOwnPropertySymbols ( e ) ; for ( r = 0 ; r < s . length ; r ++ ) n = s [ r ] , t . indexOf ( n ) >= 0 || Object . prototype . propertyIsEnumerable . call ( e , n ) && ( o [ n ] = e [ n ] ) } return o } var i = n ( "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js" ) ; e . exports = r } , "./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js" : function ( e , t ) { function n ( e , t ) { if ( null == e ) return { } ; var n , r , i = { } , o = Object . keys ( e ) ; for ( r = 0 ; r < o . length ; r ++ ) n = o [ r ] , t . indexOf ( n ) >= 0 || ( i [ n ] = e [ n ] ) ; return i } e . exports = n } , "./node_modules/@babel/runtime/helpers/slicedToArray.js" : function ( e , t , n ) { function r ( e , t ) { return i ( e ) || o ( e , t ) || s ( ) } var i = n ( "./node_modules/@babel/runtime/helpers/arrayWithHoles.js" ) , o = n ( "./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js" ) , s = n ( " . / node _modules / @ babel / runtime / helpers
} , route : function ( e , t ) { this . handlers . unshift ( { route : e , callback : t } ) } , checkUrl : function ( e ) { var t = this . getFragment ( ) ; return t === this . fragment && this . iframe && ( t = this . getHash ( this . iframe . contentWindow ) ) , t !== this . fragment && ( this . iframe && this . navigate ( t ) , void this . loadUrl ( ) ) } , loadUrl : function ( e ) { return ! ! this . matchRoot ( ) && ( e = this . fragment = this . getFragment ( e ) , n . some ( this . handlers , function ( t ) { if ( t . route . test ( e ) ) return t . callback ( e ) , ! 0 } ) ) } , navigate : function ( e , t ) { if ( ! N . started ) return ! 1 ; t && t !== ! 0 || ( t = { trigger : ! ! t } ) , e = this . getFragment ( e || "" ) ; var n = this . root ; "" !== e && "?" !== e . charAt ( 0 ) || ( n = n . slice ( 0 , - 1 ) || "/" ) ; var r = n + e ; if ( e = this . decodeFragment ( e . replace ( F , "" ) ) , this . fragment !== e ) { if ( this . fragment = e , this . _usePushState ) this . history [ t . replace ? "replaceState" : "pushState" ] ( { } , document . title , r ) ; else { if ( ! this . _wantsHashChange ) return this . location . assign ( r ) ; if ( this . _updateHash ( this . location , e , t . replace ) , this . iframe && e !== this . getHash ( this . iframe . contentWindow ) ) { var i = this . iframe . contentWindow ; t . replace || ( i . document . open ( ) , i . document . close ( ) ) , this . _updateHash ( i . location , e , t . replace ) } } return t . trigger ? this . loadUrl ( e ) : void 0 } } , _updateHash : function ( e , t , n ) { if ( n ) { var r = e . href . replace ( /(javascript:|#).*$/ , "" ) ; e . replace ( r + "#" + t ) } else e . hash = "#" + t } } ) , t . history = new N ; var R = function ( e , t ) { var r , i = this ; return r = e && n . has ( e , "constructor" ) ? e . constructor : function ( ) { return i . apply ( this , arguments ) } , n . extend ( r , i , t ) , r . prototype = n . create ( i . prototype , e ) , r . prototype . constructor = r , r . _ _super _ _ = i . prototype , r } ; y . extend = x . extend = _ . extend = S . extend = N . extend = R ; var H = function ( ) { throw new Error ( 'A "url" property or function must be specified' ) } , z = function ( e , t ) { var n = t . error ; t . error = function ( r ) { n && n . call ( t . context , e , r , t ) , e . trigger ( "error" , e , r , t ) } } ; return t } ) } ) . call ( this , n ( "./node_modules/webpack/buildin/global.js" ) ) } , "./node_modules/cash-dom/dist/cash.esm.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { return void 0 === t && ( t = H ) , J . test ( e ) ? t . getElementsByClassName ( e . slice ( 1 ) ) : Q . test ( e ) ? t . getElementsByTagName ( e ) : t . querySelectorAll ( e ) } function i ( e , t ) { if ( void 0 === t && ( t = H ) , e ) { if ( e . _ _cash ) return e ; var n = e ; if ( d ( e ) ) { if ( t . _ _cash && ( t = t [ 0 ] ) , n = X . test ( e ) ? t . getElementById ( e . slice ( 1 ) ) : Z . test ( e ) ? I ( e ) : r ( e , t ) , ! n ) return } else if ( u ( e ) ) return this . ready ( e ) ; ( n . nodeType || n === z ) && ( n = [ n ] ) , this . length = n . length ; for ( var i = 0 , o = this . length ; i < o ; i ++ ) this [ i ] = n [ i ] } } function o ( e , t ) { return new i ( e , t ) } function s ( e ) { return e . replace ( te , function ( e , t ) { return e [ t ? "toUpperCase" : "toLowerCase" ] ( ) } ) . replace ( ne , "" ) } function a ( e , t ) { for ( var n = 0 , r = e . length ; n < r && t . call ( e [ n ] , e [ n ] , n , e ) !== ! 1 ; n ++ ) ; } function l ( e ) { void 0 === e && ( e = this ) ; for ( var t = arguments , n = t . length , r = n < 2 ? 0 : 1 ; r < n ; r ++ ) for ( var i in t [ r ] ) e [ i ] = t [ r ] [ i ] ; return e } function c ( e , t ) { var n = e && ( e . matches || e . webkitMatchesSelector || e . mozMatchesSelector || e . msMatchesSelector || e . oMatchesSelector ) ; return ! ! n && n . call ( e , t ) } function u ( e ) { return "function" == typeof e } function d ( e ) { return "string" == typeof e } function h ( e ) { return ! isNaN ( parseFloat ( e ) ) && isFinite ( e ) } function f ( e ) { return d ( e ) ? function ( t , n ) { return c ( n , e ) } : e . _ _cash ? function ( t , n ) { return e . is ( n ) } : function ( e , t , n ) { return t === n } } function p ( e ) { return d ( e ) ? e . match ( oe ) || [ ] : [ ] } function g ( e ) { return e . filter ( function ( e , t , n ) { return n . indexOf ( e ) === t } ) } function m ( e , t , n ) { if ( 1 === e . nodeType ) { var r = z . getComputedStyle ( e , null ) ; return t ? n ? r . getPropertyValue ( t ) : r [ t ] : r } } function v ( e , t ) { return parseInt ( m ( e , t ) , 10 ) || 0 } function b ( e ) { return se . test ( e ) } function y ( e , t ) { if ( void 0 === t && ( t = b ( e ) ) , t ) return e ; if ( ! ae [ e ] ) { var n = s ( e ) , r = "" + n . charAt ( 0 ) . toUpperCase ( ) + n . slice ( 1 ) , i = ( n + " " + ue . join ( r + " " ) + r ) . split ( " " ) ; a ( i , function ( t ) { if ( t in ce ) return ae [ e ] = t , ! 1 } ) } return ae [ e ] } function w ( e , t , n ) { return void 0 === n && ( n = b ( e ) ) , n || de [ e ] || ! h ( t ) ? t : t + "px" } function x ( e ) { return e [ he ] = e [ he ] || { } } function C ( e , t ) { var n = x ( e ) ; if ( t ) { if ( ! ( t in n ) ) { var r = e . dataset ? e . dataset [ t ] || e . dataset [ s ( t ) ] : o ( e ) . attr ( "data-" + t ) ; if ( void 0 !== r ) { try { r = JSON . parse ( r ) } catch ( i ) { } n [ t ] = r } } return n [ t ] } return n } function j ( e , t ) { void 0 === t ? delete e [ he ] : delete x ( e ) [ t ] } function O ( e , t , n ) { x ( e ) [ t ] = n } function k ( e , t ) { return v ( e , "border" + ( t ? "Left" : "Top" ) + "Width" ) + v ( e , "padding" + ( t ? "Left" : "Top" ) ) + v ( e , "padding" + ( t ? "Right" : "Bottom" ) ) + v ( e , " border
return n } function Ue ( e ) { return We ( e , ! 0 ) } function qe ( e ) { return We ( e , ! 1 ) } function Ge ( e , t ) { var n , r = va && e . markedSpans ; if ( r ) for ( var i = 0 ; i < r . length ; ++ i ) { var o = r [ i ] ; o . marker . collapsed && ( null == o . from || o . from < t ) && ( null == o . to || o . to > t ) && ( ! n || $e ( n , o . marker ) < 0 ) && ( n = o . marker ) } return n } function Ke ( e , t , n , r , i ) { var o = Q ( e , t ) , s = va && o . markedSpans ; if ( s ) for ( var a = 0 ; a < s . length ; ++ a ) { var l = s [ a ] ; if ( l . marker . collapsed ) { var c = l . marker . find ( 0 ) , u = le ( c . from , n ) || ze ( l . marker ) - ze ( i ) , d = le ( c . to , r ) || Be ( l . marker ) - Be ( i ) ; if ( ! ( u >= 0 && d <= 0 || u <= 0 && d >= 0 ) && ( u <= 0 && ( l . marker . inclusiveRight && i . inclusiveLeft ? le ( c . to , n ) >= 0 : le ( c . to , n ) > 0 ) || u >= 0 && ( l . marker . inclusiveRight && i . inclusiveLeft ? le ( c . from , r ) <= 0 : le ( c . from , r ) < 0 ) ) ) return ! 0 } } } function Ye ( e ) { for ( var t ; t = Ue ( e ) ; ) e = t . find ( - 1 , ! 0 ) . line ; return e } function Xe ( e ) { for ( var t ; t = qe ( e ) ; ) e = t . find ( 1 , ! 0 ) . line ; return e } function Je ( e ) { for ( var t , n ; t = qe ( e ) ; ) e = t . find ( 1 , ! 0 ) . line , ( n || ( n = [ ] ) ) . push ( e ) ; return n } function Ze ( e , t ) { var n = Q ( e , t ) , r = Ye ( n ) ; return n == r ? t : re ( r ) } function Qe ( e , t ) { if ( t > e . lastLine ( ) ) return t ; var n , r = Q ( e , t ) ; if ( ! et ( e , r ) ) return t ; for ( ; n = qe ( r ) ; ) r = n . find ( 1 , ! 0 ) . line ; return re ( r ) + 1 } function et ( e , t ) { var n = va && t . markedSpans ; if ( n ) for ( var r = void 0 , i = 0 ; i < n . length ; ++ i ) if ( r = n [ i ] , r . marker . collapsed ) { if ( null == r . from ) return ! 0 ; if ( ! r . marker . widgetNode && 0 == r . from && r . marker . inclusiveLeft && tt ( e , t , r ) ) return ! 0 } } function tt ( e , t , n ) { if ( null == n . to ) { var r = n . marker . find ( 1 , ! 0 ) ; return tt ( e , r . line , De ( r . line . markedSpans , n . marker ) ) } if ( n . marker . inclusiveRight && n . to == t . text . length ) return ! 0 ; for ( var i = void 0 , o = 0 ; o < t . markedSpans . length ; ++ o ) if ( i = t . markedSpans [ o ] , i . marker . collapsed && ! i . marker . widgetNode && i . from == n . to && ( null == i . to || i . to != n . from ) && ( i . marker . inclusiveLeft || n . marker . inclusiveRight ) && tt ( e , t , i ) ) return ! 0 } function nt ( e ) { e = Ye ( e ) ; for ( var t = 0 , n = e . parent , r = 0 ; r < n . lines . length ; ++ r ) { var i = n . lines [ r ] ; if ( i == e ) break ; t += i . height } for ( var o = n . parent ; o ; n = o , o = n . parent ) for ( var s = 0 ; s < o . children . length ; ++ s ) { var a = o . children [ s ] ; if ( a == n ) break ; t += a . height } return t } function rt ( e ) { if ( 0 == e . height ) return 0 ; for ( var t , n = e . text . length , r = e ; t = Ue ( r ) ; ) { var i = t . find ( 0 , ! 0 ) ; r = i . from . line , n += i . from . ch - i . to . ch } for ( r = e ; t = qe ( r ) ; ) { var o = t . find ( 0 , ! 0 ) ; n -= r . text . length - o . from . ch , r = o . to . line , n += r . text . length - o . to . ch } return n } function it ( e ) { var t = e . display , n = e . doc ; t . maxLine = Q ( n , n . first ) , t . maxLineLength = rt ( t . maxLine ) , t . maxLineChanged = ! 0 , n . iter ( function ( e ) { var n = rt ( e ) ; n > t . maxLineLength && ( t . maxLineLength = n , t . maxLine = e ) } ) } function ot ( e , t , n , r ) { e . text = t , e . stateAfter && ( e . stateAfter = null ) , e . styles && ( e . styles = null ) , null != e . order && ( e . order = null ) , Re ( e ) , He ( e , n ) ; var i = r ? r ( e ) : 1 ; i != e . height && ne ( e , i ) } function st ( e ) { e . parent = null , Re ( e ) } function at ( e , t ) { if ( ! e || /^\s*$/ . test ( e ) ) return null ; var n = t . addModeClass ? xa : wa ; return n [ e ] || ( n [ e ] = e . replace ( /\S+/g , "cm-$&" ) ) } function lt ( e , t ) { var n = i ( "span" , null , null , Os ? "padding-right: .1px" : null ) , r = { pre : i ( "pre" , [ n ] , "CodeMirror-line" ) , content : n , col : 0 , pos : 0 , cm : e , trailingSpace : ! 1 , splitSpaces : e . getOption ( "lineWrapping" ) } ; t . measure = { } ; for ( var o = 0 ; o <= ( t . rest ? t . rest . length : 0 ) ; o ++ ) { var s = o ? t . rest [ o - 1 ] : t . line , a = void 0 ; r . pos = 0 , r . addToken = ut , $ ( e . display . measure ) && ( a = P ( s , e . doc . direction ) ) && ( r . addToken = ht ( r . addToken , a ) ) , r . map = [ ] ; var c = t != e . display . externalMeasured && re ( s ) ; pt ( s , r , be ( e , s , c ) ) , s . styleClasses && ( s . styleClasses . bgClass && ( r . bgClass = l ( s . styleClasses . bgClass , r . bgClass || "" ) ) , s . styleClasses . textClass && ( r . textClass = l ( s . styleClasses . textClass , r . textClass || "" ) ) ) , 0 == r . map . length && r . map . push ( 0 , 0 , r . content . appendChild ( B ( e . display . measure ) ) ) , 0 == o ? ( t . measure . map = r . map , t . measure . cache = { } ) : ( ( t . measure . maps || ( t . measure . maps = [ ] ) ) . push ( r . map ) , ( t . measure . caches || ( t . measure . caches = [ ] ) ) . push ( { } ) ) } if ( Os ) { var u = r . content . lastChild ; ( /\bcm-tab\b/ . test ( u . className ) || u . querySelector && u . querySelector ( ".cm-tab" ) ) && ( r . content . className = "cm-tab-wrap-hack" ) } return D ( e , "renderLine" , e , t . line , r . pre ) , r . pre . className && ( r . textClass = l ( r . pre . className , r . textClass || "" ) ) , r } function ct ( e ) { var t = r ( "span" , "•" , "cm-invalidchar" ) ; return t . title = "\\u" + e . charCodeAt ( 0 ) . toString ( 16 ) , t . setAttribute ( "aria-label" , t . title ) , t } function ut ( e , t , n , i , o , s , a ) { if ( t ) { var l , c = e . splitSpaces ? dt ( t , e . trailingSpace ) : t , u = e . cm . state . specialChars , d = ! 1 ; if ( u . test (
var a = e . doc . height + It ( n ) , l = t . top < r , c = t . bottom > a - r ; if ( t . top < i ) s . scrollTop = l ? 0 : t . top ; else if ( t . bottom > i + o ) { var u = Math . min ( t . top , ( c ? a : t . bottom ) - o ) ; u != i && ( s . scrollTop = u ) } var d = e . curOp && null != e . curOp . scrollLeft ? e . curOp . scrollLeft : n . scroller . scrollLeft , h = Ht ( e ) - ( e . options . fixedGutter ? n . gutters . offsetWidth : 0 ) , f = t . right - t . left > h ; return f && ( t . right = t . left + h ) , t . left < 10 ? s . scrollLeft = 0 : t . left < d ? s . scrollLeft = Math . max ( 0 , t . left - ( f ? 0 : 10 ) ) : t . right > h + d - 3 && ( s . scrollLeft = t . right + ( f ? 0 : 10 ) - h ) , s } function Xn ( e , t ) { null != t && ( er ( e ) , e . curOp . scrollTop = ( null == e . curOp . scrollTop ? e . doc . scrollTop : e . curOp . scrollTop ) + t ) } function Jn ( e ) { er ( e ) ; var t = e . getCursor ( ) ; e . curOp . scrollToPos = { from : t , to : t , margin : e . options . cursorScrollMargin } } function Zn ( e , t , n ) { null == t && null == n || er ( e ) , null != t && ( e . curOp . scrollLeft = t ) , null != n && ( e . curOp . scrollTop = n ) } function Qn ( e , t ) { er ( e ) , e . curOp . scrollToPos = t } function er ( e ) { var t = e . curOp . scrollToPos ; if ( t ) { e . curOp . scrollToPos = null ; var n = un ( e , t . from ) , r = un ( e , t . to ) ; tr ( e , n , r , t . margin ) } } function tr ( e , t , n , r ) { var i = Yn ( e , { left : Math . min ( t . left , n . left ) , top : Math . min ( t . top , n . top ) - r , right : Math . max ( t . right , n . right ) , bottom : Math . max ( t . bottom , n . bottom ) + r } ) ; Zn ( e , i . scrollLeft , i . scrollTop ) } function nr ( e , t ) { Math . abs ( e . doc . scrollTop - t ) < 2 || ( bs || Pr ( e , { top : t } ) , rr ( e , t , ! 0 ) , bs && Pr ( e ) , xr ( e , 100 ) ) } function rr ( e , t , n ) { t = Math . min ( e . display . scroller . scrollHeight - e . display . scroller . clientHeight , t ) , ( e . display . scroller . scrollTop != t || n ) && ( e . doc . scrollTop = t , e . display . scrollbars . setScrollTop ( t ) , e . display . scroller . scrollTop != t && ( e . display . scroller . scrollTop = t ) ) } function ir ( e , t , n , r ) { t = Math . min ( t , e . display . scroller . scrollWidth - e . display . scroller . clientWidth ) , ( n ? t == e . doc . scrollLeft : Math . abs ( e . doc . scrollLeft - t ) < 2 ) && ! r || ( e . doc . scrollLeft = t , Mr ( e ) , e . display . scroller . scrollLeft != t && ( e . display . scroller . scrollLeft = t ) , e . display . scrollbars . setScrollLeft ( t ) ) } function or ( e ) { var t = e . display , n = t . gutters . offsetWidth , r = Math . round ( e . doc . height + It ( e . display ) ) ; return { clientHeight : t . scroller . clientHeight , viewHeight : t . wrapper . clientHeight , scrollWidth : t . scroller . scrollWidth , clientWidth : t . scroller . clientWidth , viewWidth : t . wrapper . clientWidth , barLeft : e . options . fixedGutter ? n : 0 , docHeight : r , scrollHeight : r + Rt ( e ) + t . barHeight , nativeBarWidth : t . nativeBarWidth , gutterWidth : n } } function sr ( e , t ) { t || ( t = or ( e ) ) ; var n = e . display . barWidth , r = e . display . barHeight ; ar ( e , t ) ; for ( var i = 0 ; i < 4 && n != e . display . barWidth || r != e . display . barHeight ; i ++ ) n != e . display . barWidth && e . options . lineWrapping && $n ( e ) , ar ( e , or ( e ) ) , n = e . display . barWidth , r = e . display . barHeight } function ar ( e , t ) { var n = e . display , r = n . scrollbars . update ( t ) ; n . sizer . style . paddingRight = ( n . barWidth = r . right ) + "px" , n . sizer . style . paddingBottom = ( n . barHeight = r . bottom ) + "px" , n . heightForcer . style . borderBottom = r . bottom + "px solid transparent" , r . right && r . bottom ? ( n . scrollbarFiller . style . display = "block" , n . scrollbarFiller . style . height = r . bottom + "px" , n . scrollbarFiller . style . width = r . right + "px" ) : n . scrollbarFiller . style . display = "" , r . bottom && e . options . coverGutterNextToScrollbar && e . options . fixedGutter ? ( n . gutterFiller . style . display = "block" , n . gutterFiller . style . height = r . bottom + "px" , n . gutterFiller . style . width = t . gutterWidth + "px" ) : n . gutterFiller . style . display = "" } function lr ( e ) { e . display . scrollbars && ( e . display . scrollbars . clear ( ) , e . display . scrollbars . addClass && zs ( e . display . wrapper , e . display . scrollbars . addClass ) ) , e . display . scrollbars = new Ta [ e . options . scrollbarStyle ] ( function ( t ) { e . display . wrapper . insertBefore ( t , e . display . scrollbarFiller ) , ra ( t , "mousedown" , function ( ) { e . state . focused && setTimeout ( function ( ) { return e . display . input . focus ( ) } , 0 ) } ) , t . setAttribute ( "cm-not-content" , "true" ) } , function ( t , n ) { "horizontal" == n ? ir ( e , t ) : nr ( e , t ) } , e ) , e . display . scrollbars . addClass && a ( e . display . wrapper , e . display . scrollbars . addClass ) } function cr ( e ) { e . curOp = { cm : e , viewChanged : ! 1 , startHeight : e . doc . height , forceUpdate : ! 1 , updateInput : 0 , typing : ! 1 , changeObjs : null , cursorActivityHandlers : null , cursorActivityCalled : 0 , selectionChanged : ! 1 , updateMaxLine : ! 1 , scrollLeft : null , scrollTop : null , scrollToPos : null , focus : ! 1 , id : ++ Pa } , vt ( e . curOp ) } function ur ( e ) { var t = e . curOp ; t && yt ( t , function ( e ) { for ( var t = 0 ; t < e . ops . length ; t ++ ) e . ops [ t ] . cm . curOp = null ; dr ( e ) } ) } function dr ( e ) { fo
s . atomic && ki ( d . doc ) , wt ( d , "markerAdded" , d , s ) } return s } function Ki ( e , t , n , r , i ) { r = u ( r ) , r . shared = ! 1 ; var o = [ Gi ( e , t , n , r , i ) ] , s = o [ 0 ] , a = r . widgetNode ; return Zr ( e , function ( e ) { a && ( r . widgetNode = a . cloneNode ( ! 0 ) ) , o . push ( Gi ( e , pe ( e , t ) , pe ( e , n ) , r , i ) ) ; for ( var l = 0 ; l < e . linked . length ; ++ l ) if ( e . linked [ l ] . isParent ) return ; s = g ( o ) } ) , new Ia ( o , s ) } function Yi ( e ) { return e . findMarks ( ae ( e . first , 0 ) , e . clipPos ( ae ( e . lastLine ( ) ) ) , function ( e ) { return e . parent } ) } function Xi ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ] , i = r . find ( ) , o = e . clipPos ( i . from ) , s = e . clipPos ( i . to ) ; if ( le ( o , s ) ) { var a = Gi ( e , o , s , r . primary , r . primary . type ) ; r . markers . push ( a ) , a . parent = r } } } function Ji ( e ) { for ( var t = function ( t ) { var n = e [ t ] , r = [ n . primary . doc ] ; Zr ( n . primary . doc , function ( e ) { return r . push ( e ) } ) ; for ( var i = 0 ; i < n . markers . length ; i ++ ) { var o = n . markers [ i ] ; h ( r , o . doc ) == - 1 && ( o . parent = null , n . markers . splice ( i -- , 1 ) ) } } , n = 0 ; n < e . length ; n ++ ) t ( n ) } function Zi ( e ) { var t = this ; if ( to ( t ) , ! M ( t , e ) && ! Nt ( t . display , e ) ) { V ( e ) , Cs && ( Ha = + new Date ) ; var n = kn ( t , e , ! 0 ) , r = e . dataTransfer . files ; if ( n && ! t . isReadOnly ( ) ) if ( r && r . length && window . FileReader && window . File ) for ( var i = r . length , o = Array ( i ) , s = 0 , a = function ( e , r ) { if ( ! t . options . allowDropFileTypes || h ( t . options . allowDropFileTypes , e . type ) != - 1 ) { var a = new FileReader ; a . onload = br ( t , function ( ) { var e = a . result ; if ( /[\x00-\x08\x0e-\x1f]{2}/ . test ( e ) && ( e = "" ) , o [ r ] = e , ++ s == i ) { n = pe ( t . doc , n ) ; var l = { from : n , to : n , text : t . doc . splitLines ( o . join ( t . doc . lineSeparator ( ) ) ) , origin : "paste" } ; Mi ( t . doc , l ) , xi ( t . doc , Br ( n , $r ( l ) ) ) } } ) , a . readAsText ( e ) } } , l = 0 ; l < i ; ++ l ) a ( r [ l ] , l ) ; else { if ( t . state . draggingText && t . doc . sel . contains ( n ) > - 1 ) return t . state . draggingText ( e ) , void setTimeout ( function ( ) { return t . display . input . focus ( ) } , 20 ) ; try { var c = e . dataTransfer . getData ( "Text" ) ; if ( c ) { var u ; if ( t . state . draggingText && ! t . state . draggingText . copy && ( u = t . listSelections ( ) ) , ji ( t . doc , Br ( n , n ) ) , u ) for ( var d = 0 ; d < u . length ; ++ d ) Fi ( t . doc , "" , u [ d ] . anchor , u [ d ] . head , "drag" ) ; t . replaceSelection ( c , "around" , "paste" ) , t . display . input . focus ( ) } } catch ( e ) { } } } } function Qi ( e , t ) { if ( Cs && ( ! e . state . draggingText || + new Date - Ha < 100 ) ) return void R ( t ) ; if ( ! M ( e , t ) && ! Nt ( e . display , t ) && ( t . dataTransfer . setData ( "Text" , e . getSelection ( ) ) , t . dataTransfer . effectAllowed = "copyMove" , t . dataTransfer . setDragImage && ! Ps ) ) { var n = r ( "img" , null , null , "position: fixed; left: 0; top: 0;" ) ; n . src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" , Ts && ( n . width = n . height = 1 , e . display . wrapper . appendChild ( n ) , n . _top = n . offsetTop ) , t . dataTransfer . setDragImage ( n , 0 , 0 ) , Ts && n . parentNode . removeChild ( n ) } } function eo ( e , t ) { var i = kn ( e , t ) ; if ( i ) { var o = document . createDocumentFragment ( ) ; Nn ( e , i , o ) , e . display . dragCursor || ( e . display . dragCursor = r ( "div" , null , "CodeMirror-cursors CodeMirror-dragcursors" ) , e . display . lineSpace . insertBefore ( e . display . dragCursor , e . display . cursorDiv ) ) , n ( e . display . dragCursor , o ) } } function to ( e ) { e . display . dragCursor && ( e . display . lineSpace . removeChild ( e . display . dragCursor ) , e . display . dragCursor = null ) } function no ( e ) { if ( document . getElementsByClassName ) { for ( var t = document . getElementsByClassName ( "CodeMirror" ) , n = [ ] , r = 0 ; r < t . length ; r ++ ) { var i = t [ r ] . CodeMirror ; i && n . push ( i ) } n . length && n [ 0 ] . operation ( function ( ) { for ( var t = 0 ; t < n . length ; t ++ ) e ( n [ t ] ) } ) } } function ro ( ) { za || ( io ( ) , za = ! 0 ) } function io ( ) { var e ; ra ( window , "resize" , function ( ) { null == e && ( e = setTimeout ( function ( ) { e = null , no ( oo ) } , 100 ) ) } ) , ra ( window , "blur" , function ( ) { return no ( Bn ) } ) } function oo ( e ) { var t = e . display ; t . cachedCharWidth = t . cachedTextHeight = t . cachedPaddingH = null , t . scrollbarsClipped = ! 1 , e . setSize ( ) } function so ( e ) { var t = e . split ( /-(?!$)/ ) ; e = t [ t . length - 1 ] ; for ( var n , r , i , o , s = 0 ; s < t . length - 1 ; s ++ ) { var a = t [ s ] ; if ( /^(cmd|meta|m)$/i . test ( a ) ) o = ! 0 ; else if ( /^a(lt)?$/i . test ( a ) ) n = ! 0 ; else if ( /^(c|ctrl|control)$/i . test ( a ) ) r = ! 0 ; else { if ( ! /^s(hift)?$/i . test ( a ) ) throw new Error ( "Unrecognized modifier name: " + a ) ; i = ! 0 } } return n && ( e = "Alt-" + e ) , r && ( e = "Ctrl-" + e ) , o && ( e = "Cmd-" + e ) , i && ( e = "Shift-" + e ) , e } function ao ( e ) { var t = { } ; for ( var n in e ) if ( e . hasOwnProperty ( n ) ) { var r = e [ n ] ; if ( /^(name|fallthrough|(de|at)tach)$/ . test ( n ) ) continue ; if ( "..." == r ) { delete e [ n ] ; continue } for ( var i = m ( n . split ( " " ) , so ) , o = 0 ; o < i . length ; o ++ ) { var s = void 0 , a = void 0 ; o == i . length - 1 ? ( a = i . join ( " " ) , s = r ) : ( a = i . slice ( 0 , o + 1 ) . join ( " " ) , s = "..."
if ( n ) { var o = this . getHelper ( e , "wordChars" ) ; "before" != e . sticky && i != n . length || ! r ? ++ i : -- r ; for ( var s = n . charAt ( r ) , a = x ( s , o ) ? function ( e ) { return x ( e , o ) } : /\s/ . test ( s ) ? function ( e ) { return /\s/ . test ( e ) } : function ( e ) { return ! /\s/ . test ( e ) && ! x ( e ) } ; r > 0 && a ( n . charAt ( r - 1 ) ) ; ) -- r ; for ( ; i < n . length && a ( n . charAt ( i ) ) ; ) ++ i } return new Aa ( ae ( e . line , r ) , ae ( e . line , i ) ) } , toggleOverwrite : function ( e ) { null != e && e == this . state . overwrite || ( ( this . state . overwrite = ! this . state . overwrite ) ? a ( this . display . cursorDiv , "CodeMirror-overwrite" ) : zs ( this . display . cursorDiv , "CodeMirror-overwrite" ) , D ( this , "overwriteToggle" , this , this . state . overwrite ) ) } , hasFocus : function ( ) { return this . display . input . getField ( ) == s ( ) } , isReadOnly : function ( ) { return ! ( ! this . options . readOnly && ! this . doc . cantEdit ) } , scrollTo : yr ( function ( e , t ) { Zn ( this , e , t ) } ) , getScrollInfo : function ( ) { var e = this . display . scroller ; return { left : e . scrollLeft , top : e . scrollTop , height : e . scrollHeight - Rt ( this ) - this . display . barHeight , width : e . scrollWidth - Rt ( this ) - this . display . barWidth , clientHeight : zt ( this ) , clientWidth : Ht ( this ) } } , scrollIntoView : yr ( function ( e , t ) { null == e ? ( e = { from : this . doc . sel . primary ( ) . head , to : null } , null == t && ( t = this . options . cursorScrollMargin ) ) : "number" == typeof e ? e = { from : ae ( e , 0 ) , to : null } : null == e . from && ( e = { from : e , to : null } ) , e . to || ( e . to = e . from ) , e . margin = t || 0 , null != e . from . line ? Qn ( this , e ) : tr ( this , e . from , e . to , e . margin ) } ) , setSize : yr ( function ( e , t ) { var n = this , r = function ( e ) { return "number" == typeof e || /^\d+$/ . test ( String ( e ) ) ? e + "px" : e } ; null != e && ( this . display . wrapper . style . width = r ( e ) ) , null != t && ( this . display . wrapper . style . height = r ( t ) ) , this . options . lineWrapping && en ( this ) ; var i = this . display . viewFrom ; this . doc . iter ( i , this . display . viewTo , function ( e ) { if ( e . widgets ) for ( var t = 0 ; t < e . widgets . length ; t ++ ) if ( e . widgets [ t ] . noHScroll ) { Pn ( n , i , "widget" ) ; break } ++ i } ) , this . curOp . forceUpdate = ! 0 , D ( this , "refresh" , this ) } ) , operation : function ( e ) { return vr ( this , e ) } , startOperation : function ( ) { return cr ( this ) } , endOperation : function ( ) { return ur ( this ) } , refresh : yr ( function ( ) { var e = this . display . cachedTextHeight ; Tn ( this ) , this . curOp . forceUpdate = ! 0 , tn ( this ) , Zn ( this , this . doc . scrollLeft , this . doc . scrollTop ) , _r ( this . display ) , ( null == e || Math . abs ( e - yn ( this . display ) ) > . 5 ) && On ( this ) , D ( this , "refresh" , this ) } ) , swapDoc : yr ( function ( e ) { var t = this . doc ; return t . cm = null , this . state . selectingText && this . state . selectingText ( ) , Qr ( this , e ) , tn ( this ) , this . display . input . reset ( ) , Zn ( this , e . scrollLeft , e . scrollTop ) , this . curOp . forceScroll = ! 0 , wt ( this , "swapDoc" , this , t ) , t } ) , phrase : function ( e ) { var t = this . options . phrases ; return t && Object . prototype . hasOwnProperty . call ( t , e ) ? t [ e ] : e } , getInputField : function ( ) { return this . display . input . getField ( ) } , getWrapperElement : function ( ) { return this . display . wrapper } , getScrollerElement : function ( ) { return this . display . scroller } , getGutterElement : function ( ) { return this . display . gutters } } , N ( e ) , e . registerHelper = function ( t , r , i ) { n . hasOwnProperty ( t ) || ( n [ t ] = e [ t ] = { _global : [ ] } ) , n [ t ] [ r ] = i } , e . registerGlobalHelper = function ( t , r , i , o ) { e . registerHelper ( t , r , o ) , n [ t ] . _global . push ( { pred : i , val : o } ) } } function ss ( e , t , n , r , i ) { function o ( ) { var r = t . line + n ; return ! ( r < e . first || r >= e . first + e . size ) && ( t = new ae ( r , t . ch , t . sticky ) , c = Q ( e , r ) ) } function s ( r ) { var s ; if ( s = i ? bo ( e . cm , c , t , n ) : mo ( c , t , n ) , null == s ) { if ( r || ! o ( ) ) return ! 1 ; t = vo ( i , e . cm , c , t . line , n ) } else t = s ; return ! 0 } var a = t , l = n , c = Q ( e , t . line ) ; if ( "char" == r ) s ( ) ; else if ( "column" == r ) s ( ! 0 ) ; else if ( "word" == r || "group" == r ) for ( var u = null , d = "group" == r , h = e . cm && e . cm . getHelper ( t , "wordChars" ) , f = ! 0 ; ! ( n < 0 ) || s ( ! f ) ; f = ! 1 ) { var p = c . text . charAt ( t . ch ) || "\n" , g = x ( p , h ) ? "w" : d && "\n" == p ? "n" : ! d || /\s/ . test ( p ) ? null : "p" ; if ( ! d || f || g || ( g = "s" ) , u && u != g ) { n < 0 && ( n = 1 , s ( ) , t . sticky = "after" ) ; break } if ( g && ( u = g ) , n > 0 && ! s ( ! f ) ) break } var m = Pi ( e , t , a , l , ! 0 ) ; return ce ( a , m ) && ( m . hitSide = ! 0 ) , m } function as ( e , t , n , r ) { var i , o = e . doc , s = t . left ; if ( "page" == r ) { var a = Math . min ( e . display . wrapper . clientHeight , window . innerHeight || document . documentElement . clientHeight ) , l = Math . max ( a - . 5 * yn ( e . display ) , 3 ) ; i = ( n > 0 ? t . bottom : t . top ) + n * l } else "line" == r && ( i = n > 0 ? t . bottom + 3 : t . top - 3 ) ; for ( var c ; c = hn ( e , s , i ) , c . outside ; ) { if ( n < 0 ? i <= 0 : i >= o . height ) { c . hitSide = ! 0 ; break } i += 5 * n } return c } function ls ( e , t ) { var n = qt ( e , t . line ) ; if ( ! n || n . hidden ) return null ; var r = Q ( e . doc , t . line ) , i = $t ( n , r , t . line )
this . history . generation } , isClean : function ( e ) { return this . history . generation == ( e || this . cleanGeneration ) } , getHistory : function ( ) { return { done : pi ( this . history . done ) , undone : pi ( this . history . undone ) } } , setHistory : function ( e ) { var t = this . history = new ni ( this . history . maxGeneration ) ; t . done = pi ( e . done . slice ( 0 ) , null , ! 0 ) , t . undone = pi ( e . undone . slice ( 0 ) , null , ! 0 ) } , setGutterMarker : wr ( function ( e , t , n ) { return Bi ( this , e , "gutter" , function ( e ) { var r = e . gutterMarkers || ( e . gutterMarkers = { } ) ; return r [ t ] = n , ! n && C ( r ) && ( e . gutterMarkers = null ) , ! 0 } ) } ) , clearGutter : wr ( function ( e ) { var t = this ; this . iter ( function ( n ) { n . gutterMarkers && n . gutterMarkers [ e ] && Bi ( t , n , "gutter" , function ( ) { return n . gutterMarkers [ e ] = null , C ( n . gutterMarkers ) && ( n . gutterMarkers = null ) , ! 0 } ) } ) } ) , lineInfo : function ( e ) { var t ; if ( "number" == typeof e ) { if ( ! oe ( this , e ) ) return null ; if ( t = e , e = Q ( this , e ) , ! e ) return null } else if ( t = re ( e ) , null == t ) return null ; return { line : t , handle : e , text : e . text , gutterMarkers : e . gutterMarkers , textClass : e . textClass , bgClass : e . bgClass , wrapClass : e . wrapClass , widgets : e . widgets } } , addLineClass : wr ( function ( t , n , r ) { return Bi ( this , t , "gutter" == n ? "gutter" : "class" , function ( t ) { var i = "text" == n ? "textClass" : "background" == n ? "bgClass" : "gutter" == n ? "gutterClass" : "wrapClass" ; if ( t [ i ] ) { if ( e ( r ) . test ( t [ i ] ) ) return ! 1 ; t [ i ] += " " + r } else t [ i ] = r ; return ! 0 } ) } ) , removeLineClass : wr ( function ( t , n , r ) { return Bi ( this , t , "gutter" == n ? "gutter" : "class" , function ( t ) { var i = "text" == n ? "textClass" : "background" == n ? "bgClass" : "gutter" == n ? "gutterClass" : "wrapClass" , o = t [ i ] ; if ( ! o ) return ! 1 ; if ( null == r ) t [ i ] = null ; else { var s = o . match ( e ( r ) ) ; if ( ! s ) return ! 1 ; var a = s . index + s [ 0 ] . length ; t [ i ] = o . slice ( 0 , s . index ) + ( s . index && a != o . length ? " " : "" ) + o . slice ( a ) || null } return ! 0 } ) } ) , addLineWidget : wr ( function ( e , t , n ) { return qi ( this , e , t , n ) } ) , removeLineWidget : function ( e ) { e . clear ( ) } , markText : function ( e , t , n ) { return Gi ( this , pe ( this , e ) , pe ( this , t ) , n , n && n . type || "range" ) } , setBookmark : function ( e , t ) { var n = { replacedWith : t && ( null == t . nodeType ? t . widget : t ) , insertLeft : t && t . insertLeft , clearWhenEmpty : ! 1 , shared : t && t . shared , handleMouseEvents : t && t . handleMouseEvents } ; return e = pe ( this , e ) , Gi ( this , e , e , n , "bookmark" ) } , findMarksAt : function ( e ) { e = pe ( this , e ) ; var t = [ ] , n = Q ( this , e . line ) . markedSpans ; if ( n ) for ( var r = 0 ; r < n . length ; ++ r ) { var i = n [ r ] ; ( null == i . from || i . from <= e . ch ) && ( null == i . to || i . to >= e . ch ) && t . push ( i . marker . parent || i . marker ) } return t } , findMarks : function ( e , t , n ) { e = pe ( this , e ) , t = pe ( this , t ) ; var r = [ ] , i = e . line ; return this . iter ( e . line , t . line + 1 , function ( o ) { var s = o . markedSpans ; if ( s ) for ( var a = 0 ; a < s . length ; a ++ ) { var l = s [ a ] ; null != l . to && i == e . line && e . ch >= l . to || null == l . from && i != e . line || null != l . from && i == t . line && l . from >= t . ch || n && ! n ( l . marker ) || r . push ( l . marker . parent || l . marker ) } ++ i } ) , r } , getAllMarks : function ( ) { var e = [ ] ; return this . iter ( function ( t ) { var n = t . markedSpans ; if ( n ) for ( var r = 0 ; r < n . length ; ++ r ) null != n [ r ] . from && e . push ( n [ r ] . marker ) } ) , e } , posFromIndex : function ( e ) { var t , n = this . first , r = this . lineSeparator ( ) . length ; return this . iter ( function ( i ) { var o = i . text . length + r ; return o > e ? ( t = e , ! 0 ) : ( e -= o , void ++ n ) } ) , pe ( this , ae ( n , t ) ) } , indexFromPos : function ( e ) { e = pe ( this , e ) ; var t = e . ch ; if ( e . line < this . first || e . ch < 0 ) return 0 ; var n = this . lineSeparator ( ) . length ; return this . iter ( this . first , e . line , function ( e ) { t += e . text . length + n } ) , t } , copy : function ( e ) { var t = new Ra ( te ( this , this . first , this . first + this . size ) , this . modeOption , this . first , this . lineSep , this . direction ) ; return t . scrollTop = this . scrollTop , t . scrollLeft = this . scrollLeft , t . sel = this . sel , t . extend = ! 1 , e && ( t . history . undoDepth = this . history . undoDepth , t . setHistory ( this . getHistory ( ) ) ) , t } , linkedDoc : function ( e ) { e || ( e = { } ) ; var t = this . first , n = this . first + this . size ; null != e . from && e . from > t && ( t = e . from ) , null != e . to && e . to < n && ( n = e . to ) ; var r = new Ra ( te ( this , t , n ) , e . mode || this . modeOption , t , this . lineSep , this . direction ) ; return e . sharedHist && ( r . history = this . history ) , ( this . linked || ( this . linked = [ ] ) ) . push ( { doc : r , sharedHist : e . sharedHist } ) , r . linked = [ { doc : this , isParent : ! 0 , sharedHist : e . sharedHist } ] , Xi ( r , Yi ( this ) ) , r } , unlinkDoc : function ( e ) { var t = this ; if ( e instanceof Yo && ( e = e . doc ) , this . linked ) for ( var n = 0 ; n < this . linked . length ; ++ n ) { var r = t . linked [ n ] ; if ( r . doc == e ) { t . linked . splice ( n , 1 ) , e . unlinkDoc ( t ) , Ji ( Yi ( t ) ) ; break } } if ( e . history == this . history ) { var i = [ e . id ]
if ( "word" == e ) { var r = t . current ( ) . toLowerCase ( ) ; g = "only" == r || "not" == r || "and" == r || "or" == r ? "keyword" : y . hasOwnProperty ( r ) ? "attribute" : w . hasOwnProperty ( r ) ? "property" : x . hasOwnProperty ( r ) ? "keyword" : C . hasOwnProperty ( r ) ? "property" : j . hasOwnProperty ( r ) ? "string-2" : T . hasOwnProperty ( r ) ? "atom" : S . hasOwnProperty ( r ) ? "keyword" : "error" } return n . context . type } , D . atComponentBlock = function ( e , t , n ) { return "}" == e ? d ( e , t , n ) : "{" == e ? c ( n ) && l ( n , t , P ? "block" : "top" , ! 1 ) : ( "word" == e && ( g = "error" ) , n . context . type ) } , D . atBlock _parens = function ( e , t , n ) { return ")" == e ? c ( n ) : "{" == e || "}" == e ? d ( e , t , n , 2 ) : D . atBlock ( e , t , n ) } , D . restricted _atBlock _before = function ( e , t , n ) { return "{" == e ? l ( n , t , "restricted_atBlock" ) : "word" == e && "@counter-style" == n . stateArg ? ( g = "variable" , "restricted_atBlock_before" ) : u ( e , t , n ) } , D . restricted _atBlock = function ( e , t , n ) { return "}" == e ? ( n . stateArg = null , c ( n ) ) : "word" == e ? ( g = "@font-face" == n . stateArg && ! O . hasOwnProperty ( t . current ( ) . toLowerCase ( ) ) || "@counter-style" == n . stateArg && ! k . hasOwnProperty ( t . current ( ) . toLowerCase ( ) ) ? "error" : "property" , "maybeprop" ) : "restricted_atBlock" } , D . keyframes = function ( e , t , n ) { return "word" == e ? ( g = "variable" , "keyframes" ) : "{" == e ? l ( n , t , "top" ) : u ( e , t , n ) } , D . at = function ( e , t , n ) { return ";" == e ? c ( n ) : "{" == e || "}" == e ? d ( e , t , n ) : ( "word" == e ? g = "tag" : "hash" == e && ( g = "builtin" ) , "at" ) } , D . interpolation = function ( e , t , n ) { return "}" == e ? c ( n ) : "{" == e || ";" == e ? d ( e , t , n ) : ( "word" == e ? g = "variable" : "variable" != e && "(" != e && ")" != e && ( g = "error" ) , "interpolation" ) } , { startState : function ( e ) { return { tokenize : null , state : f ? "block" : "top" , stateArg : null , context : new a ( f ? "block" : "top" , e || 0 , null ) } } , token : function ( e , t ) { if ( ! t . tokenize && e . eatSpace ( ) ) return null ; var n = ( t . tokenize || i ) ( e , t ) ; return n && "object" == typeof n && ( p = n [ 1 ] , n = n [ 0 ] ) , g = n , "comment" != p && ( t . state = D [ t . state ] ( p , e , t ) ) , g } , indent : function ( e , t ) { var n = e . context , r = t && t . charAt ( 0 ) , i = n . indent ; return "prop" != n . type || "}" != r && ")" != r || ( n = n . prev ) , n . prev && ( "}" != r || "block" != n . type && "top" != n . type && "interpolation" != n . type && "restricted_atBlock" != n . type ? ( ")" != r || "parens" != n . type && "atBlock_parens" != n . type ) && ( "{" != r || "at" != n . type && "atBlock" != n . type ) || ( i = Math . max ( 0 , n . indent - m ) ) : ( n = n . prev , i = n . indent ) ) , i } , electricChars : "}" , blockCommentStart : "/*" , blockCommentEnd : "*/" , blockCommentContinue : " * " , lineComment : E , fold : "brace" } } ) ; var r = [ "domain" , "regexp" , "url" , "url-prefix" ] , i = t ( r ) , o = [ "all" , "aural" , "braille" , "handheld" , "print" , "projection" , "screen" , "tty" , "tv" , "embossed" ] , s = t ( o ) , a = [ "width" , "min-width" , "max-width" , "height" , "min-height" , "max-height" , "device-width" , "min-device-width" , "max-device-width" , "device-height" , "min-device-height" , "max-device-height" , "aspect-ratio" , "min-aspect-ratio" , "max-aspect-ratio" , "device-aspect-ratio" , "min-device-aspect-ratio" , "max-device-aspect-ratio" , "color" , "min-color" , "max-color" , "color-index" , "min-color-index" , "max-color-index" , "monochrome" , "min-monochrome" , "max-monochrome" , "resolution" , "min-resolution" , "max-resolution" , "scan" , "grid" , "orientation" , "device-pixel-ratio" , "min-device-pixel-ratio" , "max-device-pixel-ratio" , "pointer" , "any-pointer" , "hover" , "any-hover" ] , l = t ( a ) , c = [ "landscape" , "portrait" , "none" , "coarse" , "fine" , "on-demand" , "hover" , "interlace" , "progressive" ] , u = t ( c ) , d = [ "align-content" , "align-items" , "align-self" , "alignment-adjust" , "alignment-baseline" , "anchor-point" , "animation" , "animation-delay" , "animation-direction" , "animation-duration" , "animation-fill-mode" , "animation-iteration-count" , "animation-name" , "animation-play-state" , "animation-timing-function" , "appearance" , "azimuth" , "backface-visibility" , "background" , "background-attachment" , "background-blend-mode" , "background-clip" , "background-color" , "background-image" , "background-origin" , "background-position" , "background-repeat" , "background-size" , "baseline-shift" , "binding" , "bleed" , "bookmark-label" , "bookmark-level" , "bookmark-state" , "bookmark-target" , "border" , "border-bottom" , "border-bottom-color" , "border-bottom-left-radius" , "border-bottom-right-radius" , "border-bottom-style" , "border-bottom-width" , "border-collapse" , "border-color" , "border-image" , "border-image-outset" , "border-image-repeat" , "border-image-slice" , "border-image-source" , "border-image-width" , "border-left" , "border-left-color" , "border-left-style" , " border - l
} function Q ( e ) { if ( qe && ":" == e ) return Qe . stream . match ( /^\s*\w+\s+is\b/ , ! 1 ) ? p ( E , ee , te ) : p ( te ) } function ee ( e , t ) { if ( "is" == t ) return Qe . marked = "keyword" , p ( ) } function te ( e , t ) { return "keyof" == t || "typeof" == t || "infer" == t ? ( Qe . marked = "keyword" , p ( "typeof" == t ? _ : te ) ) : "variable" == e || "void" == t ? ( Qe . marked = "type" , p ( oe ) ) : "|" == t || "&" == t ? p ( te ) : "string" == e || "number" == e || "atom" == e ? p ( oe ) : "[" == e ? p ( O ( "]" ) , K ( te , "]" , "," ) , k , oe ) : "{" == e ? p ( O ( "}" ) , K ( re , "}" , ",;" ) , k , oe ) : "(" == e ? p ( K ( ie , ")" ) , ne , oe ) : "<" == e ? p ( K ( te , ">" ) , te ) : void 0 } function ne ( e ) { if ( "=>" == e ) return p ( te ) } function re ( e , t ) { return "variable" == e || "keyword" == Qe . style ? ( Qe . marked = "property" , p ( re ) ) : "?" == t || "number" == e || "string" == e ? p ( re ) : ":" == e ? p ( te ) : "[" == e ? p ( S ( "variable" ) , Z , S ( "]" ) , re ) : "(" == e ? f ( we , re ) : void 0 } function ie ( e , t ) { return "variable" == e && Qe . stream . match ( /^\s*[?:]/ , ! 1 ) || "?" == t ? p ( ie ) : ":" == e ? p ( te ) : "spread" == e ? p ( ie ) : f ( te ) } function oe ( e , t ) { return "<" == t ? p ( O ( ">" ) , K ( te , ">" ) , k , oe ) : "|" == t || "." == e || "&" == t ? p ( te ) : "[" == e ? p ( te , S ( "]" ) , oe ) : "extends" == t || "implements" == t ? ( Qe . marked = "keyword" , p ( te ) ) : "?" == t ? p ( te , S ( ":" ) , te ) : void 0 } function se ( e , t ) { if ( "<" == t ) return p ( O ( ">" ) , K ( te , ">" ) , k , oe ) } function ae ( ) { return f ( te , le ) } function le ( e , t ) { if ( "=" == t ) return p ( te ) } function ce ( e , t ) { return "enum" == t ? ( Qe . marked = "keyword" , p ( Ve ) ) : f ( ue , J , fe , pe ) } function ue ( e , t ) { return qe && b ( t ) ? ( Qe . marked = "keyword" , p ( ue ) ) : "variable" == e ? ( m ( t ) , p ( ) ) : "spread" == e ? p ( ue ) : "[" == e ? Y ( he , "]" ) : "{" == e ? Y ( de , "}" ) : void 0 } function de ( e , t ) { return "variable" != e || Qe . stream . match ( /^\s*:/ , ! 1 ) ? ( "variable" == e && ( Qe . marked = "property" ) , "spread" == e ? p ( ue ) : "}" == e ? f ( ) : "[" == e ? p ( E , S ( "]" ) , S ( ":" ) , de ) : p ( S ( ":" ) , ue , fe ) ) : ( m ( t ) , p ( fe ) ) } function he ( ) { return f ( ue , fe ) } function fe ( e , t ) { if ( "=" == t ) return p ( _ ) } function pe ( e ) { if ( "," == e ) return p ( ce ) } function ge ( e , t ) { if ( "keyword b" == e && "else" == t ) return p ( O ( "form" , "else" ) , T , k ) } function me ( e , t ) { return "await" == t ? p ( me ) : "(" == e ? p ( O ( ")" ) , ve , k ) : void 0 } function ve ( e ) { return "var" == e ? p ( ce , be ) : "variable" == e ? p ( be ) : f ( be ) } function be ( e , t ) { return ")" == e ? p ( ) : ";" == e ? p ( be ) : "in" == t || "of" == t ? ( Qe . marked = "keyword" , p ( E , be ) ) : f ( E , be ) } function ye ( e , t ) { return "*" == t ? ( Qe . marked = "keyword" , p ( ye ) ) : "variable" == e ? ( m ( t ) , p ( ye ) ) : "(" == e ? p ( x , O ( ")" ) , K ( Ce , ")" ) , k , Q , T , j ) : qe && "<" == t ? p ( O ( ">" ) , K ( ae , ">" ) , k , ye ) : void 0 } function we ( e , t ) { return "*" == t ? ( Qe . marked = "keyword" , p ( we ) ) : "variable" == e ? ( m ( t ) , p ( we ) ) : "(" == e ? p ( x , O ( ")" ) , K ( Ce , ")" ) , k , Q , j ) : qe && "<" == t ? p ( O ( ">" ) , K ( ae , ">" ) , k , we ) : void 0 } function xe ( e , t ) { return "keyword" == e || "variable" == e ? ( Qe . marked = "type" , p ( xe ) ) : "<" == t ? p ( O ( ">" ) , K ( ae , ">" ) , k ) : void 0 } function Ce ( e , t ) { return "@" == t && p ( E , Ce ) , "spread" == e ? p ( Ce ) : qe && b ( t ) ? ( Qe . marked = "keyword" , p ( Ce ) ) : qe && "this" == e ? p ( J , fe ) : f ( ue , J , fe ) } function je ( e , t ) { return "variable" == e ? Oe ( e , t ) : ke ( e , t ) } function Oe ( e , t ) { if ( "variable" == e ) return m ( t ) , p ( ke ) } function ke ( e , t ) { return "<" == t ? p ( O ( ">" ) , K ( ae , ">" ) , k , ke ) : "extends" == t || "implements" == t || qe && "," == e ? ( "implements" == t && ( Qe . marked = "keyword" ) , p ( qe ? te : E , ke ) ) : "{" == e ? p ( O ( "}" ) , Se , k ) : void 0 } function Se ( e , t ) { return "async" == e || "variable" == e && ( "static" == t || "get" == t || "set" == t || qe && b ( t ) ) && Qe . stream . match ( /^\s+[\w$\xa1-\uffff]/ , ! 1 ) ? ( Qe . marked = "keyword" , p ( Se ) ) : "variable" == e || "keyword" == Qe . style ? ( Qe . marked = "property" , p ( qe ? Te : ye , Se ) ) : "number" == e || "string" == e ? p ( qe ? Te : ye , Se ) : "[" == e ? p ( E , J , S ( "]" ) , qe ? Te : ye , Se ) : "*" == t ? ( Qe . marked = "keyword" , p ( Se ) ) : qe && "(" == e ? f ( we , Se ) : ";" == e || "," == e ? p ( Se ) : "}" == e ? p ( ) : "@" == t ? p ( E , Se ) : void 0 } function Te ( e , t ) { if ( "?" == t ) return p ( Te ) ; if ( ":" == e ) return p ( te , fe ) ; if ( "=" == t ) return p ( _ ) ; var n = Qe . state . lexical . prev , r = n && "interface" == n . info ; return f ( r ? we : ye ) } function Pe ( e , t ) { return "*" == t ? ( Qe . marked = "keyword" , p ( Le , S ( ";" ) ) ) : "default" == t ? ( Qe . marked = "keyword" , p ( E , S ( ";" ) ) ) : "{" == e ? p ( K ( Ee , "}" ) , Le , S ( ";" ) ) : f ( T ) } function Ee ( e , t ) { return "as" == t ? ( Qe . marked = "keyword" , p ( S ( "variable" ) ) ) : "variable" == e ? f ( _ , Ee ) : void 0 } function _e ( e ) { return "string" == e ? p ( ) : "(" == e ? f ( E ) : f ( De , Me , Le ) } function De ( e , t ) { return "{" == e ? Y ( De , "}" ) : ( "variable" == e && m ( t ) , "*" == t && ( Qe . marked = "keyword" ) , p ( Ae ) ) } function Me ( e ) { if ( "," == e ) return p ( De , Me ) } function Ae ( e , t ) { if ( "as" == t ) return Qe . marked = "keyword" , p ( De ) } function Le ( e , t ) { if ( "from" == t ) return Qe . marked = "keyword" , p ( E ) } function Ne ( e ) { return "]" == e ? p ( ) : f ( K ( _ , "]" ) ) } function Ve ( ) { return f ( O ( "form" ) , ue , S ( "{" ) ,
b . sortedIndex = function ( e , t , n , r ) { n = x ( n , r , 1 ) ; for ( var i = n ( t ) , o = 0 , s = P ( e ) ; o < s ; ) { var a = Math . floor ( ( o + s ) / 2 ) ; n ( e [ a ] ) < i ? o = a + 1 : s = a } return o } ; var N = function ( e , t , n ) { return function ( r , i , o ) { var s = 0 , a = P ( r ) ; if ( "number" == typeof o ) e > 0 ? s = o >= 0 ? o : Math . max ( o + a , s ) : a = o >= 0 ? Math . min ( o + 1 , a ) : o + a + 1 ; else if ( n && o && a ) return o = n ( r , i ) , r [ o ] === i ? o : - 1 ; if ( i !== i ) return o = t ( d . call ( r , s , a ) , b . isNaN ) , o >= 0 ? o + s : - 1 ; for ( o = e > 0 ? s : a - 1 ; o >= 0 && o < a ; o += e ) if ( r [ o ] === i ) return o ; return - 1 } } ; b . indexOf = N ( 1 , b . findIndex , b . sortedIndex ) , b . lastIndexOf = N ( - 1 , b . findLastIndex ) , b . range = function ( e , t , n ) { null == t && ( t = e || 0 , e = 0 ) , n || ( n = t < e ? - 1 : 1 ) ; for ( var r = Math . max ( Math . ceil ( ( t - e ) / n ) , 0 ) , i = Array ( r ) , o = 0 ; o < r ; o ++ , e += n ) i [ o ] = e ; return i } , b . chunk = function ( e , t ) { if ( null == t || t < 1 ) return [ ] ; for ( var n = [ ] , r = 0 , i = e . length ; r < i ; ) n . push ( d . call ( e , r , r += t ) ) ; return n } ; var V = function ( e , t , n , r , i ) { if ( ! ( r instanceof t ) ) return e . apply ( n , i ) ; var o = j ( e . prototype ) , s = e . apply ( o , i ) ; return b . isObject ( s ) ? s : o } ; b . bind = C ( function ( e , t , n ) { if ( ! b . isFunction ( e ) ) throw new TypeError ( "Bind must be called on a function" ) ; var r = C ( function ( i ) { return V ( e , r , t , this , n . concat ( i ) ) } ) ; return r } ) , b . partial = C ( function ( e , t ) { var n = b . partial . placeholder , r = function ( ) { for ( var i = 0 , o = t . length , s = Array ( o ) , a = 0 ; a < o ; a ++ ) s [ a ] = t [ a ] === n ? arguments [ i ++ ] : t [ a ] ; for ( ; i < arguments . length ; ) s . push ( arguments [ i ++ ] ) ; return V ( e , r , this , this , s ) } ; return r } ) , b . partial . placeholder = b , b . bindAll = C ( function ( e , t ) { t = A ( t , ! 1 , ! 1 ) ; var n = t . length ; if ( n < 1 ) throw new Error ( "bindAll must be passed function names" ) ; for ( ; n -- ; ) { var r = t [ n ] ; e [ r ] = b . bind ( e [ r ] , e ) } } ) , b . memoize = function ( e , t ) { var n = function ( r ) { var i = n . cache , o = "" + ( t ? t . apply ( this , arguments ) : r ) ; return k ( i , o ) || ( i [ o ] = e . apply ( this , arguments ) ) , i [ o ] } ; return n . cache = { } , n } , b . delay = C ( function ( e , t , n ) { return setTimeout ( function ( ) { return e . apply ( null , n ) } , t ) } ) , b . defer = b . partial ( b . delay , b , 1 ) , b . throttle = function ( e , t , n ) { var r , i , o , s , a = 0 ; n || ( n = { } ) ; var l = function ( ) { a = n . leading === ! 1 ? 0 : b . now ( ) , r = null , s = e . apply ( i , o ) , r || ( i = o = null ) } , c = function ( ) { var c = b . now ( ) ; a || n . leading !== ! 1 || ( a = c ) ; var u = t - ( c - a ) ; return i = this , o = arguments , u <= 0 || u > t ? ( r && ( clearTimeout ( r ) , r = null ) , a = c , s = e . apply ( i , o ) , r || ( i = o = null ) ) : r || n . trailing === ! 1 || ( r = setTimeout ( l , u ) ) , s } ; return c . cancel = function ( ) { clearTimeout ( r ) , a = 0 , r = i = o = null } , c } , b . debounce = function ( e , t , n ) { var r , i , o = function ( t , n ) { r = null , n && ( i = e . apply ( t , n ) ) } , s = C ( function ( s ) { if ( r && clearTimeout ( r ) , n ) { var a = ! r ; r = setTimeout ( o , t ) , a && ( i = e . apply ( this , s ) ) } else r = b . delay ( o , t , this , s ) ; return i } ) ; return s . cancel = function ( ) { clearTimeout ( r ) , r = null } , s } , b . wrap = function ( e , t ) { return b . partial ( t , e ) } , b . negate = function ( e ) { return function ( ) { return ! e . apply ( this , arguments ) } } , b . compose = function ( ) { var e = arguments , t = e . length - 1 ; return function ( ) { for ( var n = t , r = e [ t ] . apply ( this , arguments ) ; n -- ; ) r = e [ n ] . call ( this , r ) ; return r } } , b . after = function ( e , t ) { return function ( ) { if ( -- e < 1 ) return t . apply ( this , arguments ) } } , b . before = function ( e , t ) { var n ; return function ( ) { return -- e > 0 && ( n = t . apply ( this , arguments ) ) , e <= 1 && ( t = null ) , n } } , b . once = b . partial ( b . before , 2 ) , b . restArguments = C ; var I = ! { toString : null } . propertyIsEnumerable ( "toString" ) , F = [ "valueOf" , "isPrototypeOf" , "toString" , "propertyIsEnumerable" , "hasOwnProperty" , "toLocaleString" ] , R = function ( e , t ) { var n = F . length , r = e . constructor , i = b . isFunction ( r ) && r . prototype || l , o = "constructor" ; for ( k ( e , o ) && ! b . contains ( t , o ) && t . push ( o ) ; n -- ; ) o = F [ n ] , o in e && e [ o ] !== i [ o ] && ! b . contains ( t , o ) && t . push ( o ) } ; b . keys = function ( e ) { if ( ! b . isObject ( e ) ) return [ ] ; if ( g ) return g ( e ) ; var t = [ ] ; for ( var n in e ) k ( e , n ) && t . push ( n ) ; return I && R ( e , t ) , t } , b . allKeys = function ( e ) { if ( ! b . isObject ( e ) ) return [ ] ; var t = [ ] ; for ( var n in e ) t . push ( n ) ; return I && R ( e , t ) , t } , b . values = function ( e ) { for ( var t = b . keys ( e ) , n = t . length , r = Array ( n ) , i = 0 ; i < n ; i ++ ) r [ i ] = e [ t [ i ] ] ; return r } , b . mapObject = function ( e , t , n ) { t = x ( t , n ) ; for ( var r = b . keys ( e ) , i = r . length , o = { } , s = 0 ; s < i ; s ++ ) { var a = r [ s ] ; o [ a ] = t ( e [ a ] , a , e ) } return o } , b . pairs = function ( e ) { for ( var t = b . keys ( e ) , n = t . length , r = Array ( n ) , i = 0 ; i < n ; i ++ ) r [ i ] = [ t [ i ] , e [ t [ i ] ] ] ; return r } , b . invert = function ( e ) { for ( var t = { } , n = b . keys ( e ) , r = 0 , i = n . length ; r < i ; r ++ ) t [ e [ n [ r ] ] ] = n [ r ] ; return t } , b . functions = b . methods = function ( e ) { var t = [ ] ; for ( var n in e ) b . isFunction ( e [ n ] ) && t . push ( n ) ; return t . sort ( ) } ; var H = function ( e , t ) { return function ( n ) { var r = arguments
return e . resetId ( ) } ) } e . set ( { dragResult : null , dragContent : null } ) , e . trigger ( "block:drag:stop" , n , t ) } , endDrag : function ( e ) { Object ( s . off ) ( document , "mouseup" , this . endDrag ) ; var t = this . config . getSorter ( ) ; t . moved = 0 , t . endMove ( ) } , render : function a ( ) { var e = this . em , t = this . el , n = this . ppfx , r = this . model , i = "" . concat ( n , "block" ) , o = e && e . t ( "blockManager.labels." . concat ( r . id ) ) || r . get ( "label" ) , a = r . get ( "render" ) , l = r . get ( "media" ) ; t . className += " " . concat ( i , " " ) . concat ( n , "one-bg " ) . concat ( n , "four-color-h" ) , t . innerHTML = "\n " . concat ( l ? '<div class="' . concat ( i , '__media">' ) . concat ( l , "</div>" ) : "" , '\n <div class="' ) . concat ( i , '-label">' ) . concat ( o , "</div>\n " ) , t . title = t . textContent . trim ( ) , Object ( s . hasDnd ) ( e ) && t . setAttribute ( "draggable" , ! 0 ) ; var c = a && a ( { el : t , model : r , className : i , prefix : n } ) ; return c && ( t . innerHTML = c ) , this } } ) } , "./src/block_manager/view/BlocksView.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./node_modules/underscore/underscore.js" ) , u = ( n . n ( c ) , n ( "./src/block_manager/view/BlockView.js" ) ) , d = n ( "./src/block_manager/view/CategoryView.js" ) ; t [ "default" ] = l . a . View . extend ( { initialize : function ( e , t ) { Object ( c . bindAll ) ( this , "getSorter" , "onDrag" , "onDrop" ) , this . config = t || { } , this . categories = e . categories || "" , this . renderedCategories = [ ] ; var n = this . config . pStylePrefix || "" ; this . ppfx = n , this . noCatClass = "" . concat ( n , "blocks-no-cat" ) , this . blockContClass = "" . concat ( n , "blocks-c" ) , this . catsClass = "" . concat ( n , "block-categories" ) ; var r = this . collection ; this . listenTo ( r , "add" , this . addTo ) , this . listenTo ( r , "reset" , this . render ) , this . em = this . config . em , this . tac = "test-tac" , this . grabbingCls = this . ppfx + "grabbing" , this . em && ( this . config . getSorter = this . getSorter , this . canvas = this . em . get ( "Canvas" ) ) } , updateConfig : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } ; this . config = i ( { } , this . config , { } , e ) } , getSorter : function ( ) { if ( this . em ) { if ( ! this . sorter ) { var e = this . em . get ( "Utils" ) , t = this . canvas ; this . sorter = new e . Sorter ( { container : t . getBody ( ) , placer : t . getPlacerEl ( ) , containerSel : "*" , itemSel : "*" , pfx : this . ppfx , onStart : this . onDrag , onEndMove : this . onDrop , onMove : this . onMove , document : t . getFrameEl ( ) . contentDocument , direction : "a" , wmargin : 1 , nested : 1 , em : this . em , canvasRelative : 1 } ) } return this . sorter } } , onDrag : function ( e ) { this . em . stopDefault ( ) , this . em . trigger ( "block:drag:start" , e ) } , onMove : function ( e ) { this . em . trigger ( "block:drag:move" , e ) } , onDrop : function ( e ) { var t = this . em ; t . runDefault ( ) , e && e . get && ( e . get ( "activeOnRender" ) && ( e . trigger ( "active" ) , e . set ( "activeOnRender" , 0 ) ) , t . trigger ( "block:drag:stop" , e ) ) } , addTo : function ( e ) { this . add ( e ) } , add : function ( e , t ) { var n = this . config , r = t || null , i = new u [ "default" ] ( { model : e , attributes : e . get ( "attributes" ) } , n ) , o = i . render ( ) . el , s = e . get ( "category" ) ; if ( s && this . categories && ! n . ignoreCategories ) { Object ( c . isString ) ( s ) ? s = { id : s , label : s } : Object ( c . isObject ) ( s ) && ! s . id && ( s . id = s . label ) ; var a = this . categories . add ( s ) , l = a . get ( "id" ) , h = this . renderedCategories [ l ] , f = this . getCategoriesEl ( ) ; return e . set ( "category" , a ) , ! h && f && ( h = new d [ "default" ] ( { model : a } , this . config ) . render ( ) , this . renderedCategories [ l ] = h , f . appendChild ( h . el ) ) , void ( h && h . append ( o ) ) } r ? r . appendChild ( o ) : this . append ( o ) } , getCategoriesEl : function ( ) { return this . catsEl || ( this . catsEl = this . el . querySelector ( "." . concat ( this . catsClass ) ) ) , this . catsEl } , getBlocksEl : function ( ) { return this . blocksEl || ( this . blocksEl = this . el . querySelector ( "." . concat ( this . noCatClass , " ." ) . concat ( this . blockContClass ) ) ) , this . blocksEl } , append : function ( e ) { var t = this . getBlocksEl ( ) ; t && t . appendChil
Object ( p . append ) ( u , this . getJsContainer ( ) ) , Object ( g . on ) ( u , "click" , function ( e ) { return e && "A" == e . target . tagName && e . preventDefault ( ) } ) , Object ( g . on ) ( u , "submit" , function ( e ) { return e && e . preventDefault ( ) } ) , [ { event : "keydown keyup keypress" , "class" : "KeyboardEvent" } , { event : "wheel" , "class" : "WheelEvent" } ] . forEach ( function ( t ) { return t . event . split ( " " ) . forEach ( function ( n ) { l . addEventListener ( n , function ( n ) { return e . el . dispatchEvent ( Object ( p . createCustomEvent ) ( n , t [ "class" ] ) ) } ) } ) } ) , this . _toggleEffects ( 1 ) , n . trigger ( "loaded" ) } , _toggleEffects : function ( e ) { var t = e ? g . on : g . off , n = this . getWindow ( ) ; t ( n , "" . concat ( p . motionsEv , " resize" ) , this . _emitUpdate ) } , _emitUpdate : function ( ) { this . model . _emitUpdated ( ) } } ) } , "./src/canvas/view/FrameWrapView.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./src/canvas/view/FrameView.js" ) , u = n ( "./node_modules/underscore/underscore.js" ) , d = ( n . n ( u ) , n ( "./src/utils/dom.js" ) ) , h = n ( "./src/utils/Dragger.js" ) ; t [ "default" ] = l . a . View . extend ( { events : { "click [data-action-remove]" : "remove" , "mousedown [data-action-move]" : "startDrag" } , initialize : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } ; Object ( u . bindAll ) ( this , "onScroll" , "frameLoaded" , "updateOffset" , "remove" , "startDrag" ) ; var n = this . model , r = i ( { } , e . config || t , { frameWrapView : this } ) , o = r . canvasView , s = r . em ; this . cv = o , this . config = r , this . em = s , this . canvas = s && s . get ( "Canvas" ) , this . ppfx = r . pStylePrefix || "" , this . frame = new c [ "default" ] ( { model : n , config : r } ) , this . classAnim = "" . concat ( this . ppfx , "frame-wrapper--anim" ) , this . listenTo ( n , "loaded" , this . frameLoaded ) , this . listenTo ( n , "change:x change:y" , this . updatePos ) , this . listenTo ( n , "change:width change:height" , this . updateSize ) , this . updatePos ( ) , this . setupDragger ( ) } , setupDragger : function ( ) { var e , t , n , r = this , i = this . canvas , o = this . model , s = function ( e ) { i . toggleFramesEvents ( e ) } ; this . dragger = new h [ "default" ] ( { onStart : function ( ) { var i = o . attributes , a = i . x , l = i . y ; n = r . em . getZoomMultiplier ( ) , e = a , t = l , s ( ) } , onEnd : function ( ) { return s ( 1 ) } , setPosition : function ( r ) { o . set ( { x : e + r . x * n , y : t + r . y * n } ) } } ) } , startDrag : function ( e ) { e && this . dragger . start ( e ) } , remove : function ( ) { return l . a . View . prototype . remove . apply ( this , arguments ) , this . frame . remove ( ) , this } , updateOffset : Object ( u . debounce ) ( function ( ) { var e = this . em , t = this . $el , n = this . frame ; e . runDefault ( { preserveSelected : 1 } ) , t . removeClass ( this . classAnim ) , n . model . _emitUpdated ( ) } ) , updatePos : function ( e ) { var t = this . model , n = this . el , r = t . attributes , i = r . x , o = r . y , s = n . style ; this . frame . rect = 0 , s . left = isNaN ( i ) ? i : "" . concat ( i , "px" ) , s . top = isNaN ( o ) ? o : "" . concat ( o , "px" ) , e && this . updateOffset ( ) } , updateSize : Object ( u . debounce ) ( function ( ) { this . updateDim ( ) } ) , updateDim : function ( ) { var e = this . em , t = this . el , n = this . $el , r = this . model , o = this . classAnim , s = r . attributes , a = s . width , l = s . height , c = t . style , h = c . width || "" , f = c . height || "" , p = a || "" , g = l || "" , m = h == p && f == g , v = "px" ; if ( this . frame . rect = 0 , n . addClass ( o ) , c . width = Object ( u . isNumber ) ( p ) ? "" . concat ( p ) . concat ( v ) : p , c . height = Object ( u . isNumber ) ( g ) ? "" . concat ( g ) . concat ( v ) : g , Object ( u . isNull ) ( a ) || Object ( u . isNull ) ( l ) ) { var b = i ( { } , a ? { } : { width : t . offsetWidth } , { } , l ? { } : { height : t . offsetHeight } ) ; r . set ( b , { silent : 1 } ) } e . stopDefault ( { preserveSelected : 1 } ) , m ? this . updateOffset ( ) : n . one ( d . motionsEv , this . updateOffset ) } , onScroll : function ( ) { var e = this . frame , t = this . em ; t . trigger ( "frame:scroll" , { frame : e , body : e . getBody ( ) , target : e . getWindow ( ) } ) } , frameLoaded : function ( ) { var e = this . frame ; e . getWindow ( ) . onscroll = this . onScroll , this . updateDim
target : this . target , guidesTarget : this . guidesTarget , guidesStatic : this . guidesStatic } } , stop : function ( ) { this . toggleDrag ( ) } , setupGuides : function ( ) { ( this . guides || [ ] ) . forEach ( function ( e ) { var t = e . guide ; t && t . parentNode . removeChild ( t ) } ) , this . guides = [ ] } , getGuidesContainer : function ( ) { var e = this , t = this . guidesEl ; if ( ! t ) { var n = this . editor , r = this . em , i = this . opts , o = n . getConfig ( "stylePrefix" ) , s = document . createElement ( "div" ) , l = document . createElement ( "div" ) , c = '<div class="' . concat ( o , "guide-info__line " ) . concat ( o , 'danger-bg">\n <div class="' ) . concat ( o , "guide-info__content " ) . concat ( o , 'danger-color"></div>\n </div>' ) ; t = document . createElement ( "div" ) , t . className = "" . concat ( o , "guides" ) , s . className = "" . concat ( o , "guide-info " ) . concat ( o , "guide-info__x" ) , l . className = "" . concat ( o , "guide-info " ) . concat ( o , "guide-info__y" ) , s . innerHTML = c , l . innerHTML = c , t . appendChild ( s ) , t . appendChild ( l ) , n . Canvas . getGlobalToolsEl ( ) . appendChild ( t ) , this . guidesEl = t , this . elGuideInfoX = s , this . elGuideInfoY = l , this . elGuideInfoContentX = s . querySelector ( "." . concat ( o , "guide-info__content" ) ) , this . elGuideInfoContentY = l . querySelector ( "." . concat ( o , "guide-info__content" ) ) , r . on ( "canvas:update frame:scroll" , Object ( a . debounce ) ( function ( ) { e . updateGuides ( ) , i . debug && e . guides . forEach ( function ( t ) { return e . renderGuide ( t ) } ) } , 200 ) ) } return t } , getGuidesStatic : function ( ) { var e = this , t = [ ] , n = this . target . getEl ( ) , r = n . parentNode , i = void 0 === r ? { } : r ; return Object ( a . each ) ( i . children , function ( r ) { return t = t . concat ( n !== r ? e . getElementGuides ( r ) : [ ] ) } ) , t . concat ( this . getElementGuides ( i ) ) } , getGuidesTarget : function ( ) { return this . getElementGuides ( this . target . getEl ( ) ) } , updateGuides : function ( e ) { var t , n , r = this ; ( e || this . guides ) . forEach ( function ( e ) { var i = e . origin , o = t === i ? n : r . getElementPos ( i ) ; t = i , n = o , Object ( a . each ) ( r . getGuidePosUpdate ( e , o ) , function ( t , n ) { return e [ n ] = t } ) , e . originRect = o } ) } , getGuidePosUpdate : function ( e , t ) { var n = { } , r = t . top , i = t . height , o = t . left , s = t . width ; switch ( e . type ) { case "t" : n . y = r ; break ; case "b" : n . y = r + i ; break ; case "l" : n . x = o ; break ; case "r" : n . x = o + s ; break ; case "x" : n . x = o + s / 2 ; break ; case "y" : n . y = r + i / 2 } return n } , renderGuide : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = e . guide || document . createElement ( "div" ) , n = "px" , r = e . active ? 2 : 1 , i = t . children [ 0 ] ; return t . style = "position: absolute; background-color: " . concat ( e . active ? "green" : "red" , ";" ) , t . children . length || ( i = document . createElement ( "div" ) , i . style = "position: absolute; color: red; padding: 5px; top: 0; left: 0;" , t . appendChild ( i ) ) , e . y ? ( t . style . width = "100%" , t . style . height = "" . concat ( r ) . concat ( n ) , t . style . top = "" . concat ( e . y ) . concat ( n ) , t . style . left = 0 ) : ( t . style . width = "" . concat ( r ) . concat ( n ) , t . style . height = "100%" , t . style . left = "" . concat ( e . x ) . concat ( n ) , t . style . top = "0" . concat ( n ) ) , ! e . guide && this . guidesContainer . appendChild ( t ) , t } , getElementPos : function ( e ) { return this . editor . Canvas . getElementPos ( e , { noScroll : 1 } ) } , getElementGuides : function ( e ) { var t = this , n = this . opts , r = this . getElementPos ( e ) , o = r . top , s = r . height , a = r . left , l = r . width , c = [ { type : "t" , y : o } , { type : "b" , y : o + s } , { type : "l" , x : a } , { type : "r" , x : a + l } , { type : "x" , x : a + l / 2 } , { type : "y" , y : o + s / 2 } ] . map ( function ( o ) { return i ( { } , o , { origin : e , originRect : r , guide : n . debug && t . renderGuide ( o ) } ) } ) ; return c . forEach ( function ( e ) { return t . guides . push ( e ) } ) , c } , getTranslate : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : "x" , n = 0 ; return ( e || "" ) . split ( " " ) . forEach ( function ( e ) { var r = e . trim ( ) , i = "translate" . concat ( t . toUpperCase ( ) , "(" ) ; 0 === r . indexOf ( i ) && ( n = parseFloat ( r . replace ( i , "" ) ) ) } ) , n } , setTranslate : function ( e , t , n ) { var r = "translate" . concat ( t . toUpperCase ( ) , "(" ) , i = "" . concat ( r ) . concat ( n , ")" ) , o = ( e || "" ) . split ( " " ) . map ( function ( e ) { var t = e . trim ( ) ; return 0 === t . indexOf ( r ) && ( e = i ) , e } ) . join ( " " ) ; return o . indexOf ( r ) < 0 && ( o += " " . concat ( i ) ) , o } , getPosition : function ( ) { var e = this . target , t = this . isTran , n = e . getStyle ( ) , r = n . left , i = n . top , o = n . transform , s = 0 , a = 0 ; return t ? ( s = this . getTranslate ( o ) , a = this . getTranslate ( o , "y" ) ) : ( s = parseFloat ( r ) , a = parseFloat ( i ) ) , { x : s , y : a } } , setPosition : function ( e ) { var t = e . x , n = e . y , r = e . end , i = e . position , o = e . width , s = e . height , l = this . target , c = this . isTran , u = "px" , d = r ? "" : 1 , h = "" . concat ( t ) . concat ( u ) , f = "" . concat ( n ) . concat ( u ) ; if ( c ) { var p = l . getStyle (
view : o , topOff : p , leftOff : g } ) ) , h . top = p + u , h . left = g + u , h . width = r . width + u , h . height = r . height + u } , updateToolsGlobal : function ( ) { var e = this . getElSelected ( ) , t = e . el , n = e . pos , r = e . component ; if ( ! t ) return this . toggleToolsEl ( ) , void ( this . lastSelected = 0 ) ; var i = this . canvas , o = this . lastSelected !== t ; o && ( this . lastSelected = t , this . updateToolbar ( r ) ) ; var s = "px" , a = this . toggleToolsEl ( 1 ) , l = a . style , c = i . getTargetToElementFixed ( t , i . getToolbarEl ( ) , { pos : n } ) , u = c . canvasOffsetTop , d = c . canvasOffsetLeft ; l . top = u + s , l . left = d + s , l . width = n . width + s , l . height = n . height + s , this . updateToolbarPos ( { top : c . top , left : c . left } ) } , updateAttached : Object ( h . debounce ) ( function ( ) { this . updateToolsGlobal ( ) } ) , getElementPos : function ( e ) { return this . canvas . getCanvasView ( ) . getElementPos ( e ) } , hideBadge : function ( ) { this . getBadge ( ) . style . display = "none" } , cleanPrevious : function ( e ) { e && e . set ( { status : "" , state : "" } ) } , getContentWindow : function ( ) { return this . canvas . getWindow ( ) } , run : function ( e ) { this . editor = e && e . get ( "Editor" ) , this . enable ( ) } , stop : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } , r = this . em , i = this . editor ; this . stopSelectComponent ( ) , ! n . preserveSelected && r . setSelected ( null ) , this . onOut ( ) , this . toggleToolsEl ( ) , i && i . stopCommand ( "resize" ) } } } , "./src/commands/view/SelectPosition.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./node_modules/backbone/backbone.js" ) , i = n . n ( r ) , o = i . a . $ ; t [ "default" ] = { startSelectPosition : function ( e , t ) { var n = this , r = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } ; this . isPointed = ! 1 ; var i = this . editorModel . get ( "Utils" ) , o = e . ownerDocument . body ; i && ! this . sorter && ( this . sorter = new i . Sorter ( { container : o , placer : this . canvas . getPlacerEl ( ) , containerSel : "*" , itemSel : "*" , pfx : this . ppfx , direction : "a" , document : t , wmargin : 1 , nested : 1 , em : this . editorModel , canvasRelative : 1 , scale : function ( ) { return n . em . getZoomDecimal ( ) } } ) ) , r . onStart && ( this . sorter . onStart = r . onStart ) , e && this . sorter . startSort ( e , { container : o } ) } , getOffsetDim : function ( ) { var e = this . offset ( this . canvas . getFrameEl ( ) ) , t = this . offset ( this . canvas . getElement ( ) ) , n = e . top - t . top , r = e . left - t . left ; return { top : n , left : r } } , stopSelectPosition : function ( ) { this . posTargetCollection = null , this . posIndex = "after" == this . posMethod && 0 !== this . cDim . length ? this . posIndex + 1 : this . posIndex , this . sorter && ( this . sorter . moved = 0 , this . sorter . endMove ( ) ) , this . cDim && ( this . posIsLastEl = 0 !== this . cDim . length && "after" == this . posMethod && this . posIndex == this . cDim . length , this . posTargetEl = 0 === this . cDim . length ? o ( this . outsideElem ) : ! this . posIsLastEl && this . cDim [ this . posIndex ] ? o ( this . cDim [ this . posIndex ] [ 5 ] ) . parent ( ) : o ( this . outsideElem ) , this . posTargetModel = this . posTargetEl . data ( "model" ) , this . posTargetCollection = this . posTargetEl . data ( "model-comp" ) ) } , enable : function ( ) { this . startSelectPosition ( ) } , nearFloat : function ( e , t , n ) { var r = e || 0 , i = t || "before" , o = n . length , s = 0 !== o && "after" == i && r == o ; return 0 !== o && ( ! s && ! n [ r ] [ 4 ] || n [ r - 1 ] && ! n [ r - 1 ] [ 4 ] || s && ! n [ r - 1 ] [ 4 ] ) ? 1 : 0 } , run : function ( ) { this . enable ( ) } , stop : function ( ) { this . stopSelectPosition ( ) , this . $wrapper . css ( "cursor" , "" ) , this . $wrapper . unbind ( ) } } } , "./src/commands/view/ShowOffset.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./node_modules/underscore/underscore.js" ) , u = ( n . n ( c ) , n ( "./src/utils/mixins.js" ) ) , d = l . a . $ ; t [ "default" ] = { getOffsetMethod : function ( e ) { var t = e || "" ; return "get" + t + "OffsetViewerEl" } , run : function ( e , t , n ) { var r = n || { } , o = r . state || "" , s = e . getConfig ( ) , a = this . em . getZoomDecimal ( ) , l = r . el || "" ; if ( ! s . showOffsets || Object ( u . isTextNode ) ( l ) || ! s . showOffsetsSelected && "Fixed" == o ) return void e
return n && n . trigger ( k , b || t ) , this } , getType : function ( e ) { for ( var t = a , n = 0 ; n < t . length ; n ++ ) { var r = t [ n ] . id ; if ( r == e ) return t [ n ] } } , removeType : function ( e ) { var t = a , n = this . getType ( e ) ; if ( n ) { var r = t . indexOf ( n ) ; return t . splice ( r , 1 ) , n } } , getTypes : function ( ) { return a } , selectAdd : function ( e ) { var t = this , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } ; e && ( e . set ( { status : "selected" } ) , [ "component:selected" , "component:toggled" ] . forEach ( function ( r ) { return t . em . trigger ( r , e , n ) } ) ) } , selectRemove : function ( e ) { var t = this , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } ; if ( e ) { this . em ; e . set ( { status : "" , state : "" } ) , [ "component:deselected" , "component:toggled" ] . forEach ( function ( r ) { return t . em . trigger ( r , e , n ) } ) } } , componentHovered : function ( ) { var e = r . em , t = e . get ( "componentHovered" ) , n = e . previous ( "componentHovered" ) , i = "hovered" ; n && n . get ( "status" ) == i && n . set ( { status : "" , state : "" } ) , t && Object ( d . isEmpty ) ( t . get ( "status" ) ) && t . set ( "status" , i ) } } } } , "./src/dom_components/model/Component.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { l ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) , n . d ( t , "eventDrag" , function ( ) { return w } ) ; var o = n ( "./node_modules/@babel/runtime/helpers/typeof.js" ) , s = n . n ( o ) , a = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , l = n . n ( a ) , c = n ( "./node_modules/underscore/underscore.js" ) , u = ( n . n ( c ) , n ( "./src/utils/mixins.js" ) ) , d = n ( "./src/domain_abstract/model/Styleable.js" ) , h = n ( "./node_modules/backbone/backbone.js" ) , f = n . n ( h ) , p = n ( "./src/dom_components/model/Components.js" ) , g = n ( "./src/selector_manager/model/Selector.js" ) , m = n ( "./src/selector_manager/model/Selectors.js" ) , v = n ( "./src/trait_manager/model/Traits.js" ) , b = function ( e ) { return e . replace ( /[|\\{}()[\]^$+*?.]/g , "\\$&" ) } , y = function ( e ) { return e && e . getConfig ( "avoidInlineStyle" ) } , w = "component:drag" , x = f . a . Model . extend ( d [ "default" ] ) . extend ( { defaults : { tagName : "div" , type : "" , name : "" , removable : ! 0 , draggable : ! 0 , droppable : ! 0 , badgable : ! 0 , stylable : ! 0 , "stylable-require" : "" , "style-signature" : "" , unstylable : "" , highlightable : ! 0 , copyable : ! 0 , resizable : ! 1 , editable : ! 1 , layerable : ! 0 , selectable : ! 0 , hoverable : ! 0 , "void" : ! 1 , state : "" , status : "" , content : "" , icon : "" , style : "" , classes : "" , script : "" , "script-export" : "" , attributes : "" , traits : [ "id" , "title" ] , propagate : "" , dmode : "" , toolbar : null } , init : function ( ) { } , updated : function ( e , t , n ) { } , removed : function ( ) { } , initialize : function ( ) { var e = this , t = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , r = n . em , o = this . parent ( ) , s = o && o . attributes ; if ( s && s . propagate ) { var a = { } , l = s . propagate ; l . forEach ( function ( e ) { return a [ e ] = o . get ( e ) } ) , a . propagate = l , a = i ( { } , a , { } , t ) , this . set ( a ) } var u = this . get ( "propagate" ) ; u && this . set ( "propagate" , Object ( c . isArray ) ( u ) ? u : [ u ] ) , n && n . config && n . config . voidElements . indexOf ( this . get ( "tagName" ) ) >= 0 && this . set ( "void" , ! 0 ) , n . em = r , this . opt = n , this . em = r , this . frame = n . frame , this . config = n . config || { } , this . set ( "attributes" , i ( { } , this . defaults . attributes || { } , { } , this . get ( "attributes" ) || { } ) ) , this . ccid = x . createId ( this ) , this . initClasses ( ) , this . initTraits ( ) , this . initComponents ( ) , this . initToolbar ( ) , this . listenTo ( this , "change:script" , this . scriptUpdated ) , this . listenTo ( this , "change:tagName" , this . tagUpdated ) , this . listenTo ( this , "change:attributes" , this . attrUpdated ) , this . listenTo ( this , "change:attributes:id" , this . _idUpdated ) , this . set ( "status" , "" ) , this . views = [ ] , [ "classes" , "traits" , "components" ] . forEach ( function ( t ) { var n = "add remove " . concat ( "components" !== t ? "change" : "" ) ; e . listenTo ( e . get ( t ) , n . trim ( ) , function ( ) { for ( var n = arguments . length , r = new Array ( n ) , i = 0 ; i < n ; i ++ ) r [ i ] = arguments [ i ] ; return e . emitUpdate . apply ( e , [ t ] . concat ( r ) ) } ) } ) , n . temporary || ( this . init ( ) , r && r
} ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./src/dom_components/model/ComponentTableBody.js" ) ; t [ "default" ] = a [ "default" ] . extend ( { defaults : i ( { } , a [ "default" ] . prototype . defaults , { type : "tfoot" , tagName : "tfoot" } ) } , { isComponent : function ( e ) { var t = "" ; return "TFOOT" == e . tagName && ( t = { type : "tfoot" } ) , t } } ) } , "./src/dom_components/model/ComponentTableHead.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./src/dom_components/model/ComponentTableBody.js" ) ; t [ "default" ] = a [ "default" ] . extend ( { defaults : i ( { } , a [ "default" ] . prototype . defaults , { type : "thead" , tagName : "thead" } ) } , { isComponent : function ( e ) { var t = "" ; return "THEAD" == e . tagName && ( t = { type : "thead" } ) , t } } ) } , "./src/dom_components/model/ComponentTableRow.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./src/dom_components/model/Component.js" ) ; t [ "default" ] = a [ "default" ] . extend ( { defaults : i ( { } , a [ "default" ] . prototype . defaults , { type : "row" , tagName : "tr" , draggable : [ "thead" , "tbody" , "tfoot" ] , droppable : [ "th" , "td" ] } ) , initialize : function ( e , t ) { a [ "default" ] . prototype . initialize . apply ( this , arguments ) ; var n = [ ] , r = this . get ( "components" ) ; r . each ( function ( e ) { return e . is ( "cell" ) && n . push ( e ) } ) , r . reset ( n ) } } , { isComponent : function ( e ) { var t = "" ; return "TR" == e . tagName && ( t = { type : "row" } ) , t } } ) } , "./src/dom_components/model/ComponentText.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./src/dom_components/model/Component.js" ) ; t [ "default" ] = a [ "default" ] . extend ( { defaults : i ( { } , a [ "default" ] . prototype . defaults , { type : "text" , droppable : ! 1 , editable : ! 0 } ) , toHTML : function ( ) { return this . trigger ( "sync:content" , { silent : 1 } ) , a [ "default" ] . prototype . toHTML . apply ( this , arguments ) } } ) } , "./src/dom_components/model/ComponentTextNode.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t
var s = i . offsetParent ; s ? ( n += s . offsetTop , r += s . offsetLeft , o ( s ) ) : ( e . top = t . offsetTop + n , e . left = t . offsetLeft + r , e . bottom = e . top + t . offsetHeight , e . right = e . left + t . offsetWidth ) } ; return i ( t ) , e } , isInViewport : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = e . rect , n = this . el , r = n . ownerDocument , i = r . body , o = r . defaultView . frameElement , s = t || this . getOffsetRect ( ) , a = s . top , l = s . left , c = this . _getFrame ( ) . getOffsetRect ( ) ; return a >= c . scrollTop && l >= c . scrollLeft && a <= c . scrollBottom && l <= o . offsetWidth + i . scrollLeft } , scrollIntoView : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = this . getOffsetRect ( ) , n = this . isInViewport ( { rect : t } ) ; if ( ! n || e . force ) { var r = this . el ; "smooth" !== e . behavior ? r . ownerDocument . defaultView . scrollTo ( 0 , t . top ) : r . scrollIntoView ( i ( { behavior : "smooth" , block : "nearest" } , e ) ) } } , reset : function ( ) { var e = this . el ; this . el = "" , this . _ensureElement ( ) , this . _setData ( ) , Object ( f . replaceWith ) ( e , this . el ) , this . render ( ) } , _setData : function ( ) { var e = this . model , t = e . components ( ) , n = this ; this . $el . data ( { model : e , collection : t , view : n } ) } , _getFrame : function ( ) { return this . config . frameView } , renderChildren : function ( ) { this . updateContent ( ) ; var e = this . getChildrenContainer ( ) , t = new d [ "default" ] ( { collection : this . model . get ( "components" ) , config : this . config , componentTypes : this . opts . componentTypes } ) ; t . render ( e ) , this . childrenView = t ; for ( var n = Array . prototype . slice . call ( t . el . childNodes ) , r = 0 , i = n . length ; r < i ; r ++ ) e . appendChild ( n . shift ( ) ) } , renderAttributes : function ( ) { this . updateAttributes ( ) , this . updateClasses ( ) } , render : function ( ) { return this . renderAttributes ( ) , this . modelOpt . temporary ? this : ( this . renderChildren ( ) , this . updateScript ( ) , this . postRender ( ) , this ) } , postRender : function ( ) { var e = this . em , t = this . model , n = this . modelOpt ; n . temporary || ( this . onRender ( this . _clbObj ( ) ) , e && e . trigger ( "component:mount" , t ) ) } , onRender : function ( ) { } } ) } , "./src/dom_components/view/ComponentsView.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./node_modules/backbone/backbone.js" ) , i = n . n ( r ) , o = n ( "./node_modules/underscore/underscore.js" ) ; n . n ( o ) ; t [ "default" ] = i . a . View . extend ( { initialize : function ( e ) { this . opts = e || { } , this . config = e . config || { } , this . em = this . config . em ; var t = this . collection ; this . listenTo ( t , "add" , this . addTo ) , this . listenTo ( t , "reset" , this . resetChildren ) , this . listenTo ( t , "remove" , this . removeChildren ) } , removeChildren : function ( e , t ) { var n = this , r = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } , i = this . config . em , o = r . temporary ; if ( e . views . forEach ( function ( e ) { if ( e ) { e . remove . apply ( e ) ; var t = e . childrenView , n = e . scriptContainer ; t && t . stopListening ( ) , n && n . remove ( ) } } ) , e . components ( ) . forEach ( function ( e ) { return n . removeChildren ( e , t , r ) } ) , i && ! o ) { var s = e . getId ( ) , a = i . get ( "DomComponents" ) ; delete a . componentsById [ s ] ; var l = i . get ( "CssComposer" ) . getAll ( ) ; if ( l . remove ( l . filter ( function ( e ) { return e . getSelectors ( ) . getFullString ( ) === "#" . concat ( s ) } ) ) , ! e . opt . temporary ) { var c = i . get ( "Commands" ) , u = e . get ( "style-signature" ) , d = { target : e } ; u && c . run ( "core:component-style-clear" , d ) , e . removed ( ) , i . trigger ( "component:remove" , e ) } } } , addTo : function ( e ) { var t = ( arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } ) , n = this . config . em , r = this . collection . indexOf ( e ) ; if ( this . addToCollection ( e , null , r ) , n && ! t . temporary ) { var i = function o ( e ) { n . trigger ( "component:add" , e ) , e . components ( ) . forEach ( function ( e ) { return o ( e ) } ) } ; i ( e ) } } , addToCollection : function ( e , t , r ) { this . compView || ( this . compView = n ( "./src/dom_components/view/ComponentView.js" ) [ "default" ] ) ; for ( var i = this . config , s = this . opts , a = this . em , l = t || null , c = s . componentTypes || a && a . get ( "DomComponents" ) . getTypes ( ) , u = e . get ( "type" ) , d = this . compView , h = 0 ; h < c . length ; h ++ ) if ( c [ h ] . id == u ) { d = c [ h ] . view ; break } var f = new d ( { model : e , config : i , componentTypes : c } ) , p = f . render ( ) . el ; if ( l ) l . appendChild ( p ) ; else { var g = this . parentEl , m = g . childNodes ; if ( Object ( o . isUndefined ) ( r ) ) g . appendChild ( p ) ; else { var v = m . length == r ; v && r -- , v || ! m . length ? g . appendChild ( p ) : g . insertBefore ( p , m [ r ] ) } } return p } , resetChildren : function ( ) { var e = this ; this . parentEl . innerHTML = "" , this . collection . each ( function ( t ) { return e . addToCollection ( t ) } ) } , render : function ( e ) { var t = this , n = this . el , r = document . c
t && this . trigger ( "component:hovered" , t , n ) } , getSelected : function ( ) { return this . get ( "selected" ) . last ( ) } , getSelectedAll : function ( ) { return this . get ( "selected" ) . models } , setSelected : function ( e ) { var t , n = this , r = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , i = Object ( a . isArray ) ( e ) , o = i ? e : [ e ] , s = this . get ( "selected" ) ; i && this . removeSelected ( s . filter ( function ( e ) { return ! Object ( a . contains ) ( o , e ) } ) ) , o . forEach ( function ( e ) { var o = Object ( h . getModel ) ( e , l [ "default" ] ) ; o && ! o . get ( "selectable" ) || ( ! i && n . removeSelected ( s . filter ( function ( e ) { return e !== o } ) ) , n . addSelected ( o , r ) , t = o ) } ) } , addSelected : function ( e ) { var t = this , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , r = Object ( h . getModel ) ( e , l [ "default" ] ) , i = Object ( a . isArray ) ( r ) ? r : [ r ] ; i . forEach ( function ( e ) { if ( ! e || e . get ( "selectable" ) ) { var r = t . get ( "selected" ) ; n . forceChange && r . remove ( e , n ) , r . push ( e , n ) } } ) } , removeSelected : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } ; this . get ( "selected" ) . remove ( Object ( h . getModel ) ( e , l [ "default" ] ) , t ) } , toggleSelected : function ( e ) { var t = this , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , r = Object ( h . getModel ) ( e , l [ "default" ] ) , i = Object ( a . isArray ) ( r ) ? r : [ r ] ; i . forEach ( function ( e ) { t . get ( "selected" ) . contains ( e ) ? t . removeSelected ( e , n ) : t . addSelected ( e , n ) } ) } , setHovered : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , n = Object ( h . getModel ) ( e , l [ "default" ] ) ; n && ! n . get ( "hoverable" ) || ( t . forceChange && this . set ( "componentHovered" , "" ) , this . set ( "componentHovered" , n , t ) ) } , getHovered : function ( ) { return this . get ( "componentHovered" ) } , setComponents : function ( e ) { return this . get ( "DomComponents" ) . setComponents ( e ) } , getComponents : function ( ) { var e = this . get ( "DomComponents" ) , t = this . get ( "CodeManager" ) ; if ( e && t ) { var n = e . getComponents ( ) ; return t . getCode ( n , "json" ) } } , setStyle : function ( e ) { for ( var t = this . get ( "CssComposer" ) . getAll ( ) , n = 0 , r = t . length ; n < r ; n ++ ) t . pop ( ) ; return t . add ( e ) , this } , getStyle : function ( ) { return this . get ( "CssComposer" ) . getAll ( ) } , setState : function ( e ) { return this . set ( "state" , e ) , this } , getState : function ( ) { return this . get ( "state" ) } , getHtml : function ( ) { var e = this . config , t = e . exportWrapper , n = e . wrapperIsBody , r = e . jsInHtml ? this . getJs ( ) : "" , i = this . get ( "DomComponents" ) . getComponent ( ) , o = this . get ( "CodeManager" ) . getCode ( i , "html" , { exportWrapper : t , wrapperIsBody : n } ) ; return o += r ? "<script>" . concat ( r , "</script>" ) : "" } , getCss : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = this . config , n = t . wrapperIsBody , r = e . avoidProtected , i = Object ( a . isUndefined ) ( e . keepUnusedStyles ) ? t . keepUnusedStyles : e . keepUnusedStyles , o = this . get ( "CssComposer" ) , s = this . get ( "DomComponents" ) . getComponent ( ) , l = r ? "" : t . protectedCss ; return l + this . get ( "CodeManager" ) . getCode ( s , "css" , { cssc : o , wrapperIsBody : n , keepUnusedStyles : i } ) } , getJs : function ( ) { var e = this . get ( "DomComponents" ) . getWrapper ( ) ; return this . get ( "CodeManager" ) . getCode ( e , "js" ) . trim ( ) } , store : function b ( e ) { var t = this , n = this . get ( "StorageManager" ) , b = { } ; if ( n ) return this . get ( "storables" ) . forEach ( function ( e ) { var t = e . store ( 1 ) ; for ( var n in t ) b [ n ] = t [ n ] } ) , n . store ( b , function ( n ) { e && e ( n ) , t . set ( "changesCount" , 0 ) , t . trigger ( "storage:store" , b ) } ) , b } , load : function ( ) { var e = this , t = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : null ; this . getCacheLoad ( 1 , function ( n ) { e . get ( "storables" ) . forEach ( function ( e ) { return e . load ( n ) } ) , t && t ( n ) } ) } , getCacheLoad : function ( e , t ) { var n = this ; if ( this . cacheLoad && ! e ) return this . cacheLoad ; var r = this . get ( "StorageManager" ) , i = [ ] ; return r ? ( this . get ( "storables" ) . forEach ( function ( e ) { var t = e . storageKey ; t = Object ( a . isFunction ) ( t ) ? t ( ) : t ; var n = Object ( a . isArray ) ( t ) ? t : [ t ] ; n . forEach ( function ( e ) { return i . push ( e ) } ) } ) , void r . load ( i , function ( e ) { n . cacheLoad = e , t && t ( e ) , setTimeout ( function ( ) { return n . trigger ( "storage:load" , e ) } ) } ) ) : { } } , getDeviceModel : function ( ) { var e = this . get ( "device" ) ; return this . get ( "DeviceManager" ) . get ( e ) } , runDefault : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = this . get ( "Commands" ) . get ( this . config . defaultCommand ) ; t && ! this . defaultRunning && ( t . stop ( this , this , e ) , t . run ( this , this , e ) , this . defaultRunning = 1 ) } , stopDefault : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? ar
containerSel : "." . concat ( this . className ) , itemSel : "." . concat ( n , "layer" ) , ignoreViewChildren : 1 , onEndMove : function ( e , t , n ) { var r = t . getSourceModel ( ) ; a . setSelected ( r , { forceChange : 1 } ) , a . trigger ( "" . concat ( s . eventDrag , ":end" ) , n ) } , avoidSelectOnEnd : 1 , nested : 1 , ppfx : r , pfx : n } ) } this . sorter = this . opt . sorter || "" , this . $el . data ( "collection" , o ) , i && this . $el . data ( "model" , i ) } , removeChildren : function ( e ) { var t = e . viewLayer ; t && t . remove . apply ( t ) } , addTo : function ( e ) { var t = this . collection . indexOf ( e ) ; this . addToCollection ( e , null , t ) } , addToCollection : function ( e , t , n ) { var r = this . level , i = this . parentView , s = t || null , a = o [ "default" ] , l = new a ( { level : r , model : e , parentView : i , config : this . config , sorter : this . sorter , isCountable : this . isCountable , opened : this . opt . opened } ) , c = l . render ( ) . el ; if ( s ) s . appendChild ( c ) ; else if ( "undefined" != typeof n ) { var u = "before" ; this . $el . children ( ) . length == n && ( n -- , u = "after" ) , n < 0 ? this . $el . append ( c ) : this . $el . children ( ) . eq ( n ) [ u ] ( c ) } else this . $el . append ( c ) ; return c } , isCountable : function ( e , t ) { var n = e . get ( "type" ) , r = e . get ( "tagName" ) ; return ! ( ( "textnode" == n || "br" == r ) && t || ! e . get ( "layerable" ) ) } , render : function ( ) { var e = this , t = document . createDocumentFragment ( ) , n = this . el ; return n . innerHTML = "" , this . collection . each ( function ( n ) { return e . addToCollection ( n , t ) } ) , n . appendChild ( t ) , n . className = this . className , this } } ) } , "./src/panels/config/config.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = "sw-visibility" , i = "export-template" , o = "open-sm" , s = "open-tm" , a = "open-layers" , l = "open-blocks" , c = "fullscreen" , u = "preview" ; t [ "default" ] = { stylePrefix : "pn-" , defaults : [ { id : "commands" , buttons : [ { } ] } , { id : "options" , buttons : [ { active : ! 0 , id : r , className : "fa fa-square-o" , command : r , context : r , attributes : { title : "View components" } } , { id : u , className : "fa fa-eye" , command : u , context : u , attributes : { title : "Preview" } } , { id : c , className : "fa fa-arrows-alt" , command : c , context : c , attributes : { title : "Fullscreen" } } , { id : i , className : "fa fa-code" , command : i , attributes : { title : "View code" } } ] } , { id : "views" , buttons : [ { id : o , className : "fa fa-paint-brush" , command : o , active : ! 0 , togglable : 0 , attributes : { title : "Open Style Manager" } } , { id : s , className : "fa fa-cog" , command : s , togglable : 0 , attributes : { title : "Settings" } } , { id : a , className : "fa fa-bars" , command : a , togglable : 0 , attributes : { title : "Open Layer Manager" } } , { id : l , className : "fa fa-th-large" , command : l , togglable : 0 , attributes : { title : "Open Blocks" } } ] } ] , em : null , delayBtnsShow : 300 } } , "./src/panels/index.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./src/panels/config/config.js" ) , i = n ( "./src/panels/model/Panel.js" ) , o = n ( "./src/panels/model/Panels.js" ) , s = ( n ( "./src/panels/view/PanelView.js" ) , n ( "./src/panels/view/PanelsView.js" ) ) ; t [ "default" ] = function ( ) { var e , t , n = { } ; return { name : "Panels" , init : function ( i ) { n = i || { } ; for ( var a in r [ "default" ] ) a in n || ( n [ a ] = r [ "default" ] [ a ] ) ; var l = n . pStylePrefix ; return l && ( n . stylePrefix = l + n . stylePrefix ) , e = new o [ "default" ] ( n . defaults ) , t = new s [ "default" ] ( { collection : e , config : n } ) , this } , getPanels : function ( ) { return e } , getPanelsEl : function ( ) { return t . el } , addPanel : function ( t ) { return e . add ( t ) } , removePanel : function ( t ) { return e . remove ( t ) } , getPanel : function ( t ) { var n = e . where ( { id : t } ) ; return n . length ? n [ 0 ] : null } , addButton : function ( e , t ) { var n = this . getPanel ( e ) ; return n ? n . get ( "buttons" ) . add ( t ) : null } , removeButton : function ( e , t ) { var n = this . getPanel ( e ) ; return n && n . get ( "buttons" ) . remove ( t ) } , getButton : function ( e , t ) { var n = this . getPanel ( e ) ; if ( n ) { var r = n . get ( "buttons" ) . where ( { id : t } ) ; return r . length ? r [ 0 ] : null } return null } , render : function ( ) { return t . render ( ) . el } , active : function ( ) { this . getPanels ( ) . each ( function ( e ) { e . get ( "buttons" ) . each ( function ( e ) { e . get ( "active" ) && e . trigger ( "updateActive" ) } ) } ) } , disableButtons : function ( ) { this . getPanels ( ) . each ( function ( e ) { e . get ( "buttons" ) . each ( function ( e ) { e . get ( "disable" ) && e . trigger ( "change:disable" ) } ) } ) } , Panel : i [ "default" ] } } } , "./src/panels/model/Button.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./node_modules/backbone/backbone.js" ) , i = n . n ( r ) ; t [ "default" ] = i . a . Model . extend ( { defaults : { id : "" , label : "" , tagName : "span" , className : "" , command : "" , context : "" , buttons : [ ] , attributes : { } , options : { } , active : ! 1 , dragDrop : ! 1 , togglable : ! 0 , runDefaultCommand : ! 0 , stopDefaultCommand : ! 1 , disable : ! 1 } , initialize
render : 0 , componentFirst : 0 } } , "./src/selector_manager/index.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/underscore/underscore.js" ) , l = ( n . n ( a ) , n ( "./src/utils/mixins.js" ) ) , c = n ( "./src/selector_manager/config/config.js" ) , u = n ( "./src/selector_manager/model/Selector.js" ) , d = n ( "./src/selector_manager/model/Selectors.js" ) , h = n ( "./src/selector_manager/view/ClassTagsView.js" ) , f = function ( e ) { return Object ( a . isString ) ( e ) && "#" == e [ 0 ] } , p = function ( e ) { return Object ( a . isString ) ( e ) && "." == e [ 0 ] } ; t [ "default" ] = function ( e ) { var t , n = e || { } ; return { Selector : u [ "default" ] , Selectors : d [ "default" ] , name : "SelectorManager" , getConfig : function ( ) { return n } , init : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } ; n = i ( { } , c [ "default" ] , { } , e ) ; var r = n . em , o = n . pStylePrefix ; return this . em = r , o && ( n . stylePrefix = o + n . stylePrefix ) , this . selectorTags = new h [ "default" ] ( { collection : new d [ "default" ] ( [ ] , { em : r , config : n } ) , config : n } ) , t = new d [ "default" ] ( n . selectors ) , t . on ( "add" , function ( e ) { return r . trigger ( "selector:add" , e ) } ) , t . on ( "remove" , function ( e ) { return r . trigger ( "selector:remove" , e ) } ) , t . on ( "change" , function ( e ) { return r . trigger ( "selector:update" , e , e . previousAttributes ( ) , e . changedAttributes ( ) ) } ) , r . on ( "change:state" , function ( e , t ) { return r . trigger ( "selector:state" , t ) } ) , this } , postRender : function ( ) { var e = this . getConfig ( ) . appendTo ; if ( e ) { var t = Object ( a . isElement ) ( e ) ? e : document . querySelector ( e ) ; t . appendChild ( this . render ( [ ] ) ) } } , select : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , n = Array . isArray ( e ) ? e : [ e ] , r = this . em . get ( "StyleManager" ) . setTarget ( n , t ) , i = r . filter ( function ( e ) { return e } ) . map ( function ( e ) { return Object ( l . isComponent ) ( e ) ? e : Object ( l . isRule ) ( e ) && ! e . get ( "selectorsAdd" ) ? e : e . getSelectorsString ( ) } ) ; return this . selectorTags . componentChanged ( { targets : i } ) , this } , setState : function ( e ) { return this . em . setState ( e ) , this } , getState : function ( ) { return this . em . setState ( ) } , addSelector : function ( e ) { var r = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , o = i ( { } , r ) ; Object ( a . isObject ) ( e ) ? o = e : o . name = e , f ( o . name ) ? ( o . name = o . name . substr ( 1 ) , o . type = u [ "default" ] . TYPE _ID ) : p ( o . name ) && ( o . name = o . name . substr ( 1 ) ) , o . label && ! o . name && ( o . name = this . escapeName ( o . label ) ) ; var s = o . name , l = s ? this . get ( s , o . type ) : t . where ( o ) [ 0 ] ; return l ? l : t . add ( o , { config : n } ) } , getSelector : function ( e ) { var n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : u [ "default" ] . TYPE _CLASS ; return f ( e ) ? ( e = e . substr ( 1 ) , n = u [ "default" ] . TYPE _ID ) : p ( e ) && ( e = e . substr ( 1 ) ) , t . where ( { name : e , type : n } ) [ 0 ] } , add : function ( e ) { var t = this , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } ; return Object ( a . isArray ) ( e ) ? e . map ( function ( e ) { return t . addSelector ( e , n ) } ) : this . addSelector ( e , n ) } , addClass : function ( e ) { var t = this , n = [ ] ; return Object ( a . isString ) ( e ) && ( e = e . trim ( ) . split ( " " ) ) , e . forEach ( function ( e ) { return n . push ( t . addSelector ( e ) ) } ) , n } , get : function ( e , t ) { var n = this ; if ( Object ( a . isArray ) ( e ) ) { var r = [ ] , i = e . map ( function ( e ) { return n . getSelector ( e ) } ) . filter ( function ( e ) { return e } ) ; return i . forEach ( function ( e ) { return r . indexOf ( e ) < 0 && r . push ( e ) } ) , r } return this . getSelector ( e , t ) } , getAll : function ( ) { return t } , escapeName : function r ( e ) { var t = n , r = t . escapeName ; return r ? r ( e ) : u [ "default" ] . escapeName ( e ) } , render : function ( e ) { return e ? ( this . selectorTags = new h [ "default" ] ( { collection : new d [ "default" ] ( e ) , config : n } ) , this . selectorTags . render ( ) . el ) : this . selectorTags . render ( ) . el } } } } , "./src/selector_manager/model/Selector.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./node_modules/backbone/backbone.js" ) , i = n . n ( r ) , o = 1 , s = 2 ,
if ( e && "color" == e . type ) return e } } , { id : "select" , model : v [ "default" ] , view : b [ "default" ] , isType : function ( e ) { if ( e && "select" == e . type ) return e } } , { id : "radio" , model : y [ "default" ] , view : w [ "default" ] , isType : function ( e ) { if ( e && "radio" == e . type ) return e } } , { id : "slider" , model : x [ "default" ] , view : C [ "default" ] , isType : function ( e ) { if ( e && "slider" == e . type ) return e } } , { id : "integer" , model : j [ "default" ] , view : O [ "default" ] , isType : function ( e ) { if ( e && "integer" == e . type ) return e } } , { id : "base" , model : u [ "default" ] , view : k [ "default" ] , isType : function ( e ) { return e . type = "base" , e } } ] , deepClone : function ( ) { var e = this . clone ( ) ; return e . reset ( e . map ( function ( e ) { var t = e . clone ( ) ; return t . typeView = e . typeView , t } ) ) , e } , parseValue : function ( e ) { var t = this , n = [ ] , r = e . split ( " " ) ; return r . forEach ( function ( e , r ) { var o = t . at ( r ) ; o && n . push ( i ( { } , o . attributes , { } , { value : e } ) ) } ) , n } , getFullValue : function ( ) { var e = "" ; return this . each ( function ( t ) { return e += "" . concat ( t . getFullValue ( ) , " " ) } ) , e . trim ( ) } } ) } , "./src/style_manager/model/Property.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./node_modules/underscore/underscore.js" ) , u = ( n . n ( c ) , n ( "./src/utils/mixins.js" ) ) , d = l . a . Model . extend ( { defaults : { name : "" , property : "" , type : "" , defaults : "" , info : "" , value : "" , icon : "" , functionName : "" , status : "" , visible : ! 0 , fixedValues : [ "initial" , "inherit" ] , full : 0 , important : 0 , toRequire : 0 , requires : null , requiresParent : null } , initialize : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , n = this . get ( "id" ) || "" , r = this . get ( "name" ) || "" ; ! this . get ( "property" ) && this . set ( "property" , ( r || n ) . replace ( / /g , "-" ) ) ; var i = this . get ( "property" ) ; ! this . get ( "id" ) && this . set ( "id" , i ) , ! r && this . set ( "name" , Object ( u . capitalize ) ( i ) . replace ( /-/g , " " ) ) , d . callInit ( this , e , t ) } , init : function ( ) { } , clearValue : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } ; return this . set ( { value : void 0 , status : "" } , e ) , this } , setValue : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : 1 , n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } , r = this . parseValue ( e ) ; this . set ( r , i ( { } , n , { avoidStore : ! t } ) ) } , setValueFromInput : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } ; this . setValue ( e , t , i ( { } , n , { fromInput : 1 } ) ) } , parseValue : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , n = { value : e } , r = "!important" ; if ( Object ( c . isString ) ( e ) && e . indexOf ( r ) !== - 1 && ( n . value = e . replace ( r , "" ) . trim ( ) , n . important = 1 ) , ! this . get ( "functionName" ) && ! t . complete ) return n ; var i = [ ] , o = "" . concat ( n . value ) , s = o . indexOf ( "(" ) + 1 , a = o . lastIndexOf ( ")" ) , l = o . substring ( 0 , s - 1 ) ; if ( l && ( n . functionName = l ) , i . push ( s ) , a >= 0 && i . push ( a ) , n . value = String . prototype . substring . apply ( o , i ) , t . numeric ) { var u = parseFloat ( n . value ) ; n . unit = n . value . replace ( u , "" ) , n . value = u } return n } , splitValues : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : "," , n = [ ] , r = "(" , i = ")" , o = "" , s = 0 ; return ( e || "" ) . split ( "" ) . forEach ( function ( e ) { e == r ? ( s ++ , o += r ) : e == i && s > 0 ? ( s -- , o += i ) : e === t && 0 == s ? ( n . push ( o ) , o = "" ) : o += e } ) , "" !== o && n . push ( o ) , n . map ( function ( e ) { return e . trim ( ) } ) } , getDefaultValue : function ( ) { return this . get ( "defaults" ) } , getFullValue : function ( e ) { var t = this . get ( "functionName" ) , n = this . getDefaultValue ( ) , r = Object ( c . isUndefined ) ( e ) ? this . get ( "value" ) : e , i = ! Object ( c . isUndefined ) ( r ) && "" !== r ; return r && n && r === n ? n : ( t && i && ( r = "" . concat ( t , "(" ) . concat ( r , ")" ) ) , i && this . get ( "important" ) && ( r = "" . concat ( r , " !important" ) ) , r || "" ) } } , { callParentInit : function ( e
} , render : function ( ) { var e = document . createDocumentFragment ( ) ; return this . $el . empty ( ) , this . collection . each ( function ( t ) { this . addToCollection ( t , e ) } , this ) , this . $el . append ( e ) , this . $el . attr ( "class" , this . className ) , this . sorter && ( this . sorter . plh = null ) , this } } ) } , "./src/style_manager/view/PropertiesView.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./node_modules/backbone/backbone.js" ) , i = n . n ( r ) , o = n ( "./src/utils/dom.js" ) ; t [ "default" ] = i . a . View . extend ( { initialize : function ( e ) { this . config = e . config || { } , this . pfx = this . config . stylePrefix || "" , this . target = e . target || { } , this . propTarget = e . propTarget || { } , this . onChange = e . onChange , this . onInputRender = e . onInputRender || { } , this . customValue = e . customValue || { } , this . properties = [ ] ; var t = this . collection ; this . listenTo ( t , "add" , this . addTo ) , this . listenTo ( t , "reset" , this . render ) } , addTo : function ( e , t , n ) { this . add ( e , null , n ) } , add : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } , r = t || this . el , i = new e . typeView ( { model : e , name : e . get ( "name" ) , id : this . pfx + e . get ( "property" ) , target : this . target , propTarget : this . propTarget , onChange : this . onChange , onInputRender : this . onInputRender , config : this . config } ) ; "composite" != e . get ( "type" ) && ( i . customValue = this . customValue ) , i . render ( ) ; var s = i . el ; this . properties . push ( i ) , i . updateVisibility ( ) , Object ( o . appendAtIndex ) ( r , s , n . at ) } , render : function ( ) { var e = this , t = this . $el ; this . properties = [ ] ; var n = document . createDocumentFragment ( ) ; return this . collection . each ( function ( t ) { return e . add ( t , n ) } ) , t . empty ( ) , t . append ( n ) , t . attr ( "class" , "" . concat ( this . pfx , "properties" ) ) , this } } ) } , "./src/style_manager/view/PropertyColorView.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./src/style_manager/view/PropertyIntegerView.js" ) , l = n ( "./src/domain_abstract/ui/InputColor.js" ) ; t [ "default" ] = a [ "default" ] . extend ( { setValue : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } ; t = i ( { } , t , { silent : 1 } ) , this . inputInst . setValue ( e , t ) } , onRender : function ( ) { if ( ! this . input ) { var e = this . ppfx , t = new l [ "default" ] ( { target : this . target , model : this . model , ppfx : e } ) , n = t . render ( ) ; this . el . querySelector ( "." . concat ( e , "fields" ) ) . appendChild ( n . el ) , this . $input = n . inputEl , this . $color = n . colorEl , this . input = this . $input . get ( 0 ) , this . inputInst = n } } } ) } , "./src/style_manager/view/PropertyCompositeView.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./src/style_manager/view/PropertyView.js" ) , u = l . a . $ ; t [ "default" ] = c [ "default" ] . extend ( { templateInput : function ( ) { var e = this . pfx ; return '\n <div class="' . concat ( e , "field " ) . concat ( e , 'composite">\n <span id="' ) . concat ( e , 'input-holder"></span>\n </div>\n ' ) } , inputValueChanged : function ( ) { if ( ! this . model . get ( "detached" ) ) { for ( var e = arguments . length , t = new Array ( e ) , n = 0 ; n < e ; n ++ ) t [ n ] = arguments [ n ] ; c [ "default" ] . prototype . inputValueChanged . apply ( this , t ) } } , clear : function ( e ) { var t = this . properties ; t && t
} ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./node_modules/underscore/underscore.js" ) , u = ( n . n ( c ) , n ( "./src/utils/mixins.js" ) ) , d = n ( "./src/utils/dom.js" ) , h = n ( "./src/style_manager/view/SectorView.js" ) , f = "hc-state" ; t [ "default" ] = l . a . View . extend ( { initialize : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = e . config || { } ; this . pfx = t . stylePrefix || "" , this . ppfx = t . pStylePrefix || "" , this . target = e . target || { } , this . config = t ; var n = { } ; Object ( c . extend ) ( n , l . a . Events ) ; var r = document . body , o = document . createElement ( "el-" . concat ( ( new Date ) . getTime ( ) ) ) ; r . appendChild ( o ) , n . computedDefault = i ( { } , window . getComputedStyle ( o ) ) , r . removeChild ( o ) , this . propTarget = n ; var s = this . collection , a = "component:toggled component:update:classes change:state change:device frame:resized" ; this . listenTo ( s , "add" , this . addTo ) , this . listenTo ( s , "reset" , this . render ) , this . listenTo ( this . target , a , this . targetUpdated ) } , addTo : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } ; this . addToCollection ( e , null , n ) } , toggleStateCls : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : [ ] , t = arguments . length > 1 ? arguments [ 1 ] : void 0 ; e . forEach ( function ( e ) { var n = e . getEl ( ) ; n && n . classList [ t ? "add" : "remove" ] ( f ) } ) } , targetUpdated : function ( e ) { var t = this . target , n = this . propTarget , r = t . getSelectedAll ( ) , i = t . getSelected ( ) , o = e && e . toHTML ? e : i ; if ( o && this . toggleStateCls ( [ o ] ) , i ) { var s = t . get ( "Config" ) , a = s . devicePreviewMode ? "" : t . get ( "state" ) , l = t . get ( "SelectorManager" ) . getConfig ( ) , c = l . componentFirst , d = i . getEl ( ) ; if ( n . helper = null , n . targets = null , d && Object ( u . isTaggableNode ) ( d ) ) { var h = a ? ":" . concat ( a ) : null ; n . computed = window . getComputedStyle ( d , h ) } var p = function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , r = t . get ( "CssComposer" ) , i = r . getAll ( ) , o = r . getClassRule ( f ) ; o ? ( i . remove ( o ) , i . add ( o ) ) : o = r . setClassRule ( f ) , o . set ( "important" , 1 ) , o . setStyle ( e ) , n . helper = o } ; i = t . get ( "StyleManager" ) . getModelToStyle ( i ) , a && ( p ( i . getStyle ( ) ) , this . toggleStateCls ( r , 1 ) ) , n . model = i , c && ( n . targets = r ) , n . trigger ( "update" ) } } , setTarget : function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , n = this . target , r = Object ( c . isArray ) ( e ) ? e : [ e ] , i = t . targetIsClass , o = t . stylable , s = [ ] ; r . forEach ( function ( e ) { var t = e ; if ( Object ( c . isString ) ( e ) ) { var r , a = n . get ( "CssComposer" ) . getAll ( ) ; i && ( r = a . filter ( function ( t ) { return t . get ( "selectors" ) . getFullString ( ) === e } ) [ 0 ] ) , r || ( r = a . filter ( function ( t ) { return t . get ( "selectorsAdd" ) === e } ) [ 0 ] ) , r || ( r = a . add ( { selectors : [ ] , selectorsAdd : e } ) ) , o && r . set ( { stylable : o } ) , t = r } s . push ( t ) } ) ; var a = this . propTarget ; return a . targets = s , a . trigger ( "update" ) , s } , addToCollection : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } , r = this . pfx , i = this . target , o = this . propTarget , s = this . config , a = this . el , l = t || a , c = new h [ "default" ] ( { model : e , id : "" . concat ( r ) . concat ( e . get ( "id" ) ) , name : e . get ( "name" ) , properties : e . get ( "properties" ) , target : i , propTarget : o , config : s } ) . render ( ) . el ; return Object ( d . appendAtIndex ) ( l , c , n . at ) , c } , render : function ( ) { var e = this , t = document . createDocumentFragment ( ) , n = this . $el , r = this . pfx , i = this . ppfx ; return n . empty ( ) , this . collection . each ( function ( n ) { return e . addToCollection ( n , t ) } ) , n . append ( t ) , n . addClass ( "" . concat ( r , "sectors " ) . concat ( i , "one-bg " ) . concat ( i , "two-color" ) ) , this } } ) } , "./src/trait_manager/config/config.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) , t [ "default" ] = { stylePrefix : "trt-" , appendTo : "" , optionsTarget : [ { value : ! 1 } , { value : "_blank" } ] } } , "./src/trait_manager/index.js" : function ( e , t , n ) { "use strict" ; n . r ( t ) ; var r = n ( "./node_modules/underscore/underscore.js" ) , i = ( n . n ( r ) , n ( "./src/trait_manager/config/config.js" ) ) , o = n ( "./src/trait_manager/view/TraitsView.js" ) ; t [ "default" ] = function ( ) { var e , t = { } ; return { TraitsView : o [ "default" ] , name : "TraitManager" , getConfig : function ( ) { return t } , init : function ( ) { var n = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } ; t = n , Object ( r . defaults ) ( t , i [ "default" ] ) ; var s = t . pStylePrefix ; return s && ( t . stylePrefix = "" . concat ( s ) . concat ( t . stylePrefix ) ) , e = new o [ "default" ] ( { collection : [ ] , editor : t . em , config : t } ) , this } , postRender : function ( ) { var
f = e ( t ) . width ( ) , d = e ( t ) . offset ( ) , e ( c ) . bind ( g ) , e ( c . body ) . addClass ( "sp-dragging" ) , s ( n ) , o ( n ) ) } function l ( ) { u && ( e ( c ) . unbind ( g ) , e ( c . body ) . removeClass ( "sp-dragging" ) , setTimeout ( function ( ) { i . apply ( t , arguments ) } , 0 ) ) , u = ! 1 } n = n || function ( ) { } , r = r || function ( ) { } , i = i || function ( ) { } ; var c = document , u = ! 1 , d = { } , h = 0 , f = 0 , p = "ontouchstart" in window , g = { } ; g . selectstart = o , g . dragstart = o , g [ "touchmove mousemove" ] = s , g [ "touchend mouseup" ] = l , e ( t ) . bind ( "touchstart mousedown" , a ) } function h ( e , t , n ) { var r ; return function ( ) { var i = this , o = arguments , s = function ( ) { r = null , e . apply ( i , o ) } ; n && clearTimeout ( r ) , ! n && r || ( r = setTimeout ( s , t ) ) } } function f ( ) { return e . fn . spectrum . inputTypeColorSupport ( ) } function p ( e ) { var t = { r : 0 , g : 0 , b : 0 } , n = 1 , r = ! 1 , o = ! 1 ; return "string" == typeof e && ( e = q ( e ) ) , "object" == i ( ) ( e ) && ( e . hasOwnProperty ( "r" ) && e . hasOwnProperty ( "g" ) && e . hasOwnProperty ( "b" ) ? ( t = g ( e . r , e . g , e . b ) , r = ! 0 , o = "%" === String ( e . r ) . substr ( - 1 ) ? "prgb" : "rgb" ) : e . hasOwnProperty ( "h" ) && e . hasOwnProperty ( "s" ) && e . hasOwnProperty ( "v" ) ? ( e . s = $ ( e . s ) , e . v = $ ( e . v ) , t = y ( e . h , e . s , e . v ) , r = ! 0 , o = "hsv" ) : e . hasOwnProperty ( "h" ) && e . hasOwnProperty ( "s" ) && e . hasOwnProperty ( "l" ) && ( e . s = $ ( e . s ) , e . l = $ ( e . l ) , t = v ( e . h , e . s , e . l ) , r = ! 0 , o = "hsl" ) , e . hasOwnProperty ( "a" ) && ( n = e . a ) ) , n = V ( n ) , { ok : r , format : e . format || o , r : oe ( 255 , se ( t . r , 0 ) ) , g : oe ( 255 , se ( t . g , 0 ) ) , b : oe ( 255 , se ( t . b , 0 ) ) , a : n } } function g ( e , t , n ) { return { r : 255 * I ( e , 255 ) , g : 255 * I ( t , 255 ) , b : 255 * I ( n , 255 ) } } function m ( e , t , n ) { e = I ( e , 255 ) , t = I ( t , 255 ) , n = I ( n , 255 ) ; var r , i , o = se ( e , t , n ) , s = oe ( e , t , n ) , a = ( o + s ) / 2 ; if ( o == s ) r = i = 0 ; else { var l = o - s ; switch ( i = a > . 5 ? l / ( 2 - o - s ) : l / ( o + s ) , o ) { case e : r = ( t - n ) / l + ( t < n ? 6 : 0 ) ; break ; case t : r = ( n - e ) / l + 2 ; break ; case n : r = ( e - t ) / l + 4 } r /= 6 } return { h : r , s : i , l : a } } function v ( e , t , n ) { function r ( e , t , n ) { return n < 0 && ( n += 1 ) , n > 1 && ( n -= 1 ) , n < 1 / 6 ? e + 6 * ( t - e ) * n : n < . 5 ? t : n < 2 / 3 ? e + ( t - e ) * ( 2 / 3 - n ) * 6 : e } var i , o , s ; if ( e = I ( e , 360 ) , t = I ( t , 100 ) , n = I ( n , 100 ) , 0 === t ) i = o = s = n ; else { var a = n < . 5 ? n * ( 1 + t ) : n + t - n * t , l = 2 * n - a ; i = r ( l , a , e + 1 / 3 ) , o = r ( l , a , e ) , s = r ( l , a , e - 1 / 3 ) } return { r : 255 * i , g : 255 * o , b : 255 * s } } function b ( e , t , n ) { e = I ( e , 255 ) , t = I ( t , 255 ) , n = I ( n , 255 ) ; var r , i , o = se ( e , t , n ) , s = oe ( e , t , n ) , a = o , l = o - s ; if ( i = 0 === o ? 0 : l / o , o == s ) r = 0 ; else { switch ( o ) { case e : r = ( t - n ) / l + ( t < n ? 6 : 0 ) ; break ; case t : r = ( n - e ) / l + 2 ; break ; case n : r = ( e - t ) / l + 4 } r /= 6 } return { h : r , s : i , v : a } } function y ( e , t , n ) { e = 6 * I ( e , 360 ) , t = I ( t , 100 ) , n = I ( n , 100 ) ; var r = re . floor ( e ) , i = e - r , o = n * ( 1 - t ) , s = n * ( 1 - i * t ) , a = n * ( 1 - ( 1 - i ) * t ) , l = r % 6 , c = [ n , s , o , o , a , n ] [ l ] , u = [ a , n , n , s , o , o ] [ l ] , d = [ o , o , a , n , n , s ] [ l ] ; return { r : 255 * c , g : 255 * u , b : 255 * d } } function w ( e , t , n , r ) { var i = [ B ( ie ( e ) . toString ( 16 ) ) , B ( ie ( t ) . toString ( 16 ) ) , B ( ie ( n ) . toString ( 16 ) ) ] ; return r && i [ 0 ] . charAt ( 0 ) == i [ 0 ] . charAt ( 1 ) && i [ 1 ] . charAt ( 0 ) == i [ 1 ] . charAt ( 1 ) && i [ 2 ] . charAt ( 0 ) == i [ 2 ] . charAt ( 1 ) ? i [ 0 ] . charAt ( 0 ) + i [ 1 ] . charAt ( 0 ) + i [ 2 ] . charAt ( 0 ) : i . join ( "" ) } function x ( e , t , n , r ) { var i = [ B ( W ( r ) ) , B ( ie ( e ) . toString ( 16 ) ) , B ( ie ( t ) . toString ( 16 ) ) , B ( ie ( n ) . toString ( 16 ) ) ] ; return i . join ( "" ) } function C ( e , t ) { t = 0 === t ? 0 : t || 10 ; var n = le ( e ) . toHsl ( ) ; return n . s -= t / 100 , n . s = F ( n . s ) , le ( n ) } function j ( e , t ) { t = 0 === t ? 0 : t || 10 ; var n = le ( e ) . toHsl ( ) ; return n . s += t / 100 , n . s = F ( n . s ) , le ( n ) } function O ( e ) { return le ( e ) . desaturate ( 100 ) } function k ( e , t ) { t = 0 === t ? 0 : t || 10 ; var n = le ( e ) . toHsl ( ) ; return n . l += t / 100 , n . l = F ( n . l ) , le ( n ) } function S ( e , t ) { t = 0 === t ? 0 : t || 10 ; var n = le ( e ) . toRgb ( ) ; return n . r = se ( 0 , oe ( 255 , n . r - ie ( 255 * - ( t / 100 ) ) ) ) , n . g = se ( 0 , oe ( 255 , n . g - ie ( 255 * - ( t / 100 ) ) ) ) , n . b = se ( 0 , oe ( 255 , n . b - ie ( 255 * - ( t / 100 ) ) ) ) , le ( n ) } function T ( e , t ) { t = 0 === t ? 0 : t || 10 ; var n = le ( e ) . toHsl ( ) ; return n . l -= t / 100 , n . l = F ( n . l ) , le ( n ) } function P ( e , t ) { var n = le ( e ) . toHsl ( ) , r = ( ie ( n . h ) + t ) % 360 ; return n . h = r < 0 ? 360 + r : r , le ( n ) } function E ( e ) { var t = le ( e ) . toHsl ( ) ; return t . h = ( t . h + 180 ) % 360 , le ( t ) } function _ ( e ) { var t = le ( e ) . toHsl ( ) , n = t . h ; return [ le ( e ) , le ( { h : ( n + 120 ) % 360 , s : t . s , l : t . l } ) , le ( { h : ( n + 240 ) % 360 , s : t . s , l : t . l } ) ] } function D ( e ) { var t = le ( e ) . toHsl ( ) , n = t . h ; return [ le ( e ) , le ( { h : ( n + 90 ) % 360 , s : t . s , l : t . l } ) , le ( { h : ( n + 180 ) % 360 , s : t . s , l : t . l } ) , le ( { h : ( n + 270 ) % 360 , s : t . s , l : t . l } ) ] } function M ( e ) { var t = le ( e ) . toHsl ( ) , n = t . h ; return [ le ( e ) , le ( { h : ( n + 72 ) % 360 , s : t . s , l : t . l } ) , le ( { h : ( n + 216 ) % 360 , s : t . s , l : t . l } ) ] } function A ( e , t , n ) { t = t || 6 , n = n || 30 ; var r = le ( e ) . toHsl ( ) , i = 360 / n , o = [ le ( e ) ] ; for ( r . h = ( r . h - ( i * t >> 1 ) + 720 ) % 360 ; -- t ; ) r . h = ( r . h + i ) % 360 , o . push ( le ( r ) ) ; return o } function L ( e , t ) { t = t || 6 ; for ( var n = le ( e ) . toHsv ( ) , r = n . h , i = n . s , o = n . v , s = [ ] , a = 1 / t ; t -- ; ) s . push ( le ( { h : r , s : i , v : o } ) ) , o = ( o + a ) % 1 ; return s } function N ( e ) {
h [ u ] = i . h + a } this . updateContainer ( ) } } , { key : "updateContainer" , value : function ( ) { var e = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { } , t = this . opts , n = this . container , r = this . el , o = n . style ; ! t . avoidContainerUpdate && r && e . forceShow && ( o . display = "block" ) , this . onUpdateContainer ( { el : n , resizer : this , opts : i ( { } , t , { } , e ) } ) } } , { key : "getSelectedHandler" , value : function ( ) { var e = this . handlers ; if ( this . selectedHandler ) for ( var t in e ) if ( e [ t ] === this . selectedHandler ) return t } } , { key : "handleKeyDown" , value : function ( e ) { 27 === e . keyCode && ( this . rectDim = this . startDim , this . stop ( e ) ) } } , { key : "handleMouseDown" , value : function ( e ) { var t = e . target ; this . isHandler ( t ) ? ( this . selectedHandler = t , this . start ( e ) ) : t !== this . el && ( this . selectedHandler = "" , this . blur ( ) ) } } , { key : "calc" , value : function ( e ) { var t , n = this . opts || { } , r = n . step , i = this . startDim , o = n . minDim , s = n . maxDim , a = e . delta . x , l = e . delta . y , c = i . w , u = i . h , d = { t : 0 , l : 0 , w : c , h : u } ; if ( e ) { var f = e . handlerAttr ; ~ f . indexOf ( "r" ) && ( t = Object ( h . normalizeFloat ) ( c + a * r , r ) , t = Math . max ( o , t ) , s && ( t = Math . min ( s , t ) ) , d . w = t ) , ~ f . indexOf ( "b" ) && ( t = Object ( h . normalizeFloat ) ( u + l * r , r ) , t = Math . max ( o , t ) , s && ( t = Math . min ( s , t ) ) , d . h = t ) , ~ f . indexOf ( "l" ) && ( t = Object ( h . normalizeFloat ) ( c - a * r , r ) , t = Math . max ( o , t ) , s && ( t = Math . min ( s , t ) ) , d . w = t ) , ~ f . indexOf ( "t" ) && ( t = Object ( h . normalizeFloat ) ( u - l * r , r ) , t = Math . max ( o , t ) , s && ( t = Math . min ( s , t ) ) , d . h = t ) ; var p = n . ratioDefault ? ! e . keys . shift : e . keys . shift ; if ( f . indexOf ( "c" ) < 0 && p ) { var g = i . w / i . h ; d . w / d . h > g ? d . h = Math . round ( d . w / g ) : d . w = Math . round ( d . h * g ) } return ~ f . indexOf ( "l" ) && ( d . l = i . w - d . w ) , ~ f . indexOf ( "t" ) && ( d . t = i . h - d . h ) , d } } } ] ) , e } ( ) ; t [ "default" ] = { init : function ( e ) { return new m ( e ) } } } , "./src/utils/Sorter.js" : function ( e , t , n ) { "use strict" ; function r ( e , t ) { var n = Object . keys ( e ) ; if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e ) ; t && ( r = r . filter ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) , n . push . apply ( n , r ) } return n } function i ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } ; t % 2 ? r ( n , ! 0 ) . forEach ( function ( t ) { s ( ) ( e , t , n [ t ] ) } ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : r ( n ) . forEach ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) } return e } n . r ( t ) ; var o = n ( "./node_modules/@babel/runtime/helpers/defineProperty.js" ) , s = n . n ( o ) , a = n ( "./node_modules/backbone/backbone.js" ) , l = n . n ( a ) , c = n ( "./node_modules/underscore/underscore.js" ) , u = ( n . n ( c ) , n ( "./src/utils/mixins.js" ) ) , d = l . a . $ ; t [ "default" ] = l . a . View . extend ( { initialize : function ( e ) { this . opt = e || { } , Object ( c . bindAll ) ( this , "startSort" , "onMove" , "endMove" , "rollback" , "updateOffset" , "moveDragHelper" ) ; var t = e || { } ; this . elT = 0 , this . elL = 0 , this . borderOffset = t . borderOffset || 10 ; var n = t . container ; this . el = "string" == typeof n ? document . querySelector ( n ) : n , this . $el = d ( this . el ) , this . containerSel = t . containerSel || "div" , this . itemSel = t . itemSel || "div" , this . draggable = t . draggable || ! 0 , this . nested = t . nested || 0 , this . pfx = t . pfx || "" , this . ppfx = t . ppfx || "" , this . freezeClass = t . freezeClass || this . pfx + "freezed" , this . onStart = t . onStart || "" , this . onEndMove = t . onEndMove || "" , this . direction = t . direction || "v" , this . onMoveClb = t . onMove || "" , this . relative = t . relative || 0 , this . ignoreViewChildren = t . ignoreViewChildren || 0 , this . ignoreModels = t . ignoreModels || 0 , this . plh = t . placer || "" , this . wmargin = t . wmargin || 0 , this . offTop = t . offsetTop || 0 , this . offLeft = t . offsetLeft || 0 , this . document = t . document || document , this . $document = d ( this . document ) , this . dropContent = null , this . em = t . em || "" , this . dragHelper = null , this . canvasRelative = t . canvasRelative || 0 , this . selectOnEnd = ! t . avoidSelectOnEnd , this . scale = t . scale , this . activeTextModel = null , this . em && this . em . on && ( this . em . on ( "change:canvasOffset" , this . updateOffset ) , this . updateOffset ( ) ) } , getScale : function ( ) { return Object ( c . result ) ( this , scale ) || 1 } , getContainerEl : function ( e ) { if ( e && ( this . el = e ) , ! this . el ) { var t = this . opt . container ; this . el = "string" == typeof t ? document . querySelector ( t ) : t , this . $el = d ( this . el ) } return this . el } , getDocuments : function ( e ) { var t = this . em , n = e ? e . ownerDocument : t && t . get ( "Canvas" ) . getBody ( ) . ownerDocument , r = [ document ] ; return n && r . push ( n ) , r } , updateOffset : function ( ) { var e = this . em . get ( "canvasOffset" ) || { } ; this . offTop = e . top , this . offLeft = e . left
2018-01-30 19:58:55 +01:00
//# sourceMappingURL=grapesjs.min.js.map