WordPress/wp-includes/js/dist/element.min.js

2 lines
12 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
2020-01-08 12:57:23 +01:00
this.wp=this.wp||{},this.wp.element=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=378)}({18:function(e,t,n){"use strict";var r=n(32);function o(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(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return o}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.React}()},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(40);function o(e,t){if(null==e)return{};var n,o,u=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}},22:function(e,t,n){"use strict";var r=n(33);var o=n(34);function u(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,u=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,u=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw u}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return u}))},31:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},32:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},33:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},34:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},378:function(e,t,n){"use strict";n.r(t);var r,o,u,i,c=n(22),a=n(31),l=n(18),f=n(20),s=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}var p=function(e){var t="object"===Object(a.a)(e),n=t&&Object.values(e);return t&&n.length&&n.every((function(e){return Object(f.isValidElement)(e)}))};function b(e){var t=function(){var e=s.exec(r);if(null===e)return["no-more-tokens"];var t=e.index,n=Object(c.a)(e,4),o=n[0],u=n[1],i=n[2],a=n[3],l=o.length;if(a)return["self-closed",i,t,l];if(u)return["closer",i,t,l];return["opener",i,t,l]}(),n=Object(c.a)(t,4),a=n[0],p=n[1],b=n[2],y=n[3],v=i.length,O=b>o?o:null;if(!e[p])return m(),!1;switch(a){case"no-more-tokens":if(0!==v){var g=i.pop(),j=g.leadingTextStart,w=g.tokenStart;u.push(r.substr(j,w))}return m(),!1;case"self-closed":return 0===v?(null!==O&&u.push(r.substr(O,b-O)),u.push(e[p]),o=b+y,!0):(h(new d(e[p],b,y)),o=b+y,!0);case"opener":return i.push(new d(e[p],b,y,b+y,O)),o=b+y,!0;case"closer":if(1===v)return function(e){var t=i.pop(),n=t.element,o=t.leadingTextStart,c=t.prevOffset,a=t.tokenStart,s=t.children,d=e?r.substr(