2019-03-21 08:48:00 -04:00
this . wp = this . wp || { } , this . wp . blockEditor = function ( e ) { var t = { } ; function n ( o ) { if ( t [ o ] ) return t [ o ] . exports ; var r = t [ o ] = { i : o , l : ! 1 , exports : { } } ; return e [ o ] . call ( r . exports , r , r . exports , n ) , r . l = ! 0 , r . exports } return n . m = e , n . c = t , n . d = function ( e , t , o ) { n . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : o } ) } , n . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , n . t = function ( e , t ) { if ( 1 & t && ( e = n ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var o = Object . create ( null ) ; if ( n . r ( o ) , Object . defineProperty ( o , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var r in e ) n . d ( o , r , function ( t ) { return e [ t ] } . bind ( null , r ) ) ; return o } , n . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return n . d ( t , "a" , t ) , t } , n . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , n . p = "" , n ( n . s = 357 ) } ( { 0 : function ( e , t ) { ! function ( ) { e . exports = this . wp . element } ( ) } , 1 : function ( e , t ) { ! function ( ) { e . exports = this . wp . i18n } ( ) } , 10 : function ( e , t , n ) { "use strict" ; function o ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } n . d ( t , "a" , function ( ) { return o } ) } , 11 : function ( e , t , n ) { "use strict" ; n . d ( t , "a" , function ( ) { return i } ) ; var o = n ( 32 ) , r = n ( 3 ) ; function i ( e , t ) { return ! t || "object" !== Object ( o . a ) ( t ) && "function" != typeof t ? Object ( r . a ) ( e ) : t } } , 111 : function ( e , t , n ) { "use strict" ; var o , r = this && this . _ _extends || ( o = Object . setPrototypeOf || { _ _proto _ _ : [ ] } instanceof Array && function ( e , t ) { e . _ _proto _ _ = t } || function ( e , t ) { for ( var n in t ) t . hasOwnProperty ( n ) && ( e [ n ] = t [ n ] ) } , function ( e , t ) { function n ( ) { this . constructor = e } o ( e , t ) , e . prototype = null === t ? Object . create ( t ) : ( n . prototype = t . prototype , new n ) } ) , i = this && this . _ _assign || Object . assign || function ( e ) { for ( var t , n = 1 , o = arguments . length ; n < o ; n ++ ) for ( var r in t = arguments [ n ] ) Object . prototype . hasOwnProperty . call ( t , r ) && ( e [ r ] = t [ r ] ) ; return e } , c = this && this . _ _rest || function ( e , t ) { var n = { } ; for ( var o in e ) Object . prototype . hasOwnProperty . call ( e , o ) && t . indexOf ( o ) < 0 && ( n [ o ] = e [ o ] ) ; if ( null != e && "function" == typeof Object . getOwnPropertySymbols ) { var r = 0 ; for ( o = Object . getOwnPropertySymbols ( e ) ; r < o . length ; r ++ ) t . indexOf ( o [ r ] ) < 0 && ( n [ o [ r ] ] = e [ o [ r ] ] ) } return n } ; t . _ _esModule = ! 0 ; var l = n ( 27 ) , a = n ( 31 ) , s = n ( 112 ) , u = n ( 113 ) , d = function ( e ) { function t ( ) { var t = null !== e && e . apply ( this , arguments ) || this ; return t . state = { lineHeight : null } , t . dispatchEvent = function ( e ) { var n = document . createEvent ( "Event" ) ; n . initEvent ( e , ! 0 , ! 1 ) , t . textarea . dispatchEvent ( n ) } , t . updateLineHeight = function ( ) { t . setState ( { lineHeight : u ( t . textarea ) } ) } , t . onChange = function ( e ) { var n = t . props . onChange ; t . currentValue = e . currentTarget . value , n && n ( e ) } , t . saveDOMNodeRef = function ( e ) { var n = t . props . innerRef ; n && n ( e ) , t . textarea = e } , t . getLocals = function ( ) { var e = t , n = e . props , o = ( n . onResize , n . maxRows ) , r = ( n . onChange , n . style ) , l = ( n . innerRef , c ( n , [ "onResize" , "maxRows" , "onChange" , "style" , "innerRef" ] ) ) , a = e . state . lineHeight , s = e . saveDOMNodeRef , u = o && a ? a * o : null ; return i ( { } , l , { saveDOMNodeRef : s , style : u ? i ( { } , r , { maxHeight : u } ) : r , onChange : t . onChange } ) } , t } return r ( t , e ) , t . prototype . componentDidMount = function ( ) { var e = this , t = this . props , n = t . onResize ; "number" == typeof t . maxRows && this . updateLineHeight ( ) , setTimeout ( function ( ) { return s ( e . textarea ) } ) , n && this . textarea . addEventListener ( "autosize:resized" , n ) } , t . prototype . componentWillUnmount = function ( ) { var e = this . props . onResize ; e && this . textarea . removeEventListener ( "autosize:resized" , e ) , this . dispatchEvent ( "autosize:destroy" ) } , t . prototype . render = function ( ) { var e = this . getLocals ( ) , t = e . children , n = e . saveDOMNodeRef , o = c ( e , [ "children" , "saveDOMNodeRef" ] ) ; return l . createElement ( "textarea" , i ( { } , o , { ref : n } ) , t ) } , t . prototype . componentDidUpdate = function ( e ) { this . props . value === this . currentValue && this . props . rows === e . rows || this . dispatchEvent ( "autosize:update" ) } , t . defaultProps = { rows : 1 } , t . propTypes = { rows : a . number , maxRows : a . number , onResize : a . func , innerRef : a . func } , t } ( l . Component ) ; t . default = d } , 112 : function ( e , t , n ) { var o , r , i ;
/ * !
autosize 4.0 . 2
license : MIT
http : //www.jacklmoore.com/autosize
* /r=[e,t],void 0===(i="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,c=function(){e.clientWidth!==n&&d()},l=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:d}),"vertical"===(a=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===a.resize&&(e.style.resize="horizontal"),t="content-box"===a.boxSizing?-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)):parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),isNaN(t)&&(t=0),d()}var a;function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var o=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,o.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var c=i("autosize:resized");try{e.dispatchEvent(c)}catch(e){}}}}function l(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return c(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=s,e.exports=t.default})?o.apply(t,r):o)||(e.exports=i)},113:function(e,t,n){var o=n(114);e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/ = 3 ) : - 1 !== t . indexOf ( "mm" ) ? ( n *= 96 , n /= 25.4 ) : - 1 !== t . indexOf ( "cm" ) ? ( n *= 96 , n /= 2.54 ) : - 1 !== t . indexOf ( "in" ) ? n *= 96 : - 1 !== t . indexOf ( "pc" ) && ( n *= 16 ) , n = Math . round ( n ) , "normal" === t ) { var i = e . nodeName , c = document . createElement ( i ) ; c . innerHTML = " " , "TEXTAREA" === i . toUpperCase ( ) && c . setAttribute ( "rows" , "1" ) ; var l = o ( e , "font-size" ) ; c . style . fontSize = l , c . style . padding = "0px" , c . style . border = "0px" ; var a = document . body ; a . appendChild ( c ) , n = c . offsetHeight , a . rem
/ * !
Copyright ( c ) 2017 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
* /
/ * !
Copyright ( c ) 2017 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
* /
! function ( ) { "use strict" ; var n = { } . hasOwnProperty ; function r ( ) { for ( var e = [ ] , t = 0 ; t < arguments . length ; t ++ ) { var o = arguments [ t ] ; if ( o ) { var i = typeof o ; if ( "string" === i || "number" === i ) e . push ( o ) ; else if ( Array . isArray ( o ) && o . length ) { var c = r . apply ( null , o ) ; c && e . push ( c ) } else if ( "object" === i ) for ( var l in o ) n . call ( o , l ) && o [ l ] && e . push ( l ) } } return e . join ( " " ) } e . exports ? ( r . default = r , e . exports = r ) : void 0 === ( o = function ( ) { return r } . apply ( t , [ ] ) ) || ( e . exports = o ) } ( ) } , 17 : function ( e , t , n ) { "use strict" ; var o = n ( 34 ) ; function r ( e ) { return function ( 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 ) || Object ( o . a ) ( e ) || function ( ) { throw new TypeError ( "Invalid attempt to spread non-iterable instance" ) } ( ) } n . d ( t , "a" , function ( ) { return r } ) } , 18 : function ( e , t ) { ! function ( ) { e . exports = this . wp . keycodes } ( ) } , 19 : function ( e , t , n ) { "use strict" ; function o ( ) { return ( o = Object . assign || function ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = arguments [ t ] ; for ( var o in n ) Object . prototype . hasOwnProperty . call ( n , o ) && ( e [ o ] = n [ o ] ) } return e } ) . apply ( this , arguments ) } n . d ( t , "a" , function ( ) { return o } ) } , 2 : function ( e , t ) { ! function ( ) { e . exports = this . lodash } ( ) } , 20 : function ( e , t ) { ! function ( ) { e . exports = this . wp . richText } ( ) } , 207 : function ( e , t , n ) {
/ * !
diff v3 . 5.0
Software License Agreement ( BSD License )
Copyright ( c ) 2009 - 2015 , Kevin Decker < kpdecker @ gmail . com >
All rights reserved .
Redistribution and use of this software in source and binary forms , with or without modification ,
are permitted provided that the following conditions are met :
* Redistributions of source code must retain the above
copyright notice , this list of conditions and the
following disclaimer .
* Redistributions in binary form must reproduce the above
copyright notice , this list of conditions and the
following disclaimer in the documentation and / or other
materials provided with the distribution .
* Neither the name of Kevin Decker nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE ,
DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER
IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
@ license
* /
Block Editor: Update packages to bring a selection of bugfixes in.
Props iseulde, kjellr, aduth, 0mirka00, mcsf, nosolosw, gziolo, jasmussen, talldanwp, notnownikki, swissspidy, jorgefilipecosta, noisysocks.
See https://github.com/WordPress/gutenberg/pull/14796.
Fixes #46801.
Built from https://develop.svn.wordpress.org/trunk@45138
git-svn-id: http://core.svn.wordpress.org/trunk@44947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-04-08 02:37:57 -04:00
var o ; o = function ( ) { return function ( e ) { var t = { } ; function n ( o ) { if ( t [ o ] ) return t [ o ] . exports ; var r = t [ o ] = { exports : { } , id : o , loaded : ! 1 } ; return e [ o ] . call ( r . exports , r , r . exports , n ) , r . loaded = ! 0 , r . exports } return n . m = e , n . c = t , n . p = "" , n ( 0 ) } ( [ function ( e , t , n ) { "use strict" ; t . _ _esModule = ! 0 , t . canonicalize = t . convertChangesToXML = t . convertChangesToDMP = t . merge = t . parsePatch = t . applyPatches = t . applyPatch = t . createPatch = t . createTwoFilesPatch = t . structuredPatch = t . diffArrays = t . diffJson = t . diffCss = t . diffSentences = t . diffTrimmedLines = t . diffLines = t . diffWordsWithSpace = t . diffWords = t . diffChars = t . Diff = void 0 ; var o , r = n ( 1 ) , i = ( o = r ) && o . _ _esModule ? o : { default : o } , c = n ( 2 ) , l = n ( 3 ) , a = n ( 5 ) , s = n ( 6 ) , u = n ( 7 ) , d = n ( 8 ) , b = n ( 9 ) , f = n ( 10 ) , p = n ( 11 ) , h = n ( 13 ) , v = n ( 14 ) , m = n ( 16 ) , g = n ( 17 ) ; t . Diff = i . default , t . diffChars = c . diffChars , t . diffWords = l . diffWords , t . diffWordsWithSpace = l . diffWordsWithSpace , t . diffLines = a . diffLines , t . diffTrimmedLines = a . diffTrimmedLines , t . diffSentences = s . diffSentences , t . diffCss = u . diffCss , t . diffJson = d . diffJson , t . diffArrays = b . diffArrays , t . structuredPatch = v . structuredPatch , t . createTwoFilesPatch = v . createTwoFilesPatch , t . createPatch = v . createPatch , t . applyPatch = f . applyPatch , t . applyPatches = f . applyPatches , t . parsePatch = p . parsePatch , t . merge = h . merge , t . convertChangesToDMP = m . convertChangesToDMP , t . convertChangesToXML = g . convertChangesToXML , t . canonicalize = d . canonicalize } , function ( e , t ) { "use strict" ; function n ( ) { } function o ( e , t , n , o , r ) { for ( var i = 0 , c = t . length , l = 0 , a = 0 ; i < c ; i ++ ) { var s = t [ i ] ; if ( s . removed ) { if ( s . value = e . join ( o . slice ( a , a + s . count ) ) , a += s . count , i && t [ i - 1 ] . added ) { var u = t [ i - 1 ] ; t [ i - 1 ] = t [ i ] , t [ i ] = u } } else { if ( ! s . added && r ) { var d = n . slice ( l , l + s . count ) ; d = d . map ( function ( e , t ) { var n = o [ a + t ] ; return n . length > e . length ? n : e } ) , s . value = e . join ( d ) } else s . value = e . join ( n . slice ( l , l + s . count ) ) ; l += s . count , s . added || ( a += s . count ) } } var b = t [ c - 1 ] ; return c > 1 && "string" == typeof b . value && ( b . added || b . removed ) && e . equals ( "" , b . value ) && ( t [ c - 2 ] . value += b . value , t . pop ( ) ) , t } t . _ _esModule = ! 0 , t . default = n , n . prototype = { diff : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : { } , r = n . callback ; "function" == typeof n && ( r = n , n = { } ) , this . options = n ; var i = this ; function c ( e ) { return r ? ( setTimeout ( function ( ) { r ( void 0 , e ) } , 0 ) , ! 0 ) : e } e = this . castInput ( e ) , t = this . castInput ( t ) , e = this . removeEmpty ( this . tokenize ( e ) ) ; var l = ( t = this . removeEmpty ( this . tokenize ( t ) ) ) . length , a = e . length , s = 1 , u = l + a , d = [ { newPos : - 1 , components : [ ] } ] , b = this . extractCommon ( d [ 0 ] , t , e , 0 ) ; if ( d [ 0 ] . newPos + 1 >= l && b + 1 >= a ) return c ( [ { value : this . join ( t ) , count : t . length } ] ) ; function f ( ) { for ( var n = - 1 * s ; n <= s ; n += 2 ) { var r = void 0 , u = d [ n - 1 ] , b = d [ n + 1 ] , f = ( b ? b . newPos : 0 ) - n ; u && ( d [ n - 1 ] = void 0 ) ; var p = u && u . newPos + 1 < l , h = b && 0 <= f && f < a ; if ( p || h ) { if ( ! p || h && u . newPos < b . newPos ? ( r = { newPos : ( v = b ) . newPos , components : v . components . slice ( 0 ) } , i . pushComponent ( r . components , void 0 , ! 0 ) ) : ( ( r = u ) . newPos ++ , i . pushComponent ( r . components , ! 0 , void 0 ) ) , f = i . extractCommon ( r , t , e , n ) , r . newPos + 1 >= l && f + 1 >= a ) return c ( o ( i , r . components , t , e , i . useLongestToken ) ) ; d [ n ] = r } else d [ n ] = void 0 } var v ; s ++ } if ( r ) ! function e ( ) { setTimeout ( function ( ) { if ( s > u ) return r ( ) ; f ( ) || e ( ) } , 0 ) } ( ) ; else for ( ; s <= u ; ) { var p = f ( ) ; if ( p ) return p } } , pushComponent : function ( e , t , n ) { var o = e [ e . length - 1 ] ; o && o . added === t && o . removed === n ? e [ e . length - 1 ] = { count : o . count + 1 , added : t , removed : n } : e . push ( { count : 1 , added : t , removed : n } ) } , extractCommon : function ( e , t , n , o ) { for ( var r = t . length , i = n . length , c = e . newPos , l = c - o , a = 0 ; c + 1 < r && l + 1 < i && this . equals ( t [ c + 1 ] , n [ l + 1 ] ) ; ) c ++ , l ++ , a ++ ; return a && e . components . push ( { count : a } ) , e . newPos = c , l } , equals : function ( e , t ) { return this . options . comparator ? this . options . comparator ( e , t ) : e === t || this . options . ignoreCase && e . toLowerCase ( ) === t . toLowerCase ( ) } , removeEmpty : function ( e ) { for ( var t = [ ] , n = 0 ; n < e . length ; n ++ ) e [ n ] && t . push ( e [ n ] ) ; return t } , castInput : function ( e ) { return e } , tokenize : function ( e ) { return e . split ( "" ) } , join : function ( e ) { return e . join ( "" ) } } } , function ( e , t , n ) { "use strict" ; t . _ _esModule = ! 0 , t . characterDiff = void 0 , t . diffChars = function ( e , t , n ) { return c . diff ( e , t , n ) } ; var o , r = n ( 1 ) , i = ( o = r ) && o . _ _esModule ? o : { default : o } ; var c = t . characterDiff = new i . default } , function ( e , t , n ) { "use strict" ; t . _ _esModule = ! 0 , t . wordDiff = void 0 , t . diffWords = function ( e , t , n ) { return n = ( 0 , c . generateOptions ) ( n , { ignoreWhitespace : ! 0 } ) , s . diff ( e , t , n ) } , t . diffWo