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

2 lines
8.4 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},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,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(t,o,function(r){return e[r]}.bind(null,o));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s="./node_modules/@wordpress/autop/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,"a",(function(){return t}))},"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");var o=n("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),p=n("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,o=!1,p=void 0;try{for(var a,l=e[Symbol.iterator]();!(t=(a=l.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){o=!0,p=e}finally{try{t||null==l.return||l.return()}finally{if(o)throw p}}return n}}(e,r)||Object(o.a)(e,r)||Object(p.a)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,r,n){"use strict";n.d(r,"a",(function(){return o}));var t=n("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},"./node_modules/@wordpress/autop/build-module/index.js":function(e,r,n){"use strict";n.r(r),n.d(r,"autop",(function(){return a})),n.d(r,"removep",(function(){return l}));var t=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function p(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(o);){var p=r.index;n.push(t.slice(0,p)),n.push(r[0]),t=t.slice(p+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,p=Object.keys(r),a=1;a<n.length;a+=2)for(var l=0;l<p.length;l++){var i=p[l];if(-1!==n[a].indexOf(i)){n[a]=n[a].replace(new RegExp(i,"g"),r[i]),t=!0;break}}return t&&(e=n.join("")),e}function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var o=e.split("</pre>"),a=o.pop();e="";for(var l=0;l<o.length;l++){var i=o[l],c=i.indexOf("<pre");if(-1!==c){var s="<pre wp-pre-tag-"+l+"></pre>";n.push([s,i.substr(c)+"</pre>"]),e+=i.substr(0,c)+s}else e+=i}e+=a}var u="(?:table|thead|tfoot|caption|col|col