2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
|
/*! This file is auto-generated */
|
||
|
!function(){var t={9756:function(t){t.exports=function(t,e){var n,r,s=0;function o(){var o,i,c=n,u=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(i=0;i<u;i++)if(c.args[i]!==arguments[i]){c=c.next;continue t}return c!==n&&(c===r&&(r=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=n,c.prev=null,n.prev=c,n=c),c.val}c=c.next}for(o=new Array(u),i=0;i<u;i++)o[i]=arguments[i];return c={args:o,val:t.apply(null,o)},n?(n.prev=c,c.next=n):r=c,s===e.maxSize?(r=r.prev).next=null:s++,n=c,c.val}return e=e||{},o.clear=function(){n=null,r=null,s=0},o}}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};!function(){"use strict";var t=n(9756);function e(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const s=n.n(t)()((t=>{const e={},n=[],r=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;let s;for(t=t.replace(/[\u00a0\u200b]/g," ");s=r.exec(t);)s[1]?e[s[1].toLowerCase()]=s[2]:s[3]?e[s[3].toLowerCase()]=s[4]:s[5]?e[s[5].toLowerCase()]=s[6]:s[7]?n.push(s[7]):s[8]?n.push(s[8]):s[9]&&n.push(s[9]);return{named:e,numeric:n}}));function o(t){let e;return e=t[4]?"self-closing":t[6]?"closed":"single",new i({tag:t[2],attrs:t[3],type:e,content:t[5]})}const i=Object.assign((function(t){const{tag:e,attrs:n,type:r,content:o}=t||{};if(Object.assign(this,{tag:e,type:r,content:o}),this.attrs={named:{},numeric:[]},!n)return;const i=["named","numeric"];"string"==typeof n?this.attrs=s(n):n.length===i.length&&i.every(((t,e)=>t===n[e]))?this.attrs=n:Object.entries(n).forEach((t=>{let[e,n]=t;this.set(e,n)}))}),{next:function t(n,r){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=e(n);i.lastIndex=s;const c=i.exec(r);if(!c)return;if("["===c[1]&&"]"===c[7])return t(n,r,i.lastIndex);const u={index:c.index,content:c[0],shortcode:o(c)};return c[1]&&(u.content=u.content.slice(1),u.index++),c[7]&&(u.content=u.content.slice(0,-1)),u},replace:function(t,n,r){return n.replace(e(t),(function(t,e,n,s,i,c,u,a){if("["===e&&"]"===a)return t;const l=r(o(arguments));return l||""===l?e+l+a:t}))},string:function(t){return new i(t).string()},regexp:e,attrs:s,fromMatch:o});Object.assign(i.prototype,{get(t){return this.attrs["number"==typeof t?"numeric":"named"][t]},set(t,e){return this.attrs["number"==typeof t?"numeric":"named"][t]=e,this},string(){let t="["+this.tag;return this.attrs.numeric.forEach((e=>{/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object.entries(this.attrs.named).forEach((e=>{let[n,r]=e;t+=" "+n+'="'+r+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),r.default=i}(),(window.wp=window.wp||{}).shortcode=r.default}();
|