2 lines
9.2 KiB
JavaScript
2 lines
9.2 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.url=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},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,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s="./node_modules/@wordpress/url/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,r,t){"use strict";function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":function(e,r,t){"use strict";function n(e){if(Array.isArray(e))return e}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,r,t){"use strict";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":function(e,r,t){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,r,t){"use strict";t.d(r,"a",(function(){return i}));var n=t("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");var o=t("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),u=t("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function i(e,r){return Object(n.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw u}}return t}}(e,r)||Object(o.a)(e,r)||Object(u.a)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,r,t){"use strict";t.d(r,"a",(function(){return o}));var n=t("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,r){if(e){if("string"==typeof e)return Object(n.a)(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Object(n.a)(e,r):void 0}}},"./node_modules/@wordpress/url/build-module/index.js":function(e,r,t){"use strict";function n(e){try{return new URL(e),!0}catch(e){return!1}}t.r(r),t.d(r,"isURL",(function(){return n})),t.d(r,"isEmail",(function(){return u})),t.d(r,"getProtocol",(function(){return i})),t.d(r,"isValidProtocol",(function(){return a})),t.d(r,"getAuthority",(function(){return c})),t.d(r,"isValidAuthority",(function(){return s})),t.d(r,"getPath",(function(){return l})),t.d(r,"isValidPath",(function(){return f})),t.d(r,"getQueryString",(function(){return d})),t.d(r,"buildQueryString",(function(){return m})),t.d(r,"isValidQueryString",(function(){return h})),t.d(r,"getPathAndQueryString",(function(){return v})),t.d(r,"getFragment",(function(){return g})),t.d(r,"isValidFragment",(function(){return j})),t.d(r,"addQueryArgs",(function(){return P})),t.d(r,"getQueryArg",(function(){return _})),t.d(r,"getQueryArgs",(function(){return S})),t.d(r,"hasQueryArg",(function(){return x})),t.d(r,"removeQueryArgs",(function(){return I})),t.d(r,"prependHTTP",(function(){return T})),t.d(r,"safeDecodeURI",(function(){return U})),t.d(r,"safeDecodeURIComponent",(function(){return $})),t.d(r,"filterURLForDisplay",(function(){return Q})),t.d(r,"cleanForSlug",(function(){return D}));var o=/^(mailto:)?[a-z0-9._%+-]+@[a-z0-9][a-z0-9.-]*\.[a-z]{2,63}$/i;function u(e){return o.test(e)}function i(e){var r=/^([^\s:]+:)/.exec(e);if(r)return r[1]}function a(e){return!!e&&/^[a-z\-.\+]+[0-9]*:$/i.test(e)}function c(e){var r=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(r)return r[1]}function s(e){return!!e&&/^[^\s#?]+$/.test(e)}function l(e){var r=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(r)return r[1]}function f(e){return!!e&&/^[^\s#?]+$/.test(e)}function d(e){var r;try{r=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(r)return r}var b=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");function p(e,r){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return y(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return y(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,i=!0,a=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,u=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw u}}}}function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function m(e){for(var r,t="",n=Object.entries(e);r=n.shift();){var o=r,u=Object(b.a)(o,2),i=u[0],a=u[1];if(Array.isArray(a)||a&&a.constructor===Object){var c,s=p(Object.entries(a).reverse());try{for(s.s();!(c=s.n()).done;){var l=Object(b.a)(c.value,2),f=l[0],d=l[1];n.unshift(["".concat(i,"[").concat(f,"]"),d])}}catch(e){s.e(e)}finally{s.f()}}else void 0!==a&&(null===a&&(a=""),t+="&"+[i,a].map(encodeURIComponent).join("="))}return t.substr(1)}function h(e){return!!e&&/^[^\s#?\/]+$/.test(e)}function v(e){var r=l(e),t=d(e),n="/";return r&&(n+=r),t&&(n+="?".concat(t)),n}function g(e){var r=/^\S+?(#[^\s\?]*)/.exec(e);if(r)return r[1]}function j(e){return!!e&&/^#[^\s#?\/]*$/.test(e)}var O=t("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function w(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function A(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?w(Object(t),!0).forEach((function(r){Object(O.a)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function S(e){return(d(e)||"").replace(/\+/g,"%20").split("&").reduce((function(e,r){var t=r.split("=").filter(Boolean).map(decodeURIComponent),n=Object(b.a)(t,2),o=n[0],u=n[1],i=void 0===u?"":u;o&&function(e,r,t){for(var n=r.length,o=n-1,u=0;u<n;u++){var i=r[u];!i&&Array.isArray(e)&&(i=e.length.toString());var a=!isNaN(Number(r[u+1]));e[i]=u===o?t:e[i]||(a?[]:{}),Array.isArray(e[i])&&!a&&(e[i]=A({},e[i])),e=e[i]}}(e,o.replace(/\]/g,"").split("["),i);return e}),{})}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!r||!Object.keys(r).length)return e;var t=e,n=e.indexOf("?");return-1!==n&&(r=Object.assign(S(e),r),t=t.substr(0,n)),t+"?"+m(r)}function _(e,r){return S(e)[r]}function x(e,r){return void 0!==_(e,r)}function I(e){var r=e.indexOf("?");if(-1===r)return e;for(var t=S(e),n=e.substr(0,r),o=arguments.length,u=new Array(o>1?o-1:0),i=1;i<o;i++)u[i-1]=arguments[i];u.forEach((function(e){return delete t[e]}));var a=m(t);return a?n+"?"+a:n}var R=/^(?:[a-z]+:|#|\?|\.|\/)/i;function T(e){return e?(e=e.trim(),R.test(e)||u(e)?e:"http://"+e):e}function U(e){try{return decodeURI(e)}catch(r){return e}}function $(e){try{return decodeURIComponent(e)}catch(r){return e}}function Q(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=e.replace(/^(?:https?:)\/\/(?:www\.)?/,"");t.match(/^[^\/]+\/$/)&&(t=t.replace("/",""));var n=/([\w|:])*\.(?:jpg|jpeg|gif|png|svg)/;if(!r||t.length<=r||!t.match(n))return t;var o=(t=t.split("?")[0]).split("/"),u=o[o.length-1];if(u.length<=r)return"…"+t.slice(-r);var i=u.lastIndexOf("."),a=[u.slice(0,i),u.slice(i+1)],c=a[0],s=a[1],l=c.slice(-3)+"."+s;return u.slice(0,r-l.length-1)+"…"+l}var C=t("lodash");function D(e){return e?Object(C.trim)(Object(C.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}},lodash:function(e,r){e.exports=window.lodash}}); |