芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/rigato.ycreate.site/wp-content/themes/swell/build/gutenberg/index.js
!function(){var e={742:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),l=t[0],n=t[1];return 3*(l+n)/4-n},t.toByteArray=function(e){var t,l,r=c(e),o=r[0],s=r[1],i=new a(function(e,t,l){return 3*(t+l)/4-l}(0,o,s)),u=0,m=s>0?o-4:o;for(l=0;l
>16&255,i[u++]=t>>8&255,i[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(l)]<<2|n[e.charCodeAt(l+1)]>>4,i[u++]=255&t),1===s&&(t=n[e.charCodeAt(l)]<<10|n[e.charCodeAt(l+1)]<<4|n[e.charCodeAt(l+2)]>>2,i[u++]=t>>8&255,i[u++]=255&t),i},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,r=[],o=16383,s=0,c=n-a;s
c?c:s+o));return 1===a?(t=e[n-1],r.push(l[t>>2]+l[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],r.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),r.join("")};for(var l=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=r.length;o
0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.indexOf("=");return-1===l&&(l=t),[l,l===t?0:4-l%4]}function i(e,t,n){for(var a,r,o=[],s=t;s
>18&63]+l[r>>12&63]+l[r>>6&63]+l[63&r]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},764:function(e,t,l){"use strict";const n=l(742),a=l(645),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=c,t.h2=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,l){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return m(e)}return i(e,t,l)}function i(e,t,l){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const l=0|p(e,t);let n=s(l);const a=n.write(e,t);return a!==l&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return d(e,t,l);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return d(e,t,l);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,l);const a=function(e){if(c.isBuffer(e)){const t=0|f(e.length),l=s(t);return 0===l.length||e.copy(l,0,0,t),l}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,l);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function m(e){return u(e),s(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),l=s(t);for(let n=0;n
=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const l=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===l)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*l;case"hex":return l>>>1;case"base64":return q(e).length;default:if(a)return n?-1:D(e).length;t=(""+t).toLowerCase(),a=!0}}function b(e,t,l){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===l||l>this.length)&&(l=this.length),l<=0)return"";if((l>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,l);case"utf8":case"utf-8":return N(this,t,l);case"ascii":return k(this,t,l);case"latin1":case"binary":return S(this,t,l);case"base64":return C(this,t,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,l);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function w(e,t,l){const n=e[t];e[t]=e[l],e[l]=n}function g(e,t,l,n,a){if(0===e.length)return-1;if("string"==typeof l?(n=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),K(l=+l)&&(l=a?0:e.length-1),l<0&&(l=e.length+l),l>=e.length){if(a)return-1;l=e.length-1}else if(l<0){if(!a)return-1;l=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,l,n,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,l):Uint8Array.prototype.lastIndexOf.call(e,t,l):v(e,[t],l,n,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,l,n,a){let r,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,l/=2}function i(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let n=-1;for(r=l;r
s&&(l=s-c),r=l;r>=0;r--){let l=!0;for(let n=0;n
a&&(n=a):n=a;const r=t.length;let o;for(n>r/2&&(n=r/2),o=0;o
>8,a=l%256,r.push(a),r.push(n);return r}(t,e.length-l),e,l,n)}function C(e,t,l){return 0===t&&l===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,l))}function N(e,t,l){l=Math.min(e.length,l);const n=[];let a=t;for(;a
239?4:t>223?3:t>191?2:1;if(a+o<=l){let l,n,s,c;switch(o){case 1:t<128&&(r=t);break;case 2:l=e[a+1],128==(192&l)&&(c=(31&t)<<6|63&l,c>127&&(r=c));break;case 3:l=e[a+1],n=e[a+2],128==(192&l)&&128==(192&n)&&(c=(15&t)<<12|(63&l)<<6|63&n,c>2047&&(c<55296||c>57343)&&(r=c));break;case 4:l=e[a+1],n=e[a+2],s=e[a+3],128==(192&l)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&l)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(r=c))}}null===r?(r=65533,o=1):r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r),a+=o}return function(e){const t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);let l="",n=0;for(;n
n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,a)}a+=t.length}return n},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t
l&&(e+=" ... "),"
"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(e,t,l,n,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===l&&(l=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||l>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=l)return 0;if(n>=a)return-1;if(t>=l)return 1;if(this===e)return 0;let r=(a>>>=0)-(n>>>=0),o=(l>>>=0)-(t>>>=0);const s=Math.min(r,o),i=this.slice(n,a),u=e.slice(t,l);for(let e=0;e
>>=0,isFinite(l)?(l>>>=0,void 0===n&&(n="utf8")):(n=l,l=void 0)}const a=this.length-t;if((void 0===l||l>a)&&(l=a),e.length>0&&(l<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let r=!1;for(;;)switch(n){case"hex":return _(this,e,t,l);case"utf8":case"utf-8":return y(this,e,t,l);case"ascii":case"latin1":case"binary":return E(this,e,t,l);case"base64":return x(this,e,t,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,l);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const B=4096;function k(e,t,l){let n="";l=Math.min(e.length,l);for(let a=t;a
n)&&(l=n);let a="";for(let n=t;n
l)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,l,n,a,r){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t
e.length)throw new RangeError("Index out of range")}function M(e,t,l,n,a){U(t,n,a,e,l,7);let r=Number(t&BigInt(4294967295));e[l++]=r,r>>=8,e[l++]=r,r>>=8,e[l++]=r,r>>=8,e[l++]=r;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[l++]=o,o>>=8,e[l++]=o,o>>=8,e[l++]=o,o>>=8,e[l++]=o,l}function L(e,t,l,n,a){U(t,n,a,e,l,7);let r=Number(t&BigInt(4294967295));e[l+7]=r,r>>=8,e[l+6]=r,r>>=8,e[l+5]=r,r>>=8,e[l+4]=r;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[l+3]=o,o>>=8,e[l+2]=o,o>>=8,e[l+1]=o,o>>=8,e[l]=o,l+8}function F(e,t,l,n,a,r){if(l+n>e.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("Index out of range")}function O(e,t,l,n,r){return t=+t,l>>>=0,r||F(e,0,l,4),a.write(e,t,l,n,23,4),l+4}function $(e,t,l,n,r){return t=+t,l>>>=0,r||F(e,0,l,8),a.write(e,t,l,n,52,8),l+8}c.prototype.slice=function(e,t){const l=this.length;(e=~~e)<0?(e+=l)<0&&(e=0):e>l&&(e=l),(t=void 0===t?l:~~t)<0?(t+=l)<0&&(t=0):t>l&&(t=l),t
>>=0,t>>>=0,l||T(e,t,this.length);let n=this[e],a=1,r=0;for(;++r
>>=0,t>>>=0,l||T(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Z((function(e){j(e>>>=0,"offset");const t=this[e],l=this[e+7];void 0!==t&&void 0!==l||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+l*2**24;return BigInt(n)+(BigInt(a)<
>>=0,"offset");const t=this[e],l=this[e+7];void 0!==t&&void 0!==l||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+l;return(BigInt(n)<
>>=0,t>>>=0,l||T(e,t,this.length);let n=this[e],a=1,r=0;for(;++r
=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,l){e>>>=0,t>>>=0,l||T(e,t,this.length);let n=t,a=1,r=this[e+--n];for(;n>0&&(a*=256);)r+=this[e+--n]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},c.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const l=this[e]|this[e+1]<<8;return 32768&l?4294901760|l:l},c.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const l=this[e+1]|this[e]<<8;return 32768&l?4294901760|l:l},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Z((function(e){j(e>>>=0,"offset");const t=this[e],l=this[e+7];void 0!==t&&void 0!==l||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(l<<24);return(BigInt(n)<
>>=0,"offset");const t=this[e],l=this[e+7];void 0!==t&&void 0!==l||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<
>>=0,t||T(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,l,n){e=+e,t>>>=0,l>>>=0,n||z(this,e,t,l,Math.pow(2,8*l)-1,0);let a=1,r=0;for(this[t]=255&e;++r
>>=0,l>>>=0,n||z(this,e,t,l,Math.pow(2,8*l)-1,0);let a=l-1,r=1;for(this[t+a]=255&e;--a>=0&&(r*=256);)this[t+a]=e/r&255;return t+l},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Z((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Z((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,l,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*l-1);z(this,e,t,l,n-1,-n)}let a=0,r=1,o=0;for(this[t]=255&e;++a
>0)-o&255;return t+l},c.prototype.writeIntBE=function(e,t,l,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*l-1);z(this,e,t,l,n-1,-n)}let a=l-1,r=1,o=0;for(this[t+a]=255&e;--a>=0&&(r*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/r>>0)-o&255;return t+l},c.prototype.writeInt8=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,l){return e=+e,t>>>=0,l||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Z((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Z((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,l){return O(this,e,t,!0,l)},c.prototype.writeFloatBE=function(e,t,l){return O(this,e,t,!1,l)},c.prototype.writeDoubleLE=function(e,t,l){return $(this,e,t,!0,l)},c.prototype.writeDoubleBE=function(e,t,l){return $(this,e,t,!1,l)},c.prototype.copy=function(e,t,l,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(l||(l=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n
=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t
>>=0,l=void 0===l?this.length:l>>>0,e||(e=0),"number"==typeof e)for(a=t;a
=n+4;l-=3)t=`_${e.slice(l-3,l)}${t}`;return`${e.slice(0,l)}${t}`}function U(e,t,l,n,a,r){if(e>l||e
3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(r+1)}${n}`:`>= -(2${n} ** ${8*(r+1)-1}${n}) and < 2 ** ${8*(r+1)-1}${n}`:`>= ${t}${n} and <= ${l}${n}`,new P.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,l){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+l]||W(t,e.length-(l+1))}(n,a,r)}function j(e,t){if("number"!=typeof e)throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,l){if(Math.floor(e)!==e)throw j(e,l),new P.ERR_OUT_OF_RANGE(l||"offset","an integer",e);if(t<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE(l||"offset",`>= ${l?1:0} and <= ${t}`,e)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(e,t,l){let n=`The value of "${e}" is out of range.`,a=l;return Number.isInteger(l)&&Math.abs(l)>2**32?a=V(String(l)):"bigint"==typeof l&&(a=String(l),(l>BigInt(2)**BigInt(32)||l<-(BigInt(2)**BigInt(32)))&&(a=V(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function D(e,t){let l;t=t||1/0;const n=e.length;let a=null;const r=[];for(let o=0;o
55295&&l<57344){if(!a){if(l>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&r.push(239,191,189);continue}a=l;continue}if(l<56320){(t-=3)>-1&&r.push(239,191,189),a=l;continue}l=65536+(a-55296<<10|l-56320)}else a&&(t-=3)>-1&&r.push(239,191,189);if(a=null,l<128){if((t-=1)<0)break;r.push(l)}else if(l<2048){if((t-=2)<0)break;r.push(l>>6|192,63&l|128)}else if(l<65536){if((t-=3)<0)break;r.push(l>>12|224,l>>6&63|128,63&l|128)}else{if(!(l<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(l>>18|240,l>>12&63|128,l>>6&63|128,63&l|128)}}return r}function q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,l,n){let a;for(a=0;a
=t.length||a>=e.length);++a)t[a+l]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let l=0;l<16;++l){const n=16*l;for(let a=0;a<16;++a)t[n+a]=e[l]+e[a]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},991:function(e,t){var l;!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var l=t.length,n=0;n
>1,u=-7,m=l?a-1:0,h=l?-1:1,d=e[t+m];for(m+=h,r=d&(1<<-u)-1,d>>=-u,u+=s;u>0;r=256*r+e[t+m],m+=h,u-=8);for(o=r&(1<<-u)-1,r>>=-u,u+=n;u>0;o=256*o+e[t+m],m+=h,u-=8);if(0===r)r=1-i;else{if(r===c)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),r-=i}return(d?-1:1)*o*Math.pow(2,r-n)},t.write=function(e,t,l,n,a,r){var o,s,c,i=8*r-a-1,u=(1<
>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:r-1,f=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+m>=1?h/c:h*Math.pow(2,1-m))*c>=2&&(o++,c/=2),o+m>=u?(s=0,o=u):o+m>=1?(s=(t*c-1)*Math.pow(2,a),o+=m):(s=t*Math.pow(2,m-1)*Math.pow(2,a),o=0));a>=8;e[l+d]=255&s,d+=f,s/=256,a-=8);for(o=o<
0;e[l+d]=255&o,d+=f,o/=256,i-=8);e[l+d-f]|=128*p}}},t={};function l(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,l),r.exports}l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},l.d=function(e,t){for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.apiFetch,t=l.n(e),n=window.wp.data;const a="swell-block-settings",r={blockSettings:{}},o={setSettings(e){return{type:"SET_SETTINGS",val:e}},setSetting(e,t){return{type:"SET_SETTING",key:e,val:t}},fetchFromAPI(e){return{type:"FETCH_FROM_API",path:e}}};(0,n.registerStore)(a,{reducer(e=r,t){switch(t.type){case"SET_SETTING":return{...e,blockSettings:{...e.blockSettings,[t.key]:t.val}};case"SET_SETTINGS":return{...e,blockSettings:t.val}}return e},actions:o,selectors:{getSettings(e){const{blockSettings:t}=e;return t||[]}},controls:{FETCH_FROM_API(e){return t()?t()({path:e.path}):null}},resolvers:{*getSettings(){const e=yield o.fetchFromAPI("/wp/v2/swell-block-settings")||[];return o.setSettings(e)}}});var s=window.wp.richText,c=window.wp.i18n,i=window.wp.blockEditor;const u=(0,c._x)("書式クリア","format","swell"),m={name:"loos/clear",title:u,tagName:"span",className:"swl-clear-fomat",edit:({isActive:e,value:t,onChange:l})=>React.createElement(i.RichTextToolbarButton,{name:"swell-controls",icon:React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("rect",{x:"40.7",y:"45.2",width:"3",height:"2.5"}),React.createElement("path",{d:"M28.4,43.2l19.4-19.4c0.4-0.4,0.4-1,0-1.4L34,8.6c-0.4-0.4-1-0.4-1.4,0L13.2,28l1,1L9.2,34c-2,2-2,5.1,0,7.1l5.9,5.9 c0.3,0.3,0.6,0.5,0.9,0.7h22v-2.5H24.4l3-3L28.4,43.2z M33.3,11.4L45,23.1L28.4,39.7L16.7,28L33.3,11.4z M20.8,45.2h-3.9l-5.7-5.7 c-1.1-1.1-1.1-2.8,0-3.9l4.8-4.8l1.3,1.3l8.4,8.4L20.8,45.2z"})),title:u,isActive:e,onClick:()=>{const e=t.activeFormats;if(0===e.length)return;let n=t;e.forEach((e=>{n=(0,s.removeFormat)(n,e.type)})),l(n)}})},h="loos/code-dir",d=(0,c._x)("コード","format","swell")+"(DIR)",f={name:h,title:d,tagName:"code",className:"dir_name",edit:({isActive:e,value:t,onChange:l})=>React.createElement(i.RichTextToolbarButton,{name:"swell-controls",title:d,icon:React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M25.8,13.4l4.5,4.5h14.6c0.6,0,1.1,0.5,1.1,1.1v22.5c0,0.6-0.5,1.1-1.1,1.1H11.1c-0.6,0-1.1-0.5-1.1-1.1v-27 c0-0.6,0.5-1.1,1.1-1.1H25.8z"})),isActive:e,onClick:()=>l((0,s.toggleFormat)(t,{type:h}))})},p="loos/code-file",b=(0,c._x)("コード","format","swell")+"(FILE)",w={name:p,title:b,tagName:"code",className:"file_name",edit:({isActive:e,value:t,onChange:l})=>React.createElement(i.RichTextToolbarButton,{name:"swell-controls",title:b,icon:React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M42.5,17.9c-0.8-1.1-1.9-2.3-3.1-3.6c-1.2-1.2-2.5-2.3-3.6-3.1c-1.8-1.4-2.7-1.5-3.2-1.5H14.9c-1.6,0-2.9,1.3-2.9,2.9v30.9 c0,1.6,1.3,2.9,2.9,2.9h26.3c1.6,0,2.9-1.3,2.9-2.9V21.1C44,20.6,43.8,19.7,42.5,17.9z M37.8,16c1.1,1.1,2,2.1,2.6,2.9h-5.5v-5.5 C35.7,14,36.7,14.9,37.8,16z M41.7,43.4c0,0.3-0.3,0.6-0.6,0.6H14.9c-0.3,0-0.6-0.3-0.6-0.6V12.6c0-0.3,0.3-0.6,0.6-0.6 c0,0,17.7,0,17.7,0v8c0,0.6,0.5,1.1,1.1,1.1h8V43.4z"})),isActive:e,onClick:()=>l((0,s.toggleFormat)(t,{type:p}))})};var g=window.wp.element,v=React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M50.6,21.5c-2.5-0.3-6.8-3.1-11.1-7.5l-4.1-4.1c-3.1-3.1-8.2-3.1-11.2,0l-8.4,8.4L35.3,38l7-7l1.3-1.3l5.7-5.7l1.6-1.6 C51.1,22,51,21.5,50.6,21.5z"}),React.createElement("path",{d:"M14.2,19.7l-4.1,4.1c-0.6,0.6-0.6,1.6,0,2.3L16,32c0.7,0.7,0.6,1.8-0.1,2.4l-10,8.6c-1.2,1.2-1.2,3.3,0,4.5 c1.2,1.2,3.2,1.2,4.5,0l8.6-10c0.6-0.7,1.7-0.8,2.4-0.1l5.9,5.9c0.6,0.6,1.6,0.6,2.3,0l4.1-4.1L14.2,19.7z M7.5,46 c-0.4-0.4-0.4-1.1,0-1.5c0.4-0.4,1.1-0.4,1.5,0c0.4,0.4,0.4,1.1,0,1.5C8.5,46.5,7.9,46.5,7.5,46z"})),_=window.wp.components,y=()=>"function"==typeof i.useSetting?{colors:(0,i.useSetting)("color.palette"),disableCustomColors:!(0,i.useSetting)("color.custom")}:(0,n.useSelect)((e=>{const t=e("core/block-editor").getSettings()||{};return{colors:t.colors||[],disableCustomColors:t.disableCustomColors}})),E=(e,t,l,n="bg")=>{const a=(0,s.getActiveFormat)(t,e);if(!a)return"";let r="",o="";"bg"===n?(r=new RegExp(/^background-color:\s*/),o=new RegExp(/.*has-(.*?)-background-color.*/)):"text"===n&&(r=new RegExp(/^color:\s*/),o=new RegExp(/.*has-(.*?)-color.*/));const c=a.attributes.style;if(c)return c.replace(r,"");const u=a.attributes.class;if(u){const e=u.replace(o,"$1");return(0,i.getColorObjectByAttributeValues)(l,e).color}};const x=(e,t,l)=>s.useAnchor?{anchor:(0,i.useCachedTruthy)((0,s.useAnchor)({editableContentElement:e.current,value:t,settings:l}))}:{anchorRef:(0,i.useCachedTruthy)((0,s.useAnchorRef)({ref:e,value:t,settings:l}))};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{const r=t.name,{colors:o}=y(),c=(0,g.useMemo)((()=>E(r,e,o)),[r,e,o]),u=(0,g.useCallback)((t=>{c||e.start!==e.end?l(((e,t,l,n)=>{if(l){const a=(0,i.getColorObjectByColorValue)(n,l),r=a?{class:`has-${a.slug}-background-color`}:{style:`background-color:${l}`};return(0,s.applyFormat)(e,{type:t,attributes:r})}return(0,s.removeFormat)(e,t)})(e,r,t,o)):n()}),[c,r,e,o,l,n]),m=x(a,e,t);return React.createElement(_.Popover,R({},m,{onClose:n,className:"swell-format-popover -swl-bgcolor"}),React.createElement("div",{className:"swell-format-popover__content"},React.createElement(_.ColorPalette,{value:c,colors:o,onChange:u})))};const N=(0,c._x)("背景色","format","swell"),B={name:"loos/bg-color",title:N,tagName:"span",className:"swl-bg-color",attributes:{style:"style",class:"class"}},k={...B,edit:({isActive:e,value:t,onChange:l,contentRef:r})=>{const[o,s]=(0,g.useState)(!1),c=(0,n.useSelect)((e=>e(a).getSettings().show_bgcolor_top),[]),u=c||e?"swl-bg-color":"swl-bg-color-not-active",m=c||e?"swl-bg-color":"swell-controls";return React.createElement(React.Fragment,null,React.createElement(i.RichTextToolbarButton,{key:u,name:m,title:N,icon:v,isActive:e,onClick:()=>{s(!0)}}),o&&React.createElement(C,{value:t,settings:B,onChange:l,isActive:e,contentRef:r,onClose:()=>s(!1)}))}};var S=React.createElement("svg",{viewBox:"0 0 56 56","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M30.8,10.8l-0.1-0.2h-6L12,45.4h5.5l3.5-9.7H35l3.5,9.7H44L30.8,10.8z M33.6,31.5H22.5l5.2-16.7L33.6,31.5z"}));function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{const r=t.name,{colors:o}=y(),c=(0,g.useMemo)((()=>E(r,e,o,"text")),[e,o,r]),u=(0,g.useCallback)((t=>{c||e.start!==e.end?l(((e,t,l,n)=>{if(l){const a=(0,i.getColorObjectByColorValue)(n,l),r=a?{class:`has-${a.slug}-color`}:{style:`color:${l}`};return(0,s.applyFormat)(e,{type:t,attributes:r})}return(0,s.removeFormat)(e,t)})(e,r,t,o)):n()}),[c,l,n,e,o,r]),m=x(a,e,t);return React.createElement(_.Popover,I({},m,{onClose:n,className:"swell-format-popover -swl-text-color"}),React.createElement("div",{className:"swell-format-popover__content"},React.createElement(_.ColorPalette,{value:c,colors:o,onChange:u})))};const T=(0,c._x)("テキスト色","format","swell"),z={name:"loos/text-color",title:T,tagName:"span",className:"swl-inline-color",attributes:{style:"style",class:"class"}},M={...z,edit:({isActive:e,value:t,onChange:l,contentRef:r})=>{const[o,s]=(0,g.useState)(!1),c=(0,n.useSelect)((e=>e(a).getSettings().show_textcolor_top),[]),u=c||e?"swl-text-color":"swl-text-color-not-active",m=c||e?"swl-text-color":"swell-controls";return React.createElement(React.Fragment,null,React.createElement(i.RichTextToolbarButton,{key:u,name:m,title:T,icon:S,isActive:e,onClick:()=>{s(!0)}}),o&&React.createElement(A,{value:t,settings:z,onChange:l,isActive:e,contentRef:r,onClose:()=>s(!1)}))}};var L=React.createElement("svg",{viewBox:"0 0 56 56","aria-hidden":"true",focusable:"false"},React.createElement("path",{d:"M8.4,41.1l5.5,1.8l1.9-2l-3.7-3.8L8.4,41.1z M15.3,27.7c-0.6,0.6-0.8,1.4-0.6,2.1l0.7,2.4L12.5,35l5.3,5.4l2.8-2.8l2.4,0.7 c0.7,0.3,1.6,0,2.1-0.6l1.9-2.3l-9.5-9.7L15.3,27.7L15.3,27.7z M45.1,10.8l-3.5-3.6c-1.1-1.2-2.9-1.2-4.1-0.1L18.8,24.5l9.3,9.5 l17-19C46.2,13.9,46.2,12,45.1,10.8L45.1,10.8z"}),React.createElement("rect",{x:"7",y:"46.6",width:"42",height:"3"}));function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{const t=(0,s.getActiveFormat)(e,r);if(!t)return"";const l=t.attributes.class||"";return l?`var(--color_${l})`:""}),[e,r]),c=(0,g.useCallback)((t=>{l(((e,t,l)=>l?(0,s.applyFormat)(e,{type:t,attributes:{class:l.replace(/var\(--color_(.*?)\)/,"$1")}}):(0,s.removeFormat)(e,t))(e,r,t))}),[r,e,l]),i=x(a,e,t);return React.createElement(_.Popover,F({},i,{onClose:n,className:"swell-format-popover -swl-marker"}),React.createElement("div",{className:"swell-format-popover__content"},React.createElement("div",{className:"__colors"},React.createElement(_.ColorPalette,{value:o,colors:O,disableCustomColors:!0,onChange:t=>{o||e.start!==e.end?c(t):n()}}))))}const P=(0,c._x)("マーカー","format","swell"),H={name:"loos/marker",title:P,tagName:"span",className:"swl-marker",attributes:{class:"class"}},V={...H,edit:({isActive:e,value:t,onChange:l,contentRef:r})=>{const[o,s]=(0,g.useState)(!1),c=(0,n.useSelect)((e=>e(a).getSettings().show_marker_top),[]),u=c||e?"swl-marker":"swl-marker-not-active",m=c||e?"swl-marker":"swell-controls";return React.createElement(React.Fragment,null,React.createElement(i.RichTextToolbarButton,{key:u,name:m,title:P,isActive:e,icon:L,onClick:()=>{s(!0)}}),o&&React.createElement($,{value:t,settings:H,onChange:l,contentRef:r,onClose:()=>s(!1)}))}};var U=React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M37.2,12.3v27.9c0,3.7,0.3,4.1,4.8,4.1v1.7H27.4v-1.8c4.5,0,4.8-0.4,4.8-4.1V12.3h-5.8c-3,0-3.5,0.3-4.5,6.4h-2.2l1.2-8.8 h27.6l1.2,8.8h-2.1c-1.1-6.2-1.5-6.4-4.6-6.4C43,12.3,37.2,12.3,37.2,12.3z"}),React.createElement("path",{d:"M16.8,26.7v15.9c0,2.2,0.2,2.5,2.9,2.5v1h-8.8V45c2.7,0,2.9-0.2,2.9-2.5V26.7h-3.5c-1.8,0-2.1,0.2-2.7,3.8H6.3L7,25.3h16.6 l0.7,5.3H23c-0.7-3.7-0.9-3.8-2.8-3.8C20.2,26.7,16.8,26.7,16.8,26.7z"})),j=window.wp.compose,W=l(184),G=l.n(W);const D=["px","rem","em","%","vw","vh"];var q=({value:e,units:t,onChange:l,defaultUnit:n,steps:a,idKey:r="",className:o="",onClear:s=null})=>{const u=t||D,m=((e,t)=>e?e.toString().replace(/[0-9\.]/g,""):t||"px")(e,n),h=`${r}-${(0,j.useInstanceId)(i.__experimentalUnitControl)}`,d=!!s;let f="0.1";return a&&a[m]?f=a[m]:"px"===m?f="1":"rem"!==m&&"em"!==m||(f="0.05"),React.createElement("div",{className:G()("swl-unitNumber",o,{"has-clear":d})},React.createElement(i.__experimentalUnitControl,{id:h,min:0,onBlur:null,step:f,value:e||n||"px",units:u.map((e=>({label:e,value:e}))),onChange:e=>{l(e)}}),s&&React.createElement(_.Button,{isSmall:!0,isSecondary:!0,text:(0,c.__)("Clear"),onClick:()=>{s()}}))};function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{const t=(0,s.getActiveFormat)(e,r);if(!t)return"";const l=t.attributes;return l.class?{activeSize:l.class.replace("u-fz-","")}:l.style?{activeCustomSize:l.style.replace(/^font-size:\s*/,"")}:void 0}),[r,e]),[u,m]=(0,g.useState)(i||""),h=x(a,e,t);return React.createElement(_.Popover,X({},h,{onClose:n,className:"swell-format-popover -swl-fz"}),React.createElement("div",{className:"swell-format-popover__content"},React.createElement("div",{className:"__btns"},React.createElement(_.ButtonGroup,null,Y.map((t=>{const a=t.val===o;return React.createElement(_.Button,{text:t.label,className:`-${t.val}`,variant:a?"primary":"secondary",onClick:()=>{o||e.start!==e.end?(m(""),l(a?(0,s.removeFormat)(e,r):(0,s.applyFormat)(e,{type:r,attributes:{class:`u-fz-${t.val}`}}))):n()},key:`key_fz_btn_${t.val}`})}))),React.createElement(_.Flex,{justify:"flex-start",align:"stretch",className:"u-mb-15"},React.createElement(q,{value:u,steps:{em:"0.25",rem:"0.25","%":"0.5"},onChange:e=>{m(e||"")}}),React.createElement(_.Button,{variant:"primary",text:(0,c.__)("適用","swell"),onClick:()=>{l(u?(0,s.applyFormat)(e,{type:r,attributes:{style:`font-size:${u}`}}):(0,s.removeFormat)(e,r))}}))),React.createElement("div",{className:"swl-clearFormat"},React.createElement(_.Button,{variant:"tertiary",text:(0,c.__)("Clear"),onClick:()=>{l((0,s.removeFormat)(e,r))}}))))}const J=(0,c._x)("フォントサイズ","format","swell"),Z={name:"loos/font-size",title:J,tagName:"span",className:"swl-fz",attributes:{class:"class",style:"style"}},Q={...Z,edit:({isActive:e,value:t,onChange:l,contentRef:r})=>{const[o,s]=(0,g.useState)(!1),c=(0,n.useSelect)((e=>e(a).getSettings().show_fz_top),[]),u=c||e?"swl-fz":"swl-fz-not-active",m=c||e?"swl-fz":"swell-controls";return React.createElement(React.Fragment,null,React.createElement(i.RichTextToolbarButton,{key:u,name:m,title:J,isActive:e,icon:U,onClick:()=>{s(!0)}}),o&&React.createElement(K,{value:t,isActive:e,settings:Z,onChange:l,contentRef:r,onClose:()=>s(!1)}))}};var ee=React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M22.8,19.3c1.5-1.1,3.2-1.7,5.4-1.7c2.1,0,3.9,0.5,5.2,1.5c1.4,0.9,2.2,2.3,2.3,3.9h-3.2c-0.2-0.8-0.7-1.5-1.5-2 c-0.7-0.5-1.7-0.7-3-0.7c-1.2,0-2.2,0.3-3.1,0.8c-0.9,0.5-1.2,1.3-1.2,2.2c0,0.7,0.3,1.2,0.9,1.7c0.6,0.4,1.5,0.8,2.6,1.1l3.1,0.7 c1.9,0.4,3.3,1.1,4.2,2s1.4,2,1.4,3.5c0,1.8-0.8,3.3-2.3,4.4s-3.5,1.7-5.7,1.7s-4.1-0.5-5.5-1.5c-1.5-1-2.3-2.3-2.4-4h3.3 c0.3,0.9,0.8,1.5,1.6,2c0.8,0.5,1.8,0.7,3.1,0.7c1.4,0,2.5-0.3,3.3-0.9c0.9-0.6,1.3-1.3,1.3-2.3c0-0.7-0.3-1.3-0.8-1.7 c-0.5-0.4-1.3-0.8-2.4-1.1L26,28.8c-1.9-0.4-3.3-1.1-4.1-2c-0.9-0.9-1.3-2-1.3-3.5C20.6,21.7,21.3,20.4,22.8,19.3z"}));const te="loos/mini-note",le=(0,c._x)("注釈","format","swell"),ne={name:te,title:le,tagName:"small",className:"mininote",edit:({isActive:e,value:t,onChange:l})=>React.createElement(i.RichTextToolbarButton,{name:"swell-controls",title:le,icon:ee,isActive:e,onClick:()=>l((0,s.toggleFormat)(t,{type:te}))})};var ae=React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M45,16.8H11c-3.3,0-6,2.7-6,6v16c0,3.3,2.7,6,6,6h34c3.3,0,6-2.7,6-6v-16C51,19.4,48.3,16.8,45,16.8z M48,36.8 c0,1.7-1.3,3-3,3H11c-1.7,0-3-1.3-3-3v-14c0-1.7,1.3-3,3-3h34c1.7,0,3,1.3,3,3V36.8z"})),re=window.wp.primitives,oe=(0,g.createElement)(re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,g.createElement)(re.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t
(0,s.removeFormat)(e,t);var me=({settings:e,value:t,onChange:l,onClose:n,contentRef:a})=>{const r=e.name,o=(0,g.useMemo)((()=>{const e=(0,s.getActiveFormat)(t,r);return e&&e.attributes.className||""}),[t,r]),i=(0,g.useCallback)(((e,n)=>{l(n?ue(t,r):((e,t,l)=>{const n=e.activeFormats.find((e=>"core/link"===e.type));let a=e;return n&&(a=(0,s.removeFormat)(a,"core/link")),a=(0,s.applyFormat)(e,{type:t,attributes:{className:l}}),a=(0,s.applyFormat)(a,{type:"core/link",attributes:n?n.attributes:{url:"###"}}),a})(t,r,e))}),[l,r,t]),u=x(a,t,e);return React.createElement(_.Popover,se({},u,{onClose:n,className:"swell-format-popover -swl-inline-btn"}),React.createElement("div",{className:"swell-format-popover__content"},React.createElement("div",{className:"__btns"},ce.map((e=>{const l=e.val;return React.createElement(_.ButtonGroup,{key:`key_group_${l}`},React.createElement("span",{className:"__typeLabel",key:`key_btn_${l}`},e.label),ie.map((e=>{const a=e.color,r=`${l} ${a}`,s=r===o;return React.createElement(_.Button,{className:`${r} swl-inline-btn`,text:s?"":e.label,icon:s?oe:null,variant:s?"primary":"secondary",onClick:()=>{o||t.start!==t.end?i(r,s):n()},key:`key_btn_${l}_${a}`})})))}))),React.createElement("div",{className:"swl-clearFormat u-mt-10"},React.createElement(_.Button,{variant:"tertiary",text:(0,c.__)("Clear"),onClick:()=>{l(ue(t,r)),n()}}))))};const he=(0,c._x)("インラインボタン","format","swell"),de={name:"loos/inline-btn",title:he,tagName:"span",className:"swl-inline-btn",attributes:{className:"class"}},fe={...de,edit:({isActive:e,value:t,onChange:l,contentRef:n})=>{const[a,r]=(0,g.useState)(!1);return React.createElement(React.Fragment,null,React.createElement(i.RichTextToolbarButton,{key:e?"inline-btn":"inline-btn-not-active",name:e?"swl-btn":"swell-controls",title:he,icon:ae,isActive:e,onClick:()=>{r(!0)}}),a&&React.createElement(me,{settings:de,value:t,isActive:e,onChange:l,contentRef:n,onClose:()=>r(!1)}))}};var pe=React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M44.5,8.4l-8.2,30c-0.1,0.4,0,0.8,0.2,1.2l2.1,3.9l0.1,0.1c0.3,0.4,0.7,0.6,1.2,0.6c0.2,0,0.4,0,0.5-0.1l3.9-2.3 c0.4-0.2,0.7-0.5,0.8-0.9l8.2-29.9l0-0.1L44.5,8.4z M43.1,40.1L40,41.9l-1.8-3.2l7.3-26.5l4.9,1.3L43.1,40.1z"}),React.createElement("path",{d:"M32,44.6c-0.7,0.5-0.9,1.6-0.4,2.3c0.5,0.7,1.6,0.9,2.3,0.4c0.7-0.5,0.9-1.6,0.4-2.3C33.8,44.3,32.8,44.1,32,44.6z"}),React.createElement("path",{d:"M32.1,41.1c-2.1-5.5-8.9-4.2-14.4-3.1c-4,0.8-8.1,1.5-9.4-0.3c-0.6-0.8-0.5-1.3-0.5-1.5c0.3-1.2,2.6-2.5,4.7-3.6 c2.6-1.5,5.3-3,6-5.3c0.3-1.1,0.1-2.3-0.6-3.4C15.4,20,8.5,20.8,4,21.3c-0.7,0.1-1.3,0.8-1.2,1.5c0.1,0.7,0.8,1.3,1.5,1.2 c3.4-0.4,9.8-1.1,11.3,1.3c0.3,0.7,0.4,1.1,0.3,1.2c-0.4,1.3-2.6,2.5-4.7,3.6c-2.7,1.4-5.4,3-6,5.4c-0.3,1.2,0,2.5,0.9,3.7 c2.3,3.2,7.3,2.3,12.1,1.4c6.1-1.1,10.1-1.7,11.4,1.5c0.1,0.7,0.8,1,1.5,0.9C31.9,42.9,32.4,42,32.1,41.1z"}));const be=window.swellVars.customFormats||[],we=[];be.forEach((e=>{const t=e.name,l=e.title;we.push({name:t,title:l,tagName:e.tagName,className:e.className,edit:({value:e,onChange:n,isActive:a})=>React.createElement(i.RichTextToolbarButton,{name:"swell-controls",title:l,icon:pe,isActive:a,onClick:()=>n((0,s.toggleFormat)(e,{type:t}))})})}));var ge,ve,_e=React.createElement("svg",{viewBox:"0 0 56 56"},React.createElement("path",{d:"M48.8,31.8L47.7,31l1.1-0.8l0.1-0.1c0.7-0.7,1-1.5,1-2.5c0-1-0.4-1.8-1.1-2.5l-1.2-0.9l1.2-0.9l0.1-0.1c0.7-0.7,1-1.5,1-2.5 c0-1-0.4-1.9-1.1-2.5L30.4,4.8c-0.7-0.6-1.5-1-2.4-1c0,0,0,0,0,0c-0.9,0-1.7,0.3-2.3,0.9L7.2,18.1l-0.1,0.1c-0.7,0.7-1,1.5-1,2.5 c0,0.9,0.4,1.8,1.1,2.5l1.2,1L7.2,25l-0.1,0.1c-0.7,0.7-1,1.5-1,2.5c0,1,0.4,1.8,1.1,2.5L8.3,31l-1.1,0.8l-0.1,0.1 c-0.7,0.7-1,1.5-1,2.5c0,1,0.4,1.8,1.1,2.5l18.4,14.4c0.7,0.6,1.5,1,2.4,1c0.9,0,1.8-0.3,2.4-0.9l18.4-14.4l0.1-0.1 c0.7-0.7,1-1.5,1-2.5C49.9,33.4,49.5,32.5,48.8,31.8z M28.4,49.1c-0.2,0.2-0.5,0.2-0.8,0L9.3,34.6c-0.1-0.1-0.1-0.2-0.1-0.3 c0-0.1,0-0.2,0.1-0.3l1.6-1.1l14.8,11.6c0.7,0.6,1.5,1,2.4,1c0.9,0,1.8-0.3,2.4-0.9l14.9-11.6l1.6,1.1c0.1,0.1,0.1,0.2,0.1,0.3 c0,0.1,0,0.2-0.1,0.3L28.4,49.1L28.4,49.1z M27.6,6.9c0.1-0.1,0.2-0.1,0.4-0.1c0.1,0,0.2,0,0.4,0.2l18.4,13.4c0.1,0.2,0.1,0.4,0,0.6 L28.4,35.3l-0.1,0.1c-0.2,0.2-0.5,0.2-0.8,0L9.2,21c-0.2-0.2-0.2-0.4-0.1-0.6L27.5,7L27.6,6.9z M28,38.6c0.9,0,1.8-0.3,2.4-0.9 l14.8-11.6l1.6,1.2c0.1,0.1,0.1,0.2,0.1,0.3c0,0.1,0,0.2-0.1,0.3L28.4,42.2l-0.1,0.1c-0.2,0.2-0.5,0.2-0.8,0L9.2,27.9 c-0.1-0.1-0.1-0.2-0.1-0.3c0-0.1,0-0.2,0.1-0.3l1.7-1.2l14.7,11.5C26.2,38.2,27.1,38.6,28,38.6z"}));const ye=null===(ge=window)||void 0===ge||null===(ve=ge.swellVars)||void 0===ve?void 0:ve.customFormatSets,Ee=[];ye&&ye.length&&ye.forEach(((e,t)=>{const l=t+1,n=`loos/custom-set${l}`,a=`${(0,c._x)("書式セット","format","swell")}${l}`;Ee.push({name:n,title:a,tagName:"span",className:`swl-custom-set${l}`,edit:({value:t,onChange:l,isActive:n})=>React.createElement(i.RichTextToolbarButton,{name:"swell-controls",title:a,icon:_e,isActive:n,onClick:()=>{let n=t;e.forEach((e=>{n=(0,s.applyFormat)(n,e)})),l(n)}})})}));var xe=React.createElement("svg",{viewBox:"0 0 48 48"},React.createElement("circle",{cx:"17",cy:"22",r:"2.5"}),React.createElement("circle",{cx:"31",cy:"22",r:"2.5"}),React.createElement("path",{d:"M33.1,29.5c-0.2-0.4-0.6-0.6-1-0.7c-0.7-0.1-1.3,0.2-1.5,0.8c-1.1,2.5-3.7,4-6.6,4c-2.9,0-5.5-1.6-6.6-4.1 c-0.3-0.5-0.9-0.8-1.5-0.8c-0.4,0.1-0.8,0.3-1,0.7c-0.2,0.3-0.2,0.8,0,1.2c1.6,3.4,5.2,5.6,9.2,5.6c3.9,0,7.6-2.2,9.2-5.6 C33.3,30.2,33.3,29.8,33.1,29.5z"}),React.createElement("path",{d:"M24,43.5C13.2,43.5,4.5,34.8,4.5,24C4.5,13.2,13.2,4.5,24,4.5c10.8,0,19.5,8.7,19.5,19.5C43.5,34.8,34.8,43.5,24,43.5z M24,7.5C14.9,7.5,7.5,14.9,7.5,24c0,9.1,7.4,16.5,16.5,16.5c9.1,0,16.5-7.4,16.5-16.5C40.5,14.9,33.1,7.5,24,7.5z"})),Re=l(764),Ce=l(991),Ne=l.n(Ce);const Be=(e,t)=>-1!==e.split(" ").indexOf(t),ke=(e,t,l,n="")=>{if(Be(e,t))return e;let a;if(l){const r={};l.map((e=>{r[e]=!1})),n&&(r[n]=!1),a=Ne()(e,r),t&&(a=Ne()(a,n,t))}else t&&(a=Ne()(e,t));return a},Se=(e,t)=>e?Ne()(e,{[t]:!1}):"",Ie=e=>e?e=(e=(e=(e=e.replace(/\r?\n/g,"")).replace(/\t/g," ")).replace(/\s\s+/g," ")).replace(/> <"):"",Ae=(e,t)=>e?"base64"===t?`url(data:image/svg+xml;base64,${e=Re.lW.from(e).toString("base64")})`:`url('data:image/svg+xml;utf8,${e=(e=Ie(e)).replaceAll('="#','="%23')}')`:"";var Te=({icon:e,size:t="1em",className:l="",returnItagIf404:n=!0})=>{let a="";const r=(window.__SWELL_ICONS__||{}).src||{};if(e.startsWith("Ls")?a="ls":e.startsWith("Io")?a="io":e.startsWith("Fi")?a="fi":e.startsWith("Ph")?a="ph":e.startsWith("Fa")&&(a="fa"),a){const n=r[a]||{};if(!n[e])return null;const o=n[e];return React.createElement(o,{className:l||null,height:t,width:t,xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0})}return n?React.createElement("i",{className:G()(e,l)}):null};const ze={hr:["fill","outline"],io:["fill","outline"],fa:["fill","outline"],ph:["fill","regular","thin"],fi:["regular","thin"],ls:["regular"]},Me={regular:"Regular",fill:"Fill",solid:"Solid",outline:"Outline",thin:"Thin",light:"Light"},Le={__link__:"リンク",__arrow__:"矢印",__symbols__:"記号・形",__communication__:"コミュニケーション","__media-file__":"メディア・ファイル","__works-study__":"仕事・勉強","__shop-money__":"ショップ・お金",__living__:"生活",__entertainment__:"エンターテイメント","__maps-transportation__":"マップ・交通","__system-devices__":"システム・デバイス",__design__:"デザイン",__wellness__:"健康・医療","__nature-weather__":"自然・天気",__people__:"人々",__logo__:"ロゴ",__tools__:"ツール",__others__:"その他"},Fe={style:(0,c.__)("スタイル","swell"),select:(0,c.__)("アイコンを選択","swell"),search:(0,c.__)("アイコンを検索","swell"),nofound:(0,c.__)("アイコンが見つかりませんでした。","swell"),svgInsert:(0,c._x)("決定","svg","swell"),svgPlaceholder:(0,c.__)("ここにSVGタグを直接入力できます。(scriptタグは除去されます)","swell")},Oe=({icons:e,value:t,onChange:l,isFilterd:n})=>React.createElement(_.ButtonGroup,{className:"__iconList","data-filterd":n?"1":"0"},e.map(((e,a)=>{if(e.startsWith("__")){var r;if(n)return null;const t=null!==(r=Le[e])&&void 0!==r?r:e;return React.createElement("span",{key:a,className:"__iconCategory"},t)}return React.createElement(_.Button,{key:a,variant:e===t?"primary":"",onClick:()=>{l(e)}},React.createElement(Te,{icon:e,size:"20px"}))}))),$e=({value:e="",onChange:t,searchValue:l})=>{const n=window.__SWELL_ICONS__||{},a=n.list||{};let r=n.tabs||[];r=r.map((e=>({name:e.prefix,title:React.createElement(Te,{icon:e.icon})})));const o=r[0].name;let s="";e.startsWith("Ls")||e.startsWith("Swl")||e.startsWith("swl")?s="ls":e.startsWith("Io")?s="io":e.startsWith("Fi")?s="fi":e.startsWith("Ph")?s="ph":(e.startsWith("Fa")||e.startsWith("fa"))&&(s="fa");const[c,i]=(0,g.useState)(s||o),u=a[c]||{},m=ze[c],h=m.map((e=>{var t;return{value:e,label:null!==(t=Me[e])&&void 0!==t?t:e}})),[d,f]=(0,g.useState)(m[0]||"regular"),p=u[d]||[];let b=null;return l&&(b=p.filter((e=>e.toLowerCase().includes(l.toLowerCase())))),React.createElement(_.TabPanel,{className:"ls-iconModal__tab",activeClass:"is-active",onSelect:e=>{i(e),ze[e].includes(d)||f(ze[e][0])},tabs:r,initialTabName:c},(l=>React.createElement(React.Fragment,null,React.createElement(_.ButtonGroup,{className:"__iconStyles"},React.createElement("span",{className:"__label"},Fe.style," : "),h.map(((e,t)=>React.createElement(_.Button,{key:t,variant:e.value===d?"primary":"",onClick:()=>{f(e.value)}},e.label)))),b?b.length?React.createElement(Oe,{icons:b,value:e,onChange:t,isFilterd:!0}):React.createElement("div",{className:"__noIcon"},Fe.nofound):React.createElement(Oe,{icons:p,value:e,onChange:t}))))},Pe=({value:e,onSet:t,className:l})=>{const[n,a]=(0,g.useState)(e||"");return React.createElement(_.Flex,{className:G()("ls-svgInput",l)},React.createElement(_.TextareaControl,{rows:2,value:n||"",placeholder:Fe.svgPlaceholder,onChange:e=>{a(e)}}),React.createElement(_.Button,{text:Fe.svgInsert,className:"__setBtn",variant:"secondary",onClick:()=>{const e=(-1===(l=(l=Ie(l=n)).replace(/
kahoku table tennisとは?
練習・大会・遠征
練習日程
入会、お試し参加
入会
お試し参加
検索
検索
MENU
kahoku table tennis
MENU
kahoku table tennisとは?
練習・大会・遠征
練習日程
入会、お試し参加
入会
お試し参加
kahoku table tennisとは?
練習・大会・遠征
練習日程
入会、お試し参加
入会
お試し参加
ホーム
2023年
2023年6月
2023年6月
ブログ
備忘録2
nuno
2023年6月6日
ブログ
ブログ
備忘録1
nuno
2023年6月6日
ブログ
お知らせ
お知らせ3
nuno
2023年6月6日
お知らせ
お知らせ
お知らせ2
nuno
2023年6月6日
お知らせ
お知らせ
お知らせ1
nuno
2023年6月6日
お知らせ
大会結果
イベント3
nuno
2023年6月6日
大会結果
大会結果
イベント2
nuno
2023年6月6日
大会結果
大会結果
イベント1
nuno
2023年6月6日
大会結果
検索