(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],s=i[1],c=new o((a+s)*3/4-s),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(function(e,t,r){for(var o,i=[],a=t;a<r;a+=3)i.push(n[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";var r=n(95766),o=n(62333),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(N(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var o=function(e){if(s.isBuffer(e)){var t,n=0|p(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),a(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return A(e).length;default:if(o)return r?-1:T(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=O[e[i]];return o}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}(this,t,n);case"base64":return o=t,i=n,0===o&&i===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){var i;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else -1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return -1}function b(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function w(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,o,i){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function C(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,i){return t=+t,n>>>=0,i||C(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,i){return t=+t,n>>>=0,i||C(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(N(i,Uint8Array))o+i.length>r.length?s.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else if(s.isBuffer(i))i.copy(r,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,o){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,l=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;d<l;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,s,l,c,u,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(s!=s)break;e[n+a]=s}return a}(this,e,t,n);case"utf8":case"utf-8":return o=t,i=n,M(T(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,s=n,M(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(e),this,a,s);case"base64":return l=t,c=n,M(A(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=n,M(function(e,t){for(var n,r,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o.push(n%256),o.push(r);return o}(e,this.length-u),this,u,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(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},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(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},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(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},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(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},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%l]}return this};var E=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var n,r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function A(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},34821:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(r=n=t.ElementType||(t.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},79959:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(34821),a=n(75538);o(n(75538),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=e;return}var t=new a.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},75538:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(34821),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function x(e){return e.type===a.ElementType.Root}function C(e,t){if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var n,r=t?k(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){var r=t?k(e.children):[],a=new p(r);r.forEach(function(e){return e.parent=a}),n=a}else if(x(e)){var r=t?k(e.children):[],s=new h(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(w(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function k(e){for(var t=e.map(function(e){return C(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=b,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=C},8401:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{})},58166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,d,f=e.match(a),p=f&&f[1]?f[1].toLowerCase():"";switch(p){case r:var h=u(e);if(!s.test(e)){var m=h.querySelector(o);null===(t=null==m?void 0:m.parentNode)||void 0===t||t.removeChild(m)}if(!l.test(e)){var m=h.querySelector(i);null===(d=null==m?void 0:m.parentNode)||void 0===d||d.removeChild(m)}return h.querySelectorAll(r);case o:case i:var g=c(e).querySelectorAll(p);if(l.test(e)&&s.test(e))return g[0].parentNode.childNodes;return g;default:if(n)return n(e);var m=c(e,i).querySelector(i);return m.childNodes}};var n,r="html",o="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,l=/<body[^]*>/i,c=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var f=new d;c=u=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var h="object"==typeof document&&document.createElement("template");h&&h.content&&(n=function(e){return h.innerHTML=e,h.content.childNodes})},50307:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(58166)),i=n(41594),a=/<(![a-zA-Z\s]+)>/},41594:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.formatDOM=function e(t,n,a){void 0===n&&(n=null);for(var s,l=[],c=0,u=t.length;c<u;c++){var d=t[c];switch(d.nodeType){case 1:var f=function(e){var t;return t=e=e.toLowerCase(),o.CASE_SENSITIVE_TAG_NAMES_MAP[t]||e}(d.nodeName);(s=new r.Element(f,i(d.attributes))).children=e("template"===f?d.content.childNodes:d.childNodes,s);break;case 3:s=new r.Text(d.nodeValue);break;case 8:s=new r.Comment(d.nodeValue);break;default:continue}var p=l[c-1]||null;p&&(p.next=s),s.parent=n,s.prev=p,s.next=null,l.push(s)}return a&&((s=new r.ProcessingInstruction(a.substring(0,a.indexOf(" ")).toLowerCase(),a)).next=l[0]||null,s.parent=n,l.unshift(s),l[1]&&(l[1].prev=l[0])),l};var r=n(79959),o=n(8401);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}},13683:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=!!(e.type&&s[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u)){n[u]=d;continue}var f=u.toLowerCase(),p=l(f);if(p){var h=(0,r.getPropertyInfo)(p);switch(i.includes(p)&&a.includes(t)&&!c&&(p=l("default"+f)),n[p]=d,h&&h.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}continue}o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}return(0,o.setStyleProp)(e.style,n),n};var r=n(18701),o=n(54848),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},69239:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,l=n.transform||a.returnFirstArg,c=n.library||s,u=c.cloneElement,d=c.createElement,f=c.isValidElement,p=t.length,h=0;h<p;h++){var m=t[h];if(o){var g=n.replace(m,h);if(f(g)){p>1&&(g=u(g,{key:g.key||h})),r.push(l(g,m,h));continue}}if("text"===m.type){var v=!m.data.trim().length;if(v&&m.parent&&!(0,a.canTextBeChildOfNode)(m.parent)||n.trim&&v)continue;r.push(l(m.data,m,h));continue}var y={};a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===m.type&&(0,a.isCustomComponent)(m.name,m.attribs)?((0,a.setStyleProp)(m.attribs.style,m.attribs),y=m.attribs):m.attribs&&(y=(0,i.default)(m.attribs,m.name));var b=void 0;switch(m.type){case"script":case"style":m.children[0]&&(y.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":"textarea"===m.name&&m.children[0]?y.defaultValue=m.children[0].data:m.children&&m.children.length&&(b=e(m.children,n));break;default:continue}p>1&&(y.key=h),r.push(l(d(m.name,y,b),m,h))}return 1===r.length?r[0]:r};var o=n(2784),i=r(n(13683)),a=n(54848),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement}},36088:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var o=r(n(50307));t.htmlToDOM=o.default;var i=r(n(13683));t.attributesToProps=i.default;var a=r(n(69239));t.domToReact=a.default;var s=n(79959);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},54848:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):!!(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e){if(!e.trim()){t.style={};return}try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}}};var o=n(2784),i=r(n(91618)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},62333:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?5960464477539062e-23:0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g;function c(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var u=1,d=1;function f(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new h(e),v(r),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=u,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return v(r),function(){var e,n=[];for(y(n);e=function(){var e=p(),n=v(o);if(n){if(b(),!v(i))return g("property missing ':'");var r=v(a),l=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return v(s),l}}();)!1!==e&&(n.push(e),y(n));return n}()}},15554:function(e){"use strict";function t(){var e=Object.create(null),t=0,n=0,r=0,o=!1;function i(t){r--,delete e[t]}this.put=function(t,n,a,s){if(o&&console.log("caching: %s = %j (@%s)",t,n,a),void 0!==a&&("number"!=typeof a||isNaN(a)||a<=0))throw Error("Cache timeout must be a positive number");if(void 0!==s&&"function"!=typeof s)throw Error("Cache timeout callback must be a function");var l=e[t];l?clearTimeout(l.timeout):r++;var c={value:n,expire:a+Date.now()};return isNaN(c.expire)||(c.timeout=setTimeout((function(){i(t),s&&s(t,n)}).bind(this),a)),e[t]=c,n},this.del=function(t){var n=!0,r=e[t];return r?(clearTimeout(r.timeout),!isNaN(r.expire)&&r.expire<Date.now()&&(n=!1)):n=!1,n&&i(t),n},this.clear=function(){for(var i in e)clearTimeout(e[i].timeout);r=0,e=Object.create(null),o&&(t=0,n=0)},this.get=function(i){var a=e[i];if(void 0!==a){if(isNaN(a.expire)||a.expire>=Date.now())return o&&t++,a.value;o&&n++,r--,delete e[i]}else o&&n++;return null},this.size=function(){return r},this.memsize=function(){var t,n=0;for(t in e)n++;return n},this.debug=function(e){o=e},this.hits=function(){return t},this.misses=function(){return n},this.keys=function(){return Object.keys(e)},this.exportJson=function(){var t={};for(var n in e){var r=e[n];t[n]={value:r.value,expire:r.expire||"NaN"}}return JSON.stringify(t)},this.importJson=function(t,n){var r=JSON.parse(t),i=Date.now(),a=n&&n.skipDuplicates;for(var s in r)if(r.hasOwnProperty(s)){if(a&&e[s]){o&&console.log("Skipping duplicate imported key '%s'",s);continue}var l=r[s],c=l.expire-i;if(c<=0){this.del(s);continue}c=c>0?c:void 0,this.put(s,l.value,c)}return this.size()}}e.exports=new t,e.exports.Cache=t},16483:function(e,t,n){"use strict";var r=n(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var n=function(n){if(n.key===e){var r,o=JSON.parse(null!==(r=n.newValue)&&void 0!==r?r:"{}");(null==o?void 0:o.event)==="session"&&null!=o&&o.data&&t(o)}};return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:d()})))}catch(e){}}}},t.apiBaseUrl=u,t.fetchData=function(e,t,n){return c.apply(this,arguments)},t.now=d;var o=r(n(82841)),i=r(n(26290)),a=r(n(91461));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(){return(c=(0,a.default)(o.default.mark(function e(t,n,r){var i,a,s,c,d,f,p,h,m,g=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=(i=g.length>3&&void 0!==g[3]?g[3]:{}).ctx,c=void 0===(s=i.req)?null==a?void 0:a.req:s,d="".concat(u(n),"/").concat(t),e.prev=2,p={headers:l({"Content-Type":"application/json"},null!=c&&null!==(f=c.headers)&&void 0!==f&&f.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(p.body=JSON.stringify(c.body),p.method="POST"),e.next=7,fetch(d,p);case 7:return h=e.sent,e.next=10,h.json();case 10:if(m=e.sent,h.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),r.error("CLIENT_FETCH_ERROR",{error:e.t0,url:d}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function u(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},67693:function(e,t,n){"use strict";var r=n(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(n,r){return n[r]=(0,i.default)(o.default.mark(function n(){var i,a,s,l,c,u=arguments;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(n.prev=0,a=Array(i=u.length),s=0;s<i;s++)a[s]=u[s];return t.debug("adapter_".concat(r),{args:a}),l=e[r],n.next=6,l.apply(void 0,a);case 6:return n.abrupt("return",n.sent);case 9:throw n.prev=9,n.t0=n.catch(0),t.error("adapter_error_".concat(r),n.t0),(c=new m(n.t0)).name="".concat(v(r),"Error"),c;case 15:case"end":return n.stop()}},n,null,[[0,9]])})),n},{})},t.capitalize=v,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=(0,i.default)(o.default.mark(function n(){var i,a=arguments;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=e[r],n.next=4,i.apply(void 0,a);case 4:return n.abrupt("return",n.sent);case 7:n.prev=7,n.t0=n.catch(0),t.error("".concat(g(r),"_EVENT_ERROR"),n.t0);case 10:case"end":return n.stop()}},n,null,[[0,7]])})),n},{})},t.upperSnake=g;var o=r(n(82841)),i=r(n(91461)),a=r(n(26290)),s=r(n(53100)),l=r(n(98870)),c=r(n(60421)),u=r(n(1147)),d=r(n(68230)),f=r(n(78365));function p(e,t,n){return t=(0,u.default)(t),(0,c.default)(e,h()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var m=t.UnknownError=function(e){function t(e){var n,r;return(0,s.default)(this,t),(r=p(this,t,[null!==(n=null==e?void 0:e.message)&&void 0!==n?n:e])).name="UnknownError",r.code=e.code,e instanceof Error&&(r.stack=e.stack),r}return(0,d.default)(t,e),(0,l.default)(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,f.default)(Error));function g(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function v(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.OAuthCallbackError=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","OAuthCallbackError"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.AccountNotLinkedError=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","AccountNotLinkedError"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.MissingAPIRoute=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","MissingAPIRouteError"),(0,a.default)(e,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.MissingSecret=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","MissingSecretError"),(0,a.default)(e,"code","NO_SECRET"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.MissingAuthorize=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","MissingAuthorizeError"),(0,a.default)(e,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.MissingAdapter=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","MissingAdapterError"),(0,a.default)(e,"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.MissingAdapterMethods=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","MissingAdapterMethodsError"),(0,a.default)(e,"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.UnsupportedStrategy=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","UnsupportedStrategyError"),(0,a.default)(e,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m),t.InvalidCallbackUrl=function(e){function t(){var e;(0,s.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=p(this,t,[].concat(r)),(0,a.default)(e,"name","InvalidCallbackUrl"),(0,a.default)(e,"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,d.default)(t,e),(0,l.default)(t)}(m)},23848:function(e,t,n){"use strict";var r,o,i,a,s,l=n(34406),c=n(71600),u=n(67425);Object.defineProperty(t,"__esModule",{value:!0});var d={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=function(e){if(!N)throw Error("React Context is unavailable in Server Components");var t,n,r,o,i,a,s=e.children,l=e.basePath,c=e.refetchInterval,u=e.refetchWhenOffline;l&&(T.basePath=l);var d=void 0!==e.session;T._lastSync=d?(0,b.now)():0;var p=g.useState(function(){return d&&(T._session=e.session),e.session}),v=(0,m.default)(p,2),y=v[0],x=v[1],C=g.useState(!d),k=(0,m.default)(C,2),S=k[0],E=k[1];g.useEffect(function(){return T._getSession=(0,h.default)(f.default.mark(function e(){var t,n,r=arguments;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(r.length>0&&void 0!==r[0]?r[0]:{}).event,e.prev=1,!((n="storage"===t)||void 0===T._session)){e.next=10;break}return T._lastSync=(0,b.now)(),e.next=7,O({broadcast:!n});case 7:return T._session=e.sent,x(T._session),e.abrupt("return");case 10:if(!(!t||null===T._session||(0,b.now)()<T._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return T._lastSync=(0,b.now)(),e.next=15,O();case 15:T._session=e.sent,x(T._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),M.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,E(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),T._getSession(),function(){T._lastSync=0,T._session=void 0,T._getSession=function(){}}},[]),g.useEffect(function(){var e=A.receive(function(){return T._getSession({event:"storage"})});return function(){return e()}},[]),g.useEffect(function(){var t=e.refetchOnWindowFocus,n=void 0===t||t,r=function(){n&&"visible"===document.visibilityState&&T._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),function(){return document.removeEventListener("visibilitychange",r,!1)}},[e.refetchOnWindowFocus]);var I=(t=g.useState("undefined"!=typeof navigator&&navigator.onLine),r=(n=(0,m.default)(t,2))[0],o=n[1],i=function(){return o(!0)},a=function(){return o(!1)},g.useEffect(function(){return window.addEventListener("online",i),window.addEventListener("offline",a),function(){window.removeEventListener("online",i),window.removeEventListener("offline",a)}},[]),r),R=!1!==u||I;g.useEffect(function(){if(c&&R){var e=setInterval(function(){T._session&&T._getSession({event:"poll"})},1e3*c);return function(){return clearInterval(e)}}},[c,R]);var j=g.useMemo(function(){return{data:y,status:S?"loading":y?"authenticated":"unauthenticated",update:function(e){return(0,h.default)(f.default.mark(function t(){var n;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(S||!y)){t.next=2;break}return t.abrupt("return");case 2:return E(!0),t.t0=b.fetchData,t.t1=T,t.t2=M,t.next=8,L();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return n=t.sent,E(!1),n&&(x(n),A.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",n);case 19:case"end":return t.stop()}},t)}))()}}},[y,S]);return(0,w.jsx)(N.Provider,{value:j,children:s})},t.getCsrfToken=L,t.getProviders=j,t.getSession=O,t.signIn=function(e,t,n){return _.apply(this,arguments)},t.signOut=function(e){return D.apply(this,arguments)},t.useSession=function(e){if(!N)throw Error("React Context is unavailable in Server Components");var t=g.useContext(N),n=null!=e?e:{},r=n.required,o=n.onUnauthenticated,i=r&&"unauthenticated"===t.status;return(g.useEffect(function(){if(i){var e="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));o?o():window.location.href=e}},[i,o]),i)?{data:t.data,update:t.update,status:"loading"}:t};var f=c(n(82841)),p=c(n(26290)),h=c(n(91461)),m=c(n(43681)),g=k(n(2784)),v=k(n(74339)),y=c(n(18203)),b=n(16483),w=n(52322),x=n(92878);function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(C=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=u(e)&&"function"!=typeof e)return{default:e};var n=C(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.keys(x).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(d,e))&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))});var T={baseUrl:(0,y.default)(null!==(r=l.env.NEXTAUTH_URL)&&void 0!==r?r:l.env.VERCEL_URL).origin,basePath:(0,y.default)(l.env.NEXTAUTH_URL).path,baseUrlServer:(0,y.default)(null!==(o=null!==(i=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==i?i:l.env.NEXTAUTH_URL)&&void 0!==o?o:l.env.VERCEL_URL).origin,basePathServer:(0,y.default)(null!==(a=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==a?a:l.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},A=(0,b.BroadcastChannel)(),M=(0,v.proxyLogger)(v.default,T.basePath),N=t.SessionContext=null===(s=g.createContext)||void 0===s?void 0:s.call(g,void 0);function O(e){return I.apply(this,arguments)}function I(){return(I=(0,h.default)(f.default.mark(function e(t){var n,r;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("session",T,M,t);case 2:return r=e.sent,(null===(n=null==t?void 0:t.broadcast)||void 0===n||n)&&A.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",r);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function L(e){return R.apply(this,arguments)}function R(){return(R=(0,h.default)(f.default.mark(function e(t){var n;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("csrf",T,M,t);case 2:return n=e.sent,e.abrupt("return",null==n?void 0:n.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function j(){return P.apply(this,arguments)}function P(){return(P=(0,h.default)(f.default.mark(function e(){return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.fetchData)("providers",T,M);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _(){return(_=(0,h.default)(f.default.mark(function e(t,n,r){var o,i,a,s,l,c,u,d,p,h,m,g,v,y,w,x,C;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0===(i=(o=null!=n?n:{}).callbackUrl)?window.location.href:i,l=void 0===(s=o.redirect)||s,c=(0,b.apiBaseUrl)(T),e.next=4,j();case 4:if(u=e.sent){e.next=8;break}return window.location.href="".concat(c,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in u))){e.next=11;break}return window.location.href="".concat(c,"/signin?").concat(new URLSearchParams({callbackUrl:a})),e.abrupt("return");case 11:return d="credentials"===u[t].type,p="email"===u[t].type,h=d||p,m="".concat(c,"/").concat(d?"callback":"signin","/").concat(t),g="".concat(m).concat(r?"?".concat(new URLSearchParams(r)):""),e.t0=fetch,e.t1=g,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=E,e.t5=E({},n),e.t6={},e.next=25,L();case 25:return e.t7=e.sent,e.t8=a,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return v=e.sent,e.next=36,v.json();case 36:if(y=e.sent,!(l||!h)){e.next=42;break}return x=null!==(w=y.url)&&void 0!==w?w:a,window.location.href=x,x.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(C=new URL(y.url).searchParams.get("error"),!v.ok){e.next=46;break}return e.next=46,T._getSession({event:"storage"});case 46:return e.abrupt("return",{error:C,status:v.status,ok:v.ok,url:C?null:y.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(){return(D=(0,h.default)(f.default.mark(function e(t){var n,r,o,i,a,s,l,c,u;return f.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=void 0===(r=(null!=t?t:{}).callbackUrl)?window.location.href:r,i=(0,b.apiBaseUrl)(T),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,L();case 6:return e.t2=e.sent,e.t3=o,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),a={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(i,"/signout"),a);case 13:return s=e.sent,e.next=16,s.json();case 16:if(l=e.sent,A.post({event:"session",data:{trigger:"signout"}}),!(null===(n=null==t?void 0:t.redirect)||void 0===n||n)){e.next=23;break}return u=null!==(c=l.url)&&void 0!==c?c:o,window.location.href=u,u.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,T._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}},92878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74339:function(e,t,n){"use strict";var r=n(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var n={},r=function(e){n[e]=function(n,r){l[e](n,r),"error"===e&&(r=s(r)),r.client=!0;var i="".concat(t,"/_log"),c=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,o.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({level:e,code:n},r));return navigator.sendBeacon?navigator.sendBeacon(i,c):fetch(i,{method:"POST",body:c,keepalive:!0})}};for(var i in e)r(i);return n}catch(e){return l}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(l.debug=function(){}),e.error&&(l.error=e.error),e.warn&&(l.warn=e.warn),e.debug&&(l.debug=e.debug)};var o=r(n(26290)),i=n(67693);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){var t;return e instanceof Error&&!(e instanceof i.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=s(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message),e)}var l={error:function(e,t){t=s(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=l},18203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let n=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let r=new URL(null!==(t=e)&&void 0!==t?t:n),o=("/"===r.pathname?n.pathname:r.pathname).replace(/\/$/,""),i=`${r.origin}${o}`;return{origin:r.origin,host:r.host,path:o,base:i,toString:()=>i}}},70314:function(e,t,n){e.exports=n(67203)},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(54134)}])},54134:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return z}});var r=n(52322),o=n(9635),i=n(35632);n(64595),n(11267),n(34112),n(92445),n(94438);var a=n(63935),s=n(2784),l=n(20324),c=n(70314),u=n.n(c),d=n(96577),f=n.n(d),p=n(39097),h=n.n(p),m=function(){var e,t;let{publicRuntimeConfig:n}=u()(),{layout:i}=(0,s.useContext)(o.Theme.context.ThemeContext);return(0,r.jsx)(h(),{href:"/","aria-label":"Home",className:"flex-shrink-0",children:(0,r.jsx)("div",{className:(0,l.m6)(null==i?void 0:null===(e=i.header)||void 0===e?void 0:e.logo),children:(0,r.jsx)(f(),{src:(null==i?void 0:null===(t=i.header)||void 0===t?void 0:t.logoFileName)||"/assets/logo.svg",priority:!0,alt:n.siteName,fill:!0,sizes:"200px",className:"object-contain",unoptimized:!0})})})},g=(e,t)=>{(0,s.useEffect)(()=>{let n=n=>{let r=null==e?void 0:e.current;!r||r.contains((null==n?void 0:n.target)||null)||t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t])};let v=()=>{let e=(0,s.useRef)(!1);return[()=>{if("undefined"==typeof document)return;let t=document.documentElement,{body:n}=document;if(!n||!n.style||e.current)return;let r=window.innerWidth-t.clientWidth,o=parseInt(window.getComputedStyle(n).getPropertyValue("padding-right"))||0;t.style.position="relative",n.style.position="relative",t.style.overflow="hidden",n.style.overflow="hidden",n.style.paddingRight="".concat(o+r,"px"),e.current=!0},()=>{if("undefined"==typeof document)return;let t=document.documentElement,{body:n}=document;n&&n.style&&e.current&&(t.style.position="",t.style.overflow="",n.style.position="",n.style.overflow="",n.style.paddingRight="",e.current=!1)}]};var y=n(34398),b=function(e){var t,n,i,a,c,u,d,f,p;let{onToggle:h,...m}=e,[b,w]=(0,s.useState)(!1),[x,C]=v(),k=(0,s.useRef)();g(k,()=>{setTimeout(()=>{w(!1),h(!1),C()},100)}),(0,s.useEffect)(()=>{b?x():C()},[C,x,b]);let{layout:S}=(0,s.useContext)(o.Theme.context.ThemeContext);return(0,r.jsx)("div",{...m,children:(0,r.jsxs)("button",{onClick:()=>{let e=!b;w(e),h(e)},className:(0,l.m6)(null==S?void 0:null===(i=S.header)||void 0===i?void 0:null===(n=i.navigation)||void 0===n?void 0:null===(t=n.mobile)||void 0===t?void 0:t.wrapper),ref:k,children:[b?(0,r.jsx)(y.eSQ,{size:24,className:(0,l.m6)(null==S?void 0:null===(u=S.header)||void 0===u?void 0:null===(c=u.navigation)||void 0===c?void 0:null===(a=c.mobile)||void 0===a?void 0:a.closeIcon)}):(0,r.jsx)(y.QsJ,{size:24,className:(0,l.m6)(null==S?void 0:null===(p=S.header)||void 0===p?void 0:null===(f=p.navigation)||void 0===f?void 0:null===(d=f.mobile)||void 0===d?void 0:d.menuIcon)}),(0,r.jsx)("span",{className:"hidden sm:flex",children:"Menu"})]})})},w=n(10762),x=n(23848),C=function(e){var t,n,i,c,u,d,f,p,m,g,v,b,C,k;let{data:S,status:E}=(0,x.useSession)(),{layout:T}=(0,s.useContext)(o.Theme.context.ThemeContext),{labels:A,config:M}=(0,o.qD)(),N=[{title:"Mijn gegevens",url:"/account"},{title:"Mijn reparaties",url:"/account/reparaties"}];return((null==M?void 0:M.accountDisablePaymentOverview)!==!0&&N.push({title:"Mijn betalingen",url:"/account/betalingen"}),"unauthenticated"===E||"loading"===E)?(0,r.jsx)("div",{...e,children:(0,r.jsxs)(h(),{href:"/account/inloggen",className:(0,l.m6)(null==T?void 0:null===(g=T.header)||void 0===g?void 0:null===(m=g.navigation)||void 0===m?void 0:null===(p=m.controls)||void 0===p?void 0:p.text),children:[(0,r.jsx)(y.s60,{size:22,className:(0,l.m6)(null==T?void 0:null===(C=T.header)||void 0===C?void 0:null===(b=C.navigation)||void 0===b?void 0:null===(v=b.controls)||void 0===v?void 0:v.icon)}),null!==(k=null==A?void 0:A.myAccountSignIn)&&void 0!==k?k:"Inloggen"]})}):(0,r.jsx)("div",{...e,children:(0,r.jsxs)(w.J,{className:"relative",children:[(0,r.jsxs)(w.J.Button,{className:(0,l.m6)(null==T?void 0:null===(i=T.header)||void 0===i?void 0:null===(n=i.navigation)||void 0===n?void 0:null===(t=n.controls)||void 0===t?void 0:t.text),onTouchStart:e=>e.stopPropagation(),children:[(0,r.jsx)(y.s60,{size:22,className:(0,l.m6)(null==T?void 0:null===(d=T.header)||void 0===d?void 0:null===(u=d.navigation)||void 0===u?void 0:null===(c=u.controls)||void 0===c?void 0:c.icon)}),"authenticated"===E?"Account":"Inloggen"]}),(0,r.jsx)(a.u,{as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,r.jsx)(w.J.Panel,{className:"absolute right-0 mt-2 w-72 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:(0,r.jsxs)("div",{className:"m-4 flex flex-col gap-4",children:[(0,r.jsxs)("h2",{className:"font-display text-primary-500 text-xl",children:["Hallo ",S&&(null===(f=S.user)||void 0===f?void 0:f.name)]}),(0,r.jsx)("hr",{}),(0,r.jsx)("ul",{className:"flex flex-col gap-2",children:N.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsxs)(h(),{href:e.url,className:"text-primary-500 hover:text-primary-300 group flex items-center gap-2 text-sm transition-colors duration-200",children:[(0,r.jsx)(y.nzV,{className:"text-primary-300 group-hover:text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0"}),e.title]})},t))}),(0,r.jsx)("hr",{}),(0,r.jsxs)("button",{onClick:()=>(0,x.signOut)(),className:"text-primary-500 hover:text-primary-300 group flex items-center gap-2 text-sm transition-colors duration-200",children:[(0,r.jsx)(y.nzV,{className:"text-primary-300 group-hover:text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0"}),"Uitloggen"]})]})})})]})})},k=n(6597),S=n(5632),E=function(e){var t,n,i,a;let{title:c,url:u}=e,{layout:d}=(0,s.useContext)(o.Theme.context.ThemeContext),f=(0,S.useRouter)().asPath.startsWith((0,k.As)(u));return(0,r.jsx)(h(),{href:(0,k.As)(u),className:(0,l.m6)(null==d?void 0:null===(n=d.header)||void 0===n?void 0:null===(t=n.navigation)||void 0===t?void 0:t.link,f&&(null==d?void 0:null===(a=d.header)||void 0===a?void 0:null===(i=a.navigation)||void 0===i?void 0:i.linkActive)),children:c})},T=function(e){var t,n,i,a,c,u;let{layout:d}=(0,s.useContext)(o.Theme.context.ThemeContext);return(0,r.jsx)("div",{...e,children:(0,r.jsxs)(h(),{href:"/zoeken",className:(0,l.m6)(null==d?void 0:null===(i=d.header)||void 0===i?void 0:null===(n=i.navigation)||void 0===n?void 0:null===(t=n.controls)||void 0===t?void 0:t.text),children:[(0,r.jsx)(y.Qcu,{size:22,className:(0,l.m6)(null==d?void 0:null===(u=d.header)||void 0===u?void 0:null===(c=u.navigation)||void 0===c?void 0:null===(a=c.controls)||void 0===a?void 0:a.icon)}),"Zoeken"]})})},A=n(40489),M=function(e){var t,n,i,a,c,u,d,f,p,m,g,v,b,w,x,k,S,M,N,O,I,L,R,j,P,_,D,z,B,H,F,V,$,U,q,Z,W,J,G,K,Y,X,Q,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed;let{isMobile:ef=!1,...ep}=e,{data:eh}=(0,o.qD)(),{layout:em}=(0,s.useContext)(o.Theme.context.ThemeContext),eg=(null==em?void 0:null===(n=em.header)||void 0===n?void 0:null===(t=n.navigation)||void 0===t?void 0:t.mode)||"default",ev=null!==(eo=null==em?void 0:null===(a=em.header)||void 0===a?void 0:null===(i=a.navigation)||void 0===i?void 0:i.showCustomLink)&&void 0!==eo&&eo,ey=null!==(ei=null==em?void 0:null===(u=em.header)||void 0===u?void 0:null===(c=u.navigation)||void 0===c?void 0:c.supportButton)&&void 0!==ei&&ei;return(0,r.jsxs)("nav",{"aria-label":"Site navigatie",role:"navigation",className:(0,A.Z)("flex w-full",ep.className,{"gap-8":!ef,"container mx-auto flex-col gap-16 py-8":ef}),children:[(0,r.jsx)("ul",{className:(0,A.Z)("gap-8",{"flex flex-col":ef,"hidden xl:flex items-center":!ef}),children:(null==eh?void 0:eh.header)&&(null===(f=eh.header)||void 0===f?void 0:null===(d=f.links)||void 0===d?void 0:d.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsx)(E,{title:e.title||"",url:e.url})},t)))}),(0,r.jsxs)("ul",{className:(0,A.Z)("gap-8",{"flex flex-col md:hidden":ef,"hidden md:ml-auto md:flex":!ef}),children:[(0,r.jsx)("li",{children:ev&&ev.show&&(0,r.jsxs)(h(),{href:null!==(ea=null==em?void 0:null===(g=em.header)||void 0===g?void 0:null===(m=g.navigation)||void 0===m?void 0:null===(p=m.showCustomLink)||void 0===p?void 0:p.linkUrl)&&void 0!==ea?ea:"#",className:(0,l.m6)(null==em?void 0:null===(w=em.header)||void 0===w?void 0:null===(b=w.navigation)||void 0===b?void 0:null===(v=b.controls)||void 0===v?void 0:v.text),children:[(0,r.jsx)(y.Azx,{size:22,className:(0,l.m6)(null==em?void 0:null===(S=em.header)||void 0===S?void 0:null===(k=S.navigation)||void 0===k?void 0:null===(x=k.controls)||void 0===x?void 0:x.icon)}),null!==(es=null==em?void 0:null===(O=em.header)||void 0===O?void 0:null===(N=O.navigation)||void 0===N?void 0:null===(M=N.showCustomLink)||void 0===M?void 0:M.linkText)&&void 0!==es?es:"#"]})}),(0,r.jsx)("li",{children:ey&&ey.show&&(0,r.jsx)(h(),{href:null!==(el=null==em?void 0:null===(R=em.header)||void 0===R?void 0:null===(L=R.navigation)||void 0===L?void 0:null===(I=L.supportButton)||void 0===I?void 0:I.linkUrl)&&void 0!==el?el:"#",className:(0,l.m6)(null==em?void 0:null===(_=em.header)||void 0===_?void 0:null===(P=_.navigation)||void 0===P?void 0:null===(j=P.controls)||void 0===j?void 0:j.text,null==em?void 0:null===(B=em.header)||void 0===B?void 0:null===(z=B.navigation)||void 0===z?void 0:null===(D=z.supportButton)||void 0===D?void 0:D.button),children:null!==(ec=null==em?void 0:null===(V=em.header)||void 0===V?void 0:null===(F=V.navigation)||void 0===F?void 0:null===(H=F.supportButton)||void 0===H?void 0:H.linkText)&&void 0!==ec?ec:"Support"})}),(0,r.jsx)("li",{children:(0,r.jsx)(T,{})}),(0,r.jsxs)("li",{children:["default"===eg&&(0,r.jsx)(C,{}),"noLogin"===eg&&(0,r.jsxs)(h(),{href:null!==(eu=null==em?void 0:null===(q=em.header)||void 0===q?void 0:null===(U=q.navigation)||void 0===U?void 0:null===($=U.noLogin)||void 0===$?void 0:$.linkUrl)&&void 0!==eu?eu:"#",className:(0,l.m6)(null==em?void 0:null===(J=em.header)||void 0===J?void 0:null===(W=J.navigation)||void 0===W?void 0:null===(Z=W.controls)||void 0===Z?void 0:Z.text),target:(null==em?void 0:null===(Y=em.header)||void 0===Y?void 0:null===(K=Y.navigation)||void 0===K?void 0:null===(G=K.noLogin)||void 0===G?void 0:G.openInNewTab)?"_blank":"_self",children:[(0,r.jsx)(y.s60,{size:22,className:(0,l.m6)(null==em?void 0:null===(ee=em.header)||void 0===ee?void 0:null===(Q=ee.navigation)||void 0===Q?void 0:null===(X=Q.controls)||void 0===X?void 0:X.icon)}),null!==(ed=null==em?void 0:null===(er=em.header)||void 0===er?void 0:null===(en=er.navigation)||void 0===en?void 0:null===(et=en.noLogin)||void 0===et?void 0:et.linkText)&&void 0!==ed?ed:"Mijn gegevens"]})]})]})]})},N=n(62053),O=function(e){var t,n,i,a,c,u;let{data:d}=e,{layout:f}=(0,s.useContext)(o.Theme.context.ThemeContext),[p,m]=(0,s.useState)(!0),g=()=>{let e=localStorage.getItem("closedNotifications"),t=[...e?JSON.parse(e):[],d.title];localStorage.setItem("closedNotifications",JSON.stringify(t))},v=()=>{m(!1)};return((0,s.useEffect)(()=>{let e=localStorage.getItem("closedNotifications"),t=e?JSON.parse(e):[],n=d.title;t.includes(n)&&v()},[d.title]),p)?(0,r.jsx)("div",{className:(0,l.m6)(null==f?void 0:null===(n=f.header)||void 0===n?void 0:null===(t=n.notification)||void 0===t?void 0:t.container),children:(0,r.jsxs)("div",{className:"container mx-auto relative flex row gap-2",children:[d.url?(0,r.jsxs)(h(),{href:(0,k.As)(d.url),target:d.openNewTab?"_blank":void 0,className:(0,l.m6)(null==f?void 0:null===(a=f.header)||void 0===a?void 0:null===(i=a.notification)||void 0===i?void 0:i.text),onClick:g,children:[(0,r.jsx)("p",{children:e.data.title}),(0,r.jsx)(y.nzV,{size:"18",className:(0,l.m6)(null==f?void 0:null===(u=f.header)||void 0===u?void 0:null===(c=u.notification)||void 0===c?void 0:c.icon)})]}):(0,r.jsx)("p",{children:e.data.title}),(0,r.jsx)("button",{className:"px-3 cursor-pointer",onClick:()=>{v(),g()},children:(0,r.jsx)(N.oHP,{size:18})})]})}):null},I=function(){var e,t,n,i,c,u,d,f,p,h;let[g,v]=(0,s.useState)(!1),{data:y}=(0,o.qD)(),{layout:w}=(0,s.useContext)(o.Theme.context.ThemeContext),{components:x}=(0,s.useContext)(o.Theme.context.ThemeContext),C=null==y?void 0:y.header;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("header",{id:"site-header",role:"banner",className:(0,l.m6)(null==w?void 0:null===(t=w.header)||void 0===t?void 0:null===(e=t.wrapper)||void 0===e?void 0:e.base,g&&(null==w?void 0:null===(i=w.header)||void 0===i?void 0:null===(n=i.wrapper)||void 0===n?void 0:n.navOpen)),children:[(0,r.jsx)("div",{className:(0,l.m6)(null==x?void 0:null===(c=x.siteHeader)||void 0===c?void 0:c.container),children:(0,r.jsxs)("div",{className:(0,l.m6)(null==x?void 0:null===(u=x.siteHeader)||void 0===u?void 0:u.wrapper),children:[(0,r.jsx)(m,{}),(0,r.jsx)(M,{className:(0,l.m6)(null==w?void 0:null===(f=w.header)||void 0===f?void 0:null===(d=f.navigation)||void 0===d?void 0:d.wrapper)}),(0,r.jsx)(b,{className:"ml-auto mt-[6px] block xl:hidden",onToggle:e=>v(e)})]})}),(null==C?void 0:C.notifications)&&(null==C?void 0:null===(p=C.notifications)||void 0===p?void 0:p.length)>0&&(null==C?void 0:null===(h=C.notifications)||void 0===h?void 0:h.map((e,t)=>{if(!e.startDate)return(0,r.jsx)(O,{data:e},t);if(e.startDate||e.endDate){let n=new Date(e.startDate),o=new Date;if(o>=n)return e.endDate&&!(o<=new Date(e.endDate))?null:(0,r.jsx)(O,{data:e},t)}}))]}),(0,r.jsx)(a.u,{show:g,enter:"transition duration-200 ease-in-out",enterFrom:"-translate-y-20 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition duration-100 ease-in-out",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-20 opacity-0",className:"fixed inset-x-0 bottom-0 top-20 z-50 border-t border-white bg-white shadow-xl",children:(0,r.jsx)(M,{isMobile:!0})})]})},L=function(e){var t,n,i,a;let{heading:c,text:d}=e,{publicRuntimeConfig:f}=u()(),{layout:p}=(0,s.useContext)(o.Theme.context.ThemeContext);return(0,r.jsxs)("div",{className:"flex h-full flex-col",children:[(0,r.jsx)("div",{className:(0,l.m6)(null==p?void 0:null===(n=p.footer)||void 0===n?void 0:null===(t=n.logo)||void 0===t?void 0:t.container),children:(0,r.jsx)("img",{src:"/assets/".concat(null==p?void 0:null===(a=p.footer)||void 0===a?void 0:null===(i=a.logo)||void 0===i?void 0:i.logoFileName),alt:f.siteName,sizes:"200px",className:"object-contain"})}),c&&(0,r.jsx)("h2",{className:"font-display mb-4 text-xl font-semibold",children:c}),d&&(0,r.jsx)(k.UI.RichText,{className:"leading-relaxed",data:{content:d}})]})},R=function(e){var t,n;let{data:i}=e,{layout:a}=(0,s.useContext)(o.Theme.context.ThemeContext);return(0,r.jsx)(h(),{href:(0,k.As)(i.url),className:(0,l.m6)(null==a?void 0:null===(n=a.footer)||void 0===n?void 0:null===(t=n.links)||void 0===t?void 0:t.link),children:null==i?void 0:i.title})},j=function(e){let{data:t}=e,n=(0,s.useId)(),{layout:i}=(0,s.useContext)(o.Theme.context.ThemeContext);return(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{id:n,className:"font-display mb-4 text-xl font-semibold","aria-label":t.title,children:t.title}),(0,r.jsx)("nav",{role:"navigation",className:"flex flex-col gap-1","aria-labelledby":n,children:(null==t?void 0:t.links)&&t.links.map((e,t)=>{if((null==e?void 0:e.$component)==="link")return(0,r.jsx)(R,{data:e},t);if((null==e?void 0:e.$component)==="richText"){var n,o;return(0,r.jsx)(k.UI.RichText,{data:e,className:(0,l.m6)(null==i?void 0:null===(o=i.footer)||void 0===o?void 0:null===(n=o.links)||void 0===n?void 0:n.textField)},t)}})})]})},P=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("svg",{className:"form-element-1 h-0 w-0 absolute",children:(0,r.jsx)("clipPath",{id:"form-element-1",clipPathUnits:"objectBoundingBox",children:(0,r.jsx)("path",{d:"m0.687,0 C0.498,0.009,0.273,0.12,0.143,0.259 C0.039,0.37,-0.027,0.531,0.011,0.68 c0.048,0.185,0.241,0.295,0.425,0.316 c0.169,0.019,0.355,-0.025,0.463,-0.16 c0.109,-0.136,0.115,-0.332,0.083,-0.506 C0.955,0.174,0.86,-0.007,0.687,0"})})}),(0,r.jsx)("svg",{className:"form-element-2 h-0 w-0 absolute",children:(0,r.jsx)("clipPath",{id:"form-element-2",clipPathUnits:"objectBoundingBox",children:(0,r.jsx)("path",{d:"m0.451,0 c-0.112,0,-0.214,0.042,-0.298,0.148 C-0.009,0.347,-0.078,0.6,0.127,0.798 c0.113,0.109,0.272,0.167,0.431,0.194 c0.029,0.005,0.059,0.009,0.089,0.009 c0.038,0,0.075,-0.006,0.108,-0.024 c0.053,-0.029,0.083,-0.083,0.107,-0.136 c0.039,-0.082,0.073,-0.166,0.101,-0.251 c0.027,-0.081,0.048,-0.168,0.03,-0.251 c-0.026,-0.118,-0.129,-0.211,-0.245,-0.263 C0.644,0.029,0.543,0,0.451,0"})})}),(0,r.jsx)("svg",{className:"form-element-3 h-0 w-0 absolute",children:(0,r.jsx)("clipPath",{id:"form-element-3",clipPathUnits:"objectBoundingBox",children:(0,r.jsx)("path",{d:"m0.035,0.667 c0.02,0.029,0.047,0.054,0.074,0.077 c0.068,0.058,0.139,0.112,0.213,0.161 c0.07,0.047,0.146,0.09,0.228,0.095 c0.116,0.007,0.227,-0.066,0.302,-0.163 c0.145,-0.189,0.209,-0.378,0.075,-0.571 c-0.003,-0.004,-0.005,-0.007,-0.008,-0.011 C0.768,0.049,0.547,-0.083,0.315,0.059 C0.188,0.137,0.097,0.273,0.036,0.417 c-0.025,0.06,-0.047,0.127,-0.03,0.19 c0.006,0.022,0.016,0.042,0.029,0.06"})})})]})},_=function(){var e,t,n,i,a,c,d,f,p,h,m,g,v;let{data:y}=(0,o.qD)(),{layout:b}=(0,s.useContext)(o.Theme.context.ThemeContext),{publicRuntimeConfig:w}=u()();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P,{}),(0,r.jsxs)("footer",{role:"contentinfo",className:(0,l.m6)(null==b?void 0:null===(e=b.footer)||void 0===e?void 0:e.container),children:[(0,r.jsx)("div",{className:"container mx-auto py-16",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 md:flex-row",children:[(0,r.jsxs)("div",{children:[y&&(0,r.jsx)(L,{text:y.footer.description})," "]}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-2 md:gap-16",children:(null==y?void 0:null===(n=y.footer)||void 0===n?void 0:null===(t=n.links)||void 0===t?void 0:t.length)>0&&y.footer.links.map((e,t)=>(0,r.jsx)(j,{data:e},t))})})]})}),(0,r.jsx)("div",{className:(0,l.m6)(null==b?void 0:null===(a=b.footer)||void 0===a?void 0:null===(i=a.links)||void 0===i?void 0:i.container),children:(0,r.jsx)("div",{className:(0,l.m6)(null==b?void 0:null===(d=b.footer)||void 0===d?void 0:null===(c=d.copyright)||void 0===c?void 0:c.container),children:(0,r.jsxs)("div",{className:"flex flex-wrap justify-between",children:[y&&(0,r.jsx)("div",{className:"flex items-center gap-8 py-2",children:(null==y?void 0:null===(p=y.footer)||void 0===p?void 0:null===(f=p.extraLinks)||void 0===f?void 0:f.length)>0&&y.footer.extraLinks.map((e,t)=>(0,r.jsx)(R,{data:e},t))}),(0,r.jsx)("div",{className:"py-2",children:(0,r.jsxs)("div",{className:"flex justify-center gap-2",children:[(null==y?void 0:null===(h=y.footer)||void 0===h?void 0:h.socials)&&(null===(m=y.footer.socials)||void 0===m?void 0:m.map((e,t)=>(0,r.jsx)(k.Z0,{data:e},t))),(0,r.jsx)("div",{className:"flex items-center border-l-2 pl-5 ",children:(0,r.jsxs)("span",{className:(0,l.m6)(null==b?void 0:null===(v=b.footer)||void 0===v?void 0:null===(g=v.copyright)||void 0===g?void 0:g.content),children:["\xa9 ",w.siteName]})})]})})]})})})]})]})};function D(e){return(0,r.jsx)(o.Zt,{...e,config:{theme:i.Z,components:{header:I,footer:_}}})}D.getInitialProps=o.lr;var z=D},35632:function(e,t,n){"use strict";let{theme:r}=n(9635).Theme,o={...r,button:{...r.button},components:{...r.components,personsList:{title:"mb-2 font-display text-2xl text-ww-dark-blue-600",itemsWrapper:"flex flex-col divide-y divide-gray-300 personsList",avatar:"w-40 h-40 avatar"},hero:{...r.components.hero,navigation:{...r.components.hero.navigation,wrapper:"".concat(r.components.hero.navigation.wrapper," lg:grid-cols-5 lg:gap-2"),button:"".concat(r.components.hero.navigation.button," lg:text-[100%]")}},socialButton:{...r.components.socialButton,button:"".concat(r.components.socialButton.button," bg-primary-100 text-black hover:bg-primary-200 hover:text-black")}},layout:{...r.layout,article:{...r.layout.article,image:"".concat(r.layout.article.image," xl:h-[600px]")},header:{...r.layout.header,navigation:{...r.layout.header.navigation,mode:"noLogin",noLogin:{linkText:"Mijn Woongroen",linkUrl:"account/inloggen"}}},footer:{...r.layout.footer,logo:{...r.layout.footer.logo,container:"".concat(r.layout.footer.logo.container," h-[145px]")},container:"".concat(r.layout.footer.container," bg-primary-50 text-black"),links:{...r.layout.footer.links,container:"".concat(r.layout.footer.links.container," bg-primary-100 text-black"),link:"".concat(r.layout.footer.links.link," text-black"),textField:"prose-xs text-sm"},copyright:{...r.layout.footer.copyright,content:"".concat(r.layout.footer.copyright.content," text-black")}}}};t.Z=o},6597:function(e,t,n){"use strict";n.d(t,{Kr:function(){return R},Z0:function(){return r.Z},UI:function(){return L},As:function(){return I.A}});var r=n(53093),o=n(52322),i=n(4538),a=n(2784),s=n(34398),l=n(9635),c=n(15527),u=n(98269),d=n(97357),f=n(74654),p=n(18547),h=n(47463),m=n(36906),g=n(65530),v=n(40489),y=n(20324),b=n(70314),w=n.n(b),x=function(e){var t,n,r,i,s,c,u,d,f,p;let{index:h,data:m,renderItem:g,isFirst:b=!1,isLast:x=!1}=e,{components:C}=(0,a.useContext)(l.Theme.context.ThemeContext),{publicRuntimeConfig:k}=w()();return(0,o.jsxs)("div",{className:(0,v.Z)(null===(t=C.stepList)||void 0===t?void 0:t.step.wrapper,{"bg-green":b,"bg-red":x}),children:[(0,o.jsx)("div",{className:(0,y.m6)(!x&&(null===(n=C.stepList)||void 0===n?void 0:n.step.dashes.middle),x&&(null===(r=C.stepList)||void 0===r?void 0:r.step.dashes.last),b&&(null===(i=C.stepList)||void 0===i?void 0:i.step.dashes.first),null===(s=C.stepList)||void 0===s?void 0:s.customLine),children:(0,o.jsx)("span",{className:(0,y.m6)(!x&&(null===(c=C.stepList)||void 0===c?void 0:c.step.number.middle),x&&(null===(u=C.stepList)||void 0===u?void 0:u.step.number.last),b&&(null===(d=C.stepList)||void 0===d?void 0:d.step.number.first),null===(f=C.stepList)||void 0===f?void 0:f.customNumber),children:h})}),(0,o.jsx)("div",{className:(0,y.m6)(null===(p=C.stepList)||void 0===p?void 0:p.customWrapper),children:g(m)})]})},C=n(96178),k=n(45380),S=n(60214),E=n(39097),T=n.n(E),A=n(3668),M=n(74757),N=n(62709),O=n(10332);n(89509);var I=n(4556);let L={DynamicContent:M.Z,FeaturedImage:u.default,Hero:d.default,Socials:f.default,AccordionList:p.default,Video:h.default,RichText:m.default,LinkList:g.default,StepList:function(e){var t;let{data:n,renderItem:r}=e,{steps:i}=n,{components:s}=(0,a.useContext)(l.Theme.context.ThemeContext);return(0,o.jsx)("ol",{className:null===(t=s.stepList)||void 0===t?void 0:t.wrapper,children:i.map((e,t)=>{var n;return(0,o.jsx)("li",{className:null===(n=s.stepList)||void 0===n?void 0:n.stepTitle,children:(0,o.jsx)(x,{index:t+1,isFirst:0===t,isLast:t+1===i.length,data:e,renderItem:r})},e.title)})})},Quote:C.default,InformationBanner:k.default,Media:S.default,NewsOverviewCard:c.Z,Link:function(e){var t;let{data:n,className:r="text-primary-500 hover:text-primary-300 transition-colors duration-200"}=e,{textLink:i}=(0,a.useContext)(l.Theme.context.ThemeContext);if(null===(t=n.url)||void 0===t?void 0:t.url)return(0,o.jsx)(T(),{href:l.P6.parseLink(n.url),target:void 0===n.openNewTab?n.url.target:n.openNewTab?"_blank":"_self",className:(0,y.m6)(i,"py-2",r),children:n.title})},CallToAction:A.default,AlbumModal:function(e){let{images:t,openOnImage:n=0,open:r,onClose:c}=e,[u,d]=(0,a.useState)(n),f=e=>{var t,n;d(e),null===(n=p.current)||void 0===n||n.scrollTo({left:e*(null===(t=p.current)||void 0===t?void 0:t.clientWidth),behavior:"smooth"})};(0,a.useEffect)(()=>{let e=e=>{"ArrowRight"===e.key&&h(),"ArrowLeft"===e.key&&m()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[u]),(0,a.useEffect)(()=>{f(n)},[n]);let p=(0,a.useRef)(null),h=()=>{u===t.length-1?f(0):f(u+1)},m=()=>{0===u?f(t.length-1):f(u-1)};return(0,o.jsxs)(i.V,{open:r,onClose:c,className:"relative z-[9999999]",children:[(0,o.jsx)("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),(0,o.jsx)("div",{className:"fixed inset-0 flex items-center justify-center",children:(0,o.jsxs)(i.V.Panel,{className:"flex h-full w-full flex-col bg-white",children:[(0,o.jsx)("header",{className:"flex justify-end",children:(0,o.jsx)("button",{"aria-label":"Sluiten",onClick:c,className:"m-2 p-2",children:(0,o.jsx)(s.eSQ,{size:32})})}),(0,o.jsx)("div",{ref:p,className:"flex-grow max-w-full overflow-hidden overflow-x-scroll relative scroll-smooth snap-x snap-mandatory w-full no-scrollbar",children:(0,o.jsx)("ul",{className:"h-full list-style-none grid",style:{scrollSnapPointsX:"repeat(100vw)",width:100*t.length+"%",gridTemplateColumns:"repeat(".concat(t.length,", minmax(0, 1fr))")},children:t.map(e=>e&&(0,o.jsx)("li",{className:"h-full snap-normal md:p-10",children:(0,o.jsx)(l.UI.Image,{file:e,className:"w-full h-full ",mode:"contain"})},e.id))})}),(0,o.jsxs)("footer",{className:"flex items-center justify-center gap-4 p-4",children:[(0,o.jsx)("button",{onClick:m,children:(0,o.jsx)(s.YG0,{size:32})}),(0,o.jsxs)("span",{className:"",children:[u+1,"/",null==t?void 0:t.length]}),(0,o.jsx)("button",{onClick:h,children:(0,o.jsx)(s.nzV,{size:32})})]})]})})]})},StoriesOverview:function(e){let{data:t,imageLeft:n=!1}=e,{title:r,slug:i}=t;return(0,o.jsx)(O.Z,{data:t,children:(0,o.jsxs)("div",{className:"flex h-full flex-col ".concat(n&&"lg:flex-row"),children:[(0,o.jsx)(O.Z.Figure,{className:"relative h-[200px] w-auto ".concat(n&&"lg:h-auto lg:w-1/4")}),(0,o.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,o.jsx)(O.Z.DateTime,{}),(0,o.jsx)(T(),{href:"/bewonersverhalen/".concat(i),title:'Lees meer over "'.concat(r,'"'),"aria-label":'Lees meer over "'.concat(r,'"'),children:(0,o.jsx)(O.Z.Title,{})}),(0,o.jsx)(O.Z.Descriptions,{}),(0,o.jsx)(O.Z.ReadMore,{})]})]})})},NewsCard:O.Z},R={components:N.Z}},18547:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(52322),o=n(9635),i=n(2784),a=n(20324),s=n(74757),l=n(8485),c=n(40489),u=n(54613),d=function(e){let{data:t,children:n}=e,{components:s}=(0,i.useContext)(o.Theme.context.ThemeContext);return(0,r.jsx)(l.p,{children:e=>{var o,i,d,f,p,h,m,g;let{open:v}=e;return(0,r.jsxs)("div",{className:(0,a.m6)(null===(i=s.accordionList)||void 0===i?void 0:null===(o=i.listItem)||void 0===o?void 0:o.container),children:[(0,r.jsxs)(l.p.Button,{className:(0,a.m6)(null===(f=s.accordionList)||void 0===f?void 0:null===(d=f.listItem)||void 0===d?void 0:d.disclosureButton),children:[(0,r.jsx)("span",{children:t.title}),(0,r.jsx)(u.Tfp,{size:24,className:(0,c.Z)((0,a.m6)(null===(h=s.accordionList)||void 0===h?void 0:null===(p=h.listItem)||void 0===p?void 0:p.arrow),{"rotate-[-90deg] transform":v})})]}),(0,r.jsx)(l.p.Panel,{className:(0,a.m6)(null===(g=s.accordionList)||void 0===g?void 0:null===(m=g.listItem)||void 0===m?void 0:m.disclosurePanel),children:n})]})}})},f=n(62709),p=n(6597),h=n(89509);function m(e){var t,n,l,c,u;let{$data:h,title:m}=e.data,{heading:g,components:v}=(0,i.useContext)(o.Theme.context.ThemeContext),y=h||[];return(0,r.jsxs)("div",{className:(0,a.m6)(null==v?void 0:null===(t=v.accordionList)||void 0===t?void 0:t.list),children:[m&&(0,r.jsx)("h2",{className:(0,a.m6)(null==g?void 0:g.base,null==g?void 0:null===(n=g.size)||void 0===n?void 0:n.h3,null==g?void 0:null===(l=g.color)||void 0===l?void 0:l.primary,null==g?void 0:null===(c=g.weight)||void 0===c?void 0:c.semiBold,null==v?void 0:null===(u=v.accordionList)||void 0===u?void 0:u.title),children:m}),null==y?void 0:y.map((e,t)=>(0,r.jsx)(d,{data:e,children:"knowledgeArticle"===e.$component?(0,r.jsx)(p.UI.RichText,{withType:!0,data:e.content}):(0,r.jsx)(s.Z,{components:f.Z,content:e.content})},t))]})}let g=async e=>{var t;let{data:n}=e,r=null===(t=n.items)||void 0===t?void 0:t.map(async e=>{if("knowledgeArticle"!==e.$component)return Promise.resolve(e);{let t=await h.H2("knowledgeArticle",e.knowledgeArticle.slug),n=""!==e.title?e.title:null==t?void 0:t.title;return{$component:"knowledgeArticle",...t,title:n}}});try{return await Promise.all(r)||[]}catch(e){return console.error("Error: ".concat(e)),[]}};m.loader=g,m.ListItem=d;var v=m},72499:function(e,t,n){"use strict";var r=n(52322),o=n(20324),i=n(2784),a=n(9635),s=n(39097),l=n.n(s),c=n(4556),u=n(36906);t.Z=function(e){var t,n,s,d,f,p,h,m,g;let{data:v}=e,{title:y,description:b,url:w}=v,{button:x,heading:C,components:k}=(0,i.useContext)(a.Theme.context.ThemeContext);return(0,r.jsxs)("div",{className:(0,o.m6)(null==k?void 0:null===(t=k.cta)||void 0===t?void 0:t.container),children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:(0,o.m6)(null==k?void 0:null===(n=k.cta)||void 0===n?void 0:n.title,null==C?void 0:C.base,null==C?void 0:null===(s=C.color)||void 0===s?void 0:s.primary,null==C?void 0:null===(d=C.size)||void 0===d?void 0:d.h4,null==C?void 0:null===(f=C.weight)||void 0===f?void 0:f.semiBold),children:y}),b&&("string"==typeof b?(0,r.jsx)("p",{className:(0,o.m6)(null==k?void 0:null===(p=k.cta)||void 0===p?void 0:p.description),children:b}):(0,r.jsx)(u.default,{data:{content:b}}))]}),w.label&&("media"===w.type?(0,r.jsx)("a",{href:(0,c.A)(w),target:"_blank",className:(0,o.m6)(null==k?void 0:null===(m=k.cta)||void 0===m?void 0:m.ctaButton,null==x?void 0:x.base,null==x?void 0:null===(g=x.color)||void 0===g?void 0:g.primary),children:null==w?void 0:w.label}):(0,r.jsx)(l(),{href:(0,c.A)(w),target:w.target||"_self",className:(0,o.m6)(null==x?void 0:x.base,null==x?void 0:null===(h=x.color)||void 0===h?void 0:h.primary),children:null==w?void 0:w.label}))]})}},3668:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return r.Z}});var r=n(72499)},74757:function(e,t,n){"use strict";var r=n(52322);t.Z=function(e){let{content:t,components:n,wrapper:o}=e;if(!t)return null;let i={...n},a=e=>{let{$component:t,...n}=e,a=i[t];return a?o?(0,r.jsx)(o,{child:t,children:(0,r.jsx)(a,{data:n})}):(0,r.jsx)(a,{data:n}):null};return(0,r.jsx)(r.Fragment,{children:Array.isArray(t)&&t.map((e,t)=>(0,r.jsx)(a,{...e},t))})}},62709:function(e,t,n){"use strict";var r=n(25237),o=n.n(r);let i={featuredImage:o()(()=>Promise.resolve().then(n.bind(n,98269)),{loadableGenerated:{webpack:()=>[98269]}}),featuredContent:o()(()=>n.e(9330).then(n.bind(n,49330)),{loadableGenerated:{webpack:()=>[49330]}}),hero:o()(()=>Promise.resolve().then(n.bind(n,97357)),{loadableGenerated:{webpack:()=>[97357]}}),socials:o()(()=>Promise.resolve().then(n.bind(n,74654)),{loadableGenerated:{webpack:()=>[74654]}}),accordionOverview:o()(()=>Promise.resolve().then(n.bind(n,18547)),{loadableGenerated:{webpack:()=>[18547]}}),externalVideo:o()(()=>Promise.resolve().then(n.bind(n,47463)),{loadableGenerated:{webpack:()=>[47463]}}),richText:o()(()=>Promise.resolve().then(n.bind(n,36906)),{loadableGenerated:{webpack:()=>[36906]}}),linkOverview:o()(()=>Promise.resolve().then(n.bind(n,65530)),{loadableGenerated:{webpack:()=>[65530]}}),quote:o()(()=>Promise.resolve().then(n.bind(n,96178)),{loadableGenerated:{webpack:()=>[96178]}}),informationBanner:o()(()=>Promise.resolve().then(n.bind(n,45380)),{loadableGenerated:{webpack:()=>[45380]}}),media:o()(()=>Promise.resolve().then(n.bind(n,60214)),{loadableGenerated:{webpack:()=>[60214]}}),callToAction:o()(()=>Promise.resolve().then(n.bind(n,3668)),{loadableGenerated:{webpack:()=>[3668]}}),categoryOverview:o()(()=>n.e(6964).then(n.bind(n,76964)),{loadableGenerated:{webpack:()=>[76964]}}),link:o()(()=>n.e(8070).then(n.bind(n,48070)),{loadableGenerated:{webpack:()=>[48070]}}),button:o()(()=>n.e(5209).then(n.bind(n,15209)),{loadableGenerated:{webpack:()=>[15209]}}),buttonOverview:o()(()=>n.e(2700).then(n.bind(n,72700)),{loadableGenerated:{webpack:()=>[72700]}}),album:o()(()=>Promise.all([n.e(8461),n.e(5226)]).then(n.bind(n,85226)),{loadableGenerated:{webpack:()=>[85226]}}),knowledgeArticle:o()(()=>n.e(7570).then(n.bind(n,67570)),{loadableGenerated:{webpack:()=>[67570]}}),knowledgeArticleOverview:o()(()=>n.e(7385).then(n.bind(n,87385)),{loadableGenerated:{webpack:()=>[87385]}}),personOverview:o()(()=>n.e(5121).then(n.bind(n,55121)),{loadableGenerated:{webpack:()=>[55121]}}),newsOverview:o()(()=>Promise.all([n.e(8934),n.e(3955),n.e(5485),n.e(8096),n.e(6385)]).then(n.bind(n,96385)),{loadableGenerated:{webpack:()=>[96385]}}),projectOverview:o()(()=>Promise.all([n.e(8934),n.e(3955),n.e(5485),n.e(8096),n.e(2476)]).then(n.bind(n,52476)),{loadableGenerated:{webpack:()=>[52476]}}),logos:o()(()=>n.e(6177).then(n.bind(n,86177)),{loadableGenerated:{webpack:()=>[86177]}}),downloadOverview:o()(()=>n.e(5754).then(n.bind(n,85754)),{loadableGenerated:{webpack:()=>[85754]}}),downloadItem:o()(()=>n.e(531).then(n.bind(n,90531)),{loadableGenerated:{webpack:()=>[90531]}}),carousel:o()(()=>Promise.all([n.e(8934),n.e(8461),n.e(3955),n.e(5485),n.e(8096),n.e(3745)]).then(n.bind(n,3745)),{loadableGenerated:{webpack:()=>[3745]}}),form:o()(()=>Promise.all([n.e(8934),n.e(3955),n.e(5485),n.e(8096),n.e(7075),n.e(8607)]).then(n.bind(n,98607)),{loadableGenerated:{webpack:()=>[98607]}}),externalVideoOverview:o()(()=>Promise.all([n.e(6525),n.e(5137)]).then(n.bind(n,25137)),{loadableGenerated:{webpack:()=>[25137]}}),cardOverview:o()(()=>n.e(9160).then(n.bind(n,9160)),{loadableGenerated:{webpack:()=>[9160]}}),contentSubscription:o()(()=>Promise.all([n.e(3955),n.e(4252)]).then(n.bind(n,74252)),{loadableGenerated:{webpack:()=>[74252]}}),bewonersverhalenOverview:o()(()=>Promise.all([n.e(8934),n.e(3955),n.e(5485),n.e(8096),n.e(9708)]).then(n.bind(n,59708)),{loadableGenerated:{webpack:()=>[59708]}}),postexWidget:o()(()=>n.e(3991).then(n.bind(n,93991)),{loadableGenerated:{webpack:()=>[93991]}})};t.Z=i},98269:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(52322),o=n(2784),i=n(20324),a=n(9635);let s=(0,o.createContext)(null);function l(e){var t,n;let{children:l,data:c,className:u="grid"}=e,{components:d}=(0,o.useContext)(a.Theme.context.ThemeContext);return c?(0,r.jsx)(s.Provider,{value:c,children:(0,r.jsx)("div",{className:(0,i.m6)(null==d?void 0:null===(t=d.featuredImage)||void 0===t?void 0:t.container,u,{left:"grid-cols-1 md:grid-cols-2",right:"grid-cols-1 md:grid-cols-2 md:flex-row-reverse",center:"grid-cols-1"}[(null==c?void 0:null===(n=c.imagePosition)||void 0===n?void 0:n.key)||"left"]),children:l})}):null}var c=function(e){var t,n;let{className:l="",aspect:c="aspect-[4/3]"}=e,u=(0,o.useContext)(s),{components:d}=(0,o.useContext)(a.Theme.context.ThemeContext);if(!u)throw Error("Figure component must be used within a CPFeaturedImage component");let f=a.P6.ensureArray(u.image)[0];return f?(0,r.jsx)("div",{className:{left:"order-first",right:"order-first md:order-last",center:"order-first"}[(null==u?void 0:null===(t=u.imagePosition)||void 0===t?void 0:t.key)||"left"],children:(0,r.jsxs)("figure",{className:"relative block ".concat(c),children:[(0,r.jsx)(a.UI.Image,{className:(0,i.m6)(null==d?void 0:null===(n=d.featuredImage)||void 0===n?void 0:n.image,l),file:f,ratio:"none",mode:"cover",focus:"auto",step:100}),(0,r.jsx)("figcaption",{className:"invisible",children:u.title})]})}):null},u=function(e){var t,n,l,c;let{...u}=e,d=(0,o.useContext)(s),{heading:f,components:p}=(0,o.useContext)(a.Theme.context.ThemeContext);if(!d)throw Error("Title component must be used within a CPFeaturedImage component");return(0,r.jsx)("h2",{...u,className:(0,i.m6)(null==f?void 0:f.base,null==f?void 0:null===(t=f.color)||void 0===t?void 0:t.primary,null==f?void 0:null===(n=f.size)||void 0===n?void 0:n.h3,null==f?void 0:null===(l=f.weight)||void 0===l?void 0:l.semiBold,null==p?void 0:null===(c=p.featuredImage)||void 0===c?void 0:c.title),children:d.title})},d=function(e){var t;let{...n}=e,l=(0,o.useContext)(s),{components:c}=(0,o.useContext)(a.Theme.context.ThemeContext),u=(0,o.useMemo)(()=>(null==l?void 0:l.content)?a.P6.renderProsemirrorDocument(l.content):null,[null==l?void 0:l.content]);if(!l)throw Error("Description component must be used within a CPFeaturedImage component");return(0,r.jsxs)("div",{...n,className:(0,i.m6)("prose",null==c?void 0:null===(t=c.featuredImage)||void 0===t?void 0:t.description),children:["      ",u]})},f=n(39097),p=n.n(f),h=n(4556),m=function(){var e,t,n,l;let c=(0,o.useContext)(s);if(!c)throw Error("Button component must be used within a CPFeaturedImage component");let{button:u}=(0,o.useContext)(a.Theme.context.ThemeContext);return c.callToAction.url.value?"media"===c.callToAction.url.type?(0,r.jsx)("a",{href:(0,h.A)(c.callToAction.url),target:"_blank",className:(0,i.m6)(null==u?void 0:u.base,null==u?void 0:null===(e=u.color)||void 0===e?void 0:e.primary),children:null===(t=c.callToAction.url)||void 0===t?void 0:t.label}):(0,r.jsx)(p(),{href:(0,h.A)(c.callToAction.url),target:void 0===c.callToAction.openNewTab?c.callToAction.url.target:c.callToAction.openNewTab?"_blank":"_self",className:(0,i.m6)(null==u?void 0:u.base,null==u?void 0:null===(n=u.color)||void 0===n?void 0:n.primary),children:null===(l=c.callToAction.url)||void 0===l?void 0:l.label}):null};function g(e){var t;let{data:n,children:i}=e,{components:s}=(0,o.useContext)(a.Theme.context.ThemeContext);return(0,r.jsx)(l,{data:n,children:i||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsxs)("div",{className:null==s?void 0:null===(t=s.featuredImage)||void 0===t?void 0:t.content,children:[(0,r.jsx)(u,{}),(0,r.jsx)(d,{}),(0,r.jsx)(m,{})]})]})})}g.Figure=c,g.Title=u,g.Description=d,g.Button=m;var v=g},97357:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(52322),o=n(2784);let i=(0,o.createContext)({title:"",subtitle:"",images:[],links:[]});function a(e){let{children:t,data:n}=e,[a]=(0,o.useState)(n);return a?(0,r.jsx)(i.Provider,{value:a,children:t}):null}var s=n(9635),l=function(e){let{className:t="h-full w-full"}=e,[n,a]=(0,o.useState)(0),l=(0,o.useContext)(i),[c,u]=(0,o.useState)([]);if(!l)throw Error("HeroImage component must be used within a CPHero component");return(0,o.useEffect)(()=>{u(l.images.map(e=>Array.isArray(e.image)?e.image[0]:e.image))},[l.images]),(0,o.useEffect)(()=>{let e=setTimeout(()=>{a(e=>(e+1)%c.length)},5e3);return()=>clearTimeout(e)},[n,c.length]),(0,r.jsxs)("div",{className:t,children:[(null==c?void 0:c.length)===1&&(0,r.jsx)(s.UI.Image,{file:c[0],className:"h-full w-full "}),(null==c?void 0:c.length)>1&&(null==c?void 0:c.map((e,t)=>(0,r.jsx)(s.UI.Image,{file:e,className:"absolute inset-0 h-full w-full object-cover transition-opacity duration-1000 ".concat(t===n?"opacity-100":"opacity-0")},t)))]})},c=n(20324),u=function(e){let{...t}=e,n=(0,o.useContext)(i);if(!n)throw Error("Title component must be used within a CPHero component");let{components:a}=(0,o.useContext)(s.Theme.context.ThemeContext);return(0,r.jsx)("h1",{className:(0,c.m6)(a.hero.title,t.className),...t,children:n.title})},d=function(e){let{...t}=e,n=(0,o.useContext)(i),{components:a}=(0,o.useContext)(s.Theme.context.ThemeContext);if(!n)throw Error("Title component must be used within a CPHero component");return n.subtitle&&(0,r.jsx)("h2",{className:(0,c.m6)(a.hero.subtitle,t.className),children:n.subtitle})},f=n(39097),p=n.n(f),h=n(4556),m=function(){let{links:e}=(0,o.useContext)(i);if(!e)throw Error("Navigation component must be used within a CPHero component");let{components:t}=(0,o.useContext)(s.Theme.context.ThemeContext);return(0,r.jsx)("ul",{className:(0,c.m6)(t.hero.navigation.wrapper),children:e.map((e,n)=>{var o,i,a;return(0,r.jsxs)("li",{className:"w-full relative",children:[(0,r.jsxs)(p(),{href:(0,h.A)(e.url),target:(null==e?void 0:null===(o=e.url)||void 0===o?void 0:o.target)||void 0,className:(0,c.m6)(t.hero.navigation.button,0===n&&t.hero.navigation.button1,1===n&&t.hero.navigation.button2,2===n&&t.hero.navigation.button3,3===n&&t.hero.navigation.button4),children:[e.icon&&(0,r.jsx)(s.UI.Image,{file:s.P6.ensureArray(e.icon)[0],width:100,height:100,className:(0,c.m6)(null==t?void 0:null===(a=t.hero)||void 0===a?void 0:null===(i=a.navigation)||void 0===i?void 0:i.image)}),e.title]}),0===n&&t.hero.navigation.nudgeText&&(0,r.jsx)("span",{className:(0,c.m6)(t.hero.navigation.nudge),children:t.hero.navigation.nudgeText})]},n)})})};function g(e){var t,n,i,f,p,h,g;let{data:v,children:y}=e,{components:b}=(0,o.useContext)(s.Theme.context.ThemeContext);return(0,r.jsx)(a,{data:v,children:y||(0,r.jsxs)("div",{className:(0,c.m6)(null==b?void 0:null===(t=b.hero)||void 0===t?void 0:t.wrapper),children:[(0,r.jsx)(l,{className:(0,c.m6)(null==b?void 0:null===(n=b.hero)||void 0===n?void 0:n.backgroundImage)}),(0,r.jsx)("div",{className:(0,c.m6)(null==b?void 0:null===(i=b.hero)||void 0===i?void 0:i.backgroundTint)}),(0,r.jsx)("div",{className:(0,c.m6)(null==b?void 0:null===(f=b.hero)||void 0===f?void 0:f.contentWrapper),children:(0,r.jsxs)("div",{className:(0,c.m6)(null==b?void 0:null===(p=b.hero)||void 0===p?void 0:p.contentContainer),children:[(0,r.jsx)("div",{className:(0,c.m6)(null==b?void 0:null===(h=b.hero)||void 0===h?void 0:h.titleContainer),children:(0,r.jsx)(u,{})}),(0,r.jsxs)("div",{className:(0,c.m6)(null==b?void 0:null===(g=b.hero)||void 0===g?void 0:g.navigationContainer),children:[(0,r.jsx)(d,{}),(0,r.jsx)(m,{})]})]})})]})})}g.HeroImage=l,g.Title=u,g.Subtitle=d,g.Navigation=m;var v=g},45380:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(52322),o=n(2784),i=n(34398),a=n(35433),s=n(92014),l=n(54613),c=n(20324),u=n(9635);let d={"Let op":(0,r.jsx)(function(e){return(0,s.w_)({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 1.45l6.705 13.363h-13.409l6.705-13.363zM8 0c-0.345 0-0.69 0.233-0.951 0.698l-6.829 13.611c-0.523 0.93-0.078 1.691 0.989 1.691h13.583c1.067 0 1.512-0.761 0.989-1.691h0l-6.829-13.611c-0.262-0.465-0.606-0.698-0.951-0.698v0z"}},{tag:"path",attr:{d:"M9 13c0 0.552-0.448 1-1 1s-1-0.448-1-1c0-0.552 0.448-1 1-1s1 0.448 1 1z"}},{tag:"path",attr:{d:"M8 11c-0.552 0-1-0.448-1-1v-3c0-0.552 0.448-1 1-1s1 0.448 1 1v3c0 0.552-0.448 1-1 1z"}}]})(e)},{}),Tip:(0,r.jsx)(i.dc7,{}),Top:(0,r.jsx)(l.fmn,{}),Info:(0,r.jsx)(a.tUd,{}),Actie:(0,r.jsx)(function(e){return(0,s.w_)({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.855 20.966c-.224 0-.443-.05-.646-.146l-.104-.051-4.107-2.343-4.107 2.344-.106.053c-.488.228-1.085.174-1.521-.143-.469-.34-.701-.933-.586-1.509l.957-4.642-1.602-1.457-1.895-1.725-.078-.082c-.375-.396-.509-.97-.34-1.492.173-.524.62-.912 1.16-1.009l.102-.018 4.701-.521 1.946-4.31.06-.11c.262-.473.764-.771 1.309-.771.543 0 1.044.298 1.309.77l.06.112 1.948 4.312 4.701.521.104.017c.539.1.986.486 1.158 1.012.17.521.035 1.098-.34 1.494l-.078.078-3.498 3.184.957 4.632c.113.587-.118 1.178-.59 1.519-.252.182-.556.281-.874.281zm-8.149-6.564c-.039.182-.466 2.246-.845 4.082l3.643-2.077c.307-.175.684-.175.99 0l3.643 2.075-.849-4.104c-.071-.346.045-.705.308-.942l3.1-2.822-4.168-.461c-.351-.039-.654-.26-.801-.584l-1.728-3.821-1.726 3.821c-.146.322-.45.543-.801.584l-4.168.461 3.1 2.822c.272.246.384.617.302.966z"}}]})(e)},{})};var f=function(e){var t,n,a,s,l,f;let{data:p}=e,{content:h,title:m}=p,g=d[null==m?void 0:m.value]||(0,r.jsx)(i.dc7,{}),{components:v}=(0,o.useContext)(u.Theme.context.ThemeContext);return(0,r.jsxs)("div",{className:(0,c.m6)(null==v?void 0:null===(t=v.informationBanner)||void 0===t?void 0:t.container),children:[(0,r.jsx)("div",{className:(0,c.m6)(null==v?void 0:null===(n=v.informationBanner)||void 0===n?void 0:n.icon),children:g}),(0,r.jsx)("div",{className:(0,c.m6)(null==v?void 0:null===(a=v.informationBanner)||void 0===a?void 0:a.titleBackground),children:(0,r.jsx)("h3",{className:(0,c.m6)(null==v?void 0:null===(s=v.informationBanner)||void 0===s?void 0:s.title),style:{wordWrap:"break-word",fontSize:"13px",padding:"5px"},children:(null==m?void 0:m.value)||""})}),(0,r.jsx)("div",{className:(0,c.m6)(null==v?void 0:null===(l=v.informationBanner)||void 0===l?void 0:l.wrapper),style:{width:"-webkit-fill-available"},children:(0,r.jsx)("p",{className:(0,c.m6)(null==v?void 0:null===(f=v.informationBanner)||void 0===f?void 0:f.content),children:h})})]})}},9343:function(e,t,n){"use strict";var r=n(52322),o=n(39097),i=n.n(o),a=n(20324),s=n(2784),l=n(9635),c=n(54613),u=n(34398);t.Z=function(e){var t,n,o,d;let{data:f,variant:p="default"}=e,h=(0,s.useContext)(l.Theme.context.ThemeContext),{textLink:m,components:g}=h;if(!f.url)return null;let v={href:l.P6.parseLink(f.url),target:"media"===f.url.type?"_blank":f.url.target||"_self",className:"list"===p?(0,a.m6)(null==g?void 0:null===(t=g.linkList)||void 0===t?void 0:t.link):(0,a.m6)(m)};return(0,r.jsxs)(i(),{...v,children:["list"===p&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e=>{let{type:t,size:n,className:o}=e;return"chevron"===t?(0,r.jsx)(c.Tfp,{size:n,className:o}):(0,r.jsx)(u.nzV,{size:n,className:o})},{type:null===(o=h.components)||void 0===o?void 0:null===(n=o.linkList)||void 0===n?void 0:n.iconType,size:"22",className:(0,a.m6)(null==g?void 0:null===(d=g.linkList)||void 0===d?void 0:d.icon)}),f.title]}),"list"!==p&&f.title]})}},65530:function(e,t,n){"use strict";n.r(t);var r=n(52322),o=n(2784),i=n(9635),a=n(20324),s=n(72993),l=n(9343);t.default=function(e){var t,n,c,u;let{data:d}=e,{components:f}=(0,o.useContext)(i.Theme.context.ThemeContext);return(0,r.jsxs)("div",{className:(0,a.m6)(null==f?void 0:null===(t=f.linkList)||void 0===t?void 0:t.container),children:[(0,r.jsx)("h3",{className:(0,a.m6)(null==f?void 0:null===(n=f.linkList)||void 0===n?void 0:n.title),children:d.title}),(0,r.jsx)("ul",{className:null==f?void 0:null===(c=f.linkList)||void 0===c?void 0:c.wrapper,children:null==d?void 0:null===(u=d.links)||void 0===u?void 0:u.map((e,t)=>{if("link"===e.$component)return(0,r.jsx)("li",{children:(0,r.jsx)(l.Z,{data:e,variant:"list"})},t);if("richText"===e.$component){var n;return(0,r.jsx)("li",{className:(0,a.m6)(null==f?void 0:null===(n=f.linkList)||void 0===n?void 0:n.description),children:(0,r.jsx)(s.Z,{data:e})},"test")}return(0,r.jsxs)("pre",{className:"my-1 rounded border bg-gray-100 px-2 py-1 text-sm text-gray-500",children:["Unexpected component: ",e.$component]},"error")})})]})}},60214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(52322),o=n(96577),i=n.n(o),a=function(e){let{data:t}=e,{image:n}=t;return(0,r.jsx)("div",{className:"h-[500px] w-full",children:(0,r.jsx)(i(),{className:"object-fit",src:n.fileName,title:n.title,alt:n.alt||"",fill:!0})})}},10332:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(52322),o=n(2784),i=n(9635),a=n(20324);let s=(0,o.createContext)({id:0,title:"",url:"",image:void 0,date:"",excerpt:"",publishStart:""});function l(e){var t;let{children:n,data:l,className:c="group relative block h-full w-full "}=e,{components:u}=(0,o.useContext)(i.Theme.context.ThemeContext),[d]=(0,o.useState)(l);return d?(0,r.jsx)(s.Provider,{value:d,children:(0,r.jsx)("article",{className:(0,a.m6)(c,null===(t=u.newsOverviewCard)||void 0===t?void 0:t.wrapper),children:n})}):null}var c=function(e){var t;let{...n}=e,l=(0,o.useContext)(s),{components:c}=(0,o.useContext)(i.Theme.context.ThemeContext);if(!l)throw Error("Title component must be used within a CPNewsCard component");return(0,r.jsx)("h3",{className:(0,a.m6)(null==c?void 0:null===(t=c.newsOverviewCard)||void 0===t?void 0:t.title),...n,children:l.title})},u=function(e){var t;let{className:n="h-[200px] w-auto lg:h-auto lg:w-1/3",...l}=e,c=(0,o.useContext)(s),{components:u}=(0,o.useContext)(i.Theme.context.ThemeContext);if(!c)throw Error("Figure component must be used within a CPNewsCard component");if(!c.image||!c.title)return null;let d=i.P6.ensureArray(c.image)[0];return(0,r.jsx)("div",{className:(0,a.m6)(n),...l,children:(0,r.jsx)(i.UI.Image,{file:d,fill:!0,ratio:"none",mode:"cover",className:(0,a.m6)("h-[200px]",null===(t=u.newsOverviewCard)||void 0===t?void 0:t.image),focus:(null==d?void 0:d.focus)||"auto",step:100})})},d=function(e){var t;let{...n}=e,l=(0,o.useContext)(s),{components:c}=(0,o.useContext)(i.Theme.context.ThemeContext);if(!l)throw Error("Descriptions component must be used within a NewsCard component");return l.excerpt?(0,r.jsx)("div",{className:(0,a.m6)(null==c?void 0:null===(t=c.newsOverviewCard)||void 0===t?void 0:t.description),...n,children:l.excerpt}):null},f=n(34398),p=function(e){var t,n;let{children:s}=e,{components:l}=(0,o.useContext)(i.Theme.context.ThemeContext);return(0,r.jsx)("div",{children:s||(0,r.jsxs)("span",{className:(0,a.m6)(null==l?void 0:null===(t=l.newsOverviewCard)||void 0===t?void 0:t.readMore),children:["Lees meer",(0,r.jsx)(f.nzV,{size:"18",className:(0,a.m6)(null==l?void 0:null===(n=l.newsOverviewCard)||void 0===n?void 0:n.arrow)})]})})},h=function(e){var t;let{format:n={dateStyle:"long"},...l}=e,c=(0,o.useContext)(s);if(!c)throw Error("DateTime component must be used within a CPNewsCard component");let{date:u,publishStart:d}=c,{components:f}=(0,o.useContext)(i.Theme.context.ThemeContext);return(0,r.jsx)("time",{dateTime:u||d,className:(0,a.m6)(null==f?void 0:null===(t=f.newsOverviewCard)||void 0===t?void 0:t.dateTime),...l,children:i.P6.formatDateTime(u||d,{dateStyle:"long"})})};function m(e){let{data:t,className:n,children:o}=e;return(0,r.jsx)(l,{data:t,className:n,children:o||(0,r.jsxs)("div",{children:[(0,r.jsx)(u,{}),(0,r.jsx)(h,{}),(0,r.jsx)(c,{}),(0,r.jsx)(d,{}),(0,r.jsx)(p,{})]})})}m.Title=c,m.Figure=u,m.Descriptions=d,m.ReadMore=p,m.DateTime=h;var g=m},15527:function(e,t,n){"use strict";var r=n(52322),o=n(39097),i=n.n(o),a=n(43886),s=n(2784),l=n(9635);t.Z=function(e){let{data:t,imageLeft:n=!1}=e,{title:o,slug:c}=t,{components:u}=(0,s.useContext)(l.Theme.context.ThemeContext);return(0,r.jsx)(a.Z,{data:t,theme:u.newsOverviewCard,children:(0,r.jsxs)("div",{className:"flex h-full flex-col ".concat(n&&"lg:flex-row"),children:[(0,r.jsx)(a.Z.Figure,{className:"relative h-[200px] w-auto ".concat(n&&"lg:h-auto lg:w-1/4")}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,r.jsx)(a.Z.DateTime,{}),(0,r.jsx)(i(),{href:"/nieuws/".concat(c),title:'Lees meer over "'.concat(o,'"'),"aria-label":'Lees meer over "'.concat(o,'"'),children:(0,r.jsx)(a.Z.Title,{})}),(0,r.jsx)(a.Z.Descriptions,{}),(0,r.jsx)(a.Z.ReadMore,{})]})]})})}},43886:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(52322),o=n(2784),i=n(20324);let a=(0,o.createContext)({id:0,title:"",url:"",image:void 0,date:"",excerpt:"",publishStart:"",theme:void 0});function s(e){let{children:t,data:n,theme:s,className:l="group relative block h-full w-full "}=e,[c]=(0,o.useState)(n);return c?(0,r.jsx)(a.Provider,{value:{...c,theme:s},children:(0,r.jsx)("article",{className:(0,i.m6)(l,null==s?void 0:s.wrapper),children:t})}):null}var l=n(9635),c=function(e){var t;let{...n}=e,s=(0,o.useContext)(a),{components:c}=(0,o.useContext)(l.Theme.context.ThemeContext);if(!s)throw Error("Title component must be used within a OverviewCard component");return(0,r.jsx)("h3",{className:(0,i.m6)(null==c?void 0:null===(t=c.newsOverviewCard)||void 0===t?void 0:t.title),...n,children:s.title})},u=function(e){var t;let{className:n="h-[200px] w-auto lg:h-auto lg:w-1/3",...s}=e,c=(0,o.useContext)(a);if(!c)throw Error("Figure component must be used within a OverviewCard component");if(!c.image||!c.title)return null;let u=l.P6.ensureArray(c.image)[0];return(0,r.jsx)("div",{className:(0,i.m6)(n),...s,children:(0,r.jsx)(l.UI.Image,{file:u,fill:!0,ratio:"none",mode:"cover",className:(0,i.m6)("h-[200px]",null==c?void 0:null===(t=c.theme)||void 0===t?void 0:t.image),focus:(null==u?void 0:u.focus)||"auto",step:100})})},d=function(e){var t;let{...n}=e,s=(0,o.useContext)(a);if(!s)throw Error("Descriptions component must be used within a OverviewCard component");return s.excerpt?(0,r.jsx)("div",{className:(0,i.m6)(null==s?void 0:null===(t=s.theme)||void 0===t?void 0:t.description),...n,children:s.excerpt}):null},f=n(34398),p=function(e){var t,n;let{children:s}=e,l=(0,o.useContext)(a);return(0,r.jsx)("div",{children:s||(0,r.jsxs)("span",{className:(0,i.m6)(null==l?void 0:null===(t=l.theme)||void 0===t?void 0:t.readMore),children:["Lees meer",(0,r.jsx)(f.nzV,{size:"18",className:(0,i.m6)(null==l?void 0:null===(n=l.theme)||void 0===n?void 0:n.arrow)})]})})},h=function(e){var t;let{format:n={dateStyle:"long"},...s}=e,c=(0,o.useContext)(a);if(!c)throw Error("DateTime component must be used within a CPCard component");let{date:u,publishStart:d}=c;return(0,r.jsx)("time",{dateTime:u||d,className:(0,i.m6)(null==c?void 0:null===(t=c.theme)||void 0===t?void 0:t.dateTime),...s,children:l.P6.formatDateTime(u||d,{dateStyle:"long"})})};let m=e=>{let{data:t,theme:n,className:o,children:i}=e;return(0,r.jsx)(s,{data:t,theme:n,className:o,children:i||(0,r.jsxs)("div",{children:[(0,r.jsx)(u,{}),(0,r.jsx)(h,{}),(0,r.jsx)(c,{}),(0,r.jsx)(d,{}),(0,r.jsx)(p,{})]})})};m.Title=c,m.Figure=u,m.Descriptions=d,m.ReadMore=p,m.DateTime=h;var g=m},96178:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(52322),o=n(2784),i=n(9635),a=n(20324),s=n(4556),l=n(39097),c=n.n(l),u=function(e){let{data:t,showCaption:n=!0}=e,{content:l,caption:u,link:d}=t,{components:f}=(0,o.useContext)(i.Theme.context.ThemeContext);return(0,r.jsxs)("figure",{children:[(0,r.jsx)("blockquote",{cite:null==d?void 0:d.url,children:(0,r.jsx)("p",{className:(0,a.m6)(null==f?void 0:f.quote),children:l})}),n&&(0,r.jsxs)("figcaption",{className:(0,a.m6)(null==f?void 0:f.quoteAuthor),children:["—",u,(null==d?void 0:d.label)&&(0,r.jsxs)("cite",{children:[" ",(0,r.jsx)(c(),{href:(0,s.A)(d),target:"_blank",rel:"noopener noreferer",className:"underline",children:d.label})]})]})]})}},72993:function(e,t,n){"use strict";var r=n(52322),o=n(2784),i=n(9635),a=n(20324);t.Z=function(e){let{withType:t,className:n="",data:s,flatten:l=!1}=e,c=(0,o.useMemo)(()=>i.P6.renderProsemirrorDocument(t?s:s.content),[s,t]),{richText:u}=(0,o.useContext)(i.Theme.context.ThemeContext);return l?(0,r.jsx)("div",{className:(0,a.m6)(n),children:c}):(0,r.jsx)("div",{className:(0,a.m6)(u,n),children:c})}},36906:function(e,t,n){"use strict";n.r(t);var r=n(72993);t.default=r.Z},53093:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(52322),o=n(9635),i=n(40489),a=n(70314),s=n.n(a),l=n(39097),c=n.n(l),u=n(2784),d=n(34398),f=n(20324),p=n(4556),h=e=>{var t,n,a,l,h,m,g,v,y,b,w,x,C,k,S,E,T,A,M,N;let{components:O}=(0,u.useContext)(o.Theme.context.ThemeContext),{data:I}=e,{publicRuntimeConfig:L}=s()(),R={facebook:(0,r.jsx)(d.NqZ,{size:null==O?void 0:null===(t=O.socialButton)||void 0===t?void 0:t.iconSize}),x:(0,r.jsx)(d.cy8,{size:null==O?void 0:null===(n=O.socialButton)||void 0===n?void 0:n.iconSize}),twitter:(0,r.jsx)(d.cy8,{size:null==O?void 0:null===(a=O.socialButton)||void 0===a?void 0:a.iconSize}),youtube:(0,r.jsx)(d.oK$,{size:null==O?void 0:null===(l=O.socialButton)||void 0===l?void 0:l.iconSize}),instagram:(0,r.jsx)(d.Adh,{size:null==O?void 0:null===(h=O.socialButton)||void 0===h?void 0:h.iconSize}),whatsapp:(0,r.jsx)(d.tdG,{size:null==O?void 0:null===(m=O.socialButton)||void 0===m?void 0:m.iconSize}),phone:(0,r.jsx)(d.XAr,{size:null==O?void 0:null===(g=O.socialButton)||void 0===g?void 0:g.iconSize}),email:(0,r.jsx)(d.YTS,{size:null==O?void 0:null===(v=O.socialButton)||void 0===v?void 0:v.iconSize}),linkedin:(0,r.jsx)(d.ExP,{size:null==O?void 0:null===(y=O.socialButton)||void 0===y?void 0:y.iconSize})},j=(null==I?void 0:null===(b=I.icon)||void 0===b?void 0:b.url)?(A=I.icon,(0,r.jsx)(o.UI.Image,{file:A,width:null==O?void 0:null===(M=O.socialButton)||void 0===M?void 0:M.iconSize,height:null==O?void 0:null===(N=O.socialButton)||void 0===N?void 0:N.iconSize})):(null==I?void 0:I.title)?R[null==I?void 0:I.title.toLowerCase()]:null;return(0,r.jsx)(c(),{href:(0,p.A)(null==I?void 0:I.url)||(null===(w=I.url)||void 0===w?void 0:w.url)||"#",title:"Bezoek ".concat(L.siteName," op ").concat(I.title),"aria-label":"Bezoek ".concat(L.siteName," op ").concat(I.title),target:"_blank",rel:"noopener noreferrer",children:(0,r.jsxs)("div",{className:(0,i.Z)((0,f.m6)(null==O?void 0:null===(x=O.socialButton)||void 0===x?void 0:x.button),{"flex-col items-center":(null==O?void 0:null===(C=O.socialButton)||void 0===C?void 0:C.orientation)==="vertical","flex-row justify-center":(null==O?void 0:null===(k=O.socialButton)||void 0===k?void 0:k.orientation)==="horizontal","rounded-full":(null==O?void 0:null===(S=O.socialButton)||void 0===S?void 0:S.variant)==="rounded",rounded:(null==O?void 0:null===(E=O.socialButton)||void 0===E?void 0:E.variant)==="square"}),children:[(0,r.jsx)("span",{children:j}),(0,r.jsx)("span",{className:(0,i.Z)("font-semibold",{"sr-only":!(null==O?void 0:null===(T=O.socialButton)||void 0===T?void 0:T.showTitle)}),children:I.title})]})})}},74654:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(52322),o=n(2784);let i=(0,o.createContext)({title:"",links:[]});function a(e){let{children:t,data:n,className:a="flex flex-col gap-4"}=e,[s]=(0,o.useState)(n);return s?(0,r.jsx)(i.Provider,{value:s,children:(0,r.jsx)("div",{className:a,children:t})}):null}var s=n(9635),l=n(20324),c=function(e){var t;let{className:n,...a}=e,c=(0,o.useContext)(i),{components:u}=(0,o.useContext)(s.Theme.context.ThemeContext);if(!c)throw Error("Title component must be used within a CPSocials component");return(0,r.jsx)("h2",{...a,className:(0,l.m6)(null===(t=u.socials)||void 0===t?void 0:t.title),children:c.title})},u=n(53093),d=function(e){let{data:t,variant:n,iconSize:o,orientation:i,showTitle:a}=e;return(0,r.jsx)(u.Z,{data:t,variant:n,iconSize:o,orientation:i,showTitle:a})};function f(e){let{data:t,className:n,children:o}=e;return(0,r.jsx)(a,{data:t,className:n,children:o||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{}),(0,r.jsx)("div",{className:"flex gap-2",children:t.links.map((e,t)=>(0,r.jsx)(d,{data:e,variant:"square",iconSize:32,orientation:"horizontal",showTitle:!0},t))})]})})}f.Title=c,f.Button=d;var p=f},47463:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(52322),o=n(2784),i=n(9635),a=n(20324),s=n(59407),l=function(e){var t,n,l;let{data:c}=e,{title:u,source:d,autoplay:f}=c,{components:p}=(0,o.useContext)(i.Theme.context.ThemeContext),h=(0,s.j)(d);return h?(0,r.jsx)("div",{className:(0,a.m6)(null==p?void 0:null===(t=p.video)||void 0===t?void 0:t.container),children:(0,r.jsxs)(i.mx,{category:"marketing",provider:null==h?void 0:h.provider,source:d,children:[(0,r.jsx)("h2",{className:(0,a.m6)(null==p?void 0:null===(n=p.video)||void 0===n?void 0:n.title),children:c.title}),(0,r.jsx)("iframe",{src:null==h?void 0:h.url,title:u,allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; ".concat(f&&"autoplay;"),allowFullScreen:!0,className:(0,a.m6)(null==p?void 0:null===(l=p.video)||void 0===l?void 0:l.iframe)})]})}):null}},59407:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});let r=e=>{let t=(e,t)=>t?"youtube"===e.toLowerCase()?"https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg"):"vimeo"===e.toLowerCase()?"https://vumbnail.com/".concat(t,".jpg"):"":"";try{for(let n of[{name:"YouTube",regex:/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+$/i,getUrl:e=>"https://www.youtube.com/embed/".concat(e,"?rel=0&modestbranding=1&showinfo=0&controls=1"),getId:e=>{let t=e.match(/(?:\?v=|\/embed\/|\/\d\/|\.be\/)([\w-]{11})(?:\S+)?$/);return t?t[1]:null}},{name:"Vimeo",regex:/^(https?:\/\/)?(www\.)?vimeo\.com\/.+$/i,getUrl:e=>"https://player.vimeo.com/video/".concat(e),getId:e=>{let t=e.match(/\/(\d+)(?:$|\/)/);return t?t[1]:null}}])if(e&&e.match(n.regex)){let r=n.getId(e);if(r)return{provider:n.name,url:n.getUrl(r),thumbnailUrl:t(n.name,r)}}}catch(e){throw Error("Invalid video URL")}}},89509:function(e,t,n){"use strict";n.d(t,{H2:function(){return i},j4:function(){return o}});var r=n(9635);async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return(await r.hi.iris.get("/cms/v1/collection/".concat(e),{params:t})).data}catch(e){console.error(e)}}async function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(!r.P6.isValidSlug(t))return;return(await r.hi.iris.get("/cms/v1/collection/".concat(e,"/").concat(t),{params:n})).data}catch(e){(null==e?void 0:e.status)!==404&&console.error(e)}}n(15554)},4556:function(e,t,n){"use strict";function r(e){if(!e||!(null==e?void 0:e.value))return"#no-link";if("tel"===e.type)return"tel:".concat(e.value);if("mailto"===e.type)return"mailto:".concat(e.value);if("media"===e.type)return"/media/".concat(e.value.id,"/").concat(e.value.fileName);if("collection"===e.type){let{collection:t,slug:n}=e.value,r="";switch(r=(null==n?void 0:n.startsWith("/"))?null==n?void 0:n.slice(1):n,t){case"page":return"/".concat(r);case"news":return"/nieuws/".concat(r);case"project":return"/projecten/".concat(r);case"process":return"/regelen/".concat(r.replaceAll("_","-"));default:return"#".concat(r)}}return e.value}n.d(t,{A:function(){return r}})},9635:function(e,t,n){"use strict";let r;n.d(t,{eq:function(){return NZ},mx:function(){return NV},Theme:function(){return N0},UI:function(){return NX},Zt:function(){return N$},hi:function(){return NK},Fs:function(){return NY},cn:function(){return NJ},lr:function(){return Nq},PT:function(){return NQ},qD:function(){return ez},Fg:function(){return eH},P6:function(){return NG}});var o,i,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,C,k,S,E,T,A,M,N,O,I,L,R,j,P,_,D,z,B,H,F,V,$,U,q,Z,W,J,G,K,Y,X,Q,ee,et,en,er,eo,ei,ea,es,el,ec,eu,ed,ef,ep,eh,em,eg,ev,ey,eb,ew,ex,eC,ek,eS,eE,eT={};n.r(eT),n.d(eT,{initAppInsights:function(){return mm},reactPlugin:function(){return mh}});var eA=n(52322),eM=n(45847),eN=n.n(eM),eO=n(2784),eI=n(5632),eL=n.n(eI),eR=n(39097),ej=n.n(eR),eP={myAccountSignIn:"Inloggen"};let e_=(0,eO.createContext)({data:{header:{notifications:[],links:[]},footer:{links:[],extraLinks:[],socials:[]},settings:{tenantId:"",label:"",url:"",config:{liveChatEnabled:!1,cookiesEnabled:!1,analyticsEnabled:!1,showDocuments:!1,cookieBotID:"",showAffairs:!1,analyticsID:"",analyticsProvider:"",liveChatOrgURL:"",liveChatOrgID:"",liveChatAppID:"",showBerichten:!1,use2FA:!1,maintenanceMode:{enabled:!1,message:"",title:""}}}},labels:eP,components:{},config:{}});function eD(e){let{data:t,labels:n={},config:r={},children:o,components:i={}}=e,a={data:t,labels:{...eP,...n},components:i,config:r};return(0,eA.jsx)(e_.Provider,{value:a,children:o})}function ez(){let e=(0,eO.useContext)(e_);if(void 0===e)throw Error("useApp must be used within a AppProvider");return e}let eB={ThemeContext:eO.createContext({})},eH=()=>{let e=eO.useContext(eB.ThemeContext);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e};var eF=n(20324),eV=n(60418);function e$(e,t,n,r,o=null){let i=function(e,{url:t,...n}){return (r={})=>{let o={...n,...r};return"scope"in o&&!o.scope&&delete o.scope,e({url:t,method:"post",data:new URLSearchParams(o).toString()}).then(e=>e.data)}}(e,{url:t,grant_type:"client_credentials",client_id:n,client_secret:r,scope:o});return e=>i(e?{scope:e}:null)}var eU=n(34406);let eq=e$(eV.Z.create(),eU.env.DATA_OAUTH_TOKEN_URL,eU.env.DATA_OAUTH_CLIENT_ID,eU.env.DATA_OAUTH_CLIENT_SECRET),eZ=async()=>{let{access_token:e}=await eq(eU.env.DATA_OAUTH_SCOPE);return null!=e?e:null},eW=eV.Z.create({baseURL:eU.env.DATA_API_URL});eW.interceptors.request.use(async e=>{let t=await eZ();return t&&(e.headers.Authorization="Bearer ".concat(t)),e},e=>Promise.reject(e)),eW.interceptors.response.use(e=>e,async e=>{let t=e.config;if(403===e.response.status&&!t._retry){t._retry=!0;let e=await eZ();return eV.Z.defaults.headers.common.Authorization="Bearer ".concat(e),eW(t)}return Promise.reject(e)});var eJ=n(34406);let eG=e$(eV.Z.create(),eJ.env.IRIS_OAUTH_TOKEN_URL,eJ.env.IRIS_OAUTH_CLIENT_ID,eJ.env.IRIS_OAUTH_CLIENT_SECRET),eK=async()=>{let{access_token:e}=await eG(eJ.env.IRIS_OAUTH_SCOPE);return null!=e?e:null},eY=eV.Z.create({baseURL:eJ.env.IRIS_API_URL});eY.interceptors.request.use(async e=>{let t=await eK();return t&&(e.headers.Authorization="Bearer ".concat(t)),eJ.env.ALT_TENANT_ID&&(e.params={...e.params,tenantId:eJ.env.ALT_TENANT_ID}),eJ.env.APP_TOKEN&&(e.headers["x-app-token"]=eJ.env.APP_TOKEN),e},e=>Promise.reject(e)),eY.interceptors.response.use(e=>e,async function(e){let t=e.config;if(403===e.response.status&&!t._retry){t._retry=!0;let e=await eK();return eV.Z.defaults.headers.common.Authorization="Bearer ".concat(e),eY(t)}return Promise.reject(e)}),eY.interceptors.response.use(e=>e,async function(e){return 404===e.response.status?Promise.reject({status:e.response.status,message:e.response.data.message,url:"".concat(e.response.config.baseURL).concat(e.response.config.url)}):Promise.reject(e)});var eX=n(34406);let eQ=eV.Z.create({baseURL:eX.env.IRIS23_API_URL});eQ.interceptors.request.use(async e=>(e.headers.Authorization="Bearer ".concat(eX.env.IRIS23_API_KEY),e),e=>Promise.reject(e)),eQ.interceptors.response.use(e=>e,async function(e){return 404===e.response.status?Promise.reject({status:e.response.status,message:e.response.data.message,url:"".concat(e.response.config.baseURL).concat(e.response.config.url)}):Promise.reject(e)});var e0=n(34406),e1=void 0,e2="function",e4="object",e3="prototype",e5="__proto__",e6="undefined",e8="constructor",e9="Symbol",e7="length",te="name",tt="call",tn="toString",tr=Object||void 0,to=tr[e3],ti=String||void 0,ta=ti[e3],ts=Array||void 0,tl=ts[e3],tc=tl.slice;function tu(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function td(e){return function(t){return typeof t===e}}function tf(e){var t="[object "+e+"]";return function(e){var n;return!!(e&&(n=e,to[tn].call(n)===t))}}function tp(e){return typeof e===e6||e===e6}function th(e){return null===e||tp(e)}function tm(e){return!!e||e!==e1}var tg=td("string"),tv=td(e2);function ty(e){return!(!e&&th(e))&&!!e&&typeof e===e4}var tb=ts.isArray,tw=tf("Date"),tx=td("number"),tC=td("boolean"),tk=tf("Error");function tS(e){return!!(e&&e.then&&tv(e.then))}function tE(e){var t,n,r;return!(!e||(t=function(){return!(e&&0+e)},n=!e,(r=tu(t)).e?n:r.v))}var tT=tr.getOwnPropertyDescriptor;function tA(e,t){return!!e&&to.hasOwnProperty[tt](e,t)}var tM=(i=tr.hasOwn,a=function(e,t){return tA(e,t)||!!tT(e,t)},i||a);function tN(e,t,n){if(e&&ty(e)){for(var r in e)if(tM(e,r)&&-1===t[tt](n||e,r,e[r]))break}}var tO={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function tI(e){var t={};if(t[tO.c]=!0,t[tO.e]=!0,e.l){t.get=function(){return e.l.v};var n=tT(e.l,"v");n&&n.set&&(t.set=function(t){e.l.v=t})}return tN(e,function(e,n){t[tO[e]]=tm(n)?n:t[tO[e]]}),t}var tL=tr.defineProperty;function tR(e,t,n){return tL(e,t,tI(n))}function tj(e,t,n,r,o){var i={};return tN(e,function(e,r){tP(i,e,t?r:e,o),tP(i,r,n?r:e,o)}),r?r(i):i}function tP(e,t,n,r){tL(e,t,{value:n,enumerable:!0,writable:!!r})}tr.defineProperties;var t_=ti||void 0;function tD(e,t){var n="",r=to[tn][tt](e);"[object Error]"===r&&(e={stack:t_(e.stack),message:t_(e.message),name:t_(e.name)});try{n=((n=JSON.stringify(e,null,t?"number"==typeof t?t:4:e1))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):null)||t_(e)}catch(e){n=" - "+tD(e,t)}return r+": "+n}function tz(e){throw Error(e)}function tB(e){throw TypeError(e)}var tH=tr.freeze,tF=tr.assign,tV=tr.keys;function t$(e){return tH&&tN(e,function(e,t){(tb(t)||ty(t))&&t$(t)}),tU(e)}var tU=(s=function(e){return e},tH||s),tq=(l=tr.getPrototypeOf,c=function(e){return e[e5]||null},l||c),tZ=tj({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12},0,0,tU),tW="__tsUtils$gblCfg";function tJ(){var e;return typeof globalThis!==e6&&(e=globalThis),e||typeof self===e6||(e=self),e||typeof window===e6||(e=window),e||typeof n.g===e6||(e=n.g),e}function tG(){if(!E){var e=tu(tJ).v||{};E=e[tW]=e[tW]||{}}return E}var tK=tY;function tY(e,t,n){var r=t?t[e]:null;return function(t){var o=(t?t[e]:null)||r;if(o||n){var i=arguments;return(o||n).apply(t,o?tc[tt](i,1):i)}tB('"'+t_(e)+'" not defined for '+tD(t))}}var tX=(Math||void 0).max,tQ=tK("slice",ta),t0=tK("substring",ta),t1=tY("substr",ta,function(e,t,n){return(th(e)&&tB("Invalid "+tD(e)),n<0)?"":((t=t||0)<0&&(t=tX(t+e[e7],0)),tp(n))?tQ(e,t):tQ(e,t,t+n)}),t2="_urid";function t4(e){var t={description:t_(e),toString:function(){return e9+"("+e+")"}};return t._polyfill=!0,t}function t3(){M=tG()}function t5(e){return tL({toJSON:function(){return e}},"v",{value:e})}var t6="window";function t8(e,t){var n;return function(){return M||t3(),(!n||M.lzy)&&(n=t5(tu(e,t).v)),n.v}}function t9(e){return M||t3(),(!N||!1===e||M.lzy)&&(N=t5(tu(tJ).v||null)),N.v}function t7(e,t){var n;if((n=N&&!1!==t?N.v:t9(t))&&n[e])return n[e];if(e===t6)try{return window}catch(e){}return null}var ne=t8(t7,["document"]),nt=t8(t7,[t6]),nn=t8(t7,["navigator"]),nr=t8(t7,["history"]),no=t8(function(){return!!tu(function(){return e0&&(e0.versions||{}).node}).v}),ni=t8(function(){return!!tu(function(){return self&&self instanceof WorkerGlobalScope}).v});function na(){return O=t5(tu(t7,[e9]).v)}function ns(e){var t=(M.lzy?0:O)||na();return t.v?t.v[e]:e1}function nl(e,t){var n,r,o=tZ[e];M||t3();var i=(M.lzy?0:O)||na();return i.v?i.v[o||e]:t?e1:(A||(A={}),(r=tZ[e])&&(n=A[r]=A[r]||t4(e9+"."+r)),n)}function nc(e,t){M||t3();var n=(M.lzy?0:O)||na();return n.v?n.v(e):t?null:t4(e)}function nu(e){return M||t3(),((I=(M.lzy?0:I)||t5(tu(ns,["for"]).v)).v||function(e){var t=function(){if(!T){var e=tG();T=e.gblSym=e.gblSym||{k:{},s:{}}}return T}();if(!tM(t.k,e)){var n=t4(e),r=tV(t.s).length;n[t2]=function(){return r+"_"+n[tn]()},t.k[e]=n,t.s[n[t2]()]=t_(e)}return t.k[e]})(e)}function nd(e){return!!e&&tv(e.next)}function nf(e){return!(null===e||!tm(e))&&tv(e[nl(3)])}function np(e,t,n){if(e&&(nd(e)||(L||(L=t5(nl(3))),e=e[L.v]?e[L.v]():null),nd(e))){var r=e1,o=e1;try{for(var i=0;!(o=e.next()).done&&-1!==t[tt](n||e,o.value,i,e);)i++}catch(t){r={e:t},e.throw&&(o=null,e.throw(r))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(r)throw r.e}}}}function nh(e,t,n){return e.apply(t,n)}function nm(e,t){return!tp(t)&&e&&(tb(t)?nh(e.push,e,t):nd(t)||nf(t)?np(t,function(t){e.push(t)}):e.push(t)),e}function ng(e,t,n){if(e)for(var r=e[e7]>>>0,o=0;o<r&&(!(o in e)||-1!==t[tt](n||e,e[o],o,e));o++);}var nv=tK("indexOf",tl),ny=tK("map",tl);function nb(e,t,n){return((e?e.slice:null)||tc).apply(e,tc[tt](arguments,1))}var nw=tK("reduce",tl),nx=(u=tr.create,d=function(e){if(!e)return{};var t=typeof e;function n(){}return t!==e4&&t!==e2&&tB("Prototype must be an Object or function: "+tD(e)),n[e3]=e,new n},u||d);function nC(e,t){return(tr.setPrototypeOf||function(e,t){var n;R||(R=t5(((n={})[e5]=[],n instanceof Array))),R.v?e[e5]=t:tN(t,function(t,n){return e[t]=n})})(e,t)}function nk(e,t){t&&(e[te]=t)}function nS(e,t,n){var r=n||Error,o=r[e3][te],i=Error.captureStackTrace;return function(e,t,n){function r(){this[e8]=t,tu(tR,[this,te,{v:e,c:!0,e:!1}])}return tu(tR,[t,te,{v:e,c:!0,e:!1}]),(t=nC(t,n))[e3]=null===n?nx(n):(r[e3]=n[e3],new r),t}(e,function(){var n=arguments;try{tu(nk,[r,e]);var a=nh(r,this,tc[tt](n))||this;if(a!==this){var s=tq(this);s!==tq(a)&&nC(a,s)}return i&&i(a,this[e8]),t&&t(a,n),a}finally{tu(nk,[r,o])}},r)}function nE(){return(Date.now||function(){return new Date().getTime()})()}var nT=tY("trim",ta,(f=/^\s+|(?=\s)\s+$/g,function(e){return th(e)&&tB("strTrim called ["+tD(e)+"]"),e&&e.replace&&(e=e.replace(f,"")),e}));function nA(e){if(!e||typeof e!==e4)return!1;D||(D=!nt()||nt());var t=!1;if(e!==D){_||(_=(P=Function[e3][tn])[tt](tr));try{var n=tq(e);(t=!n)||(tA(n,e8)&&(n=n[e8]),t=!!(n&&typeof n===e2&&P[tt](n)===_))}catch(e){}}return t}function nM(e){return e.value&&nL(e),!0}var nN=[function(e){var t=e.value;if(tb(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1},nL,function(e){return e.type===e2},function(e){var t=e.value;return!!tw(t)&&(e.result=new Date(t.getTime()),!0)}];function nO(e,t,n,r){var o,i,a=n.handler,s=n.path?r?n.path.concat(r):n.path:[],l={handler:n.handler,src:n.src,path:s},c=typeof t,u=!1,d=null===t;d||(t&&c===e4?u=nA(t):(S||(S=["string","number","boolean",e6,"symbol","bigint"]),d=!!(c!==e4&&-1!==S.indexOf(c))));var f={type:c,isPrim:d,isPlain:u,value:t,result:t,path:s,origin:n.src,copy:function(t,r){return nO(e,t,r?l:n,r)},copyTo:function(t,n){return nI(e,t,n,l)}};return f.isPrim?a&&a[tt](n,f)?f.result:t:(o=function(e){tR(f,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,r=a;!(r||(t<nN.length?nN[t++]:nM))[tt](n,f);)r=null},ng(e,function(e){if(e.k===t)return i=e,-1}),i||(i={k:t,v:t},e.push(i),o(i)),i.v)}function nI(e,t,n,r){if(!th(n))for(var o in n)t[o]=nO(e,n[o],r,o);return t}function nL(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function nR(e,t){return ng(t,function(t){nI([],e,t,{handler:void 0,src:t,path:[]})}),e}function nj(e,t,n,r,o,i,a){return nR(nO([],e,{handler:void 0,src:e})||{},tc[tt](arguments))}function nP(){return M||t3(),(!z||M.lzy)&&(z=t5(tu(t7,["performance"]).v)),z.v}var n_=tK("split",ta);function nD(e,t,n){if(e&&t){var r=n_(t,"."),o=r.pop();ng(r,function(t){th(e[t])&&(e[t]={}),e=e[t]}),e[o]=n}}var nz=tY("endsWith",ta,function(e,t,n){tg(e)||tB("'"+tD(e)+"' is not a string");var r=tg(t)?t:t_(t),o=!tp(n)&&n<e[e7]?n:e[e7];return t0(e,o-r[e7],o)===r}),nB=tK("indexOf",ta),nH="unref",nF="hasRef";function nV(e,t,n){var r=tb(t),o=r?t.length:0,i=(o>0?t[0]:r?e1:t)||setTimeout,a=(o>1?t[1]:e1)||clearTimeout,s=n[0];n[0]=function(){l.dn(),nh(s,e1,tc[tt](arguments))};var l=function(e,t,n){var r,o=!0,i=e?t(null):null;function a(){return o=!1,i&&i[nH]&&i[nH](),r}function s(){i&&n(i),i=null}function l(){return i=t(i),o||a(),r}return(r={cancel:s,refresh:l})[nF]=function(){return i&&i[nF]?i[nF]():o},r.ref=function(){return o=!0,i&&i.ref&&i.ref(),r},r[nH]=a,{h:r=tL(r,"enabled",{get:function(){return!!i},set:function(e){!e&&i&&s(),e&&!i&&l()}}),dn:function(){i=null}}}(e,function(e){if(e){if(e.refresh)return e.refresh(),e;nh(a,e1,[e])}return nh(i,e1,n)},function(e){nh(a,e1,[e])});return l.h}function n$(e,t){return nV(!0,e1,tc[tt](arguments))}var nU="constructor",nq="prototype",nZ="function",nW="_dynInstFuncs",nJ="_isDynProxy",nG="_dynClass",nK="_dynInstChk",nY="_dfOpts",nX="_unknown_",nQ="__proto__",n0="_dyn"+nQ,n1="__dynProto$Gbl",n2="_dynInstProto",n4="useBaseInst",n3="setInstFuncs",n5=Object,n6=n5.getPrototypeOf,n8=n5.getOwnPropertyNames,n9=t9(),n7=n9[n1]||(n9[n1]={o:((B={})[n3]=!0,B[n4]=!0,B),n:1e3});function re(e){return e&&(e===n5[nq]||e===Array[nq])}function rt(e){return re(e)||e===Function[nq]}function rn(e){var t;if(e){if(n6)return n6(e);var n=e[nQ]||e[nq]||(e[nU]?e[nU][nq]:null);t=e[n0]||n,tA(e,n0)||(delete e[n2],t=e[n0]=e[n2]||e[n0],e[n2]=n)}return t}function rr(e,t){var n=[];if(n8)n=n8(e);else for(var r in e)"string"==typeof r&&tA(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function ro(e,t,n){return t!==nU&&typeof e[t]===nZ&&(n||tA(e,t))&&t!==nQ&&t!==nq}function ri(e){tB("DynamicProto: "+e)}function ra(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function rs(e,t){return tA(e,nq)?e.name||t||nX:((e||{})[nU]||{}).name||t||nX}function rl(e,t,n,r){tA(e,nq)||ri("theClass is an invalid class definition.");var o,i=e[nq];!function(e,t){if(n6){for(var n=[],r=rn(t);r&&!rt(r)&&!ra(n,r);){if(r===e)return!0;n.push(r),r=rn(r)}return!1}return!0}(i,t)&&ri("["+rs(e)+"] not in hierarchy of ["+rs(t)+"]");var a=null;tA(i,nG)?a=i[nG]:(a="_dynCls$"+rs(e,"_")+"$"+n7.n,n7.n++,i[nG]=a);var s=rl[nY],l=!!s[n4];l&&r&&void 0!==r[n4]&&(l=!!r[n4]);var c=(o=nx(null),rr(t,function(e){!o[e]&&ro(t,e,!1)&&(o[e]=t[e])}),o),u=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o[nJ]&&r){var i=e[nW]||{};!1!==i[nK]&&(o=(i[t[nG]]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i=nx(null);rr(n,function(e){i[e]=o(t,n,e)});for(var a=rn(e),s=[];a&&!rt(a)&&!ra(s,a);)rr(a,function(e){!i[e]&&ro(a,e,!n6)&&(i[e]=o(t,a,e))}),s.push(a),a=rn(a);return i}(i,t,c,l);n(t,u);var d=!!n6&&!!s[n3];d&&r&&(d=!!r[n3]),function(e,t,n,r,o){if(!re(e)){var i=n[nW]=n[nW]||nx(null);if(!re(i)){var a=i[t]=i[t]||nx(null);!1!==i[nK]&&(i[nK]=!!o),re(a)||rr(n,function(t){if(ro(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],!tA(e,t)||e[t]&&!e[t][nJ])){var o;e[t]=((o=function(){var n,r;return((function(e,t,n,r){var o=null;if(e&&tA(n,nG)){var i=e[nW]||nx(null);if((o=(i[n[nG]]||nx(null))[t])||ri("Missing ["+t+"] "+nZ),!o[nK]&&!1!==i[nK]){for(var a=!tA(e,t),s=rn(e),l=[];a&&s&&!rt(s)&&!ra(l,s);){var c=s[t];if(c){a=c===r;break}l.push(s),s=rn(s)}try{a&&(e[t]=o),o[nK]=1}catch(e){i[nK]=!1}}}return o})(this,t,e,o)||(n=o,(r=e[t])===n&&(r=rn(e)[t]),typeof r!==nZ&&ri("["+t+"] is not a "+nZ),r)).apply(this,arguments)})[nJ]=1,o)}})}}}(i,a,t,c,!1!==d)}rl[nY]=n7.o;var rc="function",ru="object",rd="undefined",rf="prototype",rp=Object,rh=rp[rf];(t9()||{}).Symbol,(t9()||{}).Reflect;var rm="hasOwnProperty",rg=tF||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])rh[rm].call(t,o)&&(e[o]=t[o]);return e},rv=function(e,t){return(rv=rp.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[rm](n)&&(e[n]=t[n])})(e,t)};function ry(e,t){function n(){this.constructor=e}typeof t!==rc&&null!==t&&tB("Class extends value "+String(t)+" is not a constructor or null"),rv(e,t),e[rf]=null===t?nx(t):(n[rf]=t[rf],new n)}function rb(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var rw="toLowerCase",rx="blkVal",rC="length",rk="rdOnly",rS="notify",rE="warnToConsole",rT="throwInternal",rA="setDf",rM="watch",rN="logger",rO="apply",rI="push",rL="splice",rR="hdlr",rj="cancel",rP="initialize",r_="identifier",rD="removeNotificationListener",rz="addNotificationListener",rB="isInitialized",rH="instrumentationKey",rF="INACTIVE",rV="value",r$="getNotifyMgr",rU="getPlugin",rq="name",rZ="iKey",rW="time",rJ="processNext",rG="getProcessTelContext",rK="pollInternalLogs",rY="enabled",rX="stopPollingInternalLogs",rQ="unload",r0="onComplete",r1="version",r2="loggingLevelConsole",r4="createNew",r3="teardown",r5="messageId",r6="message",r8="isAsync",r9="diagLog",r7="_doTeardown",oe="update",ot="getNext",on="setNextPlugin",or="protocol",oo="userAgent",oi="split",oa="nodeType",ol="replace",oc="logInternalMessage",ou="type",od="handler",of="status",op="getResponseHeader",oh="getAllResponseHeaders",om="isChildEvt",og="data",ov="getCtx",oy="setCtx",ob="complete",ow="itemsReceived",ox="urlString",oC="sendPOST",ok="headers",oS="timeout",oE="setRequestHeader",oT="traceId",oA="spanId",oM="traceFlags",oN="getAttribute",oO=void 0,oI="channels",oL="core",oR="createPerfMgr",oj="disabled",oP="extensionConfig",o_="extensions",oD="processTelemetry",oz="priority",oB="eventsSent",oH="eventsDiscarded",oF="eventsSendRequest",oV="perfEvent",o$="offlineEventsStored",oU="offlineBatchSent",oq="offlineBatchDrop",oZ="getPerfMgr",oW="domain",oJ="path",oG=/-([a-z])/g,oK=/([^\w\d_$])/g,oY=/^(\d+[\w\d_$])/,oX=Object.getPrototypeOf;function oQ(e){return!th(e)}function o0(e){var t=e;return t&&tg(t)&&(t=(t=(t=t[ol](oG,function(e,t){return t.toUpperCase()}))[ol](oK,"_"))[ol](oY,function(e,t){return"_"+t})),t}function o1(e,t){return!!e&&!!t&&-1!==nB(e,t)}function o2(e){return e&&e.toISOString()||""}function o4(e){return tk(e)?e[rq]:""}function o3(e,t,n,r,o){var i=n;return e&&(i=e[t])!==n&&(!o||o(i))&&(!r||r(n))&&(i=n,e[t]=i),i}function o5(e,t,n){var r;return e?!(r=e[t])&&th(r)&&(r=tp(n)?{}:n,e[t]=r):r=tp(n)?{}:n,r}function o6(e,t){var n=null,r=null;return tv(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][rO](r,e)}}function o8(e,t,n,r,o){e&&t&&n&&(!1!==o||tp(e[t]))&&(e[t]=o6(n,r))}function o9(e,t,n,r){return e&&t&&ty(e)&&tb(n)&&ng(n,function(n){tg(n)&&o8(e,n,t,n,r)}),e}function o7(e){return e&&tF&&(e=rp(tF({},e))),e}function ie(e,t){var n=!1,r=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&r){var o=r.mode;n=3==o||1==o}return n}function it(e){try{return e.responseText}catch(e){}return null}function ir(e,t){return e?"XDomainRequest,Response:"+it(e):t}function io(e,t){return e?"XMLHttpRequest,Status:"+e[of]+",Response:"+it(e)||0:t}function ii(e,t){return t&&(tx(t)?e=[t].concat(e):tb(t)&&(e=t.concat(e))),e}var ia="withCredentials";function is(e,t,n){if(!e[n]&&t&&t[op]){var r=t[op](n);r&&(e[n]=nT(r))}return e}function il(e,t){var n,r,o={};return e[oh]?(n=e[oh](),r={},tg(n)&&ng(nT(n)[oi](/[\r\n]+/),function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var n=nT(e.substring(0,t))[rw](),o=nT(e.substring(t+1));r[n]=o}else r[nT(e)]=1}}),o=r):t&&(o=is(o,e,"time-delta-millis"),o=is(o,e,"kill-duration"),o=is(o,e,"kill-duration-seconds")),o}var ic="JSON",iu="msie",id="trident/",ip="XMLHttpRequest",ih=null,im=null,ig=null,iv=null;function iy(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[rf];r&&(n=t in r)}}catch(e){}if(!n)try{var o=new e;n=!tp(o[t])}catch(e){}}return n}function ib(e){return typeof location===ru&&location?location:t7("location")}function iw(){return!!(typeof JSON===ru&&JSON||null!==t7(ic))}function ix(){return iw()?JSON||t7(ic):null}function iC(){var e=nn();if(e&&(e[oo]!==im||null===ih)){var t=((im=e[oo])||"")[rw]();ih=o1(t,iu)||o1(t,id)}return ih}function ik(e){if(void 0===e&&(e=null),!e){var t=nn()||{};e=t?(t.userAgent||"")[rw]():""}var n=(e||"")[rw]();if(o1(n,iu)){var r=ne()||{};return Math.max(parseInt(n[oi](iu)[1]),r.documentMode||0)}if(o1(n,id)){var o=parseInt(n[oi](id)[1]);if(o)return o+4}return null}function iS(e){return(null===iv||!1===e)&&(iv=!!nn()&&!!nn().sendBeacon),iv}function iE(e){var t=!1;try{t=!!t7("fetch");var n=t7("Request");t&&e&&n&&(t=iy(n,"keepalive"))}catch(e){}return t}function iT(){var e=!1;try{e=!!t7(ip)}catch(e){}return e}var iA=!1,iM=123456789,iN=987654321;function iO(e){var t,n=0,r=t7("crypto")||t7("msCrypto");return r&&r.getRandomValues&&(n=4294967295&r.getRandomValues(new Uint32Array(1))[0]),0===n&&iC()&&(iA||function(){try{var e,t=2147483647&nE();(e=(4294967296*Math.random()^t)+t)<0&&(e>>>=0),iM=123456789+e&4294967295,iN=987654321-e&4294967295,iA=!0}catch(e){}}(),n=4294967295&(t=(((iN=36969*(65535&iN)+(iN>>16)&4294967295)<<16)+(65535&(iM=18e3*(65535&iM)+(iM>>16)&4294967295))>>>0&4294967295|0)>>>0)),0===n&&(n=Math.floor(4294967296*Math.random()|0)),e||(n>>>=0),n}function iI(e){void 0===e&&(e=22);for(var t=iO()>>>0,n=0,r="";r[rC]<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(iO()<<2&4294967295|3&t)>>>0,n=0);return r}var iL="3.3.3",iR="."+iI(6),ij=0;function iP(e){return 1===e[oa]||9===e[oa]||!+e[oa]}function i_(e,t){return void 0===t&&(t=!1),o0(e+ij+++(t?"."+iL:"")+iR)}function iD(e){var t={id:i_("_aiData-"+(e||"")+"."+iL),accept:function(e){return iP(e)},get:function(e,n,r,o){var i=e[t.id];return i?i[o0(n)]:(o&&((i=function(e,t){var n=t[e.id];if(!n){n={};try{iP(t)&&tR(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e))[o0(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function iz(e){return e&&ty(e)&&(e.isVal||e.fb||tM(e,"v")||tM(e,"mrg")||tM(e,"ref")||e.set)}function iB(e,t,n){var r,o=n.dfVal||tm;if(t&&n.fb){var i=n.fb;tb(i)||(i=[i]);for(var a=0;a<i[rC];a++){var s=i[a],l=t[s];if(o(l)?r=l:e&&(o(l=e.cfg[s])&&(r=l),e.set(e.cfg,t_(s),l)),o(r))break}}return!o(r)&&o(n.v)&&(r=n.v),r}function iH(e,t,n,r){iz(r)?(o=r.isVal,i=r.set,c=r[rk],u=r[rx],s=r.mrg,!(l=r.ref)&&tp(l)&&(l=!!s),a=iB(e,t,r)):a=r,u&&e[rx](t,n);var o,i,a,s,l,c,u,d,f=!0,p=t[n];(p||!th(p))&&(d=p,f=!1,o&&d!==a&&!o(d)&&(d=a,f=!0),i&&(f=(d=i(d,a,t))===a)),f?d=a?function e(t,n,r){var o,i=r;return r&&iz(r)&&(i=iB(t,n,r)),i&&(iz(i)&&(i=e(t,n,i)),tb(i)?(o=[])[rC]=i[rC]:nA(i)&&(o={}),o&&(tN(i,function(r,i){i&&iz(i)&&(i=e(t,n,i)),o[r]=i}),i=o)),i}(e,t,a):a:(nA(d)||tb(a))&&s&&a&&(nA(a)||tb(a))&&tN(a,function(t,n){iH(e,d,t,n)}),e.set(t,n,d),l&&e.ref(t,n),c&&e[rk](t,n)}var iF=nu("[[ai_dynCfg_1]]"),iV=nu("[[ai_blkDynCfg_1]]"),i$=nu("[[ai_frcDynCfg_1]]");function iU(e,t,n){var r=!1;return!n||e[t.blkVal]||(r=n[i$])||n[iV]||(r=nA(n)||tb(n)),r}function iq(e){tB("InvalidAccess:"+e)}var iZ=["push","pop","shift","unshift","splice"],iW=function(e,t,n,r){e&&e[rT](3,108,"".concat(n," [").concat(t,"] failed - ")+tD(r))};function iJ(e,t){var n=tT(e,t);return n&&n.get}function iG(e,t,n,r){if(t){var o=iJ(t,n);o&&o[e.prop]?t[n]=r:function(e,t,n,r){var o={n:n,h:[],trk:function(t){t&&t.fn&&(-1===nv(o.h,t)&&o.h[rI](t),e.trk(t,o))},clr:function(e){var t=nv(o.h,e);-1!==t&&o.h[rL](t,1)}},i=!0,a=!1;function s(){i&&(a=a||iU(s,e,r),r&&!r[iF]&&a&&(r=iY(e,r,n,"Converting")),i=!1);var t=e.act;return t&&o.trk(t),r}s[e.prop]={chng:function(){e.add(o)}},tR(t,o.n,{g:s,s:function(l){if(r!==l){s[e.ro]&&!e.upd&&iq("["+n+"] is read-only:"+tD(t)),i&&(a=a||iU(s,e,r),i=!1);var c=a&&s[e.rf];if(a){if(c){tN(r,function(e){r[e]=l?l[e]:oO});try{tN(l,function(t,n){iG(e,r,t,n)}),l=r}catch(t){iW((e.hdlr||{})[rN],n,"Assigning",t),a=!1}}else r&&r[iF]&&tN(r,function(t){var n=iJ(r,t);if(n){var o=n[e.prop];o&&o.chng()}})}if(l!==r){var u=l&&iU(s,e,l);!c&&u&&(l=iY(e,l,n,"Converting")),r=l,a=u}e.add(o)}}})}(e,t,n,r)}return t}function iK(e,t,n,r){if(t){var o=iJ(t,n),i=o&&!!o[e.prop],a=r&&r[0],s=r&&r[1],l=r&&r[2];if(!i){if(l)try{!function(e){if(e&&(nA(e)||tb(e)))try{e[iV]=!0}catch(e){}}(t)}catch(t){iW((e.hdlr||{})[rN],n,"Blocking",t)}try{iG(e,t,n,t[n]),o=iJ(t,n)}catch(t){iW((e.hdlr||{})[rN],n,"State",t)}}a&&(o[e.rf]=a),s&&(o[e.ro]=s),l&&(o[e.blkVal]=!0)}return t}function iY(e,t,n,r){try{tN(t,function(n,r){iG(e,t,n,r)}),!t[iF]&&(tL(t,iF,{get:function(){return e[rR]}}),tb(t)&&ng(iZ,function(r){var o=t[r];t[r]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=o[rO](this,r);return iY(e,t,n,"Patching"),a}}))}catch(t){iW((e.hdlr||{})[rN],n,r,t)}return t}var iX="[[ai_";function iQ(e,t,n,r){var o=function(e,t,n){var r,o,i=function(e){if(e){var t=e[iF]||e;if(t.cfg&&(t.cfg===e||t.cfg[iF]===t))return t}return null}(t);if(i)return i;var a=i_("dyncfg",!0),s=t&&!1!==n?t:function e(t){if(t){var n;if(tb(t)?(n=[])[rC]=t[rC]:nA(t)&&(n={}),n)return tN(t,function(t,r){n[t]=e(r)}),n}return t}(t),l=((r={uid:null,cfg:s})[rN]=e,r[rS]=function(){o[rS]()},r.set=function(t,n,r){try{t=iG(o,t,n,r)}catch(t){iW(e,n,"Setting value",t)}return t[n]},r[rA]=function(e,t){return t&&tN(t,function(t,n){iH(l,e,t,n)}),e},r[rM]=function(e){var t,n,r;return t=o,tR(r={fn:n=e,rm:function(){r.fn=null,t=null,n=null}},"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),t.use(r,n),r},r.ref=function(e,t){var n;return iK(o,e,t,((n={})[0]=!0,n))[t]},r[rk]=function(e,t){var n;return iK(o,e,t,((n={})[1]=!0,n))[t]},r[rx]=function(e,t){var n;return iK(o,e,t,((n={})[2]=!0,n))[t]},r._block=function(e,t){o.use(null,function(n){var r=o.upd;try{tp(t)||(o.upd=t),e(n)}finally{o.upd=r}})},r);return tR(l,"uid",{c:!1,e:!1,w:!1,v:a}),iY(o=function(e){var t,n,r=nc(iX+"get"+e.uid+"]]"),o=nc(iX+"ro"+e.uid+"]]"),i=nc(iX+"rf"+e.uid+"]]"),a=nc(iX+"blkVal"+e.uid+"]]"),s=nc(iX+"dtl"+e.uid+"]]"),l=null,c=null;function u(t,r){var o=n.act;try{n.act=t,t&&t[s]&&(ng(t[s],function(e){e.clr(t)}),t[s]=[]),r({cfg:e.cfg,set:e.set.bind(e),setDf:e[rA].bind(e),ref:e.ref.bind(e),rdOnly:e[rk].bind(e)})}catch(t){var i=e[rN];throw i&&i[rT](1,107,tD(t)),t}finally{n.act=o||null}}function d(){if(l){var e=l;l=null,c&&c[rj](),c=null;var t=[];if(ng(e,function(e){if(e&&(e[s]&&(ng(e[s],function(t){t.clr(e)}),e[s]=null),e.fn))try{u(e,e.fn)}catch(e){t[rI](e)}}),l)try{d()}catch(e){t[rI](e)}t[rC]>0&&function(e,t){H||(H=nS("AggregationError",function(e,t){t[rC]>1&&(e.errors=t[1])}));var n=e||"One or more errors occurred.";throw ng(t,function(e,t){n+="\n".concat(t," > ").concat(tD(e))}),new H(n,t||[])}("Watcher error(s): ",t)}}return(t={prop:r,ro:o,rf:i})[rx]=a,t[rR]=e,t.add=function(e){if(e&&e.h[rC]>0){l||(l=[]),c||(c=n$(function(){c=null,d()},0));for(var t=0;t<e.h[rC];t++){var n=e.h[t];n&&-1===nv(l,n)&&l[rI](n)}}},t[rS]=d,t.use=u,t.trk=function(e,t){if(e){var n=e[s]=e[s]||[];-1===nv(n,t)&&n[rI](t)}},n=t}(l),s,"config","Creating"),l}(n,e||{},r);return t&&o[rA](o.cfg,t),o}function i0(e,t,n){var r,o=e[iF]||e;return o.cfg&&(o.cfg===e||o.cfg[iF]===o)?o[rM](t):(r="Not dynamic - "+tD(e),n?(n[rE](r),n[rT](2,108,r)):iq(r),iQ(e,null,n)[rM](t))}var i1=[oB,oH,oF,oV],i2=null;function i4(e){var t,n=i2;return n||!0===e.disableDbgExt||(n=i2||((t=t7("Microsoft"))&&(i2=t.ApplicationInsights),i2)),n?n.ChromeDbgExt:null}var i3="warnToConsole",i5={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},i6=((V={})[0]=null,V[1]="errorToConsole",V[2]=i3,V[3]="debugToConsole",V);function i8(e){return e?'"'+e[ol](/\"/g,"")+'"':""}function i9(e,t){var n=typeof console!==rd?console:t7("console");if(n){var r="log";n[e]&&(r=e),tv(n[r])&&n[r](t)}}var i7=function(){function e(e,t,n,r){void 0===n&&(n=!1),this[r5]=e,this[r6]=(n?"AI: ":"AI (Internal): ")+e;var o="";iw()&&(o=ix().stringify(r));var i=(t?" message:"+i8(t):"")+(r?" props:"+i8(o):"");this[r6]+=i}return e.dataType="MessageData",e}();function ae(e,t){return(e||{})[rN]||new at(t)}var at=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,i,a,s=0,l={};rl(e,this,function(e){function c(t,n){if(!(s>=o)){var i=!0,a="AITR_"+n[r5];if(l[a]?i=!1:l[a]=!0,i&&(t<=r&&(e.queue[rI](n),s++,u(1===t?"error":"warn",n)),s===o)){var c="Internal events throttle limit per PageView reached for this app.",d=new i7(23,c,!1);e.queue[rI](d),1===t?e.errorToConsole(c):e[rE](c)}}}function u(e,n){var r=i4(t||{});r&&r[r9]&&r[r9](e,n)}a=i0(iQ(t||{},i5,e).cfg,function(e){var t=e.cfg;n=t[r2],r=t.loggingLevelTelemetry,o=t.maxMessageLimit,i=t.enableDebug}),e.consoleLoggingLevel=function(){return n},e[rT]=function(t,r,o,a,s){void 0===s&&(s=!1);var d=new i7(r,o,s,a);if(i)throw tD(d);var f=i6[t]||i3;if(tp(d[r6]))u("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var p=+d[r5];!l[p]&&n>=t&&(e[f](d[r6]),l[p]=!0)}else n>=t&&e[f](d[r6]);c(t,d)}},e.debugToConsole=function(e){i9("debug",e),u("warning",e)},e[rE]=function(e){i9("warn",e),u("warning",e)},e.errorToConsole=function(e){i9("error",e),u("error",e)},e.resetInternalMessageCount=function(){s=0,l={}},e[oc]=c,e[rQ]=function(e){a&&a.rm(),a=null}})}return e.__ieDyn=1,e}();function an(e){return e||new at}function ar(e,t,n,r,o,i){void 0===i&&(i=!1),an(e)[rT](t,n,r,o,i)}function ao(e,t){an(e)[rE](t)}var ai=function(e){return tj(e,1,0,tU)},aa=ai({LocalStorage:0,SessionStorage:1});ai({AI:0,AI_AND_W3C:1,W3C:2}),ai({Normal:1,Critical:2});var as="split",al="length",ac="toLowerCase",au="ingestionendpoint",ad="toString",af="push",ap="removeItem",ah="name",am="message",ag="count",av="preTriggerDate",ay="disabled",ab="interval",aw="daysOfMonth",ax="date",aC="getUTCDate",ak="stringify",aS="pathname",aE="correlationHeaderExcludePatterns",aT="exceptions",aA="parsedStack",aM="properties",aN="measurements",aO="sizeInBytes",aI="typeName",aL="severityLevel",aR="problemGroup",aj="isManual",aP="CreateFromInterface",a_="assembly",aD="fileName",az="hasFullStack",aB="level",aH="method",aF="line",aV="duration",a$="receivedResponse",aU=void 0,aq=void 0,aZ="";function aW(){return aK()?aJ(aa.LocalStorage):null}function aJ(e){try{if(th(t9()))return null;var t=(new Date)[ad](),n=t7(e===aa.LocalStorage?"localStorage":"sessionStorage"),r=aZ+t;n.setItem(r,t);var o=n.getItem(r)!==t;if(n[ap](r),!o)return n}catch(e){}return null}function aG(){return aQ()?aJ(aa.SessionStorage):null}function aK(e){return(e||void 0===aU)&&(aU=!!aJ(aa.LocalStorage)),aU}function aY(e,t){var n=aW();if(null!==n)try{return n.getItem(t)}catch(t){aU=!1,ar(e,2,1,"Browser failed read of local storage. "+o4(t),{exception:tD(t)})}return null}function aX(e,t,n){var r=aW();if(null!==r)try{return r.setItem(t,n),!0}catch(t){aU=!1,ar(e,2,3,"Browser failed write to local storage. "+o4(t),{exception:tD(t)})}return!1}function aQ(e){return(e||void 0===aq)&&(aq=!!aJ(aa.SessionStorage)),aq}function a0(e,t){var n=aG();if(null!==n)try{return n.getItem(t)}catch(t){aq=!1,ar(e,2,2,"Browser failed read of session storage. "+o4(t),{exception:tD(t)})}return null}function a1(e,t,n){var r=aG();if(null!==r)try{return r.setItem(t,n),!0}catch(t){aq=!1,ar(e,2,4,"Browser failed write to session storage. "+o4(t),{exception:tD(t)})}return!1}function a2(e,t){var n=aG();if(null!==n)try{return n[ap](t),!0}catch(t){aq=!1,ar(e,2,6,"Browser failed removal of session storage item. "+o4(t),{exception:tD(t)})}return!1}var a4="AppInsightsPropertiesPlugin",a3="AppInsightsChannelPlugin",a5="ApplicationInsightsAnalytics",a6="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",a8="sampleRate",a9="ProcessLegacy",a7="http.method",se="https://dc.services.visualstudio.com",st="/v2/track",sn="not_specified",sr="iKey";function so(e,t,n){var r,o,i=t[al],a=((r=t)&&(r=nT(t_(r)))[al]>150&&(o=t0(r,0,150),ar(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:r},!0)),o||r);if(a[al]!==i){for(var s=0,l=a;void 0!==n[l];)s++,l=t0(a,0,147)+function(e){var t="00"+e;return t1(t,t[al]-3)}(s);a=l}return a}function si(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=nT(t_(t)))[al]>n&&(r=t0(t,0,n),ar(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function sa(e,t){return su(e,t,2048,66)}function ss(e,t){var n;return t&&t[al]>32768&&(n=t0(t,0,32768),ar(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function sl(e,t){if(t){var n={};tN(t,function(t,r){if(ty(r)&&iw())try{r=ix()[ak](r)}catch(t){ar(e,2,49,"custom property is not valid",{exception:t},!0)}r=si(e,r,8192),t=so(e,t,n),n[t]=r}),t=n}return t}function sc(e,t){if(t){var n={};tN(t,function(t,r){t=so(e,t,n),n[t]=r}),t=n}return t}function su(e,t,n,r){var o;return t&&(t=nT(t_(t)))[al]>n&&(o=t0(t,0,n),ar(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function sd(e,t,n,r,o,i){n=si(r,n)||sn,(th(e)||th(t)||th(n))&&tz("Input doesn't contain all required fields");var a,s="";e[sr]&&(s=e[sr],delete e[sr]);var l=((a={})[ah]=n,a.time=o2(new Date),a.iKey=s,a.ext=i||{},a.tags=[],a.data={},a.baseType=t,a.baseData=e,a);return th(o)||tN(o,function(e,t){l.data[e]=t}),l}var sf=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[ah]=si(e,t)||sn,this[aM]=sl(e,n),this[aN]=sc(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),sp=function(){function e(e,t,n,r,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},this.ver=2,t=t||sn,this[am]=ss(e,t),this[aM]=sl(e,r),this[aN]=sc(e,o),n&&(this[aL]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),sh=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},sm=function(){function e(e,t,n,r,o,i,a,s,l){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var c=new sh;c[ag]=r>0?r:void 0,c.max=isNaN(i)||null===i?void 0:i,c.min=isNaN(o)||null===o?void 0:o,c[ah]=si(e,t)||sn,c.value=n,c.stdDev=isNaN(a)||null===a?void 0:a,this.metrics=[c],this[aM]=sl(e,s),this[aN]=sc(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();function sg(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=1===t[al]?"00"+t:2===t[al]?"0"+t:t,n=n[al]<2?"0"+n:n,r=r[al]<2?"0"+r:r,(i>0?i+".":"")+(o=o[al]<2?"0"+o:o)+":"+r+":"+n+"."+t}var sv=function(){function e(e,t,n,r,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},this.ver=2,this.id=a?su(e,a,128,69)[ad]():a,this.url=sa(e,n),this[ah]=si(e,t)||sn,isNaN(r)||(this[aV]=sg(r)),this[aM]=sl(e,o),this[aN]=sc(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),sy=function(){function e(e,t,n,r,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},this.ver=2,this.url=sa(e,n),this[ah]=si(e,t)||sn,this[aM]=sl(e,o),this[aN]=sc(e,i),a&&(this.domProcessing=a.domProcessing,this[aV]=a[aV],this.networkConnect=a.networkConnect,this.perfTotal=a.perfTotal,this[a$]=a[a$],this.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),sb="error",sw="stack",sx="stackDetails",sC="errorSrc",sk="message",sS="description";function sE(e,t){var n=e;return n&&!tg(n)&&(JSON&&JSON[ak]?(n=JSON[ak](e),t&&(!n||"{}"===n)&&(n=tv(e[ad])?e[ad]():""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function sT(e,t){var n=e;return e&&(n&&!tg(n)&&(n=e[sk]||e[sS]||n),n&&!tg(n)&&(n=sE(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===nB(n||"",t)&&(n=t+": "+n),n||""}function sA(e){return e&&e.src&&tg(e.src)&&e.obj&&tb(e.obj)}function sM(e){var t=e||"";tg(t)||(t=tg(t[sw])?t[sw]:""+t);var n=t[as]("\n");return{src:t,obj:n}}function sN(e){var t=null;if(e)try{if(e[sw])t=sM(e[sw]);else if(e[sb]&&e[sb][sw])t=sM(e[sb][sw]);else if(e.exception&&e.exception[sw])t=sM(e.exception[sw]);else if(sA(e))t=e;else if(sA(e[sx]))t=e[sx];else if(nt()&&nt().opera&&e[sk])t=function(e){for(var t=[],n=e[as]("\n"),r=0;r<n[al];r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t[af](o)}return{src:e,obj:t}}(e[am]);else if(e.reason&&e.reason[sw])t=sM(e.reason[sw]);else if(tg(e))t=sM(e);else{var n=e[sk]||e[sS]||"";tg(e[sC])&&(n&&(n+="\n"),n+=" from "+e[sC]),n&&(t=sM(n))}}catch(e){t=sM(e)}return t||{src:"",obj:null}}function sO(e){var t="";if(e&&!(t=e.typeName||e[ah]||""))try{var n=/function (.{1,200})\(/.exec(e.constructor[ad]());t=n&&n[al]>1?n[1]:""}catch(e){}return t}function sI(e){if(e)try{if(!tg(e)){var t=sO(e),n=sE(e,!1);if(n&&"{}"!==n||(e[sb]&&(e=e[sb],t=sO(e)),n=sE(e,!0)),0!==nB(n,t)&&"String"!==t)return t+":"+n;return n}}catch(e){}return""+(e||"")}var sL=function(){function e(e,t,n,r,o,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},this.ver=2,function(e){try{if(ty(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(this[aT]=t[aT]||[],this[aM]=t[aM],this[aN]=t[aN],t[aL]&&(this[aL]=t[aL]),t.id&&(this.id=t.id,t[aM].id=t.id),t[aR]&&(this[aR]=t[aR]),th(t[aj])||(this[aj]=t[aj])):(n||(n={}),i&&(n.id=i),this[aT]=[new sR(e,t,n)],this[aM]=sl(e,n),this[aN]=sc(e,r),o&&(this[aL]=o),i&&(this.id=i))}return e.CreateAutoException=function(e,t,n,r,o,i,a,s){var l,c=sO(o||i||e);return(l={})[am]=sT(e,c),l.url=t,l.lineNumber=n,l.columnNumber=r,l.error=sI(o||i||e),l.evt=sI(i||e),l[aI]=c,l.stackDetails=sN(a||o||i),l.errorSrc=s,l},e.CreateFromInterface=function(t,n,r,o){var i=n[aT]&&ny(n[aT],function(e){return sR[aP](t,e)});return new e(t,rg(rg({},n),{exceptions:i}),r,o)},e.prototype.toInterface=function(){var e,t=this.exceptions,n=this.properties,r=this.measurements,o=this.severityLevel,i=this.problemGroup,a=this.id,s=this.isManual,l=t instanceof Array&&ny(t,function(e){return e.toInterface()})||void 0;return(e={ver:"4.0"})[aT]=l,e.severityLevel=o,e.properties=n,e.measurements=r,e.problemGroup=i,e.id=a,e.isManual=s,e},e.CreateSimpleException=function(e,t,n,r,o,i){var a;return{exceptions:[((a={})[az]=!0,a.message=e,a.stack=o,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=sI,e}(),sR=function(){function e(e,t,n){if(this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},!function(e){try{if(ty(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t)){var r,o=t,i=o&&o.evt;tk(o)||(o=o[sb]||i||o),this[aI]=si(e,sO(o))||sn,this[am]=ss(e,sT(t||o,this[aI]))||sn;var a=t[sx]||sN(t);this[aA]=function(e){var t,n=e.obj;if(n&&n[al]>0){t=[];var r=0,o=0;if(ng(n,function(e){var n=e[ad]();if(sj.regex.test(n)){var i=new sj(n,r++);o+=i[aO],t[af](i)}}),o>32768)for(var i=0,a=t[al]-1,s=0,l=i,c=a;i<a;){if((s+=t[i][aO]+t[a][aO])>32768){var u=c-l+1;t.splice(l,u);break}l=i,c=a,i++,a--}}return t}(a),tb(this[aA])&&ny(this[aA],function(t){t[a_]=si(e,t[a_]),t[aD]=si(e,t[aD])}),this[sw]=function(e,t){var n;if(t){var r=""+t;r[al]>32768&&(n=t0(r,0,32768),ar(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}(e,(r="",a&&(a.obj?ng(a.obj,function(e){r+=e+"\n"}):r=a.src||""),r)),this.hasFullStack=tb(this.parsedStack)&&this.parsedStack[al]>0,n&&(n[aI]=n[aI]||this[aI])}else this[aI]=t[aI],this[am]=t[am],this[sw]=t[sw],this[aA]=t[aA]||[],this[az]=t[az]}return e.prototype.toInterface=function(){var e,t=this[aA]instanceof Array&&ny(this[aA],function(e){return e.toInterface()});return(e={id:this.id,outerId:this.outerId,typeName:this[aI],message:this[am],hasFullStack:this[az],stack:this[sw]})[aA]=t||void 0,e},e.CreateFromInterface=function(t,n){var r=n[aA]instanceof Array&&ny(n[aA],function(e){return sj[aP](e)})||n[aA];return new e(t,rg(rg({},n),{parsedStack:r}))},e}(),sj=function(){function e(t,n){if(this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},this[aO]=0,"string"==typeof t){this[aB]=n,this[aH]="<no_method>",this[a_]=nT(t),this[aD]="",this[aF]=0;var r=t.match(e.regex);r&&r[al]>=5&&(this[aH]=nT(r[2])||this[aH],this[aD]=nT(r[4]),this[aF]=parseInt(r[5])||0)}else this[aB]=t[aB],this[aH]=t[aH],this[a_]=t[a_],this[aD]=t[aD],this[aF]=t[aF],this[aO]=0;this.sizeInBytes+=this.method[al],this.sizeInBytes+=this.fileName[al],this.sizeInBytes+=this.assembly[al],this[aO]+=e.baseSize,this.sizeInBytes+=this.level.toString()[al],this.sizeInBytes+=this.line.toString()[al]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){return{level:this[aB],method:this[aH],assembly:this[a_],fileName:this[aD],line:this[aF]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();function sP(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=iO())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&iO())|0];return t1(n,0,8)+t1(n,9,4)+"4"+t1(n,13,3)+o+t1(n,16,3)+t1(n,19,12)}var s_="00000000000000000000000000000000",sD="0000000000000000";function sz(e,t,n){return!!e&&e[rC]===t&&e!==n&&!!e.match(/^[\da-f]*$/i)}function sB(e,t,n,r){var o;return(o={})[r1]=sz(r,2,"ff")?r:"00",o[oT]=sH(e)?e:sP(),o[oA]=sF(t)?t:t0(sP(),0,16),o.traceFlags=n>=0&&n<=255?n:1,o}function sH(e){return sz(e,32,s_)}function sF(e){return sz(e,16,sD)}function sV(e){if(e){var t,n,r=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[rC]<2;)t="0"+t;return t}(e[oM]);sz(r,2)||(r="01");var o=e[r1]||"00";return"00"!==o&&"ff"!==o&&(o="00"),"".concat(o.toLowerCase(),"-").concat((sz(t=e.traceId,32)?t:s_).toLowerCase(),"-").concat((sz(n=e.spanId,16)?n:sD).toLowerCase(),"-").concat(r.toLowerCase())}return""}var s$=(o={},tN({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]},function(e,t){tP(o,e,t[1]),tP(o,t[0],t[1])}),tU(o)),sU=ne()||{},sq=0,sZ=[null,null,null,null,null];function sW(e){var t=sq,n=sZ[t];return sU.createElement?sZ[t]||(n=sZ[t]=sU.createElement("a")):n={host:function(e,t){var n=sJ(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[al]>3&&tg(r[2])&&r[2][al]>0)return r[2]+(r[3]||"")}return n}(e,!0)},n.href=e,++t>=sZ[al]&&(t=0),sq=t,n}function sJ(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[al]>2&&tg(r[2])&&r[2][al]>0&&(n=r[2]||"",t&&r[al]>2)){var o=(r[1]||"")[ac](),i=r[3]||"";"http"===o&&":80"===i?i="":"https"===o&&":443"===i&&(i=""),n+=i}}return n}var sG=[se+st,"https://breeze.aimon.applicationinsights.io"+st,"https://dc-int.services.visualstudio.com"+st];function sK(e){return -1!==nv(sG,e[ac]())}function sY(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[aE]){for(var r,o=0;o<e.correlationHeaderExcludePatterns[al];o++)if(e[aE][o].test(t))return!1}var i=sW(t).host[ac]();if(i&&(-1!==nB(i,":443")||-1!==nB(i,":80"))&&(i=(sJ(t,!0)||"")[ac]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a=e&&e.correlationHeaderDomains;if(a&&(ng(a,function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));r=r||t.test(i)}),!r))return!1;var s=e&&e.correlationHeaderExcludedDomains;if(!s||0===s[al])return!0;for(var o=0;o<s[al];o++)if(new RegExp(s[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1;return i&&i[al]>0}function sX(e){if(e){var t=function(e,t){if(e)for(var n=e[as](","),r=0;r<n[al];++r){var o=n[r][as]("=");if(2===o[al]&&o[0]===t)return o[1]}}(e,s$[1]);if(t&&"cid-v1:"!==t)return t}}function sQ(){var e=nP();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return nE()}function s0(e,t){var n=null;return 0===e||0===t||th(e)||th(t)||(n=t-e),n}function s1(e,t){var n=e||{};return{getName:function(){return n[ah]},setName:function(e){t&&t.setName(e),n[ah]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),sH(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),sF(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}var s2=function(){function e(e,t,n,r,o,i,a,s,l,c,u,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},this.ver=2,this.id=t,this[aV]=sg(o),this.success=i,this.resultCode=a+"",this.type=si(e,l);var f=function(e,t,n,r){var o,i=r,a=r;if(t&&t[al]>0){var s=sW(t);if(o=s.host,!i){if(null!=s[aS]){var l=0===s.pathname[al]?"/":s[aS];"/"!==l.charAt(0)&&(l="/"+l),a=s[aS],i=si(e,n?n+" "+l:l)}else i=si(e,t)}}else o=r,i=r;return{target:o,name:i,data:a}}(e,n,s,r);this.data=sa(e,r)||f.data,this.target=si(e,f.target),c&&(this.target="".concat(this.target," | ").concat(c)),this[ah]=si(e,f[ah]),this[aM]=sl(e,u),this[aN]=sc(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();function s4(e){var t=null;if(tv(Event))t=new Event(e);else{var n=ne();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}function s3(e,t,n){return!e&&th(e)?t:tC(e)?e:"true"===t_(e)[rw]()}function s5(e){return{mrg:!0,v:e}}function s6(e,t,n){return{fb:n,isVal:e,v:t}}function s8(e,t){return{fb:t,set:s3,v:!!e}}var s9="toGMTString",s7="toUTCString",le="cookie",lt="expires",ln="isCookieUseDisabled",lr="disableCookiesUsage",lo="_ckMgr",li=null,la=null,ls=null,ll={},lc={},lu=(($={cookieCfg:s5(((U={})[oW]={fb:"cookieDomain",dfVal:oQ},U.path={fb:"cookiePath",dfVal:oQ},U.enabled=oO,U.ignoreCookies=oO,U.blockedCookies=oO,U)),cookieDomain:oO,cookiePath:oO})[lr]=oO,$);function ld(){var e,t;q||(e=function(){return ne()},t={},M||t3(),t.b=M.lzy,tL(t,"v",{configurable:!0,get:function(){var n=e();return M.lzy||tL(t,"v",{value:n}),t.b=M.lzy,n}}),q=t)}function lf(e){return!e||e.isEnabled()}function lp(e,t){return!!(t&&e&&tb(e.ignoreCookies))&&-1!==nv(e.ignoreCookies,t)}function lh(e,t){var n=t[rY];if(th(n)){var r=void 0;tp(e[ln])||(r=!e[ln]),tp(e[lr])||(r=!e[lr]),n=r}return n}function lm(e,t){if(e)n=e.getCookieMgr();else if(t){var n,r,o,i=t.cookieCfg;n=i&&i[lo]?i[lo]:lg(t)}return n||(r=(e||{})[rN],(o=lg[lo]||lc[lo])||(o=lg[lo]=lg(t,r),lc[lo]=o),n=o),n}function lg(e,t){a=i0(e=iQ(e||lc,null,t).cfg,function(t){t[rA](t.cfg,lu),o=(r=t.ref(t.cfg,"cookieCfg"))[oJ]||"/",i=r[oW],s=!1!==lh(e,r),l=r.getCookie||lx,c=r.setCookie||lC,u=r.delCookie||lC},t);var n,r,o,i,a,s,l,c,u,d=((n={isEnabled:function(){var n=!1!==lh(e,r)&&s&&lv(t),o=lc[lo];return n&&o&&d!==o&&(n=lf(o)),n},setEnabled:function(e){s=!1!==e,r[rY]=e},set:function(e,t,n,a,s){var l,u=!1;if(lf(d)&&(l=r,!(e&&l&&tb(l.blockedCookies)&&-1!==nv(l.blockedCookies,e)||lp(l,e)))){var f,p={},h=nT(t||""),m=nB(h,";");if(-1!==m&&(h=nT(t0(t,0,m)),p=ly(t0(t,m+1))),o3(p,oW,a||i,tE,tp),!th(n)){var g=iC();if(tp(p[lt])){var v=nE()+1e3*n;if(v>0){var y=new Date;y.setTime(v),o3(p,lt,lb(y,g?s9:s7)||lb(y,g?s9:s7)||"",tE)}}g||o3(p,"max-age",""+n,null,tp)}var b=ib();b&&"https:"===b[or]&&(o3(p,"secure",null,null,tp),null===la&&(la=!(tg(f=(nn()||{})[oo])&&(o1(f,"CPU iPhone OS 12")||o1(f,"iPad; CPU OS 12")||o1(f,"Macintosh; Intel Mac OS X 10_14")&&o1(f,"Version/")&&o1(f,"Safari")||o1(f,"Macintosh; Intel Mac OS X 10_14")&&nz(f,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||o1(f,"Chrome/5")||o1(f,"Chrome/6")||o1(f,"UnrealEngine")&&!o1(f,"Chrome")||o1(f,"UCBrowser/12")||o1(f,"UCBrowser/11")))),la&&o3(p,"SameSite","None",null,tp)),o3(p,oJ,s||o,null,tp),c(e,lw(h,p)),u=!0}return u},get:function(e){var t="";return lf(d)&&!lp(r,e)&&(t=l(e)),t},del:function(e,t){var n=!1;return lf(d)&&(n=d.purge(e,t)),n},purge:function(e,n){var r,o=!1;if(lv(t)){var i=((r={})[oJ]=n||"/",r[lt]="Thu, 01 Jan 1970 00:00:01 GMT",r);iC()||(i["max-age"]="0"),u(e,lw("",i)),o=!0}return o}})[rQ]=function(e){a&&a.rm(),a=null},n);return d[lo]=d,d}function lv(e){if(null===li){li=!1,q||ld();try{var t=q.v||{};li=void 0!==t[le]}catch(t){ar(e,2,68,"Cannot access document.cookie - "+o4(t),{exception:tD(t)})}}return li}function ly(e){var t={};return e&&e[rC]&&ng(nT(e)[oi](";"),function(e){if(e=nT(e||"")){var n=nB(e,"=");-1===n?t[e]=null:t[nT(t0(e,0,n))]=nT(t0(e,n+1))}}),t}function lb(e,t){return tv(e[t])?e[t]():null}function lw(e,t){var n=e||"";return tN(t,function(e,t){n+="; "+e+(th(t)?"":"="+t)}),n}function lx(e){var t="";if(q||ld(),q.v){var n=q.v[le]||"";ls!==n&&(ll=ly(n),ls=n),t=nT(ll[e]||"")}return t}function lC(e,t){q||ld(),q.v&&(q.v[le]=e+"="+t)}var lk="attachEvent",lS="addEventListener",lE="detachEvent",lT="removeEventListener",lA="events",lM="visibilitychange",lN="pagehide",lO="unload",lI="beforeunload",lL=i_("aiEvtPageHide");i_("aiEvtPageShow");var lR=/\.[\.]+/g,lj=/[\.]+$/,lP=1,l_=iD("events"),lD=/^([^.]*)(?:\.(.+)|)/;function lz(e){return e&&e[ol]?e[ol](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,""):e}function lB(e,t){if(t){var n,r="";tb(t)?(r="",ng(t,function(e){(e=lz(e))&&("."!==e[0]&&(e="."+e),r+=e)})):r=lz(t),r&&("."!==r[0]&&(r="."+r),e=(e||"")+r)}var o=lD.exec(e||"")||[];return(n={})[ou]=o[1],n.ns=(o[2]||"").replace(lR,".").replace(lj,"")[oi](".").sort().join("."),n}function lH(e,t,n){void 0===n&&(n=!0);var r=l_.get(e,lA,{},n),o=r[t];return o||(o=r[t]=[]),o}function lF(e,t,n,r){e&&t&&t[ou]&&(e[lT]?e[lT](t[ou],n,r):e[lE]&&e[lE]("on"+t[ou],n))}function lV(e,t,n,r){for(var o=t[rC];o--;){var i=t[o];i&&(!n.ns||n.ns===i.evtName.ns)&&(!r||r(i))&&(lF(e,i.evtName,i[od],i.capture),t[rL](o,1))}}function l$(e,t){return t?lB("xx",tb(t)?[e].concat(t):[e,t]).ns[oi]("."):e}function lU(e,t,n,r,o){void 0===o&&(o=!1);var i,a=!1;if(e)try{var s,l,c=lB(t,r);if(s=o,l=!1,e&&c&&c[ou]&&n&&(e[lS]?(e[lS](c[ou],n,s),l=!0):e[lk]&&(e[lk]("on"+c[ou],n),l=!0)),(a=l)&&l_.accept(e)){var u=((i={guid:lP++,evtName:c})[od]=n,i.capture=o,i);lH(e,c.type)[rI](u)}}catch(e){}return a}function lq(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var i=lB(t,r),a=!1;!function(e,t,n){if(t[ou])lV(e,lH(e,t[ou]),t,n);else{var r=l_.get(e,lA,{});tN(r,function(r,o){lV(e,o,t,n)}),0===tV(r)[rC]&&l_.kill(e,lA)}}(e,i,function(e){return(!!i.ns&&!n||e[od]===n)&&(a=!0,!0)}),a||lF(e,i,n,o)}catch(e){}}function lZ(e,t,n,r){var o=!1;return t&&e&&e[rC]>0&&ng(e,function(e){if(e&&(!n||-1===nv(n,e))){var i,a,s;i=!1,(a=nt())&&(i=lU(a,e,t,r),i=lU(a.body,e,t,r)||i),(s=ne())&&(i=lU(s,e,t,r)||i),o=i||o}}),o}function lW(e,t,n){e&&tb(e)&&ng(e,function(e){if(e){var r,o;(r=nt())&&(lq(r,e,t,n),lq(r.body,e,t,n)),(o=ne())&&lq(o,e,t,n)}})}function lJ(e,t,n){var r=l$(lL,n),o=lZ([lN],e,t,r);return t&&-1!==nv(t,lM)||(o=lZ([lM],function(t){var n=ne();e&&n&&"hidden"===n.visibilityState&&e(t)},t,r)||o),!o&&t&&(o=lJ(e,null,n)),o}var lG="ParentContextKey",lK="ChildrenContextKey",lY=function(){function e(t,n,r){var o,i=this;i.start=nE(),i[rq]=t,i[r8]=r,i[om]=function(){return!1},tv(n)&&tR(i,"payload",{g:function(){return!o&&tv(n)&&(o=n(),n=null),o}}),i[ov]=function(t){return t?t===e[lG]||t===e[lK]?i[t]:(i.ctx||{})[t]:null},i[oy]=function(t,n){t&&(t===e[lG]?(i[t]||(i[om]=function(){return!0}),i[t]=n):t===e[lK]?i[t]=n:(i.ctx=i.ctx||{})[t]=n)},i[ob]=function(){var t=0,n=i[ov](e[lK]);if(tb(n))for(var r=0;r<n[rC];r++){var o=n[r];o&&(t+=o[rW])}i[rW]=nE()-i.start,i.exTime=i[rW]-t,i[ob]=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),lX=function(){function e(t){this.ctx={},rl(e,this,function(e){e.create=function(e,t,n){return new lY(e,t,n)},e.fire=function(e){e&&(e[ob](),t&&tv(t[oV])&&t[oV](e))},e[oy]=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e[ov]=function(t){return(e.ctx||{})[t]}})}return e.__ieDyn=1,e}(),lQ="CoreUtils.doPerf";function l0(e,t,n,r,o){if(e){var i=e;if(i[oZ]&&(i=i[oZ]()),i){var a=void 0,s=i[ov](lQ);try{if(a=i.create(t(),r,o)){if(s&&a[oy]&&(a[oy](lY[lG],s),s[ov]&&s[oy])){var l=s[ov](lY[lK]);l||(l=[],s[oy](lY[lK],l)),l[rI](a)}return i[oy](lQ,a),n(a)}}catch(e){a&&a[oy]&&a[oy]("exception",e)}finally{a&&i.fire(a),i[oy](lQ,s)}}}return n()}var l1=iD("plugin");function l2(e){return l1.get(e,"state",{},!0)}function l4(e,t){for(var n,r=[],o=null,i=e[ot]();i;){var a=i[rU]();if(a){o&&o[on]&&a[oD]&&o[on](a);var s=!!(n=l2(a))[rB];a[rB]&&(s=a[rB]()),s||r[rI](a),o=a,i=i[ot]()}}ng(r,function(r){var o=e[oL]();r[rP](e.getCfg(),o,t,e[ot]()),n=l2(r),r[oL]||n[oL]||(n[oL]=o),n[rB]=!0,delete n[r3]})}function l3(e){return e.sort(function(e,t){var n=0;if(t){var r=t[oD];e[oD]?n=r?e[oz]-t[oz]:1:r&&(n=-1)}else n=e?1:-1;return n})}var l5="_hasRun",l6="_getTelCtx",l8=0;function l9(e,t,n,r){var o=null,i=[];t||(t=iQ({},null,n[rN])),null!==r&&(o=r?function(e,t,n){for(;e;){if(e[rU]()===n)return e;e=e[ot]()}return cn([n],t.config||{},t)}(e,n,r):e);var a={_next:function(){var e=o;if(o=e?e[ot]():null,!e){var t=i;t&&t[rC]>0&&(ng(t,function(e){try{e.func.call(e.self,e.args)}catch(e){ar(n[rN],2,73,"Unexpected Exception during onComplete - "+tD(e))}}),i=[])}return e},ctx:{core:function(){return n},diagLog:function(){return ae(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var r=s(e,!0);return n&&tN(n,function(e,n){if(th(r[e])){var o=t.cfg[e];(o||!th(o))&&(r[e]=o)}iH(t,r,e,n)}),t[rA](r,n)},getConfig:function(e,n,r){void 0===r&&(r=!1);var o,i=s(e,!1),a=t.cfg;return i&&(i[n]||!th(i[n]))?o=i[n]:(a[n]||!th(a[n]))&&(o=a[n]),o||!th(o)?o:r},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){for(var t;t=a._next();){var n=t[rU]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&i[rI]({func:e,self:tp(t)?a.ctx:t,args:n})}}};function s(e,n){var r=null,o=t.cfg;if(o&&e){var i=o[oP];!i&&n&&(i={}),o[oP]=i,(i=t.ref(o,oP))&&((r=i[e])||!n||(r={}),i[e]=r,r=t.ref(i,e))}return r}return a}function l7(e,t,n,r){var o=iQ(t),i=l9(e,o,n,r),a=i.ctx;return a[rJ]=function(e){var t=i._next();return t&&t[oD](e,a),!t},a[r4]=function(e,t){return void 0===e&&(e=null),tb(e)&&(e=cn(e,o.cfg,n,t)),l7(e||a[ot](),o.cfg,n,t)},a}function ce(e,t,n){var r=iQ(t.config),o=l9(e,r,t,n),i=o.ctx;return i[rJ]=function(e){var t=o._next();return t&&t[rQ](i,e),!t},i[r4]=function(e,n){return void 0===e&&(e=null),tb(e)&&(e=cn(e,r.cfg,t,n)),ce(e||i[ot](),t,n)},i}function ct(e,t,n){var r=iQ(t.config),o=l9(e,r,t,n).ctx;return o[rJ]=function(e){return o.iterate(function(t){tv(t[oe])&&t[oe](o,e)})},o[r4]=function(e,n){return void 0===e&&(e=null),tb(e)&&(e=cn(e,r.cfg,t,n)),ct(e||o[ot](),t,n)},o}function cn(e,t,n,r){var o=null,i=!r;if(tb(e)&&e[rC]>0){var a=null;ng(e,function(e){if(i||r!==e||(i=!0),i&&e&&tv(e[oD])){var s=function(e,t,n){var r,o=null,i=tv(e[oD]),a=tv(e[on]),s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:function(r,c){var u;l(c=c||(e&&tv(e[l6])&&(u=e[l6]()),u||(u=l7(s,t,n)),u),function(t){if(!e||!i)return!1;var n=l2(e);return!n[r3]&&!n[oj]&&(a&&e[on](o),e[oD](r,t),!0)},"processTelemetry",function(){return{item:r}},!r.sync)||c[rJ](r)},unload:function(t,n){l(t,function(){var r=!1;if(e){var o=l2(e),i=e[oL]||o[oL];e&&(!i||i===t.core())&&!o[r3]&&(o[oL]=null,o[r3]=!0,o[rB]=!1,e[r3]&&!0===e[r3](t,n)&&(r=!0))}return r},"unload",function(){},n[r8])||t[rJ](n)},update:function(t,n){l(t,function(){var r=!1;if(e){var o=l2(e),i=e[oL]||o[oL];e&&(!i||i===t.core())&&!o[r3]&&e[oe]&&!0===e[oe](t,n)&&(r=!0)}return r},"update",function(){},!1)||t[rJ](n)},_id:r=e?e[r_]+"-"+e[oz]+"-"+l8++:"Unknown-0-"+l8++,_setNext:function(e){o=e}};function l(t,n,i,a,s){var l=!1,c=e?e[r_]:"TelemetryPluginChain",u=t[l5];return u||(u=t[l5]={}),t.setNext(o),e&&l0(t[oL](),function(){return c+":"+i},function(){u[r]=!0;try{var e=o?o._id:"";e&&(u[e]=!1),l=n(t)}catch(e){var a=!o||u[o._id];a&&(l=!0),o&&a||ar(t[r9](),1,73,"Plugin ["+c+"] failed during "+i+" - "+tD(e)+", run flags: "+tD(u))}},a,s),l}return tU(s)}(e,t,n);o||(o=s),a&&a._setNext(s),a=s}})}return r&&!o?cn([r],t,n):o}var cr="_aiHooks",co=["req","rsp","hkErr","fnErr"];function ci(e,t){if(e)for(var n=0;n<e[rC]&&!t(e[n],n);n++);}function ca(e,t,n,r,o){o>=0&&o<=2&&ci(e,function(e,i){var a=e.cbks,s=a[co[o]];if(s){t.ctx=function(){return r[i]=r[i]||{}};try{s[rO](t.inst,n)}catch(e){var l=t.err;try{var c=a.hkErr;c&&(t.err=e,c[rO](t.inst,n))}catch(e){}finally{t.err=l}}}})}function cs(e,t,n,r){var o=null;return e&&(tA(e,t)?o=e:n&&(o=cs(oX(e),t,r,!1))),o}function cl(e,t,n,r){var o=n&&n[cr];if(!o){var i,a=(i=o={i:0,n:t,f:n,h:[]},function(){var e,t=arguments,n=i.h,r=((e={})[rq]=i.n,e.inst=this,e.ctx=null,e.set=function(e,n){(t=s([],t))[e]=n,a=s([r],t)},e),o=[],a=s([r],t);function s(e,t){return ci(t,function(t){e[rI](t)}),e}r.evt=t7("event"),ca(n,r,a,o,0);var l=i.f;if(l)try{r.rslt=l[rO](this,t)}catch(e){throw r.err=e,ca(n,r,a,o,3),e}return ca(n,r,a,o,1),r.rslt});a[cr]=o,e[t]=a}var s={id:o.i,cbks:r,rm:function(){var e=this.id;ci(o.h,function(t,n){if(t.id===e)return o.h[rL](n,1),1})}};return o.i++,o.h[rI](s),s}function cc(e,t,n,r,o){if(void 0===r&&(r=!0),e&&t&&n){var i=cs(e,t,r,o);if(i){var a=i[t];if(typeof a===rc)return cl(i,t,a,n)}}return null}function cu(e,t,n,r,o){if(e&&t&&n){var i=cs(e,t,r,o)||e;if(i)return cl(i,t,i[t],n)}return null}function cd(){var e=[];return{add:function(t){t&&e[rI](t)},run:function(t,n){ng(e,function(e){try{e(t,n)}catch(e){ar(t[r9](),2,73,"Unexpected error calling unload handler - "+tD(e))}}),e=[]}}}function cf(){var e=[];return{run:function(t){var n=e;e=[],ng(n,function(e){try{(e.rm||e.remove).call(e)}catch(e){ar(t,2,73,"Unloading:"+tD(e))}}),Z&&n[rC]>Z&&(W?W("doUnload",n):ar(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))},add:function(t){t&&(nm(e,t),Z&&e[rC]>Z&&(W?W("Add",e):ar(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}}}var cp="getPlugin",ch=((J={})[oP]={isVal:oQ,v:{}},J),cm=function(){function e(){var t,n,r,o,i,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var o=n||l7(null,{},a[oL]);t=r&&r[cp]?o[r4](null,r[cp]):o[r4](null,r)}return t}function l(e,t,o){iQ(e,ch,ae(t)),!o&&t&&(o=t[rG]()[ot]());var i=r;r&&r[cp]&&(i=r[cp]()),a[oL]=t,n=l7(o,e,t,i)}function c(){t=!1,a[oL]=null,n=null,r=null,i=cf(),o=cd()}c(),rl(e,a,function(e){e[rP]=function(e,n,r,o){l(e,n,o),t=!0},e[r3]=function(t,n){var a,s,l=e[oL];if(l&&(!t||l===t[oL]())){var u=!1,d=t||ce(null,l,r&&r[cp]?r[cp]():r),f=n||((a={reason:0})[r8]=!1,a);return e[r7]&&!0===e[r7](d,f,p)?s=!0:p(),s}function p(){u||(u=!0,o.run(d,n),i.run(d[r9]()),!0===s&&d[rJ](f),c())}},e[oe]=function(t,n){var o,i=e[oL];if(i&&(!t||i===t[oL]())){var a=!1,s=t||ct(null,i,r&&r[cp]?r[cp]():r);return e._doUpdate&&!0===e._doUpdate(s,n||{reason:0},c)?o=!0:c(),o}function c(){a||(a=!0,l(s.getCfg(),s.core(),s[ot]()))}},o8(e,"_addUnloadCb",function(){return o},"add"),o8(e,"_addHook",function(){return i},"add"),tR(e,"_unloadHooks",{g:function(){return i}})}),a[r9]=function(e){return s(e)[r9]()},a[rB]=function(){return t},a.setInitialized=function(e){t=e},a[on]=function(e){r=e},a[rJ]=function(e,t){t?t[rJ](e):r&&tv(r[oD])&&r[oD](e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),cg="toString",cv="isStorageUseDisabled",cy="_addHook",cb="core",cw="dataType",cx="envelopeType",cC="diagLog",ck="track",cS="trackPageView",cE="trackPreviousPageVisit",cT="sendPageViewInternal",cA="startTime",cM="properties",cN="duration",cO="sendPageViewPerformanceInternal",cI="populatePageViewPerformanceEvent",cL="href",cR="sendExceptionInternal",cj="exception",cP="error",c_="_onerror",cD="errorSrc",cz="lineNumber",cB="columnNumber",cH="message",cF="CreateAutoException",cV="addTelemetryInitializer",c$="autoTrackPageVisitTime",cU="isBrowserLinkTrackingEnabled",cq="length",cZ="enableAutoRouteTracking",cW="enableUnhandledPromiseRejectionTracking",cJ="autoUnhandledPromiseInstrumented",cG="getEntriesByType",cK="isPerformanceTimingSupported",cY="getPerformanceTiming",cX="navigationStart",cQ="shouldCollectDuration",c0="isPerformanceTimingDataReady",c1="responseStart",c2="loadEventEnd",c4="responseEnd",c3="connectEnd",c5="pageVisitStartTime",c6=function(){function e(t,n,r,o){rl(e,this,function(e){var i,a=null,s=[],l=!1,c=!1;function u(e){r&&r.flush(e,function(){})}r&&(i=r.logger),e[cS]=function(e,r){var d,f,p,h=e.name;if(th(h)||"string"!=typeof h){var m=ne();h=e.name=m&&m.title||""}var g=e.uri;if(th(g)||"string"!=typeof g){var v=ib();g=e.uri=v&&v[cL]||""}if(!c){var y=nP(),b=y&&y[cG]&&y[cG]("navigation");if(b&&b[0]&&!tp(y.timeOrigin)){var w=b[0].loadEventStart;e[cA]=new Date(y.timeOrigin+w)}else{var x=(r||e[cM]||{})[cN]||0;e[cA]=new Date(new Date().getTime()-x)}c=!0}if(!o[cK]()){t[cT](e,r),u(!0),ni()||ar(i,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var C=!1,k=o[cY]()[cX];k>0&&(f=s0(k,+new Date),o[cQ](f)||(f=void 0)),th(r)||th(r[cN])||(p=r[cN]),(n||!isNaN(p))&&(isNaN(p)&&(r||(r={}),r[cN]=f),t[cT](e,r),u(!0),C=!0),r||(r={}),d=function(){var n=!1;try{if(o[c0]()){n=!0;var a={name:h,uri:g};o[cI](a),a.isValid||C?(C||(r[cN]=a.durationMs,t[cT](e,r)),l||(t[cO](a,r),l=!0)):(r[cN]=f,t[cT](e,r))}else k>0&&s0(k,+new Date)>6e4&&(n=!0,C||(r[cN]=6e4,t[cT](e,r)))}catch(e){ar(i,1,38,"trackPageView failed on page load calculation: "+o4(e),{exception:tD(e)})}return n},s.push(d),function e(){a||(a=n$(function(){a=null;var t=s.slice(0),n=!1;s=[],ng(t,function(e){e()?n=!0:s.push(e)}),s[cq]>0&&e(),n&&u(!0)},100))}()},e.teardown=function(e,t){if(a){a.cancel(),a=null;var n=s.slice(0);s=[],ng(n,function(e){e()})}}})}return e.__ieDyn=1,e}(),c8=["googlebot","adsbot-google","apis-google","mediapartners-google"];function c9(){var e=nP();return e&&!!e.timing}function c7(){var e=nP(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[cX]>0&&t[c1]>0&&t.requestStart>0&&t[c2]>0&&t[c4]>0&&t[c3]>0&&t.domLoading>0}function ue(){return c9()?nP().timing:null}function ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(nn()||{}).userAgent,r=!1;if(n)for(var o=0;o<c8[cq];o++)r=r||-1!==nB(n.toLowerCase(),c8[o]);if(r)return!1;for(var o=0;o<e[cq];o++)if(e[o]<0||e[o]>=36e5)return!1;return!0}var un=function(){function e(t){var n=ae(t);rl(e,this,function(e){e[cI]=function(t){t.isValid=!1;var r,o=(r=nP())&&r.getEntriesByType&&r.getEntriesByType("navigation")[cq]>0?nP()[cG]("navigation")[0]:null,i=ue(),a=0,s=0,l=0,c=0,u=0;(o||i)&&(o?(a=o[cN],s=0===o[cA]?o[c3]:s0(o[cA],o[c3]),l=s0(o.requestStart,o[c1]),c=s0(o[c1],o[c4]),u=s0(o.responseEnd,o[c2])):(a=s0(i[cX],i[c2]),s=s0(i[cX],i[c3]),l=s0(i.requestStart,i[c1]),c=s0(i[c1],i[c4]),u=s0(i.responseEnd,i[c2])),0===a?ar(n,2,10,"error calculating page view performance.",{total:a,network:s,request:l,response:c,dom:u}):e[cQ](a,s,l,c,u)?a<Math.floor(s)+Math.floor(l)+Math.floor(c)+Math.floor(u)?ar(n,2,8,"client performance math error.",{total:a,network:s,request:l,response:c,dom:u}):(t.durationMs=a,t.perfTotal=t[cN]=sg(a),t.networkConnect=sg(s),t.sentRequest=sg(l),t.receivedResponse=sg(c),t.domProcessing=sg(u),t.isValid=!0):ar(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:a,network:s,request:l,response:c,dom:u}))},e[cY]=ue,e[cK]=c9,e[c0]=c7,e[cQ]=ut})}return e.__ieDyn=1,e}(),ur=function(){function e(t,n){var r="prevPageVisitData";rl(e,this,function(e){e[cE]=function(e,o){try{var i=function(e,n){var o=null;try{if(o=function(){var e=null;try{if(aQ()){var n=nE(),o=a0(t,r);o&&iw()&&((e=ix().parse(o)).pageVisitTime=n-e[c5],a2(t,r))}}catch(n){ao(t,"Stop page visit timer failed: "+tD(n)),e=null}return e}(),aQ()){null!=a0(t,r)&&tz("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=ix().stringify(new uo(e,n));a1(t,r,i)}}catch(e){ao(t,"Call to restart failed: "+tD(e)),o=null}return o}(e,o);i&&n(i.pageName,i.pageUrl,i.pageVisitTime)}catch(e){ao(t,"Auto track page visit time failed, metric will not be collected: "+tD(e))}},tR(e,"_logger",{g:function(){return t}}),tR(e,"pageVisitTimeTrackingHandler",{g:function(){return n}})})}return e.__ieDyn=1,e}(),uo=function(e,t){this[c5]=nE(),this.pageName=e,this.pageUrl=t},ui=function(e,t){var n=this,r={};n.start=function(t){void 0!==r[t]&&ar(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},n.stop=function(t,o,i,a){var s=r[t];if(isNaN(s))ar(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var l=s0(s,+new Date);n.action(t,o,l,i,a)}delete r[t],r[t]=void 0}};function ua(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var us=t$(((G={sessionRenewalMs:{set:ul,v:18e5},sessionExpirationMs:{set:ul,v:864e5},disableExceptionTracking:s8()})[c$]=s8(),G.overridePageViewDuration=s8(),G[cW]=s8(),G[cJ]=!1,G.samplingPercentage=s6(function(e){return!isNaN(e)&&e>0&&e<=100},100),G[cv]=s8(),G[cU]=s8(),G[cZ]=s8(),G.namePrefix={isVal:tg,v:t_("")},G.enableDebug=s8(),G.disableFlushOnBeforeUnload=s8(),G.disableFlushOnUnload=s8(!1,"disableFlushOnBeforeUnload"),G.expCfg=s5({inclScripts:!1,expLog:void 0,maxLogs:50}),G));function ul(e,t){return(e=e||t)<6e4&&(e=6e4),+e}var uc=function(e){function t(){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,C=e.call(this)||this;return C.identifier=a5,C.priority=180,C.autoRoutePVDelay=500,rl(t,C,function(e,t){var C=t[cy];function k(t,n,r,o,i){e[cC]().throwInternal(t,n,r,o,i)}function S(){n=null,r=null,o=null,i=null,a=null,s=null,l=!1,c=!1,u=!1,d=!1,f=!1,p=!1,h=!1,m=!1,v=!1;var t=ib(!0);b=t&&t[cL]||"",w=null,x=null,g=null,tR(e,"config",{g:function(){return g}})}S(),e.getCookieMgr=function(){return lm(e[cb])},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=sd(t,sf[cw],sf[cx],e[cC](),n);e[cb][ck](r)}catch(e){k(2,39,"trackTrace failed, trace will not be collected: "+o4(e),{exception:tD(e)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(e){k(1,29,"startTrackEvent failed, event will not be collected: "+o4(e),{exception:tD(e)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(e){k(1,30,"stopTrackEvent failed, event will not be collected: "+o4(e),{exception:tD(e)})}},e.trackTrace=function(t,n){try{var r=sd(t,sp[cw],sp[cx],e[cC](),n);e[cb][ck](r)}catch(e){k(2,39,"trackTrace failed, trace will not be collected: "+o4(e),{exception:tD(e)})}},e.trackMetric=function(t,n){try{var r=sd(t,sm[cw],sm[cx],e[cC](),n);e[cb][ck](r)}catch(e){k(1,36,"trackMetric failed, metric will not be collected: "+o4(e),{exception:tD(e)})}},e[cS]=function(e,t){try{var n=e||{};o[cS](n,rg(rg(rg({},n.properties),n.measurements),t)),v&&a[cE](n.name,n.uri)}catch(e){k(1,37,"trackPageView failed, page view will not be collected: "+o4(e),{exception:tD(e)})}},e[cT]=function(t,n,r){var o=ne();if(o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri),th(t[cA])){var i=(n||t[cM]||{})[cN]||0;t[cA]=new Date(new Date().getTime()-i)}var a=sd(t,sv[cw],sv[cx],e[cC](),n,r);e[cb][ck](a)},e[cO]=function(t,n,r){var o=sd(t,sy[cw],sy[cx],e[cC](),n,r);e[cb][ck](o)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{i[cI](r),e[cO](r,n)}catch(e){k(1,37,"trackPageViewPerformance failed, page view will not be collected: "+o4(e),{exception:tD(e)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=ne();e=t&&t.title||""}r.start(e)}catch(e){k(1,31,"startTrackPage failed, page view may not be collected: "+o4(e),{exception:tD(e)})}},e.stopTrackPage=function(e,t,n,o){try{if("string"!=typeof e){var i=ne();e=i&&i.title||""}if("string"!=typeof t){var s=ib();t=s&&s[cL]||""}r.stop(e,t,n,o),v&&a[cE](e,t)}catch(e){k(1,32,"stopTrackPage failed, page view will not be collected: "+o4(e),{exception:tD(e)})}},e[cR]=function(t,n,r){var o=t&&(t[cj]||t[cP])||tk(t)&&t||{name:t&&typeof t,message:t||sn};t=t||{};var i=new sL(e[cC](),o,t[cM]||n,t.measurements,t.severityLevel,t.id).toInterface(),a=ne();if(a&&(null==y?void 0:y.inclScripts)){var s,l,c=(s=a.getElementsByTagName("script"),l=[],ng(s,function(e){var t=e[oN]("src");if(t){var n=e[oN]("crossorigin"),r=!0===e.hasAttribute("async"),o=!0===e.hasAttribute("defer"),i=e[oN]("referrerpolicy"),a={url:t};n&&(a.crossOrigin=n),r&&(a.async=r),o&&(a.defer=o),i&&(a.referrerPolicy=i),l[rI](a)}}),l);i[cM].exceptionScripts=JSON.stringify(c)}if(null==y?void 0:y.expLog){var u=y.expLog();u&&u.logs&&tb(u.logs)&&(i[cM].exceptionLog=u.logs.slice(0,y.maxLogs).join("\n"))}var d=sd(i,sL[cw],sL[cx],e[cC](),n,r);e[cb][ck](d)},e.trackException=function(t,n){t&&!t[cj]&&t[cP]&&(t[cj]=t[cP]);try{e[cR](t,n)}catch(e){k(1,35,"trackException failed, exception will not be collected: "+o4(e),{exception:tD(e)})}},e[c_]=function(t){var n=t&&t[cP],r=t&&t.evt;try{if(!r){var o,i,a,s=nt();s&&(r=s.event)}var l=t&&t.url||(ne()||{}).URL,c=t[cD]||"window.onerror@"+l+":"+(t[cz]||0)+":"+(t[cB]||0),u={errorSrc:c,url:l,lineNumber:t[cz]||0,columnNumber:t[cB]||0,message:t[cH]};(a=t.message,t.url,t.lineNumber,t.columnNumber,!t[cP]&&tg(a)&&("Script error."===a||"Script error"===a))?(o=sL[cF]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",l,t[cz]||0,t[cB]||0,n,r,null,c),i=sd(o,sL[cw],sL[cx],e[cC](),u),e[cb][ck](i)):(t[cD]||(t[cD]=c),e.trackException({exception:t,severityLevel:3},u))}catch(e){var d=n?n.name+", "+n[cH]:"null";k(1,11,"_onError threw exception while logging error, error will not be collected: "+o4(e),{exception:tD(e),errorString:d})}},e[cV]=function(t){if(e[cb])return e[cb][cV](t);s||(s=[]),s.push(t)},e.initialize=function(k,S,E,T){if(!e.isInitialized()){th(S)&&tz("Error initializing"),t.initialize(k,S,E,T);try{var A,M,N,O,I,L;x=l$(i_(e.identifier),S.evtNamespace&&S.evtNamespace()),s&&(ng(s,function(e){S[cV](e)}),s=null),A=e.identifier,M=e[cb],e[cy](i0(k,function(){var t;y=(g=l7(null,k,M).getExtCfg(A,us)).expCfg,v=g[c$],k.storagePrefix&&(aZ=k.storagePrefix||""),tp((t=g)[cv])||(t[cv]?(aU=!1,aq=!1):(aU=aK(!0),aq=aQ(!0))),l=g[cU],function(){if(!c&&l){var t=["/browserLinkSignalR/","/__browserLink/"];e[cy](e[cV](function(e){if(l&&e.baseType===s2[cw]){var n=e.baseData;if(n){for(var r=0;r<t[cq];r++)if(n.target&&nB(n.target,t[r])>=0)return!1}}return!0})),c=!0}}()})),i=new un(e[cb]),o=new c6(e,g.overridePageViewDuration,e[cb],i),a=new ur(e[cC](),function(t,n,r){e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},{PageName:t,PageUrl:n})}),(n=new ui(e[cC](),"trackEvent")).action=function(t,n,r,o,i){o||(o={}),i||(i={}),o.duration=r[cg](),e.trackEvent({name:t,properties:o,measurements:i})},(r=new ui(e[cC](),"trackPageView")).action=function(t,n,r,o,i){th(o)&&(o={}),o.duration=r[cg]();var a={name:t,uri:n,properties:o,measurements:i};e[cT](a,o)},nt()&&(N=nt(),O=ib(!0),e[cy](i0(g,function(){(f=g.disableExceptionTracking)||p||g.autoExceptionInstrumented||(C(cu(N,"onerror",{ns:x,rsp:function(t,n,r,o,i,a){f||!0===t.rslt||e[c_](sL[cF](n,r,o,i,a,t.evt))}},!1)),p=!0)})),e[cy](i0(g,function(){h=!0===g[cW],p=p||g[cJ],h&&!m&&(C(cu(N,"onunhandledrejection",{ns:x,rsp:function(t,n){h&&!0!==t.rslt&&e[c_](sL[cF](function(e){if(e&&e.reason){var t=e.reason;return!tg(t)&&tv(t[cg])?t[cg]():tD(t)}return e||""}(n),O?O[cL]:"",0,0,n,t.evt))}},!1)),g[cJ]=m=!0)})),I=nt(),L=ib(!0),e[cy](i0(g,function(){if(u=!0===g[cZ],I&&u&&!d&&nr()){var t=nr();tv(t.pushState)&&tv(t.replaceState)&&typeof Event!==rd&&function(t,n,r){if(!d){var o=g.namePrefix||"";C(cu(n,"pushState",{ns:x,rsp:function(){u&&(ua(t,s4(o+"pushState")),ua(t,s4(o+"locationchange")))}},!0)),C(cu(n,"replaceState",{ns:x,rsp:function(){u&&(ua(t,s4(o+"replaceState")),ua(t,s4(o+"locationchange")))}},!0)),lU(t,o+"popstate",function(){u&&ua(t,s4(o+"locationchange"))},x),lU(t,o+"locationchange",function(){if(w&&(b=w),w=r&&r[cL]||"",u){var t=function(){var t=null;if(e[cb]&&e[cb].getTraceCtx&&(t=e[cb].getTraceCtx(!1)),!t){var n=e[cb].getPlugin(a4);if(n){var r=n.plugin.context;r&&(t=s1(r.telemetryTrace))}}return t}();if(t){t.setTraceId(sP());var n="_unknown_";r&&r.pathname&&(n=r.pathname+(r.hash||"")),t.setName(si(e[cC](),n))}n$((function(t){e[cS]({refUri:t,properties:{duration:0}})}).bind(e,b),e.autoRoutePVDelay)}},x),d=!0}}(I,t,L)}})))}catch(t){throw e.setInitialized(!1),t}}},e._doTeardown=function(e,t){o&&o.teardown(e,t),lq(window,null,null,x),S()},tR(e,"_pageViewManager",{g:function(){return o}}),tR(e,"_pageViewPerformanceManager",{g:function(){return i}}),tR(e,"_pageVisitTimeManager",{g:function(){return a}}),tR(e,"_evtNamespace",{g:function(){return"."+x}})}),C}return ry(t,e),t.Version="3.3.3",t}(cm),uu=n(34406),ud="Promise",uf="rejected";function up(e,t){return uh(e,function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e},function(e){return t?t({status:uf,rejected:!0,reason:e}):e})}function uh(e,t,n,r){var o,i=e;try{if(tS(e))(t||n)&&(i=e.then(t,n));else try{t&&(i=t(e))}catch(e){if(n)i=n(e);else throw e}}finally{r&&(o=i,r&&(tS(o)?o.finally?o.finally(r):o.then(function(e){return r(),e},function(e){throw r(),e}):r()))}return i}var um=["pending","resolving","resolved",uf],ug="dispatchEvent";function uv(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var uy="unhandledRejection",ub=uy.toLowerCase(),uw=[],ux=0;function uC(e){return tv(e)?e.toString():tD(e)}function uk(e,t,n){var r,o,i=nb(arguments,3),a=0,s=!1,l=[],c=ux++,u=(uw.length>0&&uw[uw.length-1],!1),d=null;function f(t,n){try{return uw.push(c),u=!0,d&&d.cancel(),d=null,e(function(e,o){l.push(function(){try{var i=2===a?t:n,s=tp(i)?r:tv(i)?i(r):i;tS(s)?s.then(e,o):i?e(s):3===a?o(s):e(s)}catch(e){o(e)}}),s&&h()},i)}finally{uw.pop()}}function p(){return um[a]}function h(){if(l.length>0){var e=l.slice();l=[],u=!0,d&&d.cancel(),d=null,t(e)}}function m(e,t){return function(n){if(a===t){if(2===e&&tS(n)){a=1,n.then(m(2,1),m(3,1));return}a=e,s=!0,r=n,h(),u||3!==e||d||(d=n$(g,10))}}}function g(){if(!u){if(u=!0,no())uu.emit(uy,r,o);else{var e=nt()||t9();Y||(Y=t5(tu(t7,[ud+"RejectionEvent"]).v)),function(e,t,n,r){var o=ne();K||(K=t5(!!tu(uv,[o]).v));var i=K.v?o.createEvent("Event"):r?new Event(t):{};if(n&&n(i),K.v&&i.initEvent(t,!1,!0),i&&e[ug])e[ug](i);else{var a=e["on"+t];if(a)a(i);else{var s=t7("console");s&&(s.error||s.log)(t,tD(i))}}}(e,ub,function(e){return tR(e,"promise",{g:function(){return o}}),e.reason=r,e},!!Y.v)}}}return tL(o={then:f,catch:function(e){return f(void 0,e)},finally:function(e){var t=e,n=e;return tv(e)&&(t=function(t){return e&&e(),t},n=function(t){throw e&&e(),t}),f(t,n)}},"state",{get:p}),M||t3(),((M.lzy?0:O)||na()).v&&(o[nl(11)]="IPromise"),o.toString=function(){return"IPromise "+p()+(s?" - "+uC(r):"")},!function(){tv(n)||tB(ud+": executor is not a function - "+uC(n));var e=m(3,0);try{n.call(o,m(2,0),e)}catch(t){e(t)}}(),o}function uS(e){ng(e,function(e){try{e()}catch(e){}})}function uE(e,t){X||(X=t5(tu(t7,[ud]).v||null));var n=X.v;if(!n)return function e(t,n){var r;return uk(e,(r=tx(n)?n:0,function(e){n$(function(){uS(e)},r)}),t,n)}(e);tv(e)||tB(ud+": executor is not a function - "+tD(e));var r=0,o=new n(function(t,n){e(function(e){r=2,t(e)},function(e){r=3,n(e)})});return tL(o,"state",{get:function(){return um[r]}}),o}function uT(e){return uk(uT,uS,e)}function uA(e,t){var n,r=isUndefined(t)?ee:t;return uk(uA,(r>=0&&(n={timeout:+r}),function(e){scheduleIdleCallback(function(t){uS(e)},n)}),e,r)}function uM(e,t){return et||(et=t5(uE)),et.v.call(this,e,t)}var uN=function(e){var t=nb(arguments,1);return uM(function(t,n){try{var r=[],o=1;np(e,function(e,i){e&&(o++,uh(e,function(e){r[i]=e,0==--o&&t(r)},n))}),o--,0===o&&t(r)}catch(e){n(e)}},t)},uO="featureOptIn",uI="onCfgChangeReceive",uL="nonOverrideConfigs",uR="scheduleFetchTimeout",uj="featureOptIn.",uP=".mode",u_=".onCfg",uD=".offCfg",uz=void 0,uB=t$(((en={syncMode:1,blkCdnCfg:uz,customEvtName:uz,cfgUrl:uz,overrideSyncFn:uz,overrideFetchFn:uz})[uI]=uz,en[uR]=18e5,en[uL]={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},en)),uH=function(e){function t(){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,y=e.call(this)||this;y.priority=198,y.identifier="AppInsightsCfgSyncPlugin";var b=!1;return rl(t,y,function(e,t){function y(){r=null,o=null,i=null,a=null,l=null,c=null,h=null,s=null,d=null,f=null,u=null,g=null,v=null,p=null}function w(t,n){if(t){if(r=t,n&&!b)return C();if(l&&!b)return e.core.updateCfg(t),!0}return!1}function x(){try{var e=t9();e&&lq(e,null,null,i)}catch(e){}}function C(e){try{if(v&&tv(v))return v(r,e);return function(e,t,n){var r,o=t9();if(o&&o.CustomEvent)try{return r=function(e,t){var n=null,r={detail:t||null};if(tv(CustomEvent))n=new CustomEvent(e,r);else{var o=ne();o&&o.createEvent&&(n=o.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r)}return n}(e,{cfg:t||null,customDetails:n||null}),!!o&&!!o.dispatchEvent&&!!r&&(o.dispatchEvent(r),!0)}catch(e){}return!1}(o,r,e)}catch(e){}return!1}function k(e){try{return x(),e&&(o=e,function(){if(l){var e=t9();if(e)try{lU(e,o,function(e){var t=e&&e.detail;if(p&&t)p(t);else{var n=t&&t.cfg,r=n&&nA(n)&&M(n);r&&w(r)}},i,!0)}catch(e){}}}()),!0}catch(e){}return!1}function S(e,t,n){var r=t9(),o=r&&r.fetch||null;if(e&&o&&tv(o))try{var i=new Request(e,{method:"GET"});up(fetch(i),function(e){var r=e.value;e.rejected?A(t,400):r.ok?up(r.text(),function(e){A(t,r.status,e.value,n)}):A(t,r.status,null,n)})}catch(e){}}function E(e,t,n){try{var r=new XMLHttpRequest;r.open("GET",e),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&A(t,r.status,r.responseText,n)},r.onerror=function(){A(t,400)},r.ontimeout=function(){A(t,400)},r.send()}catch(e){}}function T(t,n,r){try{if(t>=200&&t<400&&n){f=0;var o=ix();if(o){var i=o.parse(n),a=function(e,t){try{if(!e||!e.enabled)return null;if(!e[uO])return e.config;var n=e[uO],r=e.config||{};return tN(n,function(n){var o,i,a,s,l=function(e,t,n){if(!t||!t.enabled)return null;var r,o=(t[uO]||{})[e]||{mode:1},i=o.mode,a=o.onCfg,s=o.offCfg,l=(n||{})[e]||{mode:2},c=l.mode,u=l.onCfg,d=l.offCfg,f=!!l.blockCdnCfg,p=c,h=u,m=d;return f||(4===i||5===i?(p=4==i?3:2,h=a||u,m=s||d):2===i||2===c?(p=2,h=u||a,m=d||s):3===i?(p=3,h=u||a,m=d||s):1!==i||1!==c||(p=1)),(r={})[uj+e+uP]=p,r[uj+e+u_]=h,r[uj+e+uD]=m,r}(n,e,t.config[uO]);th(l)||(tN(l,function(e,t){nD(r,e,t)}),o=l[uj+n+uP],i=l[uj+n+u_],a=l[uj+n+uD],s=null,3===o&&(s=i),2===o&&(s=a),s&&tN(s,function(e,t){nD(r,e,t)}))}),r}catch(e){}return null}(i,e.core),s=a&&nA(a)&&M(a);s&&w(s,r)}}else f++;f<3&&N()}catch(e){}}function A(e,t,n,r){try{e(t,n,r)}catch(e){}}function M(e,t){var n=null;try{e&&(n=function e(t,n,r,o){try{var i=r>o;i&&(t=null);var a=0==r?function(e,t,n,r,o,i,a){return nR(e||{},tc[tt](arguments))}({},t):t;return a&&n&&!i&&tN(a,function(t){var i=n[t];i&&(ty(a[t])&&ty(i)?a[t]=e(a[t],i,++r,o):delete a[t])}),a}catch(e){}return t}(e,h,0,5))}catch(e){}return n}function N(){!s&&d&&(s=n$(function(){s=null,m(a,T,c)},d)).unref()}function O(){s&&s.cancel(),s=null,f=0}y(),e.initialize=function(s,y,b,w){var A,M,N;t.initialize(s,y,b,w),i=l$(i_(e.identifier),y.evtNamespace&&y.evtNamespace()),A=e.identifier,M=e.core,e._addHook(i0(s,function(){n=l7(null,s,M).getExtCfg(A,uB);var e=u;u=!!n.blkCdnCfg,!th(e)&&e!==u&&(!u&&a?m&&m(a,T,c):O()),th(l)&&(l=2===n.syncMode),th(c)&&(c=1===n.syncMode);var t=n.customEvtName||"ai_cfgsync";o!==t&&(l?k(t):(x(),o=t)),th(a)&&(a=n.cfgUrl),!a&&(r=s,c&&C())})),v=n.overrideSyncFn,g=n.overrideFetchFn,p=n[uI],h=n[uL],d=n[uR],th(N=g)&&(iE()?N=S:iT()&&(N=E)),m=N,f=0,a&&!u&&m&&m(a,T,c)},e.getCfg=function(){return r},e.pause=function(){b=!0,O()},e.resume=function(){b=!1,N()},e.setCfg=function(e){return w(e)},e.sync=function(e){return C(e)},e.updateEventListenerName=function(e){return k(e)},e._doTeardown=function(e,t){x(),O(),y()},e._getDbgPlgTargets=function(){return[c,l,o,u,h]},e.processTelemetry=function(t,n){e.processNext(t,n)}}),y}return ry(t,e),t.__ieDyn=1,t}(cm);function uF(e,t){lq(e,null,null,t)}var uV=ai({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),u$="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",uU="&NoResponseBody=true",uq="POST",uZ=function(){function e(){var t,n,r,o,i,a,s,l,c,u,d,f,p,h,m=0;rl(e,this,function(e,g){var v=!0;function y(e,t){ar(r,2,26,"Failed to send telemetry.",{message:e}),w(t,400,{})}function b(e){y("No endpoint url is provided for the batch",e)}function w(e,t,n,r){try{e&&e(t,n,r)}catch(e){}}function x(e,t){var n=nn(),r=e[ox];if(!r)return b(t),!0;r=e[ox]+(p?uU:"");var i=e[og],a=o?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return n.sendBeacon(r,a)}function C(e,t,n){var a=e[og];try{if(a){if(x(e,t))w(t,200,{},"");else{var s=i&&i.beaconOnRetry;s&&tv(s)?s(e,t,x):(l&&l[oC](e,t,!0),ar(r,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}}catch(e){o&&ao(r,"Failed to send telemetry using sendBeacon API. Ex:"+tD(e)),w(t,o?0:400,{},"")}}function k(e,n,r){var a,s,l,c=e[ok]||{};!r&&t&&(a=uM(function(e,t){s=e,l=t})),o&&r&&e.disableXhrSync&&(r=!1);var u=e[ox];if(!u){b(n),s&&s(!1);return}var d=function(e,t,n,r,o,i){function a(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===o&&(o=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,ia,n),s.open(e,t,!o),n&&a(s,ia,n),!o&&i&&a(s,"timeout",i),s}(uq,u,v,!0,r,e[oS]);function f(t){var r=i&&i.xhrOnComplete;if(r&&tv(r))r(t,n,e);else{var a=it(t);w(n,t[of],il(t,o),a)}}return o||d[oE]("Content-type","application/json"),ng(tV(c),function(e){d[oE](e,c[e])}),d.onreadystatechange=function(){!o&&(f(d),4===d.readyState&&s&&s(!0))},d.onload=function(){o&&f(d)},d.onerror=function(e){w(n,o?d[of]:400,il(d,o),o?"":io(d)),l&&l(e)},d.ontimeout=function(){w(n,o?d[of]:500,il(d,o),o?"":io(d)),s&&s(!1)},d.send(e[og]),a}function S(e,n,r){var a,l,c,u,d=e[ox],f=e[og],g=o?f:new Blob([f],{type:"application/json"}),y=new Headers,x=f[rC],C=!1,k=!1,S=e[ok]||{},E=((a={method:uq,body:g})[u$]=!0,a);e.headers&&tV(e.headers)[rC]>0&&(ng(tV(S),function(e){y.append(e,S[e])}),E[ok]=y),s?E.credentials=s:v&&o&&(E.credentials="include"),r&&(E.keepalive=!0,m+=x,o?2===e._sendReason&&(C=!0,p&&(d+=uU)):C=!0);var T=new Request(d,E);try{T[u$]=!0}catch(e){}if(!r&&t&&(l=uM(function(e,t){c=e,u=t})),!d){b(n),c&&c(!1);return}function A(e){w(n,o?0:400,{},o?"":e)}function M(e,t,r){var o=e[of],a=i.fetchOnComplete;a&&tv(a)?a(e,n,r||"",t):w(n,o,{},r||"")}try{up(fetch(o?d:T,o?E:null),function(t){if(r&&(m-=x,x=0),!k){if(k=!0,t.rejected)A(t.reason&&t.reason[r6]),u&&u(t.reason);else{var n=t[rV];try{o||n.ok?o&&!n.body?(M(n,null,""),c&&c(!0)):up(n.text(),function(t){M(n,e,t[rV]),c&&c(!0)}):(A(n.statusText),c&&c(!1))}catch(e){A(tD(e)),u&&u(e)}}}})}catch(e){!k&&(A(tD(e)),u&&u(e))}return C&&!k&&(k=!0,w(n,200,{}),c&&c(!0)),o&&!k&&e[oS]>0&&h&&h.set(function(){!k&&(k=!0,w(n,500,{}),c&&c(!0))},e[oS]),l}function E(e,t,n){var a=nt(),s=new XDomainRequest,l=e[og];s.onload=function(){var n=it(s),r=i&&i.xdrOnComplete;r&&tv(r)?r(s,t,e):w(t,200,{},n)},s.onerror=function(){w(t,400,{},o?"":ir(s))},s.ontimeout=function(){w(t,500,{})},s.onprogress=function(){};var c=a&&a.location&&a.location[or]||"",u=e[ox];if(!u){b(t);return}if(!o&&0!==u.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";ar(r,2,40,". "+d),y(d,t);return}var f=o?u:u[ol](/^(https?:)/,"");s.open(uq,f),e[oS]&&(s[oS]=e[oS]),s.send(l),o&&n?h&&h.set(function(){s.send(l)},0):s.send(l)}function T(){m=0,n=!1,t=!1,r=null,o=null,i=null,a=null,s=null,l=null,c=!1,u=!1,d=!1,f=!1,p=!1,h=null}T(),e[rP]=function(t,o){r=o,n&&ar(r,1,28,"Sender is already initialized"),e.SetConfig(t),n=!0},e._getDbgPlgTargets=function(){return[n,o,a,t]},e.SetConfig=function(e){try{if(i=e.senderOnCompleteCallBack||{},a=!!e.disableCredentials,s=e.fetchCredentials,o=!!e.isOneDs,t=!!e.enableSendPromise,c=!!e.disableXhr,u=!!e.disableBeacon,d=!!e.disableBeaconSync,h=e.timeWrapper,p=!!e.addNoResponse,f=!!e.disableFetchKeepAlive,l={sendPOST:k},o||(v=!1),a){var n=ib();n&&n.protocol&&"file:"===n.protocol[rw]()&&(v=!1)}return!0}catch(e){}return!1},e.getSyncFetchPayload=function(){return m},e.getSenderInst=function(e,t){return e&&e[rC]?function(e,t){for(var n,r=0,o=null,i=0;null==o&&i<e[rC];)r=e[i],c||1!==r?2===r&&iE(t)&&(!t||!f)?o=S:3===r&&iS()&&(t?!d:!u)&&(o=C):(null===ig&&(ig=typeof XDomainRequest!==rd)&&iT()&&(ig=ig&&!iy(t7(ip),"withCredentials")),ig)?o=E:iT()&&(o=k),i++;return o?((n={_transport:r,_isSync:t})[oC]=o,n):null}(e,t):null},e.getFallbackInst=function(){return l},e[r7]=function(e,t){T()}})}return e.__ieDyn=1,e}();function uW(e,t){if(e&&e[rQ])return e[rQ](t)}function uJ(e,t){try{if(e&&""!==e){var n=ix().parse(e);if(n&&n[ow]&&n[ow]>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors[rC])return n}}catch(n){ar(t,1,43,"Cannot parse the response. "+(n[rq]||tD(n)),{response:e})}return null}function uG(e){var t="ai."+e+".";return function(e){return t+e}}var uK=uG("application"),uY=uG("device"),uX=uG("location"),uQ=uG("operation"),u0=uG("session"),u1=uG("user"),u2=uG("cloud"),u4=uG("internal"),u3=function(e){function t(){return e.call(this)||this}return ry(t,e),t}((p={applicationVersion:uK("ver"),applicationBuild:uK("build"),applicationTypeId:uK("typeId"),applicationId:uK("applicationId"),applicationLayer:uK("layer"),deviceId:uY("id"),deviceIp:uY("ip"),deviceLanguage:uY("language"),deviceLocale:uY("locale"),deviceModel:uY("model"),deviceFriendlyName:uY("friendlyName"),deviceNetwork:uY("network"),deviceNetworkName:uY("networkName"),deviceOEMName:uY("oemName"),deviceOS:uY("os"),deviceOSVersion:uY("osVersion"),deviceRoleInstance:uY("roleInstance"),deviceRoleName:uY("roleName"),deviceScreenResolution:uY("screenResolution"),deviceType:uY("type"),deviceMachineName:uY("machineName"),deviceVMName:uY("vmName"),deviceBrowser:uY("browser"),deviceBrowserVersion:uY("browserVersion"),locationIp:uX("ip"),locationCountry:uX("country"),locationProvince:uX("province"),locationCity:uX("city"),operationId:uQ("id"),operationName:uQ("name"),operationParentId:uQ("parentId"),operationRootId:uQ("rootId"),operationSyntheticSource:uQ("syntheticSource"),operationCorrelationVector:uQ("correlationVector"),sessionId:u0("id"),sessionIsFirst:u0("isFirst"),sessionIsNew:u0("isNew"),userAccountAcquisitionDate:u1("accountAcquisitionDate"),userAccountId:u1("accountId"),userAgent:u1("userAgent"),userId:u1("id"),userStoreRegion:u1("storeRegion"),userAuthUserId:u1("authUserId"),userAnonymousUserAcquisitionDate:u1("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:u1("authUserAcquisitionDate"),cloudName:u2("name"),cloudRole:u2("role"),cloudRoleVer:u2("roleVer"),cloudRoleInstance:u2("roleInstance"),cloudEnvironment:u2("environment"),cloudLocation:u2("location"),cloudDeploymentUnit:u2("deploymentUnit"),internalNodeName:u4("nodeName"),internalSdkVersion:u4("sdkVersion"),internalAgentVersion:u4("agentVersion"),internalSnippet:u4("snippet"),internalSdkSrc:u4("sdkSrc")},function(){var e=this;p&&tN(p,function(t,n){e[t]=n})})),u5={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os"},u6=new u3,u8=function(e,t,n){var r=this;this.ver=1,this.sampleRate=100,this.tags={},this[ah]=si(e,n)||sn,this.data=t,this.time=o2(new Date),this.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},u9=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},u7="duration",de="tags",dt="deviceType",dn="data",dr="name",di="traceID",da="length",ds="stringify",dl="measurements",dc="dataType",du="envelopeType",dd="toString",df="_get",dp="enqueue",dh="count",dm="eventsLimitInMem",dg="push",dv="item",dy="emitLineDelimitedJson",db="clear",dw="createNew",dx="markAsSent",dC="clearSent",dk="bufferOverride",dS="BUFFER_KEY",dE="SENT_BUFFER_KEY",dT="concat",dA="MAX_BUFFER_SIZE",dM="triggerSend",dN="diagLog",dO="initialize",dI="_sender",dL="endpointUrl",dR="instrumentationKey",dj="customHeaders",dP="maxBatchSizeInBytes",d_="onunloadDisableBeacon",dD="isBeaconApiDisabled",dz="alwaysUseXhrOverride",dB="disableXhr",dH="enableSessionStorageBuffer",dF="_buffer",dV="onunloadDisableFetch",d$="disableSendBeaconSplit",dU="enableSendPromise",dq="getSenderInst",dZ="unloadTransports",dW="convertUndefined",dJ="maxBatchInterval",dG="serialize",dK="_onError",dY="_onPartialSuccess",dX="_onSuccess",dQ="itemsReceived",d0="itemsAccepted",d1="oriPayload",d2="baseType",d4="sampleRate",d3="eventsSendRequest",d5="getSamplingScore",d6="baseType",d8="baseData",d9="properties",d7="true";function fe(e,t,n){return o3(e,t,n,tE)}function ft(e,t,n){th(e)||tN(e,function(e,r){tx(r)?n[e]=r:tg(r)?t[e]=r:iw()&&(t[e]=ix()[ds](r))})}function fn(e,t){th(e)||tN(e,function(n,r){e[n]=r||t})}function fr(e,t,n,r){var o=new u8(e,r,t);fe(o,"sampleRate",n[a8]),(n[d8]||{}).startTime&&(o.time=o2(n[d8].startTime)),o.iKey=n.iKey;var i=n.iKey.replace(/-/g,"");return o[dr]=o[dr].replace("{0}",i),!function(e,t,n){var r=n[de]=n[de]||{},o=t.ext=t.ext||{},i=t[de]=t[de]||[],a=o.user;a&&(fe(r,u6.userAuthUserId,a.authId),fe(r,u6.userId,a.id||a.localId));var s=o.app;s&&fe(r,u6.sessionId,s.sesId);var l=o.device;l&&(fe(r,u6.deviceId,l.id||l.localId),fe(r,u6[dt],l.deviceClass),fe(r,u6.deviceIp,l.ip),fe(r,u6.deviceModel,l.model),fe(r,u6[dt],l[dt]));var c=t.ext.web;if(c){fe(r,u6.deviceLanguage,c.browserLang),fe(r,u6.deviceBrowserVersion,c.browserVer),fe(r,u6.deviceBrowser,c.browser);var u=n[dn]=n[dn]||{},d=u[d8]=u[d8]||{},f=d[d9]=d[d9]||{};fe(f,"domain",c.domain),fe(f,"isManual",c.isManual?d7:null),fe(f,"screenRes",c.screenRes),fe(f,"userConsent",c.userConsent?d7:null)}var p=o.os;p&&(fe(r,u6.deviceOS,p[dr]),fe(r,u6.deviceOSVersion,p.osVer));var h=o.trace;h&&(fe(r,u6.operationParentId,h.parentID),fe(r,u6.operationName,si(e,h[dr])),fe(r,u6.operationId,h[di]));for(var m={},g=i[da]-1;g>=0;g--)tN(i[g],function(e,t){m[e]=t}),i.splice(g,1);tN(i,function(e,t){m[e]=t});var v=rg(rg({},r),m);v[u6.internalSdkVersion]||(v[u6.internalSdkVersion]=si(e,"javascript:".concat(fi.Version),64)),n[de]=o7(v)}(e,n,o),n[de]=n[de]||[],o7(o)}function fo(e,t){th(t[d8])&&ar(e,1,46,"telemetryItem.baseData cannot be null.")}var fi={Version:"3.3.3"};function fa(e,t,n){fo(e,t);var r={},o={};t[d6]!==sf[dc]&&(r.baseTypeSource=t[d6]),t[d6]===sf[dc]?(r=t[d8][d9]||{},o=t[d8][dl]||{}):t[d8]&&ft(t[d8],r,o),ft(t[dn],r,o),th(n)||fn(r,n);var i=new sf(e,t[d8][dr],r,o),a=new u9(sf[dc],i);return fr(e,sf[du],t,a)}var fs=function(){function e(t,n){var r=[],o=!1,i=n.maxRetryCnt;this[df]=function(){return r},this._set=function(e){return r=e},rl(e,this,function(e){e[dp]=function(a){if(e[dh]()>=n[dm]){o||(ar(t,2,105,"Maximum in-memory buffer size reached: "+e[dh](),!0),o=!0);return}a.cnt=a.cnt||0,(th(i)||!(a.cnt>i))&&r[dg](a)},e[dh]=function(){return r[da]},e.size=function(){for(var e=r[da],t=0;t<r[da];t++)e+=r[t].item[da];return n[dy]||(e+=2),e},e[db]=function(){r=[],o=!1},e.getItems=function(){return r.slice(0)},e.batchPayloads=function(e){if(e&&e[da]>0){var t=[];return ng(e,function(e){t[dg](e[dv])}),n[dy]?t.join("\n"):"["+t.join(",")+"]"}return null},e[dw]=function(e,n,o){var i=r.slice(0);e=e||t,n=n||{};var a=o?new fu(e,n):new fl(e,n);return ng(i,function(e){a[dp](e)}),a}})}return e.__ieDyn=1,e}(),fl=function(e){function t(n,r){var o=e.call(this,n,r)||this;return rl(t,o,function(e,t){e[dx]=function(e){t[db]()},e[dC]=function(e){}}),o}return ry(t,e),t.__ieDyn=1,t}(fs),fc=["AI_buffer","AI_sentBuffer"],fu=function(e){function t(n,r){var o=e.call(this,n,r)||this,i=!1,a=null==r?void 0:r.namePrefix,s=r[dk]||{getItem:a0,setItem:a1},l=s.getItem,c=s.setItem,u=r.maxRetryCnt;return rl(t,o,function(e,r){var o=m(t[dS]),s=m(t[dE]),d=function(){var e=[];try{return ng(fc,function(t){var n=y(t);if(e=e[dT](n),a){var r=y(a+"_"+t);e=e[dT](r)}}),e}catch(e){ar(n,2,41,"Transfer events from previous buffers: "+o4(e)+". previous Buffer items can not be removed",{exception:tD(e)})}return[]}(),f=s[dT](d),p=e._set(o[dT](f));function h(e,t){var n=[],r=[];return ng(e,function(e){r[dg](e[dv])}),ng(t,function(e){tv(e)||-1!==nv(r,e[dv])||n[dg](e)}),n}function m(e){var t=e;return g(t=a?a+"_"+t:t)}function g(e){try{var t=l(n,e);if(t){var r=ix().parse(t);if(tg(r)&&(r=ix().parse(r)),r&&tb(r))return r}}catch(t){ar(n,1,42," storage key: "+e+", "+o4(t),{exception:tD(t)})}return[]}function v(e,t){var r=e;try{r=a?a+"_"+r:r;var o=JSON[ds](t);c(n,r,o)}catch(e){c(n,r,JSON[ds]([])),ar(n,2,41," storage key: "+r+", "+o4(e)+". Buffer cleared",{exception:tD(e)})}}function y(e){try{var t=g(e),r=[];return ng(t,function(e){r[dg]({item:e,cnt:0})}),a2(n,e),r}catch(e){}return[]}p[da]>t[dA]&&(p[da]=t[dA]),v(t[dE],[]),v(t[dS],p),e[dp]=function(o){if(e[dh]()>=t[dA]){i||(ar(n,2,67,"Maximum buffer size reached: "+e[dh](),!0),i=!0);return}o.cnt=o.cnt||0,(th(u)||!(o.cnt>u))&&(r[dp](o),v(t.BUFFER_KEY,e[df]()))},e[db]=function(){r[db](),v(t.BUFFER_KEY,e[df]()),v(t[dE],[]),i=!1},e[dx]=function(r){v(t[dS],e._set(h(r,e[df]())));var o=m(t[dE]);o instanceof Array&&r instanceof Array&&((o=o[dT](r))[da]>t[dA]&&(ar(n,1,67,"Sent buffer reached its maximum size: "+o[da],!0),o[da]=t[dA]),v(t[dE],o))},e[dC]=function(e){var n=m(t[dE]);n=h(e,n),v(t[dE],n)},e[dw]=function(r,o,i){i=!!i;var a=e[df]().slice(0),s=m(t[dE]).slice(0);r=r||n,o=o||{},e[db]();var l=i?new t(r,o):new fl(r,o);return ng(a,function(e){l[dp](e)}),i&&l[dx](s),l}}),o}return ry(t,e),t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+t.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(fs),fd=function(){function e(t){rl(e,this,function(e){function n(e,i){var a="__aiCircularRefCheck",s={};if(!e)return ar(t,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),s;if(e[a])return ar(t,2,50,"Circular reference detected while serializing object",{name:i},!0),s;if(!e.aiDataContract){if("measurements"===i)s=o(e,"number",i);else if("properties"===i)s=o(e,"string",i);else if("tags"===i)s=o(e,"string",i);else if(tb(e))s=r(e,i);else{ar(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{ix()[ds](e),s=e}catch(e){ar(t,1,48,e&&tv(e[dd])?e[dd]():"Error serializing object",null,!0)}}return s}return e[a]=!0,tN(e.aiDataContract,function(o,a){var l=tv(a)?1&a():1&a,c=tv(a)?4&a():4&a,u=2&a,d=void 0!==e[o],f=ty(e[o])&&null!==e[o];if(!l||d||u){if(!c){var p=void 0;void 0!==(p=f?u?r(e[o],o):n(e[o],o):e[o])&&(s[o]=p)}}else ar(t,1,24,"Missing required field specification. The field is required but not present on source",{field:o,name:i})}),delete e[a],s}function r(e,r){var o;if(e){if(tb(e)){o=[];for(var i=0;i<e[da];i++){var a=n(e[i],r+"["+i+"]");o[dg](a)}}else ar(t,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},!0)}return o}function o(e,n,r){var o;return e&&(o={},tN(e,function(e,i){if("string"===n)void 0===i?o[e]="undefined":null===i?o[e]="null":i[dd]?o[e]=i[dd]():o[e]="invalid field: toString() is not defined.";else if("number"===n){if(void 0===i)o[e]="undefined";else if(null===i)o[e]="null";else{var a=parseFloat(i);o[e]=a}}else o[e]="invalid field: "+r+" is of unknown type.",ar(t,1,o[e],null,!0)})),o}e[dG]=function(e){var r=n(e,"root");try{return ix()[ds](r)}catch(e){ar(t,1,48,e&&tv(e[dd])?e[dd]():"Error serializing object",null,!0)}}})}return e.__ieDyn=1,e}(),ff=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return this.getHashCode(t)/e.INT_MAX_VALUE*100},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[da]<8;)e=e[dT](e);for(var t=5381,n=0;n<e[da];++n)t=(t<<5)+t+e.charCodeAt(n),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),fp=function(){var e=new ff,t=new u3;this[d5]=function(n){return n[de]&&n[de][t.userId]?e.getHashCodeScore(n[de][t.userId]):n.ext&&n.ext.user&&n.ext.user.id?e.getHashCodeScore(n.ext.user.id):n[de]&&n[de][t.operationId]?e.getHashCodeScore(n[de][t.operationId]):n.ext&&n.ext.telemetryTrace&&n.ext.telemetryTrace[di]?e.getHashCodeScore(n.ext.telemetryTrace[di]):100*Math.random()}},fh=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var n=t||ae(null);(e>100||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[d4]=e,this.samplingScoreGenerator=new fp}return e.prototype.isSampledIn=function(e){var t=this[d4];return null==t||t>=100||e.baseType===sm[dc]||this.samplingScoreGenerator[d5](e)<t},e}(),fm=void 0;function fg(e){try{return e.responseText}catch(e){}return null}var fv=t$(((er={endpointUrl:s6(tE,se+st)})[dy]=s8(),er[dJ]=15e3,er[dP]=102400,er.disableTelemetry=s8(),er[dH]=s8(!0),er.isRetryDisabled=s8(),er[dD]=s8(!0),er[d$]=s8(!0),er[dB]=s8(),er[dV]=s8(),er[d_]=s8(),er[dR]=fm,er.namePrefix=fm,er.samplingPercentage=s6(function(e){return!isNaN(e)&&e>0&&e<=100},100),er[dj]=fm,er[dW]=fm,er[dm]=1e4,er[dk]=!1,er.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:fm},er[dz]=s8(),er.transports=fm,er.retryCodes=fm,er.maxRetryCnt={isVal:tx,v:10},er)),fy=((eo={})[sf.dataType]=fa,eo[sp.dataType]=function(e,t,n){fo(e,t);var r=t[d8].message,o=t[d8].severityLevel,i=t[d8][d9]||{},a=t[d8][dl]||{};ft(t[dn],i,a),th(n)||fn(i,n);var s=new sp(e,r,o,i,a),l=new u9(sp[dc],s);return fr(e,sp[du],t,l)},eo[sv.dataType]=function(e,t,n){fo(e,t);var r,o,i=t[d8];th(i)||th(i[d9])||th(i[d9][u7])?th(t[dn])||th(t[dn][u7])||(r=t[dn][u7],delete t[dn][u7]):(r=i[d9][u7],delete i[d9][u7]);var a=t[d8];((t.ext||{}).trace||{})[di]&&(o=t.ext.trace[di]);var s=a.id||o,l=a[dr],c=a.uri,u=a[d9]||{},d=a[dl]||{};th(a.refUri)||(u.refUri=a.refUri),th(a.pageType)||(u.pageType=a.pageType),th(a.isLoggedIn)||(u.isLoggedIn=a.isLoggedIn[dd]()),th(a[d9])||tN(a[d9],function(e,t){u[e]=t}),ft(t[dn],u,d),th(n)||fn(u,n);var f=new sv(e,l,c,r,u,d,s),p=new u9(sv[dc],f);return fr(e,sv[du],t,p)},eo[sy.dataType]=function(e,t,n){fo(e,t);var r=t[d8],o=r[dr],i=r.uri||r.url,a=r[d9]||{},s=r[dl]||{};ft(t[dn],a,s),th(n)||fn(a,n);var l=new sy(e,o,i,void 0,a,s,r),c=new u9(sy[dc],l);return fr(e,sy[du],t,c)},eo[sL.dataType]=function(e,t,n){fo(e,t);var r=t[d8][dl]||{},o=t[d8][d9]||{};ft(t[dn],o,r),th(n)||fn(o,n);var i=t[d8],a=sL.CreateFromInterface(e,i,o,r),s=new u9(sL[dc],a);return fr(e,sL[du],t,s)},eo[sm.dataType]=function(e,t,n){fo(e,t);var r=t[d8],o=r[d9]||{},i=r[dl]||{};ft(t[dn],o,i),th(n)||fn(o,n);var a=new sm(e,r[dr],r.average,r.sampleCount,r.min,r.max,r.stdDev,o,i),s=new u9(sm[dc],a);return fr(e,sm[du],t,s)},eo[s2.dataType]=function(e,t,n){fo(e,t);var r=t[d8][dl]||{},o=t[d8][d9]||{};ft(t[dn],o,r),th(n)||fn(o,n);var i=t[d8];if(th(i))return ao(e,"Invalid input for dependency data"),null;var a=i[d9]&&i[d9][a7]?i[d9][a7]:"GET",s=new s2(e,i.id,i.target,i[dr],i[u7],i.success,i.responseCode,a,i.type,i.correlationContext,o,r),l=new u9(s2[dc],s);return fr(e,s2[du],t,l)},eo),fb=function(e){function t(){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,C,k,S,E,T,A,M,N,O,I,L,R,j,P=e.call(this)||this;P.priority=1001,P.identifier=a3;var _=0;return rl(t,P,function(e,D){function z(t,r){var o=fg(t);if(t&&(o+""=="200"||""===o))n=0,e[dX](r,0);else{var i=uJ(o);i&&i[dQ]&&i[dQ]>i[d0]&&!x?e[dY](r,i):e[dK](r,ir(t))}}function B(e,t,n){4===e.readyState&&K(e.status,t,e.responseURL,n,io(e),fg(e)||e.response)}function H(e){try{if(e){var t=e[d1];if(t&&t[da])return t}}catch(e){}return null}function F(t,n){return!y&&(t?t.baseData&&!t[d2]?(n&&ar(n,1,70,"Cannot send telemetry without baseData and baseType"),!1):(t[d2]||(t[d2]="EventData"),e[dI])?e._sample.isSampledIn(t)?(t[a8]=e._sample[d4],!0):(n&&ar(n,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[d4]}),!1):(n&&ar(n,1,28,"Sender was not initialized"),!1):(n&&ar(n,1,7,"Cannot send empty telemetry"),!1))}function V(e,n){var r=e.iKey||b,o=t.constructEnvelope(e,r,n,w);if(!o){ar(n,1,47,"Unable to create an AppInsights envelope");return}var i=!1;if(e[de]&&e[de][a9]&&(ng(e[de][a9],function(e){try{e&&!1===e(o)&&(i=!0,ao(n,"Telemetry processor check returns false"))}catch(e){ar(n,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+o4(e),{exception:tD(e)},!0)}}),delete e[de][a9]),!i)return o}function $(t){var n="",r=e[dN]();try{var o=F(t,r),i=null;o&&(i=V(t,r)),i&&(n=a[dG](i))}catch(e){}return n}function U(e){var t="";return e&&e[da]&&(t="["+e.join(",")+"]"),t}function q(e){var t,n=J();return(t={urlString:d})[dn]=e,t.headers=n,t}function Z(t,n,r,o){void 0===o&&(o=!0);var i=W(n),a=t&&t.sendPOST;return a&&i?(o&&e._buffer[dx](n),a(i,function(t,r,o){200===t&&n?e._onSuccess(n,n[da]):o&&e[dK](n,o)},!r)):null}function W(t){var n;if(tb(t)&&t[da]>0){var r=e[dF].batchPayloads(t),o=J();return(n={})[dn]=r,n.urlString=d,n.headers=o,n.disableXhrSync=M,n.disableFetchKeepAlive=!N,n[d1]=t,n}return null}function J(){try{var e=l||{};return sK(d)&&(e[s$[6]]=s$[7]),e}catch(e){}return null}function G(t){var n=t?t[da]:0;return e[dF].size()+n>p&&((!u||u.isOnline())&&e[dM](!0,null,10),!0)}function K(t,r,o,i,a,s){var l=null;if(!e._appId&&(l=uJ(s))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Y(o)){e[dK](r,a);return}if(u&&!u.isOnline()){x||(et(r,10),ar(e[dN](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!u.isOnline(),". Will retry to send ").concat(r.length," items.")));return}!x&&eo(t)?(et(r),ar(e[dN](),2,40,". Response code "+t+". Will retry to send "+r[da]+" items.")):e[dK](r,a)}else Y(o),206===t?(l||(l=uJ(s)),l&&!x?e[dY](r,l):e[dK](r,a)):(n=0,e[dX](r,i))}function Y(e){return!(s>=10)&&!th(e)&&""!==e&&e!==d&&(d=e,++s,!0)}function X(e,t){if(!c)return Z(R&&R[dq]([3],!0),e,t);c(e,!1)}function Q(e){try{if(e&&e[da])return tg(e[0])}catch(e){}return null}function ee(t,n){var r=null;if(tb(t)){for(var o=t[da],i=0;i<t[da];i++)o+=t[i].item[da];return R.getSyncFetchPayload()+o<=65e3?r=2:iS()?r=3:(r=1,ar(e[dN](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),Z(R&&R[dq]([r],!0),t,n)}return null}function et(t,o){if(void 0===o&&(o=1),t&&0!==t[da]){var i=e[dF];i[dC](t),n++;for(var a=0;a<t.length;a++){var s=t[a];s.cnt=s.cnt||0,s.cnt++,i[dp](s)}(function(e){var t;if(n<=1)t=10;else{var o=Math.floor((Math.pow(2,n)-1)/2*Math.random()*10)+1;o*=e,t=Math.max(Math.min(o,3600),10)}r=nE()+1e3*t})(o),en()}}function en(){if(!i&&!o){var t=r?Math.max(0,r-nE()):0;i=n$(function(){i=null,e[dM](!0,null,1)},Math.max(C,t))}}function er(){i&&i.cancel(),i=null,r=null}function eo(e){return th(j)?401===e||408===e||429===e||500===e||502===e||503===e||504===e:j[da]&&j.indexOf(e)>-1}function ei(){e[dI]=null,e[dF]=null,e._appId=null,e._sample=null,l={},u=null,n=0,r=null,o=!1,i=null,a=null,s=0,_=0,c=null,d=null,f=null,p=0,h=!1,v=null,y=!1,b=null,w=fm,x=!1,k=null,E=fm,M=!1,N=!1,L=!1,O=null,I=null,R=null,tR(e,"_senderConfig",{g:function(){return function e(t,n,r,o,i,a){var s=arguments,l=s[0]||{},c=s[rC],u=!1,d=1;for(c>0&&tC(l)&&(u=l,l=s[d]||{},d++),ty(l)||(l={});d<c;d++){var f=s[d],p=tb(f),h=ty(f);for(var m in f)if(p&&m in f||h&&tM(f,m)){var g=f[m],v=void 0;if(u&&g&&((v=tb(g))||nA(g))){var y=l[m];v?tb(y)||(y=[]):nA(y)||(y={}),g=e(u,y,g)}void 0!==g&&(l[m]=g)}}return l}({},fv)}})}ei(),e.pause=function(){er(),o=!0},e.resume=function(){o&&(o=!1,r=null,G(),en())},e.flush=function(t,n,r){if(void 0===t&&(t=!0),!o){er();try{return e[dM](t,null,r||1)}catch(t){ar(e[dN](),1,22,"flush failed, telemetry will not be collected: "+o4(t),{exception:tD(t)})}}},e.onunloadFlush=function(){if(!o){if(h||A)try{return e[dM](!0,X,2)}catch(t){ar(e[dN](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+o4(t),{exception:tD(t)})}else e.flush(!1)}},e.addHeader=function(e,t){l[e]=t},e[dO]=function(t,o,i,_){e.isInitialized()&&ar(e[dN](),1,28,"Sender is already initialized"),D[dO](t,o,i,_);var F=e.identifier;a=new fd(o.logger),n=0,r=null,e[dI]=null,s=0;var V=e[dN]();u=function(e){var t=ne(),n=nn(),r=!1,o=[],i=1;!n||th(n.onLine)||n.onLine||(i=2);var a=0,s=d(),l=l$(i_("OfflineListener"),e);try{if(u(nt())&&(r=!0),t){var c=t.body||t;c.ononline&&u(c)&&(r=!0)}}catch(e){r=!1}function u(e){var t=!1;return e&&(t=lU(e,"online",p,l))&&lU(e,"offline",h,l),t}function d(){return 2!==a&&2!==i}function f(){var e=d();s!==e&&(s=e,ng(o,function(e){var t={isOnline:s,rState:i,uState:a};try{e(t)}catch(e){}}))}function p(){i=1,f()}function h(){i=2,f()}return{isOnline:function(){return s},isListening:function(){return r},unload:function(){var e=nt();if(e&&r){if(uF(e,l),t){var n=t.body||t;tp(n.ononline)||uF(n,l)}r=!1}},addListener:function(e){return o[af](e),{rm:function(){var t=o.indexOf(e);return t>-1?o.splice(t,1):void 0}}},setOnlineState:function(e){a=e,f()}}}(l$(i_("Sender"),o.evtNamespace&&o.evtNamespace())),e._addHook(i0(t,function(t){var n,r,i=t.cfg;i.storagePrefix&&(aZ=i.storagePrefix||"");var a=l7(null,i,o).getExtCfg(F,fv);tS(a[dL])&&(a[dL]=i[dL]),tS(a[dR])&&(a[dR]=i[dR]),tR(e,"_senderConfig",{g:function(){return a}}),f!==a[dL]&&(d=f=a[dL]),o.activeStatus()===uV.PENDING?e.pause():o.activeStatus()===uV.ACTIVE&&e.resume(),v&&v!==a[dj]&&ng(v,function(e){delete l[e.header]}),p=a[dP],h=(!1===a[d_]||!1===a[dD])&&iS(),m=!1===a[d_]&&iS(),g=!1===a[dD]&&iS(),A=a[dz],M=!!a[dB],j=a.retryCodes;var s=a[dk],u=!!a[dH]&&(!!s||aQ()),_=a.namePrefix,D=u!==k||u&&E!==_||u&&S!==s;if(e[dF]){if(D)try{e._buffer=e._buffer[dw](V,a,u)}catch(t){ar(e[dN](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+o4(t),{exception:tD(t)})}G()}else e[dF]=u?new fu(V,a):new fl(V,a);E=_,k=u,S=s,N=!a[dV]&&iE(!0),L=!!a[d$],e._sample=new fh(a.samplingPercentage,V),tS(b=a[dR])||(n=b,!th(r=i.disableInstrumentationKeyValidation)&&r||RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(n))||ar(V,1,100,"Invalid Instrumentation key "+b),v=a[dj],tg(d)&&!sK(d)&&v&&v[da]>0?ng(v,function(e){P.addHeader(e.header,e.value)}):v=null,T=a[dU];var $=function(){var t;try{return(t={})[dU]=T,t.isOneDs=!1,t.disableCredentials=!1,t[dB]=M,t.disableBeacon=!g,t.disableBeaconSync=!m,t.senderOnCompleteCallBack={xdrOnComplete:function(e,t,n){var r=H(n);if(r)return z(e,r)},fetchOnComplete:function(e,t,n,r){var o=H(r);if(o)return K(e.status,o,e.url,o[da],e.statusText,n||"")},xhrOnComplete:function(e,t,n){var r=H(n);if(r)return B(e,r,r[da])},beaconOnRetry:function(t,n,r){return function(t,n,r){var o=t&&t[d1];if(L)I&&I(o,!0),ar(e[dN](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var i=[],a=0;a<o[da];a++){var s=o[a],l=[s];r(W(l),n)?e._onSuccess(l,l[da]):i[dg](s)}i[da]>0&&(I&&I(i,!0),ar(e[dN](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,n,r)}},t}catch(e){}return null}();R?R.SetConfig($):(R=new uZ)[dO]($,V);var U=a.httpXHROverride,q=null,J=null,Y=ii([3,1,2],a.transports);q=R&&R[dq](Y,!1);var X=R&&R.getFallbackInst();O=function(e,t){return Z(X,e,t)},I=function(e,t){return Z(X,e,t,!1)},q=A?U:q||U||X,e[dI]=function(e,t){return Z(q,e,t)},N&&(c=ee);var Q=ii([3,1],a[dZ]);N||(Q=Q.filter(function(e){return 2!==e})),J=R&&R[dq](Q,!0),J=A?U:J||U,(A||a[dZ]||!c)&&J&&(c=function(e,t){return Z(J,e,t)}),c||(c=O),y=a.disableTelemetry,w=a[dW]||fm,x=a.isRetryDisabled,C=a[dJ]}))},e.processTelemetry=function(t,n){var r,o=(n=e._getTelCtx(n))[dN]();try{if(!F(t,o))return;var i=V(t,o);if(!i)return;var s=a[dG](i),l=e[dF];G(s);var c=((r={})[dv]=s,r.cnt=0,r);l[dp](c),en()}catch(e){ar(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+o4(e),{exception:tD(e)})}e.processNext(t,n)},e.isCompletelyIdle=function(){return!o&&0===_&&0===e._buffer[dh]()},e._xhrReadyStateChange=function(e,t,n){if(!Q(t))return B(e,t,n)},e[dM]=function(t,n,r){if(void 0===t&&(t=!0),!o)try{var i,a=e[dF];if(y)a[db]();else if(a[dh]()>0){var s=a.getItems();(function(t,n){var r,o=(r="getNotifyMgr",e.core[r]?e.core[r]():e.core._notificationManager);if(o&&o[d3])try{o[d3](t,n)}catch(t){ar(e[dN](),1,74,"send request notification failed: "+o4(t),{exception:tD(t)})}})(r||0,t),i=n?n.call(e,s,t):e[dI](s,t)}er()}catch(t){var l=ik();(!l||l>9)&&ar(e[dN](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+o4(t),{exception:tD(t)})}return i},e.getOfflineSupport=function(){var e;return(e={getUrl:function(){return d},createPayload:q})[dG]=$,e.batch=U,e.shouldProcess=function(e){return!!F(e)},e},e._doTeardown=function(t,n){e.onunloadFlush(),uW(u,!1),ei()},e[dK]=function(t,n,r){if(!Q(t))return void(ar(e[dN](),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer[dC](t))},e[dY]=function(t,n){if(!Q(t))return function(t,n){for(var r=[],o=[],i=n.errors.reverse(),a=0;a<i.length;a++){var s=i[a],l=t.splice(s.index,1)[0];eo(s.statusCode)?o[dg](l):r[dg](l)}t[da]>0&&e[dX](t,n[d0]),r[da]>0&&e[dK](r,io(null,["partial success",n[d0],"of",n.itemsReceived].join(" "))),o[da]>0&&(et(o),ar(e[dN](),2,40,"Partial success. Delivered: "+t[da]+", Failed: "+r[da]+". Will retry to send "+o[da]+" our of "+n[dQ]+" items"))}(t,n)},e[dX]=function(t,n){if(!Q(t))return void(e._buffer&&e._buffer[dC](t))},e._xdrOnLoad=function(e,t){if(!Q(t))return z(e,t)}}),P}return ry(t,e),t.constructEnvelope=function(e,t,n,r){var o;return(fy[(o=t===e.iKey||th(t)?e:rg(rg({},e),{iKey:t})).baseType]||fa)(n,o,r)},t}(cm);function fw(e){if(!e)return{};var t=nw(e[as](";"),function(e,t){var n=t[as]("=");if(2===n[al]){var r=n[0][ac](),o=n[1];e[r]=o}return e},{});if(tV(t)[al]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[au]=t[au]||"https://"+n+"dc."+t.endpointsuffix}t[au]=t[au]||se,nz(t[au],"/")&&(t[au]=t[au].slice(0,-1))}return t}var fx=function(e,t){var n,r,o,i,a,s,l,c=this,u=!1,d=!1;function f(e,t,o,i){if(u){if(!function(e){try{var t=p(e);return Math.floor(iO()/4294967295*1000001)>>>0<=t.limit.samplingRate}catch(e){}return!1}(e))return;var s=p(e),l=w(e),c=m(s,n,l),d=!1,f=0,h=x(e);try{c&&!h?(f=Math.min(s.limit.maxSendNumber,l[ag]+1),l[ag]=0,d=!0,a[e]=!0,l[av]=new Date):(a[e]=c,l[ag]+=1);var v,b=g(e);y(r,b,l);for(var k=0;k<f;k++)v=r,ar(v,o||1,e,t)}catch(e){}return{isThrottled:d,throttleNum:f}}return i&&C(e)[af]({msgID:e,message:t,severity:o}),null}function p(e){return o[e]||o[109]}function h(e,t){var n,r;try{var i,a,s,l=t||{},c={};c[ay]=!!l[ay];var u=l[ab]||{};d=(null==u?void 0:u.daysOfMonth)&&(null==u?void 0:u.daysOfMonth[al])>0,c[ab]=(i=u,a=null==(i=i||{})?void 0:i.monthInterval,s=null==i?void 0:i.dayInterval,th(a)&&th(s)&&(i.monthInterval=3,d||(i[aw]=[28],d=!0)),i={monthInterval:null==i?void 0:i.monthInterval,dayInterval:null==i?void 0:i.dayInterval,daysOfMonth:null==i?void 0:i.daysOfMonth});var f={samplingRate:(null===(n=l.limit)||void 0===n?void 0:n.samplingRate)||100,maxSendNumber:(null===(r=l.limit)||void 0===r?void 0:r.maxSendNumber)||1};c.limit=f,o[e]=c}catch(e){}}function m(e,t,n){if(e&&!e[ay]&&t&&oQ(n)){var r=v(),o=n[ax],i=e[ab],a=1;if(null==i?void 0:i.monthInterval){var s=(r.getUTCFullYear()-o.getUTCFullYear())*12+r.getUTCMonth()-o.getUTCMonth();a=b(i.monthInterval,0,s)}var l=1;if(d)l=nv(i[aw],r[aC]());else if(null==i?void 0:i.dayInterval){var c=Math.floor((r.getTime()-o.getTime())/864e5);l=b(i.dayInterval,0,c)}return a>=0&&l>=0}return!1}function g(e,t){var n=oQ(t)?t:"";return e?"appInsightsThrottle"+n+"-"+e:null}function v(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(e){}return null}function y(e,t,n){try{return aX(e,t,nT(JSON[ak](n)))}catch(e){}return!1}function b(e,t,n){return e<=0?1:n>=t&&(n-t)%e==0?Math.floor((n-t)/e)+1:-1}function w(e){try{var t=i[e];if(!t){var n=g(e,s);t=function(e,t,n){try{var r={date:v(),count:0};if(!e)return y(t,n,r),r;var o=JSON.parse(e);return{date:v(o[ax])||r[ax],count:o[ag]||r[ag],preTriggerDate:o.preTriggerDate?v(o[av]):void 0}}catch(e){}return null}(aY(r,n),r,n),i[e]=t}return i[e]}catch(e){}return null}function x(e){var t=a[e];if(th(t)){t=!1;var n=w(e);n&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[aC]()===t[aC]()}}catch(e){}return!1}(n[av])),a[e]=t}return a[e]}function C(e){return th((l=l||{})[e])&&(l[e]=[]),l[e]}r=ae(e),a={},i={},l={},o={},h(109),s=oQ(t)?t:"",e.addUnloadHook(i0(e.config,function(e){var t=e.cfg;n=aK(),tN(t.throttleMgrCfg||{},function(e,t){h(parseInt(e),t)})})),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return o},c.canThrottle=function(e){var t=w(e);return m(p(e),n,t)},c.isTriggered=function(e){return x(e)},c.isReady=function(){return u},c.flush=function(e){try{var t=C(e);if(t&&t[al]>0){var n=t.slice(0);return l[e]=[],ng(n,function(e){f(e.msgID,e[am],e.severity,!1)}),!0}}catch(e){}return!1},c.flushAll=function(){try{if(l){var e=!0;return tN(l,function(t){var n=c.flush(parseInt(t));e=e&&n}),e}}catch(e){}return!1},c.onReadyState=function(e,t){return(void 0===t&&(t=!0),(u=!!th(e)||e)&&t)?c.flushAll():null},c.sendMessage=function(e,t,n){return f(e,t,n,!0)}},fC={perfEvtsSendAll:!1};function fk(e){e.h=null;var t=e.cb;e.cb=[],ng(t,function(e){tu(e.fn,[e.arg])})}function fS(e,t,n,r){ng(e,function(e){e&&e[t]&&(n?(n.cb[rI]({fn:r,arg:e}),n.h=n.h||n$(fk,0,n)):tu(r,[e]))})}var fE=function(){function e(t){this.listeners=[];var n,r,o=[],i={h:null,cb:[]};r=iQ(t,fC)[rM](function(e){n=!!e.cfg.perfEvtsSendAll}),rl(e,this,function(e){tR(e,"listeners",{g:function(){return o}}),e[rz]=function(e){o[rI](e)},e[rD]=function(e){for(var t=nv(o,e);t>-1;)o[rL](t,1),t=nv(o,e)},e[oB]=function(e){fS(o,oB,i,function(t){t[oB](e)})},e[oH]=function(e,t){fS(o,oH,i,function(n){n[oH](e,t)})},e[oF]=function(e,t){fS(o,oF,t?i:null,function(n){n[oF](e,t)})},e[oV]=function(e){e&&(n||!e[om]())&&fS(o,oV,null,function(t){e[r8]?n$(function(){return t[oV](e)},0):t[oV](e)})},e[o$]=function(e){e&&e[rC]&&fS(o,o$,i,function(t){t[o$](e)})},e[oU]=function(e){e&&e[og]&&fS(o,oU,i,function(t){t[oU](e)})},e[oq]=function(e,t){if(e>0){var n=t||0;fS(o,oq,i,function(t){t[oq](e,n)})}},e[rQ]=function(e){var t,n=function(){r&&r.rm(),r=null,o=[],i.h&&i.h[rj](),i.h=null,i.cb=[]};if(fS(o,"unload",null,function(n){var r=n[rQ](e);r&&(t||(t=[]),t[rI](r))}),t)return uM(function(e){return up(uN(t),function(){n(),e()})});n()}})}return e.__ieDyn=1,e}(),fT=function(e){function t(){var n,r,o=e.call(this)||this;return o.identifier="TelemetryInitializerPlugin",o.priority=199,n=0,r=[],rl(t,o,function(e,t){e.addTelemetryInitializer=function(e){var t,o;return nm(t=r,o={id:n++,fn:e}),{remove:function(){ng(t,function(e,n){if(e.id===o.id)return t[rL](n,1),-1})}}},e[oD]=function(t,n){(function(e,t,n){for(var r=!1,o=e[rC],i=0;i<o;++i){var a=e[i];if(a)try{if(!1===a.fn[rO](null,[t])){r=!0;break}}catch(e){ar(n,2,64,"Telemetry initializer failed: "+o4(e),{exception:tD(e)},!0)}}return!r})(r,t,n?n[r9]():e[r9]())&&e[rJ](t,n)},e[r7]=function(){n=0,r=[]}}),o}return ry(t,e),t.__ieDyn=1,t}(cm),fA="Plugins must provide initialize method",fM="SDK is still unloading...",fN=t$(((ei={cookieCfg:{}})[o_]={rdOnly:!0,ref:!0,v:[]},ei[oI]={rdOnly:!0,ref:!0,v:[]},ei[oP]={ref:!0,v:{}},ei[oR]=oO,ei.loggingLevelConsole=0,ei.diagnosticLogInterval=oO,ei));function fO(e,t){return new lX(t)}function fI(e,t){var n=!1;return ng(t,function(t){if(t===e)return n=!0,-1}),n}function fL(e,t){var n=null,r=-1;return ng(e,function(e,o){if(e.w===t)return n=e,r=o,-1}),{i:r,l:n}}var fR=function(){function e(){var t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,C,k,S,E,T,A,M,N,O,I,L;rl(e,this,function(e){function R(){N=!0,th(x)?(T=uV[rF],ar(r,1,112,"ikey can't be resolved from promises")):T=uV.ACTIVE,j()}function j(){n&&(e.releaseQueue(),e[rK]())}function P(e){return(!O||!O[rY])&&!L&&(e||r&&r.queue[rC]>0)&&(I||(I=!0,G(t[rM](function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var n=!1;O&&(n=O[rY],O[rj]()),(O=function(e,t){return nV(!1,e1,tc[tt](arguments))}(U,t)).unref(),O[rY]=n}))),O[rY]=!0),O}function _(){var e={};S=[];var t=function(t){t&&ng(t,function(t){if(t[r_]&&t[r1]&&!e[t.identifier]){var n=t[r_]+"="+t[r1];S[rI](n),e[t.identifier]=t}})};t(f),d&&ng(d,function(e){t(e)}),t(u)}function D(){n=!1,(t=iQ({},fN,e[rN])).cfg[r2]=1,tR(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),tR(e,"pluginVersionStringArr",{g:function(){return S||_(),S}}),tR(e,"pluginVersionString",{g:function(){return E||(S||_(),E=S.join(";")),E||""}}),tR(e,"logger",{g:function(){return r||(r=new at(t.cfg),t[rN]=r),r},s:function(e){t[rN]=e,r!==e&&(uW(r,!1),r=e)}}),e[rN]=new at(t.cfg),k=[];var b=e.config[o_]||[];b.splice(0,b[rC]),nm(b,k),h=new fT,o=[],uW(i,!1),i=null,a=null,s=null,uW(l,!1),l=null,c=null,u=[],d=null,f=null,p=!1,m=null,g=i_("AIBaseCore",!0),v=cd(),w=null,x=null,y=cf(),C=[],E=null,S=null,L=!1,O=null,I=!1,T=0,A=null,M=null,N=!1}function z(){var n=l7(V(),t.cfg,e);return n[r0](P),n}function B(t){var n,r,o,i,a,s=(n=e[rN],o=[],i=[],a={},ng(u,function(e){(th(e)||th(e[rP]))&&tz(fA);var t=e[oz],r=e[r_];e&&t&&(th(a[t])?a[t]=r:ao(n,"Two extensions have same priority #"+t+" - "+a[t]+", "+r)),!t||t<500?o[rI](e):i[rI](e)}),(r={})[oL]=o,r[oI]=i,r);c=null,E=null,S=null,f=l3(nm(f=(d||[])[0]||[],s[oI]));var l=nm(l3(s[oL]),f);k=tU(l);var p=e.config[o_]||[];p.splice(0,p[rC]),nm(p,k);var h=z();f&&f[rC]>0&&l4(h[r4](f),l),l4(h,l),t&&Z(t)}function H(e){var t=null,n=null,r=[];return ng(k,function(t){if(t[r_]===e&&t!==h)return n=t,-1;t.getChannel&&r[rI](t)}),!n&&r[rC]>0&&ng(r,function(t){if(!(n=t.getChannel(e)))return -1}),n&&(t={plugin:n,setEnabled:function(e){l2(n)[oj]=!e},isEnabled:function(){var e=l2(n);return!e[r3]&&!e[oj]},remove:function(e,t){void 0===e&&(e=!0);var r,o=[n];$(o,((r={reason:1})[r8]=e,r),function(e){e&&B({reason:32,removed:o}),t&&t(e)})}}),t}function V(){if(!c){var n=(k||[]).slice();-1===nv(n,h)&&n[rI](h),c=cn(l3(n),t.cfg,e)}return c}function $(n,r,o){if(n&&n[rC]>0){var i=ce(cn(n,t.cfg,e),e);i[r0](function(){var e=!1,t=[];ng(u,function(r,o){fI(r,n)?e=!0:t[rI](r)}),u=t,E=null,S=null;var r=[];d&&(ng(d,function(t,o){var i=[];ng(t,function(t){fI(t,n)?e=!0:i[rI](t)}),r[rI](i)}),d=r),o&&o(e),P()}),i[rJ](r)}else o(!1)}function U(){if(r&&r.queue){var t=r.queue.slice(0);r.queue[rC]=0,ng(t,function(t){var n,r=((n={})[rq]=m||"InternalMessageId: "+t[r5],n[rZ]=x,n[rW]=o2(new Date),n.baseType=i7.dataType,n.baseData={message:t[r6]},n);e.track(r)})}}function q(e,t,n,r){var o=1,i=!1,a=null;function s(){o--,i&&0===o&&(a&&a[rj](),a=null,t&&t(i),t=null)}return r=r||5e3,f&&f[rC]>0&&z()[r4](f).iterate(function(t){if(t.flush){o++;var i=!1;t.flush(e,function(){i=!0,s()},n)||i||(e&&null==a?a=n$(function(){a=null,s()},r):s())}}),i=!0,s(),!0}function Z(t){var n=ct(V(),e);n[r0](P),e._updateHook&&!0===e._updateHook(n,t)||n[rJ](t)}function W(t){var n=e[rN];n?(ar(n,2,73,t),P()):tz(t)}function J(t){var n=e[r$]();n&&n[oH]([t],2)}function G(e){y.add(e)}D(),e._getDbgPlgTargets=function(){return[k,o]},e[rB]=function(){return n},e.activeStatus=function(){return T},e._setPendingStatus=function(){T=3},e[rP]=function(o,l,c,h){p&&tz(fM),e[rB]()&&tz("Core cannot be initialized more than once"),o=(t=iQ(o,fN,c||e[rN],!1)).cfg,G(t[rM](function(e){var t=e.cfg;if(3!==T){M=t.initInMemoMaxSize||100;var i=t[rH],a=t.endpointUrl;if(th(i)){x=null,T=uV[rF];var s="Please provide instrumentation key";n?(ar(r,1,100,s),j()):tz(s);return}var l=[];if(tS(i)?(l[rI](i),x=null):x=i,tS(a)?(l[rI](a),A=null):A=a,l[rC]){N=!1,T=3;var c=oQ(t.initTimeOut)?t.initTimeOut:5e4,u=(Q||(Q=t5(function(e){var t=nb(arguments,1);return uT(function(t,n){var r=[],o=1;function i(e,n){o++,up(e,function(e){e.rejected?r[n]={status:uf,reason:e.reason}:r[n]={status:"fulfilled",value:e.value},0==--o&&t(r)})}try{tb(e)?ng(e,i):nf(e)?np(e,i):tB("Input is not an iterable"),o--,0===o&&t(r)}catch(e){n(e)}},t)})),Q.v(l,void 0));n$(function(){N||R()},c),up(u,function(e){try{if(N)return;if(!e.rejected){var t=e[rV];if(t&&t[rC]){var n=t[0];if(x=n&&n[rV],t[rC]>1){var r=t[1];A=r&&r[rV]}}x&&(o[rH]=x,o.endpointUrl=A)}R()}catch(e){N||R()}})}else R();var d=e.ref(e.cfg,oP);tN(d,function(t){e.ref(d,t)})}})),i=h,g=t,v=y,w=i&&e[r$](),k=b,v.add(g[rM](function(e){var t=e.cfg.disableDbgExt;!0===t&&k&&(w[rD](k),k=null),w&&!k&&!0!==t&&(k=function(e){if(!F){F={};for(var t=0;t<i1[rC];t++)F[i1[t]]=function(e,t){return function(){var n=arguments,r=i4(t);if(r){var o=r.listener;o&&o[e]&&o[e][rO](o,n)}}}(i1[t],e)}return F}(e.cfg),w[rz](k))})),b=k,G(t[rM](function(t){if(t.cfg.enablePerfMgr){var n=t.cfg[oR];m!==n&&(n||(n=fO),o5(t.cfg,oR,n),m=n,s=null),!a&&!s&&tv(n)&&(s=n(e,e[r$]()))}else s=null,m=null})),e[rN]=c;var m,g,v,w,k,S,E,O,I=o[o_];if((u=[])[rI].apply(u,rb(rb([],l,!1),I,!1)),d=o[oI],B(null),f&&0!==f[rC]||tz("No "+oI+" available"),d&&d[rC]>1){var L=e[rU]("TeeChannelController");L&&L.plugin||ar(r,1,28,"TeeChannel required")}S=o,E=C,O=r,ng(E,function(e){var t=i0(S,e.w,O);delete e.w,e.rm=function(){t.rm()}}),C=null,n=!0,T===uV.ACTIVE&&j()},e.getChannels=function(){var e=[];return f&&ng(f,function(t){e[rI](t)}),tU(e)},e.track=function(t){l0(e[oZ](),function(){return"AppInsightsCore:track"},function(){null===t&&(J(t),tz("Invalid telemetry item")),!t[rq]&&th(t[rq])&&(J(t),tz("telemetry name required")),t[rZ]=t[rZ]||x,t[rW]=t[rW]||o2(new Date),t.ver=t.ver||"4.0",!p&&e[rB]()&&T===uV.ACTIVE?z()[rJ](t):T!==uV[rF]&&o[rC]<=M&&o[rI](t)},function(){return{item:t}},!t.sync)},e[rG]=z,e[r$]=function(){return i||(i=new fE(t.cfg),e._notificationManager=i),i},e[rz]=function(t){e.getNotifyMgr()[rz](t)},e[rD]=function(e){i&&i[rD](e)},e.getCookieMgr=function(){return l||(l=lg(t.cfg,e[rN])),l},e.setCookieMgr=function(e){l!==e&&(uW(l,!1),l=e)},e[oZ]=function(){return a||s||null},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return o[rC]},e.releaseQueue=function(){if(n&&o[rC]>0){var e=o;o=[],2===T?ng(e,function(e){e[rZ]=e[rZ]||x,z()[rJ](e)}):ar(r,2,20,"core init status is not active")}},e[rK]=function(e){return m=e||null,L=!1,O&&O[rj](),P(!0)},e[rX]=function(){L=!0,O&&O[rj](),U()},o9(e,function(){return h},["addTelemetryInitializer"]),e[rQ]=function(t,o,a){void 0===t&&(t=!0),n||tz("SDK is not initialized"),p&&tz(fM);var s,c,u=((s={reason:50})[r8]=t,s.flushComplete=!1,s);t&&!o&&(c=uM(function(e){o=e}));var d=ce(V(),e);function f(t){u.flushComplete=t,p=!0,v.run(d,u),e[rX](),d[rJ](u)}return d[r0](function(){y.run(e[rN]),function e(t,n,r){var o;return r||(o=uM(function(e){r=e})),t&&t[e7]>0?up(uW(t[0],n),function(){e(nb(t,1),n,r)}):r(),o}([l,i,r],t,function(){D(),o&&o(u)})},e),U(),q(t,f,6,a)||f(!1),c},e[rU]=H,e.addPlugin=function(e,t,n,r){if(!e){r&&r(!1),W(fA);return}var o=H(e[r_]);if(o&&!t){r&&r(!1),W("Plugin ["+e[r_]+"] is already loaded!");return}var i={reason:16};function a(t){u[rI](e),i.added=[e],B(i),r&&r(!0)}if(o){var s=[o.plugin];$(s,{reason:2,isAsync:!!n},function(e){e?(i.removed=s,i.reason|=32,a(!0)):r&&r(!1)})}else a(!1)},e.updateCfg=function(n,r){if(void 0===r&&(r=!0),e[rB]()){n=(o={reason:1,cfg:t.cfg,oldCfg:nj({},t.cfg),newConfig:nj({},n),merge:r}).newConfig;var o,i=t.cfg;n[o_]=i[o_],n[oI]=i[oI]}t._block(function(e){var t=e.cfg;(function e(t,n,r,o){r&&tN(r,function(r,i){o&&nA(i)&&nA(n[r])&&e(t,n[r],i,o),o&&nA(i)&&nA(n[r])?e(t,n[r],i,o):t.set(n,r,i)})})(e,t,n,r),r||tN(t,function(r){tM(n,r)||e.set(t,r,oO)}),e[rA](t,fN)},!0),t[rS](),o&&Z(o)},e.evtNamespace=function(){return g},e.flush=q,e.getTraceCtx=function(e){if(!w){var t,n;n={},w={getName:function(){return n[rq]},setName:function(e){n[rq]=e},getTraceId:function(){return n[oT]},setTraceId:function(e){t&&t.setTraceId(e),sH(e)&&(n[oT]=e)},getSpanId:function(){return n[oA]},setSpanId:function(e){t&&t.setSpanId(e),sF(e)&&(n[oA]=e)},getTraceFlags:function(){return n[oM]},setTraceFlags:function(e){t&&t.setTraceFlags(e),n[oM]=e}}}return w},e.setTraceCtx=function(e){w=e||null},e.addUnloadHook=G,o8(e,"addUnloadCb",function(){return v},"add"),e.onCfgChange=function(r){var o,i,a,s;return n?o=i0(t.cfg,r,e[rN]):((a=fL(i=C,r).l)||(a={w:r,rm:function(){var e=fL(i,r);-1!==e.i&&i[rL](e.i,1)}},i[rI](a)),o=a),s=o,tR({rm:function(){s.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(s)+">"}})},e.getWParam=function(){return ne()||t.cfg.enableWParam?0:-1}})}return e.__ieDyn=1,e}(),fj="duration",fP="properties",f_="requestUrl",fD="inst",fz="length",fB="traceID",fH="spanID",fF="traceFlags",fV="context",f$="aborted",fU="traceId",fq="spanId",fZ="_addHook",fW="core",fJ="includeCorrelationHeaders",fG="getAbsoluteUrl",fK="headers",fY="requestHeaders",fX="setRequestHeader",fQ="trackDependencyDataInternal",f0="startTime",f1="toLowerCase",f2="enableRequestHeaderTracking",f4="enableAjaxErrorStatusText",f3="enableAjaxPerfTracking",f5="maxAjaxCallsPerView",f6="excludeRequestFromAutoTrackingPatterns",f8="addRequestContext",f9="disableAjaxTracking",f7="ajaxPerfLookupDelay",pe="disableFetchTracking",pt="enableResponseHeaderTracking",pn="status",pr="statusText",po="headerMap",pi="openDone",pa="sendDone",ps="requestSentTime",pl="abortDone",pc="getTraceId",pu="getTraceFlags",pd="method",pf="errorStatusText",pp="stateChangeAttached",ph="responseText",pm="responseFinishedTime",pg="CreateTrackItem",pv="response",py="getAllResponseHeaders",pb="getPartAProps",pw="perfMark",px="name",pC="perfTiming",pk="exception",pS="ajaxDiagnosticsMessage",pE="correlationContext",pT="ajaxTotalDuration",pA="eventTraceCtx";function pM(e,t,n){var r=0,o=e[t],i=e[n];return o&&i&&(r=s0(o,i)),r}function pN(e,t,n,r,o){var i=0,a=pM(n,r,o);return a&&(i=pO(e,t,sg(a))),i}function pO(e,t,n){var r="ajaxPerf",o=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,o=1),o}var pI=function(){this[pi]=!1,this.setRequestHeaderDone=!1,this[pa]=!1,this[pl]=!1,this[pp]=!1},pL=function(){function e(t,n,r,o){var i;this[pw]=null,this.completed=!1,this.requestHeadersSize=null,this[fY]=null,this.responseReceivingDuration=null,this.callbackDuration=null,this[pT]=null,this[f$]=0,this.pageUrl=null,this[f_]=null,this.requestSize=0,this[pd]=null,this[pn]=null,this[ps]=null,this.responseStartedTime=null,this[pm]=null,this.callbackFinishedTime=null,this.endTime=null,this.xhrMonitoringState=new pI,this.clientFailure=0,this[fB]=t,this[fH]=n,this[fF]=null==o?void 0:o.getTraceFlags(),o?this[pA]=((i={})[fU]=o[pc](),i[fq]=o.getSpanId(),i[fF]=o[pu](),i):this[pA]=null,rl(e,this,function(e){e.getAbsoluteUrl=function(){var t,n;return e[f_]?((n=sW(e[f_]))&&(t=n.href),t):null},e.getPathName=function(){var t,n;return e[f_]?sa(r,(t=e[pd],n=e[f_],t?t.toUpperCase()+" "+n:n)):null},e[pg]=function(t,n,r){if(e.ajaxTotalDuration=Math.round(1e3*s0(e.requestSentTime,e.responseFinishedTime))/1e3,e[pT]<0)return null;var o,i=((o={id:"|"+e[fB]+"."+e[fH],target:e[fG]()})[px]=e.getPathName(),o.type=t,o[f0]=null,o.duration=e[pT],o.success=+e[pn]>=200&&400>+e[pn],o.responseCode=+e[pn],o[fP]={HttpMethod:e[pd]},o),a=i[fP];if(e[f$]&&(a[f$]=!0),e[ps]&&(i[f0]=new Date,i[f0].setTime(e[ps])),function(e,t){var n=e[pC],r=t[fP]||{},o=0,i="name",a="Start",s="domainLookup",l="connect",c="redirect",u="request",d="response",f="startTime",p=l+"End",h=u+a,m=d+"End",g=c+a,v=c="End",y="transferSize",b="encodedBodySize",w="decodedBodySize",x="serverTiming";if(n){o|=pN(r,c,n,g,v),o|=pN(r,s,n,s+a,s+"End"),o|=pN(r,l,n,l+a,p),o|=pN(r,u,n,h,u+"End"),o|=pN(r,d,n,d+a,m),o|=pN(r,"networkConnect",n,f,p),o|=pN(r,"sentRequest",n,h,m);var C=n[fj];C||(C=pM(n,f,m)||0),o|=pO(r,fj,C),o|=pO(r,"perfTotal",C);var k=n[x];if(k){var S={};ng(k,function(e,t){var n=o0(e[i]||""+t),r=S[n]||{};tN(e,function(e,t){(e!==i&&tg(t)||tx(t))&&(r[e]&&(t=r[e]+";"+t),(t||!tg(t))&&(r[e]=t))}),S[n]=r}),o|=pO(r,x,S)}o|=pO(r,y,n[y]),o|=pO(r,b,n[b]),o|=pO(r,w,n[w])}else e[pw]&&(o|=pO(r,"missing",e.perfAttempts));o&&(t[fP]=r)}(e,i),n&&tV(e.requestHeaders)[fz]>0&&(a[fY]=e[fY]),r){var s=r();if(s){var l=s[pE];if(l&&(i.correlationContext=l),s[po]&&tV(s.headerMap)[fz]>0&&(a.responseHeaders=s[po]),e[pf]){if(e[pn]>=400){var c=s.type;(""===c||"text"===c)&&(a.responseText=s.responseText?s[pr]+" - "+s.responseText:s[pr]),"json"===c&&(a.responseText=s.response?s[pr]+" - "+JSON.stringify(s[pv]):s[pr])}else 0===e[pn]&&(a.responseText=s[pr]||"")}}}return i},e[pb]=function(){var t,n=null,r=e[pA];if(r&&(r[fU]||r[fq])){var o=(n={})[u5.TraceExt]=((t={})[fB]=r[fU],t.parentID=r[fq],t);th(r[fF])||(o[fF]=r[fF])}return n}})}return e.__ieDyn=1,e}(),pR="diagLog",pj="_ajaxData",pP="fetch",p_="Failed to monitor XMLHttpRequest",pD=", monitoring data for this ajax call ",pz=pD+"may be incorrect.",pB=pD+"won't be sent.",pH="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",pF="Failed to add custom defined request context as configured call back may missing a null check.",pV="Failed to calculate the duration of the ",p$=0,pU=function(e,t){return e&&t&&e[pj]?(e[pj].i||{})[t]:null},pq=function(e,t,n){if(e){var r=(e[pj]||{}).xh;r&&r.push({n:t,v:n})}},pZ=function(e,t){var n=!1;if(e){var r=(e[pj]||{}).xh;r&&ng(r,function(e){if(e.n===t)return n=!0,-1})}return n};function pW(e,t){var n="";try{var r=pU(e,t);r&&r[f_]&&(n+="(url: '"+r[f_]+"')")}catch(e){}return n}function pJ(e,t,n,r,o){ar(e[pR](),1,t,n,r,o)}function pG(e,t,n,r,o){ar(e[pR](),2,t,n,r,o)}function pK(e,t,n){return function(r){var o;pJ(e,t,n,((o={ajaxDiagnosticsMessage:pW(r[fD],e._ajaxDataId)})[pk]=tD(r.err),o))}}function pY(e,t){return e&&t?nB(e,t):-1}function pX(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){ng(e,function(t,n){if(t.id===r.id)return e.splice(n,1),-1})}}}function pQ(e,t,n,r){var o=!0;return ng(t,function(t,i){try{!1===t.fn.call(null,n)&&(o=!1)}catch(t){ar(e&&e.logger,1,64,"Dependency "+r+" [#"+i+"] failed: "+o4(t),{exception:tD(t)},!0)}}),o}var p0="*.blob.core.",p1=tU([p0+"windows.net",p0+"chinacloudapi.cn",p0+"cloudapi.de",p0+"usgovcloudapi.net"]),p2=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],p4=tU(((ea={})[f5]=500,ea[f9]=!1,ea[pe]=!1,ea[f6]=void 0,ea.disableCorrelationHeaders=!1,ea.distributedTracingMode=1,ea.correlationHeaderExcludedDomains=p1,ea.correlationHeaderDomains=void 0,ea.correlationHeaderExcludePatterns=void 0,ea.appId=void 0,ea.enableCorsCorrelation=!1,ea[f2]=!1,ea[pt]=!1,ea[f4]=!1,ea[f3]=!1,ea.maxAjaxPerfLookupAttempts=3,ea[f7]=25,ea.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],ea[f8]=void 0,ea.addIntEndpoints=!0,ea)),p3=function(e){function t(){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,x,C,k,S,E,T,A,M,N,O,I,L=e.call(this)||this;return L.identifier=t.identifier,L.priority=120,rl(t,L,function(e,L){var R=L[fZ];function j(){var t=ib();n=!1,r=!1,I=!1,o=t&&t.host&&t.host[f1](),i=null,a=!1,s=!1,l=0,c=null,u=!1,d=!1,f=null,p=!1,h=0,m=!1,g={},v=!1,y=!1,b=null,w=null,x=null,k=0,S=[],E=[],C=i_("ajaxData"),e._ajaxDataId=C,T=null,A=1,M=1,N=1,O=null}function P(e){var t=!0;return(e||T)&&ng(T,function(n){if(n[f1]()===e[f1]())return t=!1,-1}),t}function _(e,t,n){R(e?cc(e[rf],t,n,!1):null)}function D(e,t,n){var r=!1,o=((tg(t)?t:(t||{}).url||"")||"")[f1]();if(ng(b,function(e){var t=e;tg(e)&&(t=new RegExp(e)),r||(r=t.test(o))}),r)return r;var i=pY(o,"?"),a=pY(o,"#");return(-1===i||-1!==a&&a<i)&&(i=a),-1!==i&&(o=o.substring(0,i)),th(e)?th(t)||(r="object"==typeof t&&!0===t[a6]||!!n&&!0===n[a6]):r=!0===e[a6]||!0===o[a6],!r&&o&&sK(o)&&(r=!0),r?g[o]||(g[o]=1):g[o]&&(r=!0),r}function z(e,t,n){var o=!0,i=r;return th(e)||(o=!0===n||!th(t)),i&&o}function B(){var t=null;return e[fW]&&e[fW].getTraceCtx&&(t=e[fW].getTraceCtx(!1)),!t&&c&&c.telemetryTrace&&(t=s1(c.telemetryTrace)),t}function H(e,t){if(t[f_]&&f&&p){var n=nP();if(n&&tv(n.mark)){p$++;var r=f+e+"#"+p$;n.mark(r);var o=n.getEntriesByName(r);o&&1===o[fz]&&(t[pw]=o[0])}}}function F(e,t,n,r){var o=t[pw],i=nP(),a=A,s=M,l=t[f_],c=0;!function u(){try{if(i&&o){c++;for(var d=null,f=i.getEntries(),p=f[fz]-1;p>=0;p--){var h=f[p];if(h){if("resource"===h.entryType)h.initiatorType===e&&(-1!==pY(h[px],l)||-1!==pY(l,h[px]))&&(d=h);else if("mark"===h.entryType&&h[px]===o[px]){t[pC]=d;break}if(h[f0]<o[f0]-1e3)break}}}!o||t[pC]||c>=a||!1===t.async?(o&&tv(i.clearMarks)&&i.clearMarks(o[px]),t.perfAttempts=c,n()):n$(u,s)}catch(e){r(e)}}()}function V(t){var n="";try{th(t)||("string"==typeof t?n+="(url: '".concat(t,"')"):n+="(url: '".concat(t.url,"')"))}catch(t){pJ(e,15,"Failed to grab failed fetch diagnostics message",{exception:tD(t)})}return n}function $(t,n,r,o,i,s,l){i&&(i[pm]=sQ(),i[pn]=n,F(pP,i,function(){var t,l=i[pg]("Fetch",a,s);try{w&&(t=w({status:n,request:r,response:o}))}catch(t){pG(e,104,pF)}if(l){void 0!==t&&(l[fP]=rg(rg({},l.properties),t));var u=i[pb]();U(E,e[fW],i,l,null,u)}else c(14,null,{requestSentTime:i[ps],responseFinishedTime:i[pm]})},function(e){c(18,e,null)}));function c(t,n,o){var i=o||{};i.fetchDiagnosticsMessage=V(r),n&&(i.exception=tD(n)),pG(e,t,pV+"fetch call"+pB,i)}}function U(t,n,r,o,i,a){var s,l=!0;t[fz]>0&&(l=pQ(n,t,((s={item:o})[fP]=i,s.sysProperties=a,s.context=r?r[fV]:null,s.aborted=!!r&&!!r[f$],s),"initializer")),l&&e[fQ](o,i,a)}j(),e.initialize=function(o,l,g,k){var S;e.isInitialized()||(L.initialize(o,l,g,k),x=l$(i_("ajax"),l&&l.evtNamespace&&l.evtNamespace()),e[fZ](i0(o,function(n){N=(i=l7(null,n.cfg,e[fW]).getExtCfg(t.identifier,p4)).distributedTracingMode,a=i[f2],s=i[f4],p=i[f3],h=i[f5],b=[].concat(i[f6]||[],!1!==i.addIntEndpoints?p2:[]),w=i[f8],d=0===N||1===N,u=1===N||2===N,p&&(f=C),v=!!i[f9],A=i.maxAjaxPerfLookupAttempts,M=i[f7],T=i.ignoreHeaders,O=i.appId})),!function(e,t){var n,r,o=!1;if(iT()){var i=XMLHttpRequest[rf];o=!th(i)&&!th(i.open)&&!th(i.send)&&!th(i.abort)}var a=ik();if(a&&a<9&&(o=!1),o)try{var s=new XMLHttpRequest,l={xh:[],i:((n={})[t]={},n)};s[pj]=l;var c=XMLHttpRequest[rf].open;XMLHttpRequest[rf].open=c}catch(t){o=!1,pJ(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",((r={})[pk]=tD(t),r))}return o}(e,C)||e[fZ](i0(i,function(){v=!!i[f9],a=i[f2],v||r||(_(XMLHttpRequest,"open",{ns:x,req:function(t,n,r,o){if(!v){var i,l,c,u,d,f,p,h,g=t[fD],y=pU(g,C);!D(g,r)&&z(g,y,!0)&&(y&&y.xhrMonitoringState[pi]||(c=(l=B())&&l[pc]()||sP(),u=t1(sP(),0,16),(p=(f=(d=g[pj]=g[pj]||{xh:[],i:{}}).i=d.i||{})[C]=f[C]||new pL(c,u,e[pR](),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx()))[fF]=l&&l[pu](),p[pd]=n,p[f_]=r,p.xhrMonitoringState[pi]=!0,p[fY]={},p.async=o,p[pf]=s,y=p),(h=y).xhrMonitoringState[pp]=lU(g,"readystatechange",function(){var t;try{g&&4===g.readyState&&z(g,h)&&function(t){var n=pU(t,C);function r(n,r){var o=r||{};o.ajaxDiagnosticsMessage=pW(t,C),n&&(o.exception=tD(n)),pG(e,14,pV+"ajax call"+pB,o)}n[pm]=sQ(),n[pn]=t[pn],F("xmlhttprequest",n,function(){try{var o=n[pg]("Ajax",a,function(){var n,r=((n={statusText:t[pr]})[po]=null,n[pE]=function(t){var n;try{var r=t[py]();if(null!==r){var o=pY(r[f1](),s$[8]);if(-1!==o){var i=t.getResponseHeader(s$[0]);return sX(i)}}}catch(r){pG(e,18,pH,((n={})[pS]=pW(t,C),n[pk]=tD(r),n))}}(t),n.type=t.responseType,n[ph]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[ph]}catch(e){}return null}(t),n.response=t[pv],n);if(m){var o=t[py]();if(o){var i=nT(o).split(/[\r\n]+/),a={};ng(i,function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");P(n)&&(a[n]=r)}),r[po]=a}}return r}),i=void 0;try{w&&(i=w({status:t[pn],xhr:t}))}catch(t){pG(e,104,pF)}if(o){void 0!==i&&(o[fP]=rg(rg({},o.properties),i));var s=n[pb]();U(E,e[fW],n,o,null,s)}else r(null,{requestSentTime:n[ps],responseFinishedTime:n[pm]})}finally{try{var l=(t[pj]||{i:{}}).i||{};l[C]&&(l[C]=null)}catch(e){}}},function(e){r(e,null)})}(g)}catch(r){var n=tD(r);n&&-1!==pY(n[f1](),"c00c023f")||pJ(e,16,p_+" 'readystatechange' event handler"+pz,((t={})[pS]=pW(g,C),t[pk]=n,t))}},x))}},hkErr:pK(e,15,p_+".open"+pz)}),_(XMLHttpRequest,"send",{ns:x,req:function(t,n){if(!v){var r=t[fD],o=pU(r,C);z(r,o)&&!o.xhrMonitoringState[pa]&&(H("xhr",o),o[ps]=sQ(),e[fJ](o,void 0,void 0,r),o.xhrMonitoringState[pa]=!0)}},hkErr:pK(e,17,p_+pz)}),_(XMLHttpRequest,"abort",{ns:x,req:function(e){if(!v){var t=e[fD],n=pU(t,C);z(t,n)&&!n.xhrMonitoringState[pl]&&(n[f$]=1,n.xhrMonitoringState[pl]=!0)}},hkErr:pK(e,13,p_+".abort"+pz)}),_(XMLHttpRequest,"setRequestHeader",{ns:x,req:function(e,t,n){if(!v){var r=e[fD],o=pU(r,C);o&&z(r,o)&&(pq(r,t,n),a&&P(t)&&o&&(o[fY][t]=n))}},hkErr:pK(e,71,p_+".setRequestHeader"+pz)}),r=!0)})),function(){var t,o=!(t=t9())||th(t.Request)||th(t.Request[rf])||th(t[pP])?null:t[pP];if(o){var l=t9(),c=o.polyfill;e[fZ](i0(i,function(){y=!!i[pe],m=i[pt],y||n?c&&!I&&(R(cc(l,pP,{ns:x,req:function(e,t,n){D(null,t,n)}})),I=!0):(R(cc(l,pP,{ns:x,req:function(t,o,i){var l;if(!y&&n&&!D(null,o,i)&&!(c&&r)){var u=t.ctx();l=function(t,n){var r,o,i=B(),l=new pL(i&&i[pc]()||sP(),t1(sP(),0,16),e[pR](),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());if(l[fF]=i&&i[pu](),l[ps]=sQ(),l[pf]=s,t instanceof Request?o=(t||{}).url||"":o=t,""===o){var c=ib();c&&c.href&&(o=n_(c.href,"#")[0])}l[f_]=o;var u="GET";n&&n[pd]?u=n[pd]:t&&t instanceof Request&&(u=t[pd]),l[pd]=u;var d={};return a&&new Headers((n?n[fK]:0)||t instanceof Request&&t[fK]||{}).forEach(function(e,t){P(t)&&(d[t]=e)}),l[fY]=d,H(pP,l),l}(o,i);var d=e[fJ](l,o,i);d!==i&&t.set(1,d),u.data=l}},rsp:function(t,n){if(!y){var r=t.ctx().data;r&&(t.rslt=t.rslt.then(function(o){return $(t,(o||{})[pn],n,o,r,function(){var t,n=((t={statusText:(o||{})[pr]})[po]=null,t[pE]=function(t){var n;if(t&&t[fK])try{var r=t[fK].get(s$[0]);return sX(r)}catch(r){pG(e,18,pH,((n={fetchDiagnosticsMessage:V(t)})[pk]=tD(r),n))}}(o),t);if(m&&o){var r={};o.headers.forEach(function(e,t){P(t)&&(r[t]=e)}),n[po]=r}return n}),o}).catch(function(e){throw $(t,0,n,null,r,null,{error:e.message||tD(e)}),e}))}},hkErr:pK(e,15,"Failed to monitor Window.fetch"+pz)},!0,ni())),n=!0)})),c&&(l[pP].polyfill=c)}}(),(S=e[fW].getPlugin(a4))&&(c=S.plugin[fV]))},e._doTeardown=function(){j()},e.trackDependencyData=function(t,n){U(E,e[fW],null,t,n)},e[fJ]=function(t,n,r,s){var l=e._currentWindowHost||o;if(function(e,t,n,r,o,i){var a;if(e[fz]>0){var s=((a={})[fW]=t,a.xhr=r,a.input=o,a.init=i,a.traceId=n[fB],a.spanId=n[fH],a.traceFlags=n[fF],a.context=n[fV]||{},a.aborted=!!n[f$],a);pQ(t,e,s,"listener"),n[fB]=s[fU],n[fH]=s[fq],n[fF]=s[fF],n[fV]=s[fV]}}(S,e[fW],t,s,n,r),n||""===n){if(sY(i,t[fG](),l)){r||(r={});var f=new Headers(r[fK]||n instanceof Request&&n[fK]||{});if(d){var p="|"+t[fB]+"."+t[fH];f.set(s$[3],p),a&&(t[fY][s$[3]]=p)}var h=O||c&&c.appId();if(h&&(f.set(s$[0],s$[2]+h),a&&(t[fY][s$[0]]=s$[2]+h)),u){var m=t[fF];th(m)&&(m=1);var g=sV(sB(t[fB],t[fH],m));f.set(s$[4],g),a&&(t[fY][s$[4]]=g)}r[fK]=f}return r}if(s){if(sY(i,t[fG](),l)){if(d){if(pZ(s,s$[3]))pG(e,71,"Unable to set ["+s$[3]+"] as it has already been set by another instance");else{var p="|"+t[fB]+"."+t[fH];s[fX](s$[3],p),a&&(t[fY][s$[3]]=p)}}var h=O||c&&c.appId();if(h&&(pZ(s,s$[0])?pG(e,71,"Unable to set ["+s$[0]+"] as it has already been set by another instance"):(s[fX](s$[0],s$[2]+h),a&&(t[fY][s$[0]]=s$[2]+h))),u){var m=t[fF];if(th(m)&&(m=1),pZ(s,s$[4]))pG(e,71,"Unable to set ["+s$[4]+"] as it has already been set by another instance");else{var g=sV(sB(t[fB],t[fH],m));s[fX](s$[4],g),a&&(t[fY][s$[4]]=g)}}}return s}},e[fQ]=function(t,n,r){if(-1===h||l<h){(2===N||1===N)&&"string"==typeof t.id&&"."!==t.id[t.id[fz]-1]&&(t.id+="."),th(t[f0])&&(t[f0]=new Date);var o=sd(t,s2.dataType,s2.envelopeType,e[pR](),n,r);e[fW].track(o)}else l===h&&pJ(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},e.addDependencyListener=function(e){return pX(S,k++,e)},e.addDependencyInitializer=function(e){return pX(E,k++,e)}}),L}return ry(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t}(cm),p5=function(){},p6=function(){this.id="browser",this.deviceClass="Browser"},p8=function(e,t){var n=this,r=i0(e,function(){var t=e.sdkExtension;n.sdkVersion=(t?t+"_":"")+"javascript:3.3.3"});t&&t.add(r)},p9=function(){},p7="sessionManager",he="update",ht="isUserCookieSet",hn="isNewUser",hr="getTraceCtx",ho="telemetryTrace",hi="applySessionContext",ha="applyApplicationContext",hs="applyDeviceContext",hl="applyOperationContext",hc="applyUserContext",hu="applyOperatingSystemContxt",hd="applyLocationContext",hf="applyInternalContext",hp="accountId",hh="getSessionId",hm="namePrefix",hg="userCookiePostfix",hv="idLength",hy="getNewId",hb="length",hw="automaticSession",hx="authenticatedId",hC="acquisitionDate",hk="renewalDate",hS="join",hE="cookieSeparator",hT="authUserCookieName",hA=function(){},hM=function(){function e(t,n,r){var o,i,a,s,l=ae(n),c=lm(n);rl(e,this,function(e){t||(t={});var n=i0(t,function(e){a=t.sessionExpirationMs||864e5,s=t.sessionRenewalMs||18e5,o="ai_session"+(t.sessionCookiePostfix||t[hm]||"")});function u(e,t){var n=!1,r=", session will be reset",o=t.split("|");if(o[hb]>=2)try{var i=+o[1]||0,a=+o[2]||0;isNaN(i)||i<=0?ar(l,2,27,"AI session acquisition date is 0"+r):isNaN(a)||a<=0?ar(l,2,27,"AI session renewal date is 0"+r):o[0]&&(e.id=o[0],e[hC]=i,e[hk]=a,n=!0)}catch(e){ar(l,1,9,"Error parsing ai_session value ["+(t||"")+"]"+r+" - "+o4(e),{exception:tD(e)})}return n}function d(e,n){var r=e[hC];e[hk]=n;var l=s,u=r+a-n,d=[e.id,r,n],f=0;f=u<l?u/1e3:l/1e3;var p=t.cookieDomain||null;c.set(o,d[hS]("|"),a>0?f:null,p),i=n}r&&r.add(n),e[hw]=new hA,e[he]=function(){var n,r=nE(),f=!1,p=e[hw];if(p.id||(f=!function(e,t){var n=!1,r=c.get(o);if(r&&tv(r.split))n=u(e,r);else{var i=aY(l,o);i&&(n=u(e,i))}return n||!!e.id}(p,0)),!f&&a>0){var h=r-p[hC],m=r-p[hk];f=(f=(f=h<0||m<0)||h>a)||m>s}f?(n=t[hy]||iI,e.automaticSession.id=n(t[hv]||22),e[hw][hC]=r,d(e[hw],r),aK()||ar(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")):(!i||r-i>6e4)&&d(p,r)},e.backup=function(){var t,n,r,i=e[hw];t=i.id,n=i[hC],r=i[hk],aX(l,o,[t,n,r][hS]("|"))}})}return e.__ieDyn=1,e}(),hN=function(e,t,n,r){this.traceID=e||sP(),this.parentID=t;var o=ib();!n&&o&&o.pathname&&(n=o.pathname),this.name=si(r,n)};function hO(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var hI=function(){function e(t,n,r){this.isNewUser=!1,this.isUserCookieSet=!1;var o,i=ae(n),a=lm(n);rl(e,this,function(n){tR(n,"config",{g:function(){return t}});var s=i0(t,function(){var r=t[hg]||"";o=e.userCookieName+r;var s=a.get(o);if(s){n[hn]=!1;var d=s.split(e[hE]);d[hb]>0&&(n.id=d[0],n[ht]=!!n.id)}n.id||(n.id=l(),u(c(n.id)[hS](e[hE])),function(e,t){var n=aW();if(null!==n)try{n[ap](t)}catch(t){aU=!1,ar(e,2,5,"Browser failed removal of local storage item. "+o4(t),{exception:tD(t)})}}(i,(t[hm]||"")+"ai_session")),n[hp]=t[hp]||void 0;var f=a.get(e[hT]);if(f){var p=(f=decodeURI(f)).split(e[hE]);p[0]&&(n[hx]=p[0]),p[hb]>1&&p[1]&&(n[hp]=p[1])}});function l(){var e=t||{};return(e[hy]||iI)(e[hv]?t[hv]:22)}function c(e){var t=o2(new Date);return n.accountAcquisitionDate=t,n[hn]=!0,[e,t]}function u(e){n[ht]=a.set(o,e,31536e3)}r&&r.add(s),n.setAuthenticatedUserContext=function(t,r,o){if(void 0===o&&(o=!1),!hO(t)||r&&!hO(r)){ar(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}n[hx]=t;var s=n[hx];r&&(n[hp]=r,s=[n[hx],n.accountId][hS](e[hE])),o&&a.set(e[hT],encodeURI(s))},n.clearAuthenticatedUserContext=function(){n[hx]=null,n[hp]=null,a.del(e[hT])},n[he]=function(t){n.id===t&&n[ht]||u(c(t||l())[hS](e[hE]))}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),hL="tags";function hR(e,t){e&&e[t]&&0===tV(e[t])[hb]&&delete e[t]}function hj(){return null}var hP=function(){function e(t,n,r,o){var i=this,a=t.logger;rl(e,this,function(e){if(e.appId=hj,e[hh]=hj,e.application=new p5,e.internal=new p8(n,o),nt()){e[p7]=new hM(n,t,o),e.device=new p6,e.location=new p9,e.user=new hI(n,t,o);var s,l=void 0,c=void 0;r&&(l=r.getTraceId(),c=r.getSpanId(),s=r.getName()),e[ho]=new hN(l,c,s,a),e.session=new hA}e[hh]=function(){var t=e.session,n=null;if(t&&tg(t.id))n=t.id;else{var r=(e[p7]||{})[hw];n=r&&tg(r.id)?r.id:null}return n},e[hi]=function(t,n){o3(o5(t.ext,u5.AppExt),"sesId",e[hh](),tg)},e[hu]=function(t,n){o3(t.ext,u5.OSExt,e.os)},e[ha]=function(t,n){var r=e.application;if(r){var o=o5(t,hL);o3(o,u6.applicationVersion,r.ver,tg),o3(o,u6.applicationBuild,r.build,tg)}},e[hs]=function(t,n){var r=e.device;if(r){var o=o5(o5(t,"ext"),u5.DeviceExt);o3(o,"localId",r.id,tg),o3(o,"ip",r.ip,tg),o3(o,"model",r.model,tg),o3(o,"deviceClass",r.deviceClass,tg)}},e[hf]=function(t,n){var r=e.internal;if(r){var o=o5(t,hL);o3(o,u6.internalAgentVersion,r.agentVersion,tg),o3(o,u6.internalSdkVersion,si(a,r.sdkVersion,64),tg),(t.baseType===i7.dataType||t.baseType===sv.dataType)&&(o3(o,u6.internalSnippet,r.snippetVer,tg),o3(o,u6.internalSdkSrc,r.sdkSrc,tg))}},e[hd]=function(e,t){var n=i.location;n&&o3(o5(e,hL,[]),u6.locationIp,n.ip,tg)},e[hl]=function(t,n){var r=e[ho];if(r){var o=o5(o5(t,"ext"),u5.TraceExt,{traceID:void 0,parentID:void 0});o3(o,"traceID",r.traceID,tg,th),o3(o,"name",r.name,tg,th),o3(o,"parentID",r.parentID,tg,th)}},e.applyWebContext=function(e,t){var n=i.web;n&&o3(o5(e,"ext"),u5.WebExt,n)},e[hc]=function(t,n){var r=e.user;if(r){o3(o5(t,hL,[]),u6.userAccountId,r[hp],tg);var o=o5(o5(t,"ext"),u5.UserExt);o3(o,"id",r.id,tg),o3(o,"authId",r[hx],tg)}},e.cleanUp=function(e,t){var n=e.ext;n&&(hR(n,u5.DeviceExt),hR(n,u5.UserExt),hR(n,u5.WebExt),hR(n,u5.OSExt),hR(n,u5.AppExt),hR(n,u5.TraceExt))}})}return e.__ieDyn=1,e}(),h_=t$(((es={})[hp]=null,es.sessionRenewalMs=18e5,es.samplingPercentage=100,es.sessionExpirationMs=864e5,es.cookieDomain=null,es.sdkExtension=null,es.isBrowserLinkTrackingEnabled=!1,es.appId=null,es[hh]=null,es[hm]=el,es.sessionCookiePostfix=el,es[hg]=el,es[hv]=22,es[hy]=null,es)),hD=function(e){function t(){var n,r,o,i,a,s=e.call(this)||this;return s.priority=110,s.identifier=a4,rl(t,s,function(e,t){function s(){n=null,r=null,o=null,i=null,a=!0}s(),tR(e,"context",{g:function(){return i}}),e.initialize=function(s,l,c,u){var d,f;t.initialize(s,l,c,u),d=e.identifier,f=e.core,e._addHook(i0(s,function(){var t=l7(null,s,f);s.storagePrefix&&(aZ=s.storagePrefix||""),a=!1!==s.disableUserInitMessage,n=t.getExtCfg(d,h_),e._extConfig=n})),o=f[hr](!1),i=new hP(f,n,o,e._unloadHooks),r=s1(e.context[ho],o),f.setTraceCtx(r),e.context.appId=function(){var e=f.getPlugin(a3);return e?e.plugin._appId:null}},e.processTelemetry=function(t,n){if(!th(t)){n=e._getTelCtx(n),t.name===sv.envelopeType&&n.diagLog().resetInternalMessageCount();var r,o,s=i||{};s.session&&"string"!=typeof i.session.id&&s[p7]&&s[p7][he]();var l=s.user;if(l&&!l[ht]&&l[he](s.user.id),r=n,o5(t,"tags",[]),o5(t,"ext",{}),(o=e.context)[hi](t,r),o[ha](t,r),o[hs](t,r),o[hl](t,r),o[hc](t,r),o[hu](t,r),o.applyWebContext(t,r),o[hd](t,r),o[hf](t,r),o.cleanUp(t,r),l&&l[hn]&&(l[hn]=!1,!a)){var c=new i7(72,(nn()||{}).userAgent||"");!function(e,t,n){an(e)[oc](1,n)}(n.diagLog(),0,c)}e.processNext(t,n)}},e._doTeardown=function(e,t){var n=(e||{}).core();n&&n[hr]&&n[hr](!1)===r&&n.setTraceCtx(o),s()}}),s}return ry(t,e),t.__ieDyn=1,t}(cm),hz="AuthenticatedUserContext",hB="track",hH="snippet",hF="flush",hV="pollInternalLogs",h$="getPlugin",hU="evtNamespace",hq=hB+"Event",hZ=hB+"Trace",hW=hB+"Metric",hJ=hB+"PageView",hG=hB+"Exception",hK=hB+"DependencyData",hY="set"+hz,hX="clear"+hz,hQ="version",h0="queue",h1="connectionString",h2="instrumentationKey",h4="instrumentationkey",h3="userOverrideEndpointUrl",h5="endpointUrl",h6="ingestionendpoint",h8="onunloadFlush",h9="context",h7="addHousekeepingBeforeUnload",me="sendMessage",mt=[hH,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],mn="iKeyUsage",mr="CdnUsage",mo="SdkLoaderVer",mi=void 0,ma={disabled:!0,limit:s5({samplingRate:100,maxSendNumber:1}),interval:s5({monthInterval:3,daysOfMonth:[28]})},ms=((ec={})[h1]=mi,ec[h5]=mi,ec[h2]=mi,ec[h3]=mi,ec.diagnosticLogInterval=s6(function(e){return e&&e>0},1e4),ec.featureOptIn=((eu={})[mn]={mode:3},eu[mr]={mode:2},eu[mo]={mode:2},eu),ec.throttleMgrCfg=s5(((ed={})[109]=s5(ma),ed[106]=s5(ma),ed[111]=s5(ma),ed[110]=s5(ma),ed)),ec.extensionConfig=s5(((ef={}).AppInsightsCfgSyncPlugin=s5({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),ef)),ec),ml=function(){function e(t){var n,r,o,i,a,s,l,c,u,d,f,p,h,m,g=this;rl(e,this,function(e){y(),tR(e,"config",{g:function(){return c}}),ng(["pluginVersionStringArr","pluginVersionString"],function(t){tR(e,t,{g:function(){return l?l[t]:null}})}),i=""+(t.sv||t[hQ]||""),t[h0]=t[h0]||[],t[hQ]=t[hQ]||2;var v=iQ(t.config||{},ms);function y(){a=i_("AISKU"),s=null,n=null,r=null,o=null,i=null,f=null,p=!1,h=!1,m=!1,d=new uH}function b(){if(s){var e;lW([lI,lO,lN],null,s),lW([lN],null,e=l$(lL,s)),lW([lM],null,e)}}function w(e){l.addUnloadHook(e)}c=v.cfg,u=new uc,tR(e,"appInsights",{g:function(){return u}}),r=new hD,n=new p3,o=new fb,l=new fR,tR(e,"core",{g:function(){return l}}),w(i0(v,function(){var e=c[h1];function t(){return uT(function(t,n){up(e,function(e){var n=e&&e.value,r=null;!e.rejected&&n&&(c[h1]=n,r=fw(n)),t(r)})})}if(tS(e)){var n=uT(function(e,n){t().then(function(t){var n=c[h2];e(n=t&&t[h4]||n)}).catch(function(t){e(null)})}),r=c[h3];th(r)&&(r=uT(function(e,n){t().then(function(t){var n=c[h5],r=t&&t[h6];e(n=r?r+st:n)}).catch(function(t){e(null)})})),c[h2]=n,c[h5]=r}if(tg(e)&&e){var o=fw(e),i=o[h6];c.endpointUrl=c[h3]?c[h3]:i+st,c[h2]=o[h4]||c[h2]}c.endpointUrl=c[h3]?c[h3]:c[h5]})),e[hH]=t,e[hF]=function(e,t){var n;return void 0===e&&(e=!0),l0(l,function(){return"AISKU.flush"},function(){e&&!t&&(n=uM(function(e){t=e}));var r=1,o=function(){0==--r&&t()};ng(l.getChannels(),function(t){t&&(r++,t[hF](e,o))}),o()},null,e),n},e[h8]=function(e){void 0===e&&(e=!0),ng(l.getChannels(),function(t){t[h8]?t[h8]():t[hF](e)})},e.loadAppInsights=function(t,a,s){return void 0===t&&(t=!1),t&&function(e){throw j||(j=nS("UnsupportedError")),new j(e)}("Legacy Mode is no longer supported"),l0(e.core,function(){return"AISKU.loadAppInsights"},function(){l.initialize(c,[o,r,n,u,d],a,s),tR(e,"context",{g:function(){return r[h9]}}),f||(f=new fx(l));var t=function(){if(ep)return ep;var e=null;try{var t=(document||{}).currentScript;t&&(e=t.src)}catch(e){}if(e){try{var n=e.toLowerCase();if(n){var r="";ng(["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"],function(e,t){if(-1!==nB(n,e))return r="cdn"+(t+1),-1===nB(n,"/scripts/")&&(-1!==nB(n,"/next/")?r+="-next":-1!==nB(n,"/beta/")&&(r+="-beta")),ep=r+"",-1})}}catch(e){}ep=e}return ep}();t&&e[h9]&&(e[h9].internal.sdkSrc=t),function(t){if(t){var n="";th(i)||(n+=i),e[h9]&&e[h9].internal&&(e[h9].internal.snippetVer=n||"-"),tN(e,function(e,n){tg(e)&&!tv(n)&&e&&"_"!==e[0]&&-1===nv(mt,e)&&t[e]!==n&&(t[e]=n)})}}(e[hH]),e.emptyQueue(),e[hV](),e[h7](e),w(i0(v,function(){var t=!1;c.throttleMgrCfg[109]&&(t=!c.throttleMgrCfg[109].disabled),!f.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&t&&f.onReadyState(!0),!p&&!c[h1]&&ie(mn,c)&&(f[me](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),p=!0),!h&&e[h9].internal.sdkSrc&&-1!=e[h9].internal.sdkSrc.indexOf("az416426")&&ie(mr,c)&&(f[me](110,"See Cdn support notice at aka.ms/JsActiveCdn"),h=!0),!m&&6>parseInt(i)&&ie(mo,c)&&(f[me](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),m=!0)}))}),e},e.updateSnippetDefinitions=function(t){!function(e,t,n){if(e&&t&&ty(e)&&ty(t)){var r=function(r){tg(r)&&(tv(t[r])?(!n||n(r,!0,t,e))&&(e[r]=o6(t,r)):(!n||n(r,!1,t,e))&&(tM(e,r)&&delete e[r],tR(e,r,{g:function(){return t[r]},s:function(e){t[r]=e}})))};for(var o in t)r(o)}}(t,e,function(e){return e&&-1===nv(mt,e)})},e.emptyQueue=function(){try{if(tb(e.snippet[h0])){for(var t=e.snippet[h0].length,n=0;n<t;n++)(0,e.snippet[h0][n])();e.snippet[h0]=void 0,delete e.snippet[h0]}}catch(e){e&&tv(e.toString)&&e.toString()}},e[h7]=function(t){if(nt()||ne()){var n=function(){if(t[h8](!1),tv(e.core[h$])){var n=g.core[h$](a4);if(n){var r=n.plugin;r&&r[h9]&&r[h9]._sessionManager&&r[h9]._sessionManager.backup()}}},r=!1;s||(s=l$(a,l[hU]&&l[hU]())),w(i0(c,function(e){var o,i,a,c,u=e.cfg,d=t.appInsights,f=l7(null,u,d.core).getExtCfg(d.identifier||a5);b();var p=u.disablePageUnloadEvents;f.disableFlushOnBeforeUnload||(o=s,i=[lI,lO,lN],a=!1,n&&i&&tb(i)&&!(a=lZ(i,n,p,o))&&p&&p[rC]>0&&(a=lZ(i,n,null,o)),a&&(r=!0),lJ(n,p,s)&&(r=!0),r||(c=nn())&&c.product&&"ReactNative"===c.product||ar(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),r||f.disableFlushOnUnload||lJ(n,p,s)}))}},e.getSender=function(){return o},e.unload=function(t,n,r){var o,i=!1;return t&&!n&&(o=uM(function(e){n=e})),e[h8](t),b(),l.unload&&l.unload(t,function(e){!i&&(i=!0,y(),n&&n(e))},r),o},o9(e,u,["getCookieMgr",hq,hJ,"trackPageViewPerformance",hG,"_onerror",hZ,hW,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),o9(e,function(){return n},[hK,"addDependencyListener","addDependencyInitializer"]),o9(e,l,["addTelemetryInitializer",hV,"stopPollingInternalLogs",h$,"addPlugin",hU,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),o9(e,function(){var e=r[h9];return e?e.user:null},[hY,hX])})}return e.prototype.addDependencyInitializer=function(e){return null},e}(),mc=t$({history:{blkVal:!0,v:void 0}}),mu=function(e){function t(){var n,r,o,i,a,s=e.call(this)||this;return s.priority=185,s.identifier="ReactPlugin",rl(t,s,function(t,l){var c,u,d;function f(){n=null,r=null,o=null,i=null,a=!1}function p(){return n||ar(t.diagLog(),1,64,"Analytics plugin is not available, React plugin telemetry will not be sent: "),n}f(),t.initialize=function(l,c,u,d){e.prototype.initialize.call(s,l,c,u,d),t._addHook(i0(l,function(e){var l;if(r=t._getTelCtx().getExtCfg(s.identifier,mc),n=null===(l=c.getPlugin(a5))||void 0===l?void 0:l.plugin,tv(o)&&(o(),o=null),r.history&&(o=r.history.listen(function(e){var n=null;n="location"in e?e.location:e,i=setTimeout(function(){i=null;var e={uri:n.pathname};t.trackPageView(e)},500)}),!a)){var u={uri:r.history.location.pathname};t.trackPageView(u),a=!0}}))},t.getCookieMgr=function(){return lm(t.core)},t.getAppInsights=p,t.processTelemetry=function(e,n){t.processNext(e,n)},t._doTeardown=function(e,t,n){tv(o)&&o(),i&&clearTimeout(i),f()},o9(t,p,["trackMetric","trackPageView","trackEvent","trackException","trackTrace"]),c="_extensionConfig",d={e:void 0,c:void 0},u=function(){return r},d.g=u,tL(t,c,tI(d))}),s}return ry(t,e),t.__ieDyn=1,t}(cm),md=n(34406);function mf(){return["iris-crm-ontw-api.azurewebsites.net","api.iris-ontwikkel.databalk.app"].some(e=>{var t;return null===(t=md.env.IRIS_API_URL)||void 0===t?void 0:t.includes(e)})?"dev":["iris-crm-sand-api.azurewebsites.net","api.iris-zandbak.databalk.app"].some(e=>{var t;return null===(t=md.env.IRIS_API_URL)||void 0===t?void 0:t.includes(e)})?"sand":["iris-crm-prod-api.azurewebsites.net","api.iris.databalk.app"].some(e=>{var t;return null===(t=md.env.IRIS_API_URL)||void 0===t?void 0:t.includes(e)})?"prod":"dev"}(h=eh||(eh={})).DEVELOPMENT="dev",h.SANDBOX="sand",h.PRODUCTION="prod";let mp=e=>{let t=e||eh.DEVELOPMENT;return({[eh.DEVELOPMENT]:"InstrumentationKey=eacfc891-8053-4472-ac40-d17e16544642;IngestionEndpoint=https://westeurope-4.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/",[eh.SANDBOX]:"InstrumentationKey=31432181-cb02-44fa-8feb-f21d3fa0c0bc;IngestionEndpoint=https://westeurope-2.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/",[eh.PRODUCTION]:"InstrumentationKey=b7144942-f29b-46ce-a001-5fa705b169cf;IngestionEndpoint=https://westeurope-3.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/"})[t]||void 0},mh=new mu,mm=e=>{if("localhost"===window.location.hostname)return;let t=new ml({config:{connectionString:mp(e),extensions:[mh],enableAutoRouteTracking:!0,disableAjaxTracking:!1,autoTrackPageVisitTime:!0,enableCorsCorrelation:!0,enableRequestHeaderTracking:!0,enableResponseHeaderTracking:!0}});t.loadAppInsights(),t.addTelemetryInitializer(e=>{e.tags=e.tags||[]})};var mg=n(15554),mv=n.n(mg);let my=e=>{let{key:t}=e,n=mv().get(t);return!!n&&JSON.parse(n)};var mb=n(34398);async function mw(e){let t=e.map(e=>new Promise((t,n)=>{let r=new FileReader;r.onload=async r=>{try{let n={Base64:(r.target&&r.target.result?r.target.result:"").split(",")[1],FileID:e.name.split(".").slice(0,-1).join("."),FileExtension:e.name.split(".").slice(-1)[0],FileSize:e.size,MimeType:e.type};t(n)}catch(e){n(e)}},r.onerror=e=>{n(e)},r.readAsDataURL(e)}));return await Promise.all(t)}let mx=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],mC=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],mk=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],mS=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],mE=(e,t,n)=>{let r=e;return"string"==typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):(!0===t||void 0!==n)&&(r=e.toLocaleString(void 0,n)),r};function mT(e,t){let n;if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?mS:mk:t.binary?mC:mx,o=t.space?" ":"";if(t.signed&&0===e)return` 0${o}${r[0]}`;let i=e<0,a=i?"-":t.signed?"+":"";if(i&&(e=-e),void 0!==t.minimumFractionDigits&&(n={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(n={maximumFractionDigits:t.maximumFractionDigits,...n}),e<1)return a+mE(e,t.locale,n)+o+r[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,n||(e=e.toPrecision(3)),a+mE(Number(e),t.locale,n)+o+r[s]}let mA=(0,eO.forwardRef)(function(e,t){return(0,eA.jsx)("input",{...e,ref:t,className:(0,eF.m6)("rounded-md border",e.className?e.className:"")})}),mM=(0,eO.forwardRef)(function(e,t){let{children:n,required:r=!1,...o}=e;return(0,eA.jsxs)("label",{ref:t,...o,children:[n," ",r&&(0,eA.jsx)("span",{title:"Dit veld is verplicht","aria-label":"Dit veld is verplicht",children:"*"})]})}),mN=(0,eO.forwardRef)(function(e,t){return(0,eA.jsx)("textarea",{...e,ref:t,className:"rounded-lg ring-1 ring-gray-500"})});var mO=n(96577),mI=n.n(mO);let mL=e=>{if(!e)return;let{attributes:t,element:n,elementName:r,value:o}=e,i=n||document.createElement(r||"div");if(t&&i instanceof HTMLElement)for(let[e,n]of Object.entries(t))i.setAttribute(e,String(n));if(o){if("string"==typeof o)i.innerHTML=o;else for(let e of Array.isArray(o)?o:[o]){let t=mL(e);t&&i.appendChild(t)}}return i},mR=/px$/,mj=e=>Number(e.replace(mR,"")),mP="undefined"!=typeof document,m_=()=>{},mD=(e,t)=>n=>{let r;return n&&`${n}`.replace(e,(e,t)=>r=t),t?t(r):r},mz=(e,{border:t="\\s",regExpFlags:n}={})=>RegExp(`^(?:${t})*(${Array.isArray(e)?e.join("|"):e})(?:${t})*$`,n),mB={class:"twic",domain:void 0,env:"production",handleShadowDom:m_,maxDPR:void 0,path:"",step:void 0},mH=mP&&window,mF=mP?mH["~ TPCC"]||(mH["~ TPCC"]=mB):mB,mV=()=>`.twic-w>.${mF.class}-background-done+div,.twic-w>.${mF.class}-done+div,.twic-w>.${mF.class}-poster-done+div{opacity:0 !important}.twic-w>.${mF.class}-done,.twic-w>.${mF.class}-poster-done{transform:none !important}`,m$=e=>`data-${mF.class}-${e}`,mU=e=>{let{debug:t,domain:n,class:r,env:o,handleShadowDom:i,path:a}=e;mF.class=r||mF.class,mF.domain=n,mF.env=t?"debug":o,mF.path=a,mF.handleShadowDom=i&&mP?(e=>{let t=new WeakSet;return n=>{for(;n&&!t.has(n);){t.add(n);let{parentNode:r}=n;if(!r&&n instanceof ShadowRoot){if("closed"===n.mode)throw Error("cannot use TwicPics components in closed ShadowRoot");mL({element:n,value:{elementName:"style",value:`.twic-i{overflow:hidden}.twic-w,.twic-w *{border:none;margin:0;overflow:hidden;padding:0}.twic-w{overflow:hidden;position:relative;padding-top:100%;width:100%;padding-top:calc(100% / var(--twic-ratio,1))}.twic-w>*{display:block;height:100%;left:0;position:absolute;top:0;width:100%;transition-property:opacity,transform;will-change:opacity,transform;background-size:cover;background-position:center;background-repeat:no-repeat;object-fit:cover;object-position:center;transition-delay:0s;transition-duration:.4s;transition-timing-function:ease;object-fit:var(--twic-mode,cover);object-position:var(--twic-position,center);transition-delay:var(--twic-transition-delay,0s);transition-duration:var(--twic-transition-duration,400ms);transition-timing-function:var(--twic-transition-timing-function,ease)}.twic-w>div{background-repeat:no-repeat;background-size:cover;background-position:center;background-size:var(--twic-mode,cover);background-position:var(--twic-position,center);font-size:calc(1px / var(--twic-ratio,1))}.twic-w>img:not([src]),.twic-w>img[src=""]{visibility:hidden}.twic-w.twic-tz>img{transform:scale(0)}.twic-w.twic-tf>div{opacity:1}.twic-d{display:block}.twic-offline{background-color:#ccc}.twic-offline.twic-nosrc{background-color:#fd0016}.twic-offline>*{display:none}:root{--twic-zoom:0}.twic-z{position:relative}.twic-m{left:0;position:absolute;top:0;z-index:1}.twic-m>*{display:none;transition:none;width:calc(max(var(--twic-zoom),1) * 100%);height:calc(max(var(--twic-zoom),1) * 100%);transform:translate3d(calc((1 - max(var(--twic-zoom),1)) * var(--twic-xr,0) * 1px),calc((1 - max(var(--twic-zoom),1)) * var(--twic-yr,0) * 1px),0)}.twic-m:hover>*{display:block}.twic-m:hover+div,twicmedia:hover+twicmedia{opacity:0}${mV()}`}}),(n=n.host)&&n.setAttribute(e,"")}else n=r}}})(m$("component")):m_},mq=/^(?:(auth|placeholder|rel)|(image|media|video)|[^:]*):(\/*)((v[0-9]+(?=[/?]))?[^?]*(\?.*)?)$/,mZ=(e,t="")=>{let n=e&&mq.exec(e);return{isAbsolute:e.slice(0,t.length+1)===`${t}/`,isSpecial:n&&void 0!==n[1]}},mW=(e,t)=>"cover"===(e||"cover")&&void 0!==t?"":"/*",mJ=["center"];for(let e of["","bottom","top"])for(let t of["","left","right"])(t||e)&&mJ.push(e?t?`${e}-${t}`:e:t);mz(mJ);let mG=/(^https?:\/\/[^/]+)\/*$/,mK=mz("\\s*(\\d+)\\s*[x]\\s*(\\d+)\\s*"),mY=["contain","cover"],mX=mz(mY),mQ=["maincolor","meancolor","none","preview"],m0=mz(mQ),m1=/^\/*(.+?)\/*$/,m2=mz("(\\d+(?:\\.\\d+)?)(?:\\s*[\\/:]\\s*(\\d+(?:\\.\\d+)?))?|(none)"),m4=["debug","offline","production"],m3=mz(m4),m5=mz("(\\d+\\.?\\d*)|(css)",{regExpFlags:"i"}),m6=e=>!isNaN(e)&&e>0,m8=/^((image|media|video):)?\/*/,m9=mD(mz(".+?")),m7=mz(".+?",{border:"[\\s\\/]"}),ge={true:!0,false:!1,"":!0},gt=e=>"boolean"==typeof e?e:void 0!==e&&ge[e.trim()],gn=e=>{if("number"!=typeof e){let t=m9(e);e=t&&Number(t)}return m6(e)?e:void 0},gr=/\b(?:(left|right)|(bottom|top))\b/g,go=e=>{let t=m9(e);return mG.test(t)?t.replace(mG,"$1"):void 0},gi=mD(m3),ga=e=>{let t=gn(e);return t>=1?t:void 0},gs=mD(mX),gl=e=>{let t=m9(e);return t?t.replace(m1,"$1/"):""},gc=mD(m7,e=>e&&e.replace(/^\/*(.*[^/])\/*$/,"$1")),gu={true:"fade",false:"none",fade:"fade",zoom:"zoom",none:"none"},gd=e=>{if("string"==typeof e){let t=m5.exec(e);if(t&&t[3])return!0;e=t&&t[2]?Number(t[2]):void 0}return m6(e)&&e>1?e:void 0},gf=[["anticipation","anticipation"],["class","class"],["maxDPR","max-dpr"],["step","step"]],gp=e=>{if(mP){let t=[`${mF.domain}/?v1`];gf.forEach(n=>{let[r,o]=n;e.hasOwnProperty(r)&&e[r]&&t.push(`${o}=${e[r]}`)}),mL({element:document.head,value:[{attributes:{rel:"preconnect",href:mF.domain},elementName:"link"},{attributes:{async:"",defer:"",src:t.join("&")},elementName:"script"},{value:mV(),elementName:"style"}]})}};"function"==typeof SuppressedError&&SuppressedError;let gh=({x:e,y:t},n,r)=>"contain"===n&&(r||(t?e?`${e} ${t}`:t:e)),gm=({anchor:{x:e,y:t},debug:n,focus:r,mode:o,preTransform:i,refit:a})=>{let s=t?e?`${t}-${e}`:t:e,l="contain"!==o&&void 0===a&&(r||s),c=void 0!==a&&`${"contain"===o?"auto":"WxH"}${a?`(${a})`:""}${s&&"contain"!==o?`@${s}`:""}`;return`${n?"/debug":""}${i?`/${i}`:""}${l?`/focus=${l}`:""}${c?`/refit=${c}`:""}`},gg=(e,t,n)=>{let r={};return t&&(r.transitionDuration=t),e&&(r.transitionDelay=e),n&&(r.transitionTimingFunction=n),r},gv=(e,t)=>"img"===t?e:void 0,gy=(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h)=>{let m=gg(u,d,f);h({anchor:e,focus:t,mode:n,placeholder:r,preTransform:i,ratio:a,refit:s,src:l,transitions:c,videoOptions:p}),n&&(m.backgroundSize=n);let g=gh(e,n,o);return g&&(m.backgroundPosition=g),m},gb={img:"objectPosition",video:"objectPosition"},gw={img:"objectFit",video:"objectFit"},gx=(e,t,n,r,o,i,a)=>{let s=gg(o,i,a),l=gh(e,n,r);return l&&(s[gb[t]||"backgroundPosition"]=l),n&&(s[gw[t]||"backgroundSize"]=n),s},gC=(e,t,n)=>{let r=["twic-w"];return e&&r.push(e),n.hasOwnProperty("none")||(n.hasOwnProperty("fade")&&r.push("twic-tf"),n.hasOwnProperty("zoom")&&r.push("twic-tz")),"offline"===mF.env&&(r.push("twic-offline"),t||r.push("twic-nosrc")),r.join(" ")},gk=e=>0===e?{height:"100%",paddingTop:"0"}:{paddingTop:void 0===e?"":100*e+"%"},gS=e=>{let t={};return"boolean"!=typeof e&&e&&(t["--twic-zoom"]=`${e}`),t},gE=new WeakMap,gT=mP&&"undefined"!=typeof MutationObserver&&new MutationObserver(e=>{for(let{target:t}of e){let e=gE.get(t);e&&e.handleState()}}),gA=mP&&"undefined"!=typeof ResizeObserver&&new ResizeObserver(e=>{for(let{target:t}of e){let e=gE.get(t);e&&e.refreshBackground()}}),gM=RegExp(`(?:\\s*)(?:${mF.class}(?:-background)*-)(done|error|loading)`);class gN{constructor(e){this.handleState=()=>{if(this.stateHandler){let e="new",{className:t}=this.media,n=gM.exec(t);n&&([,e]=n),this.stateHandler(e)}},this.refreshBackground=((e,t)=>{let n;let r=Object.assign({leading:!0,ms:0,trailing:!0},{ms:100});return(...t)=>{!n&&r.leading&&e(...t),clearTimeout(n),n=setTimeout(()=>{n=void 0,r.trailing&&e(...t)},r.ms)}})(()=>{if(this.media&&this.placeholderData){let e=this.media.nextElementSibling,t=((e,{anchor:t,focus:n,mode:r,placeholder:o,preTransform:i,src:a,ratio:s,refit:l,transitions:c,videoOptions:u})=>{let d;if(!mF.domain||!e||!o||c.hasOwnProperty("zoom"))return"";let f=getComputedStyle(e),p=r||gs(f.backgroundSize)||"cover";d=0===s?"contain"===p?1:mj(f.height)/Math.max(1,mj(f.width)):null!=s?s:mj(f.fontSize);let h=1e3,m=1e3;d<1?h*=d:m/=d;let{videoTransform:g}=u||{},v=`${gm({anchor:t,focus:n,mode:r,preTransform:i,refit:l})}${g||""}${mW(p,l)||""}`;return(({domain:e,context:t,inspect:n,output:r,quality:o,src:i,transform:a})=>{let{isAbsolute:s}=mZ(i,e),l=s?`media:${i.slice(`${e}/`.length)}`:i,c=mq.exec(l),u=c&&c[2],d=r?`/output=${r}`:"",f=u?c[4]:l,p=o?`/quality=${o}`:"",h=n?"/inspect":"",m=(({height:e,mode:t,width:n},r)=>{if(r&&(n||e)){let o=e||"-",i=n||"-";return r.replace(/(\/*\*)/g,`/${t}=${i}x${o}`).replace(/WxH/g,`${i}x${o}`)}return r})(t,a);return`${e}/${c&&(c[1]||c[5])?`v1${m}${d}${p}${h}/${u?`${c[2]}:${f}`:f}`:`${f}${c&&c[6]?"&":"?"}twic=v1${m}${d}${h}${p}`}`})({context:{height:Math.max(1,Math.round(h)),mode:p,width:Math.max(1,Math.round(m))},domain:mF.domain,transform:v,src:a,output:o})})(e,this.placeholderData);t&&t!==this.savedWrapperBackground&&(this.savedWrapperBackground=t,e.style.backgroundImage=`url(${JSON.stringify(t)})`)}}),this.setMedia=e=>{e&&(mF.handleShadowDom(e),this.media=e,gE.set(this.media,this),gT&&(gT.observe(this.media,{attributes:!0,attributeFilter:["class"]}),this.handleState()),gA&&gA.observe(this.media))},this.setPlaceholderData=e=>{this.placeholderData=e,this.media&&this.refreshBackground()},this.destroy=()=>{this.media&&this.media&&gA&&gA.unobserve(this.media)},this.stateHandler=e}}let gO=e=>null==e;class gI extends Error{constructor({componentName:e,expectedTypes:t,expectedValues:n,props:r,propName:o}){let i=t||n;super(`Invalid prop '${o}'${n?` value '${r[o]}'`:""}${t?` type '${typeof r[o]}'`:""} supplied to '${e}'${i?` expected ${i.length>1?"one of ":""}${t?"type ":""}'${i.join(", ")}'`:""}.`),this.expected=i&&i[0]}}let gL=e=>(t,n,r)=>{let o=[];for(let i of e){let e=i(t,n,r);if(null===e)return null;o.push(e.expected)}return new gI({componentName:r,expectedTypes:o,props:t,propName:n})},gR=(e,t)=>(n,r,o)=>{let i=n[r],a={componentName:o,props:n,propName:r};return gO(i)||typeof i===e?t&&!t.test(String(i))?new gI(a):null:new gI(Object.assign(Object.assign({},a),{expectedTypes:[e]}))},gj=gR("boolean"),gP=gR("function"),g_=e=>{let t=new Set(e);return(n,r,o)=>{let i=n[r];return gO(i)||t.has(i)?null:new gI({componentName:o,expectedValues:e,props:n,propName:r})}},gD=gR("string"),gz=gL([gR("number"),gD]),gB=e=>{let t,n;let r=(0,eO.useRef)(null),o=(0,eO.useRef)(new gN(t=>{e.onStateChange&&e.onStateChange({target:r,state:t})})).current;(0,eO.useEffect)(()=>(o.setMedia(r.current),()=>{o.destroy()}),[]);let i=m9(e.alt)||"",a=(e=>{let t,n;let r=m9(e);if(r){let e;for(;e=gr.exec(r);)e[1]?t=e[1]:n=e[2]}return{x:t,y:n}})(e.anchor),s="string"==typeof(t=e.bot)?t.trim():void 0,l=m9(e.className),c=gt(e.eager),u=m9(e.focus),d=(e=>{let t;if(!e)return;let n=mK.exec(e);if(n){let[,,e,r]=n;t=`${e}x${r}`}return t})(e.intrinsic),f=(e=>{let t=m9(e);return t&&t.toLocaleLowerCase()})(e.mediaTag),p=gs(e.mode),h=(e=>{if("offline"!==mF.env&&"none"!==e)return m0.test(e)?e:"preview"})(e.placeholder),m=m9(e.position),g=gc(e.preTransform),v=(e=>{let t;if("none"===e)return 0;if(e){if("number"==typeof e)t=1/e;else{let n=m2.exec(e);if(n){let[,,e,r]=n;t=(r?Number(r):1)/Number(e)}else t=1}}return m6(t)?t:void 0})(e.ratio),y=(e=>{let t=gt(e);if(void 0===t){let t=m9((e||"").toString());return t&&t.replace(/\s/g,"")}return t?"":void 0})(e.refit),b=(e=>{if("offline"===mF.env)return"";let t=m9(e)||"placeholder:red",{isAbsolute:n,isSpecial:r}=mZ(t,mF.domain);return r?t:n?`media:${t.slice(`${mF.domain}/`.length)}`:t.replace(m8,`media:${mF.path}`)})(e.src),w=gn(e.step),x=(n=e.title)&&n.trim(),C=(e=>{"boolean"!=typeof e&&(e=m9(e)||!0);let t={};return String(e).split(/\s*\+\s*|\s+/).forEach(e=>t[`${gu[e]||"fade"}`]=!0),t})(e.transition),k=m9(e.transitionDelay),S=m9(e.transitionDuration),E=m9(e.transitionTimingFunction),{videoOptions:T}=e,A=mZ(b,mF.domain).isSpecial?void 0:h;return eO.createElement("div",{className:gC(l,e.src,C),style:gk(v),title:x},eO.createElement(f,Object.assign({ref:r,alt:gv(i,f),style:gx(a,f,p,m,k,S,E)},((e,t,n,r,o,i,a,s,l,c,u,d)=>{let f={},{videoTransform:p,posterTransform:h}=d||{},m=gm({anchor:e,debug:"debug"===mF.env,focus:r,mode:a,preTransform:s,refit:l});return(m||p)&&(f[m$("transform")]=`${m}${p||""}${mW(a,l)||""}`),"string"==typeof t&&(f[m$("bot")]=t||"/"),n&&(f[m$("eager")]=""),o&&(f[m$("intrinsic")]=o),c&&("img"===i||"video"===i?f[m$("src")]=c:f[m$("background")]=`url(${c})`),c&&"video"===i&&(f[m$("poster")]=c,f[m$("poster-transform")]=`${m}${h||""}/*/output=image`),void 0!==u&&(f[m$("step")]=String(u)),f})(a,s,c,u,d,f,p,g,y,b,w,T))),A&&eO.createElement("div",{style:gy(a,u,p,A,m,g,v,y,b,C,k,S,E,T,o.setPlaceholderData)}))};gB.propTypes={alt:gD,anchor:g_(mJ),bot:gD,className:gD,focus:gD,intrinsic:gD,mode:g_(mY),eager:gL([gj,gD]),onStateChange:gP,placeholder:g_(mQ),position:gD,preTransform:gD,ratio:gz,src:gD,step:gz,title:gD,transition:gL([gj,gD]),transitionDelay:gD,transitionDuration:gD,transitionTimingFunction:gD};let gH=(e,t)=>{if(e<0||e>t)return Math.min(Math.max(0,e),t);let n=2*e/t;return n<1?t/2*n**3:t/2*((n-=2)**3+2)},gF=e=>{e.preventDefault(),e.stopPropagation();let t=e.currentTarget,{left:n,top:r,right:o,bottom:i}=t.getBoundingClientRect(),{clientX:a,clientY:s}=e instanceof MouseEvent?e:e.touches[0];t.style.setProperty("--twic-xr",gH(a-n,o-n).toString()),t.style.setProperty("--twic-yr",gH(s-r,i-r).toString())},gV=e=>{let t=(0,eO.useRef)(null);(0,eO.useEffect)(()=>{gd(e.zoom)&&(e=>{let t=e.firstElementChild;t.addEventListener("mousemove",e=>gF(e)),t.addEventListener("touchmove",e=>gF(e))})(t.current)},[]);let n=m9(e.className)||"",r=gd(e.zoom);return eO.createElement("div",{ref:t,className:`twic-i ${n} ${r?"twic-z":""}`,style:gS(r)},r&&eO.createElement(gB,Object.assign({},e,{className:"twic-m",mediaTag:"div",mode:"cover"})),eO.createElement(gB,Object.assign({},e,{className:"",mediaTag:"img"})))};gV.propTypes={refit:gL([gj,gD]),zoom:gz};let g$=e=>{let t={anticipation:gn(e.anticipation),class:m9(e.class),debug:gt(e.debug),domain:go(e.domain),env:gi(e.env),handleShadowDom:gt(e.handleShadowDom),maxDPR:ga(e.maxDPR),path:gl(e.path),step:gn(e.step)};return mU(t),(0,eO.useEffect)(()=>{gp(t)},[]),eO.createElement(eO.Fragment,null)};g$.propTypes={anticipation:gz,class:gD,debug:gj,domain:gR("string",mG),env:g_(m4),handleShadowDom:gj,maxDPR:gz,path:gD,step:gz};let gU=async(e,t)=>{};var gq=n(54793),gZ=n(43610);function gW(e){this.content=e}gW.prototype={constructor:gW,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),i=r.content.slice();return -1==o?i.push(n||e,t):(i[o+1]=t,n&&(i[o]=n)),new gW(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new gW(n)},addToStart:function(e,t){return new gW([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new gW(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),i=r.find(e);return o.splice(-1==i?o.length:i,0,t,n),new gW(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=gW.from(e)).size?new gW(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=gW.from(e)).size?new gW(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=gW.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},gW.from=function(e){if(e instanceof gW)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new gW(t)};class gJ{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,(a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(i?i=!1:o+=n),o+=l},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new gJ(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new gJ(n,r)}cutByIndex(e,t){return e==t?gJ.empty:0==e&&t==this.content.length?this:new gJ(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new gJ(r,o)}addToStart(e){return new gJ([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new gJ(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let o=0;;o++){if(o==t.childCount||o==n.childCount)return t.childCount==n.childCount?null:r;let i=t.child(o),a=n.child(o);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)r++;return r}if(i.content.size||a.content.size){let t=e(i.content,a.content,r+1);if(null!=t)return t}r+=i.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,o){for(let i=t.childCount,a=n.childCount;;){if(0==i||0==a)return i==a?null:{a:r,b:o};let s=t.child(--i),l=n.child(--a),c=s.nodeSize;if(s==l){r-=c,o-=c;continue}if(!s.sameMarkup(l))return{a:r,b:o};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);for(;e<t&&s.text[s.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,o--;return{a:r,b:o}}if(s.content.size||l.content.size){let t=e(s.content,l.content,r-1,o-1);if(t)return t}r-=c,o-=c}}(this,e,t,n)}findIndex(e,t=-1){if(0==e)return gK(0,e);if(e==this.size)return gK(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e){if(o==e||t>0)return gK(n+1,o);return gK(n,r)}r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return gJ.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new gJ(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return gJ.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new gJ(t||e,n)}static from(e){if(!e)return gJ.empty;if(e instanceof gJ)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new gJ([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}gJ.empty=new gJ([],0);let gG={index:0,offset:0};function gK(e,t){return gG.index=e,gG.offset=t,gG}function gY(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!gY(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!gY(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class gX{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&gY(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return gX.none;if(e instanceof gX)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}gX.none=[];class gQ extends Error{}class g0{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,o){let{index:i,offset:a}=t.findIndex(n),s=t.maybeChild(i);if(a==n||s.isText)return o&&!o.canReplace(i,i,r)?null:t.cut(0,n).append(r).append(t.cut(n));let l=e(s.content,n-a-1,r);return l&&t.replaceChild(i,s.copy(l))}(this.content,e+this.openStart,t);return n&&new g0(n,this.openStart,this.openEnd)}removeBetween(e,t){return new g0(function e(t,n,r){let{index:o,offset:i}=t.findIndex(n),a=t.maybeChild(o),{index:s,offset:l}=t.findIndex(r);if(i==n||a.isText){if(l!=r&&!t.child(s).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(o!=s)throw RangeError("Removing non-flat range");return t.replaceChild(o,a.copy(e(a.content,n-i-1,r-i-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return g0.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new g0(gJ.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new g0(e,n,r)}}function g1(e,t){if(!t.type.compatibleContent(e.type))throw new gQ("Cannot join "+t.type.name+" onto "+e.type.name)}function g2(e,t,n){let r=e.node(n);return g1(r,t.node(n)),r}function g4(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function g3(e,t,n,r){let o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(g4(e.nodeAfter,r),i++));for(let e=i;e<a;e++)g4(o.child(e),r);t&&t.depth==n&&t.textOffset&&g4(t.nodeBefore,r)}function g5(e,t){return e.type.checkContent(t),e.copy(t)}function g6(e,t,n){let r=[];return g3(null,e,n,r),e.depth>n&&g4(g5(g2(e,t,n+1),g6(e,t,n+1)),r),g3(t,null,n,r),new gJ(r)}g0.empty=new g0(gJ.empty,0,0);class g8{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return gX.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new vt(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let t=e;;){let{index:e,offset:i}=t.content.findIndex(o),a=o-i;if(n.push(t,e,r+i),!a||(t=t.child(e)).isText)break;o=a-1,r+=i+1}return new g8(t,n,o)}static resolveCached(e,t){let n=ve.get(e);if(n)for(let e=0;e<n.elts.length;e++){let r=n.elts[e];if(r.pos==t)return r}else ve.set(e,n=new g9);let r=n.elts[n.i]=g8.resolve(e,t);return n.i=(n.i+1)%g7,r}}class g9{constructor(){this.elts=[],this.i=0}}let g7=12,ve=new WeakMap;class vt{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let vn=Object.create(null);class vr{constructor(e,t,n,r=gX.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||gJ.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&gY(this.attrs,t||e.defaultAttrs||vn)&&gX.sameSet(this.marks,n||gX.none)}copy(e=null){return e==this.content?this:new vr(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new vr(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return g0.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i);return new g0(r.node(i).content.cut(r.pos-a,o.pos-a),r.depth-i,o.depth-i)}replace(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new gQ("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new gQ("Inconsistent open depths");return function e(t,n,r,o){let i=t.index(o),a=t.node(o);if(i==n.index(o)&&o<t.depth-r.openStart){let s=e(t,n,r,o+1);return a.copy(a.content.replaceChild(i,s))}if(!r.content.size)return g5(a,g6(t,n,o));if(r.openStart||r.openEnd||t.depth!=o||n.depth!=o){let{start:e,end:i}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(gJ.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return g5(a,function e(t,n,r,o,i){let a=t.depth>i&&g2(t,n,i+1),s=o.depth>i&&g2(r,o,i+1),l=[];return g3(null,t,i,l),a&&s&&n.index(i)==r.index(i)?(g1(a,s),g4(g5(a,e(t,n,r,o,i+1)),l)):(a&&g4(g5(a,g6(t,n,i+1)),l),g3(n,r,i,l),s&&g4(g5(s,g6(r,o,i+1)),l)),g3(o,null,i,l),new gJ(l)}(t,e,i,n,o))}{let e=t.parent,o=e.content;return g5(e,o.cut(0,t.parentOffset).append(r.content).append(o.cut(n.parentOffset)))}}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(!(t=t.maybeChild(n)))return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return g8.resolveCached(this,e)}resolveNoCache(e){return g8.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),vi(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=gJ.empty,r=0,o=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=gX.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!gX.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let n;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=gJ.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}vr.prototype.text=void 0;class vo extends vr{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):vi(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new vo(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new vo(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function vi(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class va{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var n;let r,o=new vs(e,t);if(null==o.next)return va.empty;let i=function e(t){let n=[];do n.push(function(t){let n=[];do n.push(function(t){let n=function(t){if(t.eat("(")){let n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let e in n){let r=n[e];r.isInGroup(t)&&o.push(r)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){let n=vl(e),r=n;return e.eat(",")&&(r="}"!=e.next?vl(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(o);o.next&&o.err("Unexpected trailing text");let a=(n=function(e){let t=[[]];return o(function e(t,i){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,i)),[]);if("seq"==t.type)for(let r=0;;r++){let a=e(t.exprs[r],i);if(r==t.exprs.length-1)return a;o(a,i=n())}else if("star"==t.type){let a=n();return r(i,a),o(e(t.expr,a),a),[r(a)]}else if("plus"==t.type){let a=n();return o(e(t.expr,i),a),o(e(t.expr,a),a),[r(a)]}else if("opt"==t.type)return[r(i)].concat(e(t.expr,i));else if("range"==t.type){let a=i;for(let r=0;r<t.min;r++){let r=n();o(e(t.expr,a),r),a=r}if(-1==t.max)o(e(t.expr,a),a);else for(let i=t.min;i<t.max;i++){let i=n();r(a,i),o(e(t.expr,a),i),a=i}return[r(a)]}else if("name"==t.type)return[r(i,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}}(i),r=Object.create(null),function e(t){let o=[];t.forEach(e=>{n[e].forEach(({term:e,to:t})=>{let r;if(e){for(let t=0;t<o.length;t++)o[t][0]==e&&(r=o[t][1]);vu(n,t).forEach(t=>{r||o.push([e,r=[]]),-1==r.indexOf(t)&&r.push(t)})}})});let i=r[t.join(",")]=new va(t.indexOf(n.length-1)>-1);for(let t=0;t<o.length;t++){let n=o[t][1].sort(vc);i.next.push({type:o[t][0],next:r[n.join(",")]||e(n)})}return i}(vu(n,0)));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:a}=e.next[t];i.push(n.name),o&&!(n.isText||n.hasRequiredAttrs())&&(o=!1),-1==r.indexOf(a)&&r.push(a)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(a,o),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(i,a){let s=i.matchFragment(e,n);if(s&&(!t||s.validEnd))return gJ.from(a.map(e=>e.createAndFill()));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:i,next:a}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}va.empty=new va(!0);class vs{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function vl(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function vc(e,t){return t-e}function vu(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let{term:r,to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(vc)}function vd(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function vf(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(t.hasDefault)o=t.default;else throw RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function vp(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function vh(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new vg(e,r,t[r]);return n}class vm{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=vh(e,n.attrs),this.defaultAttrs=vd(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==va.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:vf(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new vr(this,this.computeAttrs(e),gJ.from(t),gX.setFrom(n))}createChecked(e=null,t,n){return t=gJ.from(t),this.checkContent(t),new vr(this,this.computeAttrs(e),t,gX.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=gJ.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(gJ.empty,!0);return o?new vr(this,e,t.append(o),gX.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){vp(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:gX.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new vm(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw RangeError("The text node type should not have attributes");return n}}class vg{constructor(e,t,n){let r;this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?(r=n.validate.split("|"),n=>{let o=null===n?"null":typeof n;if(0>r.indexOf(o))throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}):n.validate}get isRequired(){return!this.hasDefault}}class vv{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=vh(e,r.attrs),this.excluded=null;let o=vd(this.attrs);this.instance=o?new gX(this,o):null}create(e=null){return!e&&this.instance?this.instance:new gX(this,vf(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new vv(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){vp(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class vy{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=gW.from(e.nodes),t.marks=gW.from(e.marks||{}),this.nodes=vm.compile(this.spec.nodes,this),this.marks=vv.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",o=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=va.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==o?null:o?vb(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:vb(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof vm){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new vo(n,n.defaultAttrs,e,gX.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return vr.fromJSON(this,e)}markFromJSON(e){return gX.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function vb(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=r)}if(!a)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class vw{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>n.indexOf(t)&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new vT(this,t,!1);return n.addAll(e,gX.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new vT(this,t,!0);return n.addAll(e,gX.none,t.from,t.to),g0.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r;let n=this.tags[o];if(r=n.tag,(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,r)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(0==i.indexOf(e)&&(!r.context||n.matchesContext(r.context))&&(!(i.length>e.length)||61==i.charCodeAt(e.length)&&i.slice(e.length+1)==t)){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=vA(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=vA(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new vw(e,vw.schemaRules(e)))}}let vx={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},vC={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},vk={ol:!0,ul:!0};function vS(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class vE{constructor(e,t,n,r,o,i){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=gX.none,this.match=o||(4&i?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(gJ.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=gJ.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(gJ.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!vx.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class vT{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r=t.topNode,o,i=vS(null,t.preserveWhitespace,0)|(n?4:0);o=r?new vE(r.type,r.attrs,gX.none,!0,t.topMatch||r.type.contentMatch,i):n?new vE(null,null,gX.none,!0,null,i):new vE(e.schema.topNodeType,null,gX.none,!0,null,i),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top;if(2&r.options||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(1&r.options)n=2&r.options?n.replace(/\r\n?/g,"\n"):n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=e.nodeName.toLowerCase(),o;vk.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&vk.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(i?i.ignore:vC.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e,t);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let n,o=this.top,a=this.needsBlock;if(vx.hasOwnProperty(r))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);return}let s=i&&i.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),n&&this.sync(o),this.needsBlock=a}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,i,n,!1===i.consuming?o:void 0)}}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],o=n.getPropertyValue(r);if(o)for(let e;;){let n=this.parser.matchStyle(r,o,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1===n.consuming)e=n;else break}}return t}addElementByRule(e,t,n,r){let o,i;if(t.node){if((i=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(i.create(t.attrs),n)||this.leafFallback(e,n);else{let e=this.enter(i,t.attrs||null,n,t.preserveWhitespace);e&&(o=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}o&&this.sync(a)&&this.open--}addAll(e,t,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}findPlace(e,t){let n,r;for(let t=this.open;t>=0;t--){let o=this.nodes[t],i=o.findWrapping(e);if(i&&(!n||n.length>i.length)&&(n=i,r=o,!i.length)||o.solid)break}if(!n)return null;this.sync(r);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=gX.none;for(let o of n.concat(e.marks))(t.type?t.type.allowsMarkType(o.type):vM(o.type,e.type))&&(r=o.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,n,r){let o=this.findPlace(e.create(t),n);return o&&(o=this.enterInner(e,t,n,!0,r)),o}enterInner(e,t,n,r=!1,o){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let a=vS(e,o,i.options);4&i.options&&0==i.content.length&&(a|=4);let s=gX.none;return n=n.filter(t=>(i.type?!i.type.allowsMarkType(t.type):!vM(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new vE(e,t,s,r,null,a)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function vA(e){let t={};for(let n in e)t[n]=e[n];return t}function vM(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t||0>i.indexOf(o)&&a(o))return!0}};if(a(o.contentMatch))return!0}}class vN{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=vI(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(!this.marks[t.type.name]){i++;continue}if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],a=this.serializeMark(n,e.isInline,t);a&&(o.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=vR(vI(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&vR(vI(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return vR(e,t,n,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new vN(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=vO(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return vO(e.marks)}}function vO(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function vI(e){return e.document||window.document}let vL=new WeakMap;function vR(e,t,n,r){let o,i,a;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let s=t[0],l;if("string"!=typeof s)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(i=vL.get(r))&&vL.set(r,(a=null,function e(t){if(t&&"object"==typeof t){if(Array.isArray(t)){if("string"==typeof t[0])a||(a=[]),a.push(t);else for(let n=0;n<t.length;n++)e(t[n])}else for(let n in t)e(t[n])}}(r),i=a)),l=i)&&l.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=s.indexOf(" ");c>0&&(n=s.slice(0,c),s=s.slice(c+1));let u=n?e.createElementNS(n,s):e.createElement(s),d=t[1],f=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in f=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?u.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):u.setAttribute(e,d[e])}}for(let i=f;i<t.length;i++){let a=t[i];if(0===a){if(i<t.length-1||i>f)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}{let{dom:t,contentDOM:i}=vR(e,a,n,r);if(u.appendChild(t),i){if(o)throw RangeError("Multiple content holes");o=i}}}return{dom:u,contentDOM:o}}class vj{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class vP{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&vP.empty)return vP.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){let o=l?e==s?-1:e==u?1:t:t,i=s+r+(o<0?0:c);if(n)return i;let d=e==(t<0?s:u)?null:a/3+(e-s)*65536,f=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(f|=8),new vj(i,f,d)}r+=c-l}return n?e+r:new vj(e+r,0,null)}touches(e,t){let n=0,r=65535&t,o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?n:0);if(a>e)break;let s=this.ranges[t+o];if(e<=a+s&&t==3*r)return!0;n+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),o+=c-l}}invert(){return new vP(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?vP.empty:new vP(e<0?[0,-e,0]:[0,0,e])}}vP.empty=new vP([]);class v_{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new v_(this.maps,this.mirror,e,t)}copy(){return new v_(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new v_;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this.maps[n].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this.maps[t].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new vj(e,r,null)}}let vD=Object.create(null);class vz{getMap(){return vP.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=vD[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in vD)throw RangeError("Duplicate use of step JSON ID "+e);return vD[e]=t,t.prototype.jsonID=e,t}}class vB{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new vB(e,null)}static fail(e){return new vB(null,e)}static fromReplace(e,t,n,r){try{return vB.ok(e.replace(t,n,r))}catch(e){if(e instanceof gQ)return vB.fail(e.message);throw e}}}function vH(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(vH(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return gJ.fromArray(r)}class vF extends vz{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new g0(vH(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return vB.fromReplace(e,this.from,this.to,o)}invert(){return new vV(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new vF(t.pos,n.pos,this.mark)}merge(e){return e instanceof vF&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new vF(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new vF(t.from,t.to,e.markFromJSON(t.mark))}}vz.jsonID("addMark",vF);class vV extends vz{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new g0(vH(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return vB.fromReplace(e,this.from,this.to,n)}invert(){return new vF(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new vV(t.pos,n.pos,this.mark)}merge(e){return e instanceof vV&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new vV(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new vV(t.from,t.to,e.markFromJSON(t.mark))}}vz.jsonID("removeMark",vV);class v$ extends vz{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return vB.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return vB.fromReplace(e,this.pos,this.pos+1,new g0(gJ.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new v$(this.pos,t.marks[n]);return new v$(this.pos,this.mark)}}return new vU(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v$(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new v$(t.pos,e.markFromJSON(t.mark))}}vz.jsonID("addNodeMark",v$);class vU extends vz{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return vB.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return vB.fromReplace(e,this.pos,this.pos+1,new g0(gJ.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new v$(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new vU(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new vU(t.pos,e.markFromJSON(t.mark))}}vz.jsonID("removeNodeMark",vU);class vq extends vz{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&vW(e,this.from,this.to)?vB.fail("Structure replace would overwrite content"):vB.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new vP([this.from,this.to-this.from,this.slice.size])}invert(e){return new vq(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new vq(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof vq)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?g0.empty:new g0(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new vq(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?g0.empty:new g0(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new vq(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new vq(t.from,t.to,g0.fromJSON(e,t.slice),!!t.structure)}}vz.jsonID("replace",vq);class vZ extends vz{constructor(e,t,n,r,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(vW(e,this.from,this.gapFrom)||vW(e,this.gapTo,this.to)))return vB.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return vB.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?vB.fromReplace(e,this.from,this.to,n):vB.fail("Content does not fit in gap")}getMap(){return new vP([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new vZ(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new vZ(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new vZ(t.from,t.to,t.gapFrom,t.gapTo,g0.fromJSON(e,t.slice),t.insert,!!t.structure)}}function vW(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function vJ(e,t,n,r=n.contentMatch,o=!0){let i=e.doc.nodeAt(t),a=[],s=t+1;for(let t=0;t<i.childCount;t++){let l=i.child(t),c=s+l.nodeSize,u=r.matchType(l.type);if(u){r=u;for(let t=0;t<l.marks.length;t++)n.allowsMarkType(l.marks[t].type)||e.step(new vV(s,c,l.marks[t]));if(o&&l.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(l.text);)r||(r=new g0(gJ.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),a.push(new vq(s+e.index,s+e.index+e[0].length,r))}}else a.push(new vq(s,c,g0.empty));s=c}if(!r.validEnd){let t=r.fillBefore(gJ.empty,!0);e.replace(s,s,new g0(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function vG(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!((0==o||r.canReplace(o,r.childCount))&&(i==r.childCount||r.canReplace(0,i))))break}return null}function vK(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=r;s&&e<o;e++)s=s.matchType(n.child(e).type);return s&&s.validEnd?a:null}(r,t);return i?o.map(vY).concat({type:t,attrs:n}).concat(i.map(vY)):null}function vY(e){return{type:e,attrs:null}}function vX(e,t,n,r){t.forEach((o,i)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let o=e.mapping.slice(r).map(n+1+i+a.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}})}function vQ(e,t,n,r){t.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}})}function v0(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=r&&r[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function v1(e,t){let n=e.resolve(t),r=n.index();return v2(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function v2(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let i=t.child(o),a=i.type==r?e.type.schema.nodes.text:i.type;if(!(n=n.matchType(a))||!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(e,t))}function v4(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let o,i,a=r.index(e);if(e==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(e+1),a++,i=r.node(e).maybeChild(a)):(o=r.node(e).maybeChild(a-1),i=r.node(e+1)),o&&!o.isTextblock&&v2(o,i)&&r.node(e).canReplace(a,a+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function v3(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let e=0;e<n.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,i=r.index(t)+(n>0?1:0),a=r.node(t),s=!1;if(1==e)s=a.canReplace(i,i,o);else{let e=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function v5(e,t,n=t,r=g0.empty){if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return v6(o,i,r)?new vq(t,n,r):new v8(o,i,r).fit()}function v6(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}vz.jsonID("replaceAround",vZ);class v8{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=gJ.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=gJ.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let o=this.placed,i=n.depth,a=r.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new g0(o,i,a);return e>-1?new vZ(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new vq(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,r=(n?(e=ye(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:i,match:a}=this.frontier[o],s,l=null;if(1==t&&(r?a.matchType(r.type)||(l=a.fillBefore(gJ.from(r),!1)):e&&i.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:o,parent:e,inject:l};if(2==t&&r&&(s=a.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:o,parent:e,wrap:s};if(e&&a.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=ye(e,t);return!!r.childCount&&!r.firstChild.isLeaf&&(this.unplaced=new g0(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=ye(e,t);if(r.childCount<=1&&t>0){let o=e.size-t<=t+r.size;this.unplaced=new g0(v9(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new g0(v9(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let i=this.unplaced,a=n?n.content:i.content,s=i.openStart-e,l=0,c=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)c.push(r.child(e));u=u.matchFragment(r)}let f=a.size+e-(i.content.size-i.openEnd);for(;l<a.childCount;){let e=a.child(l),t=u.matchType(e.type);if(!t)break;(++l>1||0==s||e.content.size)&&(u=t,c.push(function e(t,n,r){if(n<=0)return t;let o=t.content;return n>1&&(o=o.replaceChild(0,e(o.firstChild,n-1,1==o.childCount?r-1:0))),n>0&&(o=t.type.contentMatch.fillBefore(o).append(o),r<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(gJ.empty,!0)))),t.copy(o)}(e.mark(d.allowedMarks(e.marks)),1==l?s:0,l==a.childCount?f:-1)))}let p=l==a.childCount;p||(f=-1),this.placed=v7(this.placed,t,gJ.from(c)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?g0.empty:new g0(v9(i.content,e-1,1),e-1,f<0?i.openEnd:e-1):new g0(v9(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!yt(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=yt(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=yt(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=v7(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=v7(this.placed,this.depth,gJ.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(gJ.empty,!0);e.childCount&&(this.placed=v7(this.placed,this.frontier.length,e))}}function v9(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(v9(e.firstChild.content,t-1,n)))}function v7(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(v7(e.lastChild.content,t-1,n)))}function ye(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function yt(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function yn(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let o=r;o>=0;o--){let r=e.start(o);if(r<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(r==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==r-1)&&n.push(o)}return n}class yr extends vz{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return vB.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return vB.fromReplace(e,this.pos,this.pos+1,new g0(gJ.from(r),0,t.isLeaf?0:1))}getMap(){return vP.empty}invert(e){return new yr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new yr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new yr(t.pos,t.attr,t.value)}}vz.jsonID("attr",yr);class yo extends vz{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return vB.ok(n)}getMap(){return vP.empty}invert(e){return new yo(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new yo(t.attr,t.value)}}vz.jsonID("docAttr",yo);let yi=class extends Error{};(yi=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),yi.prototype.constructor=yi,yi.prototype.name="TransformError";class ya{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new v_}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new yi(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=g0.empty){let r=v5(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new g0(gJ.from(n),0,0))}delete(e,t){return this.replace(e,t,g0.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),i=e.doc.resolve(n);if(v6(o,i,r))return e.step(new vq(t,n,r));let a=yn(o,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let n=o.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?s=e:o.before(e)==t&&a.splice(1,0,-e)}let l=a.indexOf(s),c=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){var d;let t=c[e],n=(d=t.type).spec.defining||d.spec.definingForContent;if(n&&!t.sameMarkup(o.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=c[s];if(d)for(let t=0;t<a.length;t++){let c=a[(t+l)%a.length],u=!0;c<0&&(u=!1,c=-c);let f=o.node(c-1),p=o.index(c-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(o.before(c),u?i.after(c):n,new g0(function e(t,n,r,o,i){if(n<r){let i=t.firstChild;t=t.replaceChild(0,i.copy(e(i.content,n+1,r,o,i)))}if(n>o){let e=i.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(gJ.empty,!0))}return t}(r.content,0,r.openStart,s),s,r.openEnd))}}let f=e.steps.length;for(let s=a.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>f));s--){let e=a[s];e<0||(t=o.before(e),n=i.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return!function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(e.doc,t,r.type);null!=o&&(t=n=o)}e.replaceRange(t,n,new g0(gJ.from(r),0,0))}(this,e,t,n),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=yn(r,o);for(let t=0;t<i.length;t++){let n=i[t],a=t==i.length-1;if(a&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),o.end(n));if(n>0&&(a||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return e.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:r,$to:o,depth:i}=t,a=r.before(i+1),s=o.after(i+1),l=a,c=s,u=gJ.empty,d=0;for(let e=i,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=gJ.from(r.node(e).copy(u)),d++):l--;let f=gJ.empty,p=0;for(let e=i,t=!1;e>n;e--)t||o.after(e+1)<o.end(e)?(t=!0,f=gJ.from(o.node(e).copy(f)),p++):c++;e.step(new vZ(l,c,a,s,new g0(u.append(f),d,p),u.size-d,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let r=null,{linebreakReplacement:o}=e.doc.type.schema,i=e.doc.resolve(t-n),a=i.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(!1===r){let r=e.doc.resolve(t+n);vQ(e,r.node(),r.before(),s)}a.inlineContent&&vJ(e,t+n-1,a,i.node().contentMatchAt(i.index()),null==r);let l=e.mapping.slice(s),c=l.map(t-n);if(e.step(new vq(c,l.map(t+n,-1),g0.empty,!0)),!0===r){let t=e.doc.resolve(c);vX(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let r=gJ.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=gJ.from(n[e].type.create(n[e].attrs,r))}let o=t.start,i=t.end;e.step(new vZ(o,i,o,i,new g0(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,r=null){return!function(e,t,n,r,o){if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{var a,s;let l,c,u="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(r,u)&&(a=e.doc,s=e.mapping.slice(i).map(n),c=(l=a.resolve(s)).index(),l.parent.canReplaceWith(c,c+1,r))){let o=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&vQ(e,t,n,i),vJ(e,e.mapping.slice(i).map(n,1),r,void 0,null===o);let a=e.mapping.slice(i),s=a.map(n,1),l=a.map(n+t.nodeSize,1);return e.step(new vZ(s,l,s+1,l-1,new g0(gJ.from(r.create(u,null,t.marks)),0,0),1,!0)),!0===o&&vX(e,t,n,i),!1}})}(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return!function(e,t,n,r,o){let i=e.doc.nodeAt(t);if(!i)throw RangeError("No node at given position");n||(n=i.type);let a=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!n.validContent(i.content))throw RangeError("Invalid content for node type "+n.name);e.step(new vZ(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new g0(gJ.from(a),0,0),1,!0))}(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new yr(e,t,n)),this}setDocAttribute(e,t){return this.step(new yo(e,t)),this}addNodeMark(e,t){return this.step(new v$(e,t)),this}removeNodeMark(e,t){if(!(t instanceof gX)){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new vU(e,t)),this}split(e,t=1,n){return!function(e,t,n=1,r){let o=e.doc.resolve(t),i=gJ.empty,a=gJ.empty;for(let e=o.depth,t=o.depth-n,s=n-1;e>t;e--,s--){i=gJ.from(o.node(e).copy(i));let t=r&&r[s];a=gJ.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new vq(t,t,new g0(i.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let o,i,a,s;return r=this,a=[],s=[],r.doc.nodesBetween(e,t,(r,l,c)=>{if(!r.isInline)return;let u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,e),d=Math.min(l+r.nodeSize,t),f=n.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==c&&o.mark.eq(u[e])?o.to=d:a.push(o=new vV(c,d,u[e])));i&&i.to==c?i.to=d:s.push(i=new vF(c,d,n))}}),a.forEach(e=>r.step(e)),s.forEach(e=>r.step(e)),this}removeMark(e,t,n){var r;let o,i;return r=this,o=[],i=0,r.doc.nodesBetween(e,t,(r,a)=>{if(!r.isInline)return;i++;let s=null;if(n instanceof vv){let e=r.marks,t;for(;t=n.isInSet(e);)(s||(s=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(r.marks)&&(s=[n]):s=r.marks;if(s&&s.length){let n=Math.min(a+r.nodeSize,t);for(let t=0;t<s.length;t++){let r=s[t],l;for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&r.eq(o[e].style)&&(l=t)}l?(l.to=n,l.step=i):o.push({style:r,from:Math.max(a,e),to:n,step:i})}}}),o.forEach(e=>r.step(new vV(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return vJ(this,e,t,n),this}}let ys=Object.create(null);class yl{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new yc(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=g0.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(l.pos),a?g0.empty:t),0==a&&yb(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=e.mapping.slice(n),l=s.map(i.pos),c=s.map(a.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),yb(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new yf(e):yy(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let o=t<0?yy(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):yy(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new yg(e.node(0))}static atStart(e){return yy(e,e,0,0,1)||new yg(e)}static atEnd(e){return yy(e,e,e.content.size,e.childCount,-1)||new yg(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=ys[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in ys)throw RangeError("Duplicate use of selection JSON ID "+e);return ys[e]=t,t.prototype.jsonID=e,t}getBookmark(){return yf.between(this.$anchor,this.$head).getBookmark()}}yl.prototype.visible=!0;class yc{constructor(e,t){this.$from=e,this.$to=t}}let yu=!1;function yd(e){yu||e.parent.inlineContent||(yu=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class yf extends yl{constructor(e,t=e){yd(e),yd(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return yl.near(n);let r=e.resolve(t.map(this.anchor));return new yf(r.parent.inlineContent?r:n,n)}replace(e,t=g0.empty){if(super.replace(e,t),t==g0.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof yf&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new yp(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new yf(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=yl.findFrom(t,n,!0)||yl.findFrom(t,-n,!0);if(!e)return yl.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(yl.findFrom(e,-n,!0)||yl.findFrom(e,n,!0)).$anchor).pos<t.pos==r<0||(e=t)),new yf(e,t)}}yl.jsonID("text",yf);class yp{constructor(e,t){this.anchor=e,this.head=t}map(e){return new yp(e.map(this.anchor),e.map(this.head))}resolve(e){return yf.between(e.resolve(this.anchor),e.resolve(this.head))}}class yh extends yl{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?yl.near(o):new yh(o)}content(){return new g0(gJ.from(this.node),0,0)}eq(e){return e instanceof yh&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new ym(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new yh(e.resolve(t.anchor))}static create(e,t){return new yh(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}yh.prototype.visible=!1,yl.jsonID("node",yh);class ym{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new yp(n,n):new ym(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&yh.isSelectable(n)?new yh(t):yl.near(t)}}class yg extends yl{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=g0.empty){if(t==g0.empty){e.delete(0,e.doc.content.size);let t=yl.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new yg(e)}map(e){return new yg(e)}eq(e){return e instanceof yg}getBookmark(){return yv}}yl.jsonID("all",yg);let yv={map(){return this},resolve:e=>new yg(e)};function yy(e,t,n,r,o,i=!1){if(t.inlineContent)return yf.create(e,n);for(let a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let r=t.child(a);if(r.isAtom){if(!i&&yh.isSelectable(r))return yh.create(e,n-(o<0?r.nodeSize:0))}else{let t=yy(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function yb(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let i=e.steps[o];(i instanceof vq||i instanceof vZ)&&(e.mapping.maps[o].forEach((e,t,n,o)=>{null==r&&(r=o)}),e.setSelection(yl.near(e.doc.resolve(r),n)))}function yw(e,t){return t&&e?e.bind(t):e}class yx{constructor(e,t,n){this.name=e,this.init=yw(t.init,n),this.apply=yw(t.apply,n)}}new yx("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new yx("selection",{init:(e,t)=>e.selection||yl.atStart(t.doc),apply:e=>e.selection}),new yx("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new yx("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t});class yC{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(n):"handleDOMEvents"==o&&(i=e(i,n,{})),r[o]=i}return r}(e.props,this,this.props),this.key=e.key?e.key.key:yS("plugin")}getState(e){return e[this.key]}}let yk=Object.create(null);function yS(e){return e in yk?e+"$"+ ++yk[e]:(yk[e]=0,e+"$")}class yE{constructor(e="key"){this.key=yS(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}let yT=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},yA=function(e,t,n,r){return n&&(yN(e,t,n,r,-1)||yN(e,t,n,r,1))},yM=/^(img|br|input|textarea|hr)$/i;function yN(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:yO(e))){let n=e.parentNode;if(!n||1!=n.nodeType||yI(e)||yM.test(e.nodeName)||"false"==e.contentEditable)return!1;t=yT(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType||"false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?yO(e):0}}}function yO(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function yI(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}let yL=function(e){return e.focusNode&&yA(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function yR(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}let yj="undefined"!=typeof navigator?navigator:null,yP="undefined"!=typeof document?document:null,y_=yj&&yj.userAgent||"",yD=/Edge\/(\d+)/.exec(y_),yz=/MSIE \d/.exec(y_),yB=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y_),yH=!!(yz||yB||yD),yF=yz?document.documentMode:yB?+yB[1]:yD?+yD[1]:0,yV=!yH&&/gecko\/(\d+)/i.test(y_);yV&&(/Firefox\/(\d+)/.exec(y_)||[0,0])[1];let y$=!yH&&/Chrome\/(\d+)/.exec(y_),yU=!!y$,yq=y$?+y$[1]:0,yZ=!yH&&!!yj&&/Apple Computer/.test(yj.vendor),yW=yZ&&(/Mobile\/\w+/.test(y_)||!!yj&&yj.maxTouchPoints>2),yJ=yW||!!yj&&/Mac/.test(yj.platform),yG=!!yj&&/Win/.test(yj.platform),yK=/Android \d/.test(y_),yY=!!yP&&"webkitFontSmoothing"in yP.documentElement.style,yX=yY?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,yQ=function(e){e&&(this.nodeName=e)};function y0(e){return e.editable?e.hasFocus():function(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function y1(e,t=!1){let n=e.state.selection;if(function(e,t){if(t instanceof yh){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(y6(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else y6(e)}(e,n),y0(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&yU){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&yA(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setStart(r.parentNode,yT(r)+1):n.setStart(r,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&yH&&yF<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let r,o,i,a,{anchor:s,head:l}=n,c,u;!y2||n instanceof yf||(n.$from.parent.inlineContent||(c=y4(e,n.from)),n.empty||n.$from.parent.inlineContent||(u=y4(e,n.to))),e.docView.setSelection(s,l,e.root,t),y2&&(c&&y5(c),u&&y5(u)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&((r=e.dom.ownerDocument).removeEventListener("selectionchange",e.input.hideSelectionGuard),i=(o=e.domSelectionRange()).anchorNode,a=o.anchorOffset,r.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(o.anchorNode!=i||o.anchorOffset!=a)&&(r.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!y0(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}yQ.prototype=Object.create(null),new yQ;let y2=yZ||yU&&yq<63;function y4(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(yZ&&o&&"false"==o.contentEditable)return y3(o);if((!o||"false"==o.contentEditable)&&(!i||"false"==i.contentEditable)){if(o)return y3(o);if(i)return y3(i)}}function y3(e){return e.contentEditable="true",yZ&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function y5(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function y6(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function y8(e,t,n,r){return e.someProp("createSelectionBetween",r=>r(e,t,n))||yf.between(t,n,r)}function y9(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&yl.findFrom(i,t)}function y7(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function be(e,t,n){let r=e.state.selection;if(r instanceof yf){if(n.indexOf("s")>-1){let{$head:n}=r,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(n.pos+o.nodeSize*(t<0?-1:1));return y7(e,new yf(r.$anchor,i))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=y9(e.state,t);return!!n&&n instanceof yh&&y7(e,n)}if(!(yJ&&n.indexOf("m")>-1)){let n=r.$head,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,i;if(!o||o.isText)return!1;let a=t<0?n.pos-o.nodeSize:n.pos;return!!(o.isAtom||(i=e.docView.descAt(a))&&!i.contentDOM)&&(yh.isSelectable(o)?y7(e,new yh(t<0?e.state.doc.resolve(n.pos-o.nodeSize):n)):!!yY&&y7(e,new yf(e.state.doc.resolve(t<0?a:a+o.nodeSize))))}}else{if(r instanceof yh&&r.node.isInline)return y7(e,new yf(t>0?r.$to:r.$from));let n=y9(e.state,t);return!!n&&y7(e,n)}}function bt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function bn(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function br(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;for(yV&&1==n.nodeType&&r<bt(n)&&bn(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(bn(e,-1))o=n,i=--r;else if(3==e.nodeType)r=(n=e).nodeValue.length;else break}}else if(bo(n))break;else{let t=n.previousSibling;for(;t&&bn(t,-1);)o=n.parentNode,i=yT(t),t=t.previousSibling;if(t)r=bt(n=t);else{if((n=n.parentNode)==e.dom)break;r=0}}a?bi(e,n,r):o&&bi(e,o,i)}(e):function(e){let t,n,r=e.domSelectionRange(),o=r.focusNode,i=r.focusOffset;if(!o)return;let a=bt(o);for(;;)if(i<a){if(1!=o.nodeType)break;if(bn(o.childNodes[i],1))t=o,n=++i;else break}else if(bo(o))break;else{let r=o.nextSibling;for(;r&&bn(r,1);)t=r.parentNode,n=yT(r)+1,r=r.nextSibling;if(r)i=0,a=bt(o=r);else{if((o=o.parentNode)==e.dom)break;i=a=0}}t&&bi(e,t,n)}(e)}function bo(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function bi(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!yI(e);)t=yT(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!yI(e);)t=yT(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(yL(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&y1(e)},50)}function ba(e,t){let n=e.state.doc.resolve(t);if(!(yU||yG)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function bs(e,t,n){let r=e.state.selection;if(r instanceof yf&&!r.empty||n.indexOf("s")>-1||yJ&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=y9(e.state,t);if(n&&n instanceof yh)return y7(e,n)}if(!o.parent.inlineContent){let n=t<0?o:i,a=r instanceof yg?yl.near(n,t):yl.findFrom(n,t);return!!a&&y7(e,a)}return!1}function bl(e,t){if(!(e.state.selection instanceof yf))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function bc(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function bu(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||vN.fromSchema(e.state.schema),s=by(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&1==c.nodeType&&(u=bg[c.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${o} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function bd(e,t,n,r,o){let i,a,s=o.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",n=>{t=n(t,s||r,e)}),s)return t?new g0(gJ.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):g0.empty;let n=e.someProp("clipboardTextParser",n=>n(t,o,r,e));if(n)a=n;else{let n=o.marks(),{schema:r}=e.state,a=vN.fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),i=function(e){var t;let n,r=/^(\s*<meta [^>]*>)*/.exec(e);r&&(e=e.slice(r[0].length));let o=by().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&bg[i[1].toLowerCase()])&&(e=a.map(e=>"<"+e+">").join("")+e+a.map(e=>"</"+e+">").reverse().join("")),o.innerHTML=(t=e,(n=window.trustedTypes)?n.createPolicy("detachedDocument",{createHTML:e=>e}).createHTML(t):t),a)for(let e=0;e<a.length;e++)o=o.querySelector(a[e])||o;return o}(n),yY&&function(e){let t=e.querySelectorAll(yU?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&"\xa0"==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let e=+u[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(a||(a=(e.someProp("clipboardParser")||e.someProp("domParser")||vw.fromSchema(e.state.schema)).parseSlice(i,{preserveWhitespace:!!(l||u),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||bf.test(e.parentNode.nodeName)?null:{ignore:!0}})),u)a=function(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch(t){return e}let{content:o,openStart:i,openEnd:a}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;o=gJ.from(t.create(r[e+1],o)),i++,a++}return new g0(o,i,a)}(bm(a,+u[1],+u[2]),u[4]);else if((a=g0.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),o,i=[];if(e.forEach(e=>{if(!i)return;let t=r.findWrapping(e.type),n;if(!t)return i=null;if(n=i.length&&o.length&&function e(t,n,r,o,i){if(i<t.length&&i<n.length&&t[i]==n[i]){let a=e(t,n,r,o.lastChild,i+1);if(a)return o.copy(o.content.replaceChild(o.childCount-1,a));if(o.contentMatchAt(o.childCount).matchType(i==t.length-1?r.type:t[i+1]))return o.copy(o.content.append(gJ.from(bp(r,t,i+1))))}}(t,o,e,i[i.length-1],0))i[i.length-1]=n;else{i.length&&(i[i.length-1]=function e(t,n){if(0==n)return t;let r=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),o=t.contentMatchAt(t.childCount).fillBefore(gJ.empty,!0);return t.copy(r.append(o))}(i[i.length-1],o.length));let n=bp(e,t);i.push(n),r=r.matchType(n.type),o=t}}),i)return gJ.from(i)}return e}(a.content,o),!0)).openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=bm(a,e,t)}return e.someProp("transformPasted",t=>{a=t(a,e)}),a}let bf=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function bp(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,gJ.from(e));return e}function bh(e,t,n,r,o,i){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(i=0),o<r-1&&(s=bh(s,t,n,r,o+1,i)),o>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(gJ.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function bm(e,t,n){return t<e.openStart&&(e=new g0(bh(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new g0(bh(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}let bg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},bv=null;function by(){return bv||(bv=document.implementation.createHTMLDocument("title"))}let bb={},bw={};function bx(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function bC(e){return{left:e.clientX,top:e.clientY}}function bk(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(e.someProp(t,t=>r>i.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)))return!0;return!1}function bS(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}bw.keydown=(e,t)=>{if(e.input.shiftKey=16==t.keyCode||t.shiftKey,!bA(e,t)&&(e.input.lastKeyCode=t.keyCode,e.input.lastKeyCodeTime=Date.now(),!yK||!yU||13!=t.keyCode)){if(e.domObserver.selectionChanged(e.domSelectionRange())?e.domObserver.flush():229!=t.keyCode&&e.domObserver.forceFlush(),!yW||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||function(e,t){let n;let r=t.keyCode,o=(n="",t.ctrlKey&&(n+="c"),t.metaKey&&(n+="m"),t.altKey&&(n+="a"),t.shiftKey&&(n+="s"),n);if(8==r||yJ&&72==r&&"c"==o)return bl(e,-1)||br(e,-1);if(46==r&&!t.shiftKey||yJ&&68==r&&"c"==o)return bl(e,1)||br(e,1);if(13==r||27==r)return!0;if(37==r||yJ&&66==r&&"c"==o){let t=37==r?"ltr"==ba(e,e.state.selection.from)?-1:1:-1;return be(e,t,o)||br(e,t)}if(39==r||yJ&&70==r&&"c"==o){let t=39==r?"ltr"==ba(e,e.state.selection.from)?1:-1:1;return be(e,t,o)||br(e,t)}if(38==r||yJ&&80==r&&"c"==o)return bs(e,-1,o)||br(e,-1);if(40==r||yJ&&78==r&&"c"==o)return function(e){if(!yZ||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;bc(e,n,"true"),setTimeout(()=>bc(e,n,"false"),20)}return!1}(e)||bs(e,1,o)||br(e,1);else if(o==(yJ?"m":"c")&&(66==r||73==r||89==r||90==r))return!0;return!1}(e,t)?t.preventDefault():bx(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,yR(13,"Enter"))),e.input.lastIOSEnter=0)},200)}}},bw.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},bw.keypress=(e,t)=>{if(bA(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||yJ&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t))){t.preventDefault();return}let n=e.state.selection;if(!(n instanceof yf)||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(t.charCode);/[\r\n]/.test(r)||e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,r))||e.dispatch(e.state.tr.insertText(r).scrollIntoView()),t.preventDefault()}};let bE=yJ?"metaKey":"ctrlKey";bb.mousedown=(e,t)=>{var n;let r,o;e.input.shiftKey=t.shiftKey;let i=bO(e),a=Date.now(),s="singleClick";a-e.input.lastClick.time<500&&(r=(n=e.input.lastClick).x-t.clientX)*r+(o=n.y-t.clientY)*o<100&&!t[bE]&&("singleClick"==e.input.lastClick.type?s="doubleClick":"doubleClick"==e.input.lastClick.type&&(s="tripleClick")),e.input.lastClick={time:a,x:t.clientX,y:t.clientY,type:s};let l=e.posAtCoords(bC(t));l&&("singleClick"==s?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new bT(e,l,t,!!i)):("doubleClick"==s?function(e,t,n,r){return bk(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}:function(e,t,n,r){return bk(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(bS(e,yf.create(r,0,r.content.size),"pointer"),!0);let o=r.resolve(t);for(let t=o.depth+1;t>0;t--){let n=t>o.depth?o.nodeAfter:o.node(t),i=o.before(t);if(n.inlineContent)bS(e,yf.create(r,i+1,i+1+n.content.size),"pointer");else{if(!yh.isSelectable(n))continue;bS(e,yh.create(r,i),"pointer")}return!0}}(e,n,r)})(e,l.pos,l.inside,t)?t.preventDefault():bx(e,"pointer"))};class bT{constructor(e,t,n,r){let o,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[bE],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,i=n.depth?n.before():0}let a=r?null:n.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s&&1==s.dom.nodeType?s.dom:null;let{selection:l}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof yh&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&yV&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),bx(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>y1(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;if(this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(bC(e))),this.updateAllowDefault(e),this.allowDefault||!t)bx(this.view,"pointer");else{var n,r,o,i;(n=this.view,r=t.pos,o=t.inside,i=this.selectNode,bk(n,"handleClickOn",r,o,e)||n.someProp("handleClick",t=>t(n,r,e))||(i?function(e,t){if(-1==t)return!1;let n=e.state.selection,r,o;n instanceof yh&&(r=n.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(yh.isSelectable(t)){o=r&&n.$from.depth>0&&e>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?i.before(n.$from.depth):i.before(e);break}}return null!=o&&(bS(e,yh.create(e.state.doc,o),"pointer"),!0)}(n,o):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&yh.isSelectable(r))&&(bS(e,new yh(n),"pointer"),!0)}(n,o)))?e.preventDefault():0==e.button&&(this.flushed||yZ&&this.mightDrag&&!this.mightDrag.node.isAtom||yU&&!this.view.state.selection.visible&&2>=Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to)))?(bS(this.view,yl.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):bx(this.view,"pointer")}}move(e){this.updateAllowDefault(e),bx(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function bA(e,t){return!!e.composing||!!(yZ&&500>Math.abs(t.timeStamp-e.input.compositionEndedAt))&&(e.input.compositionEndedAt=-2e8,!0)}bb.touchstart=e=>{e.input.lastTouch=Date.now(),bO(e),bx(e,"pointer")},bb.touchmove=e=>{e.input.lastTouch=Date.now(),bx(e,"pointer")},bb.contextmenu=e=>bO(e);let bM=yK?5e3:-1;function bN(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>bO(e),t))}function bO(e,t=!1){if(!yK||!(e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),!function(e){let t;for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}(e),t||e.docView&&e.docView.dirty){let n=function(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,c;if(yL(n)){for(l=a;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&yh.isSelectable(e)&&o.parent&&!(e.isInline&&function(e,t,n){for(let r=0==t,o=t==yO(e);r||o;){if(e==n)return!0;let t=yT(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==yO(e)}}(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;c=new yh(a==e?s:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=a,o=a;for(let r=0;r<n.rangeCount;r++){let i=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(i.startContainer,i.startOffset,1)),o=Math.max(o,e.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(t<0)return null;[l,a]=o==e.state.selection.anchor?[o,t]:[t,o],s=r.resolve(a)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let n="pointer"==t||e.state.selection.head<s.pos&&!i?1:-1;c=y8(e,u,s,n)}return c}(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}bw.compositionstart=bw.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof yf&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),bO(e,!0),e.markCursor=null;else if(bO(e,!t.selection.empty),yV&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}bN(e,bM)},bw.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,bN(e,20))};let bI=yH&&yF<15||yW&&yX<604;function bL(e,t,n,r,o){let i=bd(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,o,i||g0.empty)))return!0;if(!i)return!1;let a=0==i.openStart&&0==i.openEnd&&1==i.content.childCount?i.content.firstChild:null,s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function bR(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}bb.copy=bw.cut=(e,t)=>{let n=e.state.selection,r="cut"==t.type;if(n.empty)return;let o=bI?null:t.clipboardData,{dom:i,text:a}=bu(e,n.content());o?(t.preventDefault(),o.clearData(),o.setData("text/html",i.innerHTML),o.setData("text/plain",a)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,i),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},bw.paste=(e,t)=>{if(e.composing&&!yK)return;let n=bI?null:t.clipboardData,r=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&bL(e,bR(n),n.getData("text/html"),r,t)?t.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?bL(e,r.value,null,o,t):bL(e,r.textContent,r.innerHTML,o,t)},50)}(e,t)};class bj{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}let bP=yJ?"altKey":"ctrlKey";for(let e in bb.dragstart=(e,t)=>{let n;let r=e.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=e.state.selection,i=o.empty?null:e.posAtCoords(bC(t));if(i&&i.pos>=o.from&&i.pos<=(o instanceof yh?o.to-1:o.to));else if(r&&r.mightDrag)n=yh.create(e.state.doc,r.mightDrag.pos);else if(t.target&&1==t.target.nodeType){let r=e.docView.nearestDesc(t.target,!0);r&&r.node.type.spec.draggable&&r!=e.docView&&(n=yh.create(e.state.doc,r.posBefore))}let a=(n||e.state.selection).content(),{dom:s,text:l,slice:c}=bu(e,a);t.dataTransfer.files.length&&yU&&!(yq>120)||t.dataTransfer.clearData(),t.dataTransfer.setData(bI?"Text":"text/html",s.innerHTML),t.dataTransfer.effectAllowed="copyMove",bI||t.dataTransfer.setData("text/plain",l),e.dragging=new bj(c,!t[bP],n)},bb.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},bw.dragover=bw.dragenter=(e,t)=>t.preventDefault(),bw.drop=(e,t)=>{let n=e.dragging;if(e.dragging=null,!t.dataTransfer)return;let r=e.posAtCoords(bC(t));if(!r)return;let o=e.state.doc.resolve(r.pos),i=n&&n.slice;i?e.someProp("transformPasted",t=>{i=t(i,e)}):i=bd(e,bR(t.dataTransfer),bI?null:t.dataTransfer.getData("text/html"),!1,o);let a=!!(n&&!t[bP]);if(e.someProp("handleDrop",n=>n(e,t,i||g0.empty,a))){t.preventDefault();return}if(!i)return;t.preventDefault();let s=i?v3(e.state.doc,o.pos,i):o.pos;null==s&&(s=o.pos);let l=e.state.tr;if(a){let{node:e}=n;e?e.replace(l):l.deleteSelection()}let c=l.mapping.map(s),u=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,d=l.doc;if(u?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),l.doc.eq(d))return;let f=l.doc.resolve(c);if(u&&yh.isSelectable(i.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new yh(f));else{let t=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((e,n,r,o)=>t=o),l.setSelection(y8(e,f,l.doc.resolve(t)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))},bb.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&y1(e)},20))},bb.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},bb.beforeinput=(e,t)=>{if(yU&&yK&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,yR(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}},bw)bb[e]=bw[e];function b_(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class bD{constructor(e,t){this.toDOM=e,this.spec=t||bV,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new bH(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof bD&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&b_(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class bz{constructor(e,t){this.attrs=e,this.spec=t||bV}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new bH(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof bz&&b_(this.attrs,e.attrs)&&b_(this.spec,e.spec)}static is(e){return e.type instanceof bz}destroy(){}}class bB{constructor(e,t){this.attrs=e,this.spec=t||bV}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new bH(o.pos-n,i.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),o;return r==t.from&&!(o=e.child(n)).isText&&r+o.nodeSize==t.to}eq(e){return this==e||e instanceof bB&&b_(this.attrs,e.attrs)&&b_(this.spec,e.spec)}destroy(){}}class bH{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new bH(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new bH(e,e,new bD(t,n))}static inline(e,t,n,r){return new bH(e,t,new bz(n,r))}static node(e,t,n,r){return new bH(e,t,new bB(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof bz}get widget(){return this.type instanceof bD}}let bF=[],bV={};class b${constructor(e,t){this.local=e.length?e:bF,this.children=t.length?t:bF}static create(e,t){return t.length?bG(t,e,0,bV):bU}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,n,r+a,o)}}map(e,t,n){return this==bU||0==e.maps.length?this:this.mapInner(e,t,0,0,n||bV)}mapInner(e,t,n,r,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,r,o,i,a){let s=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,o,i)=>{let a=i-o-(n-e);for(let o=0;o<s.length;o+=3){let i=s[o+1];if(i<0||e>i+t-r)continue;let l=s[o]+t-r;n>=l?s[o+1]=e<=l?-2:-1:e>=t&&a&&(s[o]+=a,s[o+1]+=a)}r+=a}),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=n.map(e[t]+i),u=c-o;if(u<0||u>=r.content.size){l=!0;continue}let d=n.map(e[t+1]+i,-1)-o,{index:f,offset:p}=r.content.findIndex(u),h=r.maybeChild(f);if(h&&p==u&&p+h.nodeSize==d){let r=s[t+2].mapInner(n,h,c+1,e[t]+i+1,a);r!=bU?(s[t]=u,s[t+1]=d,s[t+2]=r):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=bG(function(e,t,n,r,o,i,a){for(let s=0;s<e.length;s+=3)-1==e[s+1]&&function e(t,i){for(let e=0;e<t.local.length;e++){let s=t.local[e].map(r,o,i);s?n.push(s):a.onRemove&&a.onRemove(t.local[e].spec)}for(let n=0;n<t.children.length;n+=3)e(t.children[n+2],t.children[n]+i+1)}(e[s+2],t[s]+i+1);return n}(s,e,t,n,o,i,a),r,0,a);t=l.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let n=l.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new b$(t.sort(bK),s)}(this.children,i||[],e,t,n,r,o):i?new b$(i.sort(bK),bF):bU}add(e,t){return t.length?this==bU?b$.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach((e,i)=>{let a=i+n,s;if(s=bW(t,e,a)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,s,a+1):r.splice(o,0,i,i+e.nodeSize,bG(s,e,a+1,bV)),o+=3}});let i=bZ(o?bJ(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new b$(i.length?this.local.concat(i).sort(bK):this.local,r||this.children)}remove(e){return 0==e.length||this==bU?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<n.length;r+=3){let o;let i=n[r]+t,a=n[r+1]+t;for(let t=0,n;t<e.length;t++)(n=e[t])&&n.from>i&&n.to<a&&(e[t]=null,(o||(o=[])).push(n));if(!o)continue;n==this.children&&(n=this.children.slice());let s=n[r+2].removeInner(o,i+1);s!=bU?n[r+2]=s:(n.splice(r,3),r-=3)}if(r.length){for(let n=0,o;n<e.length;n++)if(o=e[n])for(let e=0;e<r.length;e++)r[e].eq(o,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1))}return n==this.children&&r==this.local?this:r.length||n.length?new b$(r,n):bU}forChild(e,t){let n,r;if(this==bU)return this;if(t.isLeaf)return b$.empty;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof bz){let e=Math.max(o,t.from)-o,n=Math.min(i,t.to)-o;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new b$(r.sort(bK),bF);return n?new bq([e,n]):e}return n||bU}eq(e){if(this==e)return!0;if(!(e instanceof b$)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return bY(this.localsInner(e))}localsInner(e){if(this==bU)return bF;if(e.inlineContent||!this.local.some(bz.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof bz||t.push(this.local[e]);return t}forEachSet(e){e(this)}}b$.empty=new b$([],[]),b$.removeOverlap=bY;let bU=b$.empty;class bq{constructor(e){this.members=e}map(e,t){let n=this.members.map(n=>n.map(e,t,bV));return bq.from(n)}forChild(e,t){if(t.isLeaf)return b$.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=bU&&(o instanceof bq?n=n.concat(o.members):n.push(o))}return bq.from(n)}eq(e){if(!(e instanceof bq)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length){if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}}return t?bY(n?t:t.sort(bK)):bF}static from(e){switch(e.length){case 0:return bU;case 1:return e[0];default:return new bq(e.every(e=>e instanceof b$)?e:e.reduce((e,t)=>e.concat(t instanceof b$?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function bZ(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new bH(o.from+t,o.to+t,o.type))}return n}function bW(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let t=0,i;t<e.length;t++)(i=e[t])&&i.from>n&&i.to<r&&((o||(o=[])).push(i),e[t]=null);return o}function bJ(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function bG(e,t,n,r){let o=[],i=!1;t.forEach((t,a)=>{let s=bW(e,t,a+n);if(s){i=!0;let e=bG(s,t,n+a+1,r);e!=bU&&o.push(a,a+t.nodeSize,e)}});let a=bZ(i?bJ(e):e,-n).sort(bK);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||(r.onRemove&&r.onRemove(a[e].spec),a.splice(e--,1));return a.length||o.length?new b$(a,o):bU}function bK(e,t){return e.from-t.from||e.to-t.to}function bY(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from==r.from){i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),bX(t,o+1,i.copy(r.to,i.to)));continue}i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),bX(t,o,r.copy(i.from,r.to)));break}}return t}function bX(e,t,n){for(;t<e.length&&bK(n,e[t])>0;)t++;e.splice(t,0,n)}new WeakMap;for(var bQ={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},b0={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},b1="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),b2="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),b4=0;b4<10;b4++)bQ[48+b4]=bQ[96+b4]=String(b4);for(var b4=1;b4<=24;b4++)bQ[b4+111]="F"+b4;for(var b4=65;b4<=90;b4++)bQ[b4]=String.fromCharCode(b4+32),b0[b4]=String.fromCharCode(b4);for(var b3 in bQ)b0.hasOwnProperty(b3)||(b0[b3]=bQ[b3]);let b5="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function b6(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function b8(e){let t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;e++){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else if(/^mod$/i.test(a))b5?o=!0:n=!0;else throw Error("Unrecognized modifier name: "+a)}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}(n)]=e[n];return t}(e);return function(e,n){var r;let o=("Esc"==(r=!(b1&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||b2&&n.shiftKey&&n.key&&1==n.key.length||"Unidentified"==n.key)&&n.key||(n.shiftKey?b0:bQ)[n.keyCode]||n.key||"Unidentified")&&(r="Escape"),"Del"==r&&(r="Delete"),"Left"==r&&(r="ArrowLeft"),"Up"==r&&(r="ArrowUp"),"Right"==r&&(r="ArrowRight"),"Down"==r&&(r="ArrowDown"),r),i,a=t[b6(o,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[b6(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(i=bQ[n.keyCode])&&i!=o){let r=t[b6(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}let b9=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function b7(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}let we=(e,t,n)=>{let r=b7(e,n);if(!r)return!1;let o=wa(r);if(!o){let n=r.blockRange(),o=n&&vG(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(ww(e,o,t,-1))return!0;if(0==r.parent.content.size&&(wo(i,"end")||yh.isSelectable(i)))for(let n=r.depth;;n--){let a=v5(e.doc,r.before(n),r.after(n),g0.empty);if(a&&a.slice.size<a.to-a.from){if(t){let n=e.tr.step(a);n.setSelection(wo(i,"end")?yl.findFrom(n.doc.resolve(n.mapping.map(o.pos,-1)),-1):yh.create(n.doc,o.pos-i.nodeSize)),t(n.scrollIntoView())}return!0}if(1==n||r.node(n-1).childCount>1)break}return!!i.isAtom&&o.depth==r.depth-1&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)},wt=(e,t,n)=>{let r=b7(e,n);if(!r)return!1;let o=wa(r);return!!o&&wr(e,o,t)},wn=(e,t,n)=>{let r=ws(e,n);if(!r)return!1;let o=wu(r);return!!o&&wr(e,o,t)};function wr(e,t,n){let r=t.nodeBefore,o=t.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let i=t.nodeAfter,a=t.pos+1;for(;!i.isTextblock;a++){if(i.type.spec.isolating)return!1;let e=i.firstChild;if(!e)return!1;i=e}let s=v5(e.doc,o,a,g0.empty);if(!s||s.from!=o||s instanceof vq&&s.slice.size>=a-o)return!1;if(n){let t=e.tr.step(s);t.setSelection(yf.create(t.doc,o)),n(t.scrollIntoView())}return!0}function wo(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let wi=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=wa(r)}let a=i&&i.nodeBefore;return!!(a&&yh.isSelectable(a))&&(t&&t(e.tr.setSelection(yh.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function wa(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function ws(e,t){let{$cursor:n}=e.selection;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset<n.parent.content.size))?n:null}let wl=(e,t,n)=>{let r=ws(e,n);if(!r)return!1;let o=wu(r);if(!o)return!1;let i=o.nodeAfter;if(ww(e,o,t,1))return!0;if(0==r.parent.content.size&&(wo(i,"start")||yh.isSelectable(i))){let n=v5(e.doc,r.before(),r.after(),g0.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(wo(i,"start")?yl.findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):yh.create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!!i.isAtom&&o.depth==r.depth-1&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)},wc=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=wu(r)}let a=i&&i.nodeAfter;return!!(a&&yh.isSelectable(a))&&(t&&t(e.tr.setSelection(yh.create(e.doc,i.pos)).scrollIntoView()),!0)};function wu(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let wd=(e,t)=>{let n=e.selection,r=n instanceof yh,o;if(r){if(n.node.isTextblock||!v1(e.doc,n.from))return!1;o=n.from}else if(null==(o=v4(e.doc,n.from,-1)))return!1;if(t){let n=e.tr.join(o);r&&n.setSelection(yh.create(n.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},wf=(e,t)=>{let n=e.selection,r;if(n instanceof yh){if(n.node.isTextblock||!v1(e.doc,n.to))return!1;r=n.to}else if(null==(r=v4(e.doc,n.to,1)))return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},wp=(e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&vG(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)},wh=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!(n.parent.type.spec.code&&n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function wm(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let wg=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),a=wm(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,a.createAndFill());o.setSelection(yl.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},wv=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof yg||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=wm(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,a=e.tr.insert(n,i.createAndFill());a.setSelection(yf.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},wy=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(v0(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&vG(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)},wb=(e,t)=>{let{$from:n,to:r}=e.selection,o,i=n.sharedDepth(r);return 0!=i&&(o=n.before(i),t&&t(e.tr.setSelection(yh.create(e.doc,o))),!0)};function ww(e,t,n,r){let o,i,a,s=t.nodeBefore,l=t.nodeAfter,c,u,d=s.type.spec.isolating||l.type.spec.isolating;if(!d&&(o=t.nodeBefore,i=t.nodeAfter,a=t.index(),o&&i&&o.type.compatibleContent(i.type)&&(!o.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-o.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(a,a+1)&&(i.isTextblock||v1(e.doc,t.pos)))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let f=!d&&t.parent.canReplace(t.index(),t.index()+1);if(f&&(c=(u=s.contentMatchAt(s.childCount)).findWrapping(l.type))&&u.matchType(c[0]||l.type).validEnd){if(n){let r=t.pos+l.nodeSize,o=gJ.empty;for(let e=c.length-1;e>=0;e--)o=gJ.from(c[e].create(null,o));o=gJ.from(s.copy(o));let i=e.tr.step(new vZ(t.pos-1,r,t.pos,r,new g0(o,1,0),c.length,!0)),a=i.doc.resolve(r+2*c.length);a.nodeAfter&&a.nodeAfter.type==s.type&&v1(i.doc,a.pos)&&i.join(a.pos),n(i.scrollIntoView())}return!0}let p=l.type.spec.isolating||r>0&&d?null:yl.findFrom(t,1),h=p&&p.$from.blockRange(p.$to),m=h&&vG(h);if(null!=m&&m>=t.depth)return n&&n(e.tr.lift(h,m).scrollIntoView()),!0;if(f&&wo(l,"start",!0)&&wo(s,"end")){let r=s,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=l,a=1;for(;!i.isTextblock;i=i.firstChild)a++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=gJ.empty;for(let e=o.length-1;e>=0;e--)r=gJ.from(o[e].copy(r));n(e.tr.step(new vZ(t.pos-o.length,t.pos+l.nodeSize,t.pos+a,t.pos+l.nodeSize-a,new g0(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function wx(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(yf.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}let wC=wx(-1),wk=wx(1);function wS(e,t=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];n.doc.nodesBetween(i,a,(r,i)=>{if(o)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t))){if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];o.setBlockType(i,a,e,t)}r(o.scrollIntoView())}return!0}}function wE(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let wT=wE(b9,we,wi),wA=wE(b9,wl,wc),wM={Enter:wE(wh,wv,wy,(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof yh&&e.selection.node.isBlock)return!!(n.parentOffset&&v0(e.doc,n.pos))&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.parent.isBlock)return!1;let o=r.parentOffset==r.parent.content.size,i=e.tr;(e.selection instanceof yf||e.selection instanceof yg)&&i.deleteSelection();let a=0==n.depth?null:wm(n.node(-1).contentMatchAt(n.indexAfter(-1))),s,l=s?[s]:o&&a?[{type:a}]:void 0,c=v0(i.doc,i.mapping.map(n.pos),1,l);if(!l&&!c&&v0(i.doc,i.mapping.map(n.pos),1,a?[{type:a}]:void 0)&&(a&&(l=[{type:a}]),c=!0),!c)return!1;if(i.split(i.mapping.map(n.pos),1,l),!o&&!n.parentOffset&&n.parent.type!=a){let e=i.mapping.map(n.before()),t=i.doc.resolve(e);a&&n.node(-1).canReplaceWith(t.index(),t.index()+1,a)&&i.setNodeMarkup(i.mapping.map(n.before()),a)}return t&&t(i.scrollIntoView()),!0}),"Mod-Enter":wg,Backspace:wT,"Mod-Backspace":wT,"Shift-Backspace":wT,Delete:wA,"Mod-Delete":wA,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new yg(e.doc))),!0)},wN={"Ctrl-h":wM.Backspace,"Alt-Backspace":wM["Mod-Backspace"],"Ctrl-d":wM.Delete,"Ctrl-Alt-Backspace":wM["Mod-Delete"],"Alt-Delete":wM["Mod-Delete"],"Alt-d":wM["Mod-Delete"],"Ctrl-a":wC,"Ctrl-e":wk};for(let e in wM)wN[e]=wM[e];function wO(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class wI{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a=[],s=!!e,l=e||o.tr,c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(l,t),o=n(...e)(r);return a.push(o),c}])),run:()=>(s||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),a.every(e=>!0===e))};return c}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,o=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a={tr:e,editor:r,view:i,state:wO({state:o,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(a)]))}};return a}}function wL(e,t,n){return void 0===e.config[t]&&e.parent?wL(e.parent,t,n):"function"==typeof e.config[t]?e.config[t].bind({...n,parent:e.parent?wL(e.parent,t,n):null}):e.config[t]}function wR(e){return{baseExtensions:e.filter(e=>"extension"===e.type),nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function wj(e){let t=[],{nodeExtensions:n,markExtensions:r}=wR(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{let n={name:e.name,options:e.options,storage:e.storage,extensions:o},r=wL(e,"addGlobalAttributes",n);r&&r().forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...i,...r}})})})})}),o.forEach(e=>{let n={name:e.name,options:e.options,storage:e.storage},r=wL(e,"addAttributes",n);r&&Object.entries(r()).forEach(([n,r])=>{let o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&(null==o?void 0:o.default)===void 0&&delete o.default,t.push({type:e.name,name:n,attribute:o})})}),t}function wP(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function w_(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if("class"===e){let r=t?t.split(" "):[],o=n[e]?n[e].split(" "):[],i=r.filter(e=>!o.includes(e));n[e]=[...o,...i].join(" ")}else if("style"===e){let r=t?t.split(";").map(e=>e.trim()).filter(Boolean):[],o=n[e]?n[e].split(";").map(e=>e.trim()).filter(Boolean):[],i=new Map;o.forEach(e=>{let[t,n]=e.split(":").map(e=>e.trim());i.set(t,n)}),r.forEach(e=>{let[t,n]=e.split(":").map(e=>e.trim());i.set(t,n)}),n[e]=Array.from(i.entries()).map(([e,t])=>`${e}: ${t}`).join("; ")}else n[e]=t}),n},{})}function wD(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>w_(e,t),{})}function wz(e,t,...n){return"function"==typeof e?t?e.bind(t)(...n):e(...n):e}function wB(e,t){return"style"in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;let o=t.reduce((e,t)=>{var r;let o=t.attribute.parseHTML?t.attribute.parseHTML(n):"string"!=typeof(r=n.getAttribute(t.name))?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):"true"===r||"false"!==r&&r;return null==o?e:{...e,[t.name]:o}},{});return{...r,...o}}}}function wH(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>!("attrs"===e&&function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t))}function wF(e,t){var n;let r=wj(e),{nodeExtensions:o,markExtensions:i}=wR(e);return new vy({topNode:null===(n=o.find(e=>wL(e,"topNode")))||void 0===n?void 0:n.name,nodes:Object.fromEntries(o.map(n=>{let o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=wH({...e.reduce((e,t)=>{let r=wL(t,"extendNodeSchema",i);return{...e,...r?r(n):{}}},{}),content:wz(wL(n,"content",i)),marks:wz(wL(n,"marks",i)),group:wz(wL(n,"group",i)),inline:wz(wL(n,"inline",i)),atom:wz(wL(n,"atom",i)),selectable:wz(wL(n,"selectable",i)),draggable:wz(wL(n,"draggable",i)),code:wz(wL(n,"code",i)),whitespace:wz(wL(n,"whitespace",i)),defining:wz(wL(n,"defining",i)),isolating:wz(wL(n,"isolating",i)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),s=wz(wL(n,"parseHTML",i));s&&(a.parseDOM=s.map(e=>wB(e,o)));let l=wL(n,"renderHTML",i);l&&(a.toDOM=e=>l({node:e,HTMLAttributes:wD(e,o)}));let c=wL(n,"renderText",i);return c&&(a.toText=c),[n.name,a]})),marks:Object.fromEntries(i.map(n=>{let o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=wH({...e.reduce((e,t)=>{let r=wL(t,"extendMarkSchema",i);return{...e,...r?r(n):{}}},{}),inclusive:wz(wL(n,"inclusive",i)),excludes:wz(wL(n,"excludes",i)),group:wz(wL(n,"group",i)),spanning:wz(wL(n,"spanning",i)),code:wz(wL(n,"code",i)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),s=wz(wL(n,"parseHTML",i));s&&(a.parseDOM=s.map(e=>wB(e,o)));let l=wL(n,"renderHTML",i);return l&&(a.toDOM=e=>l({mark:e,HTMLAttributes:wD(e,o)})),[n.name,a]}))})}function wV(e,t){return t.nodes[e]||t.marks[e]||null}function w$(e,t){return Array.isArray(t)?t.some(t=>("string"==typeof t?t:t.name)===e.name):t}let wU=(e,t=500)=>{let n="",r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,o,i)=>{var a,s;let l=(null===(s=(a=e.type.spec).toText)||void 0===s?void 0:s.call(a,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))}),n};function wq(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class wZ{constructor(e){this.find=e.find,this.handler=e.handler}}let wW=(e,t)=>{if(wq(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function wJ(e){var t;let{editor:n,from:r,to:o,text:i,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;let c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(null===(t=c.nodeBefore||c.nodeAfter)||void 0===t?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let u=!1,d=wU(c)+i;return a.forEach(e=>{if(u)return;let t=wW(d,e.find);if(!t)return;let a=l.state.tr,c=wO({state:l.state,transaction:a}),f={from:r-(t[0].length-i.length),to:o},{commands:p,chain:h,can:m}=new wI({editor:n,state:c});null!==e.handler({state:c,range:f,match:t,commands:p,chain:h,can:m})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),u=!0)}),u}function wG(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function wK(e,t){let n={...e};return wG(e)&&wG(t)&&Object.keys(t).forEach(r=>{wG(t[r])&&wG(e[r])?n[r]=wK(e[r],t[r]):n[r]=t[r]}),n}class wY{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=wz(wL(this,"addOptions",{name:this.name}))),this.storage=wz(wL(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new wY(e)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>wK(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new wY(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=wz(wL(t,"addOptions",{name:t.name})),t.storage=wz(wL(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let o=r.marks();if(!o.find(e=>(null==e?void 0:e.type.name)===t.name))return!1;let i=o.find(e=>(null==e?void 0:e.type.name)===t.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class wX{constructor(e){this.find=e.find,this.handler=e.handler}}let wQ=(e,t,n)=>{if(wq(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]},w0=e=>{var t;let n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(t=n.clipboardData)||void 0===t||t.setData("text/html",e),n};class w1{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=w1.resolve(e),this.schema=wF(this.extensions,t),this.setupExtensions()}static resolve(e){var t;let n=w1.sort(w1.flatten(e)),r=Array.from(new Set((t=n.map(e=>e.name)).filter((e,n)=>t.indexOf(e)!==n)));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(e=>{let t={name:e.name,options:e.options,storage:e.storage},n=wL(e,"addExtensions",t);return n?[e,...this.flatten(n())]:e}).flat(10)}static sort(e){return e.sort((e,t)=>{let n=wL(e,"priority")||100,r=wL(t,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((e,t)=>{let n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:wV(t.name,this.schema)},r=wL(t,"addCommands",n);return r?{...e,...r()}:e},{})}get plugins(){let{editor:e}=this,t=w1.sort([...this.extensions].reverse()),n=[],r=[],o=t.map(t=>{let o={name:t.name,options:t.options,storage:t.storage,editor:e,type:wV(t.name,this.schema)},i=[],a=wL(t,"addKeyboardShortcuts",o),s={};if("mark"===t.type&&wL(t,"exitable",o)&&(s.ArrowRight=()=>wY.handleExit({editor:e,mark:t})),a){let t=Object.fromEntries(Object.entries(a()).map(([t,n])=>[t,()=>n({editor:e})]));s={...s,...t}}let l=new yC({props:{handleKeyDown:b8(s)}});i.push(l);let c=wL(t,"addInputRules",o);w$(t,e.options.enableInputRules)&&c&&n.push(...c());let u=wL(t,"addPasteRules",o);w$(t,e.options.enablePasteRules)&&u&&r.push(...u());let d=wL(t,"addProseMirrorPlugins",o);if(d){let e=d();i.push(...e)}return i}).flat();return[function(e){let{editor:t,rules:n}=e,r=new yC({state:{init:()=>null,apply(e,o){let i=e.getMeta(r);if(i)return i;let a=e.getMeta("applyInputRules");return a&&setTimeout(()=>{let{from:e,text:o}=a,i=e+o.length;wJ({editor:t,from:e,to:i,text:o,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:o}},props:{handleTextInput:(e,o,i,a)=>wJ({editor:t,from:o,to:i,text:a,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:o}=e.state.selection;o&&wJ({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(e,o){if("Enter"!==o.key)return!1;let{$cursor:i}=e.state.selection;return!!i&&wJ({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}({editor:e,rules:n}),...function(e){let{editor:t,rules:n}=e,r=null,o=!1,i=!1,a="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,s="undefined"!=typeof DragEvent?new DragEvent("drop"):null,l=({state:e,from:n,to:r,rule:o,pasteEvt:i})=>{let l=e.tr;if(function(e){let{editor:t,state:n,from:r,to:o,rule:i,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:c,can:u}=new wI({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,o,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;let f=Math.max(r,t),p=Math.min(o,t+e.content.size);wQ(e.textBetween(f-t,p-t,void 0,"￼"),i.find,a).forEach(e=>{if(void 0===e.index)return;let t=f+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},p=i.handler({state:n,range:o,match:e,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:s});d.push(p)})}),d.every(e=>null!==e)}({editor:t,state:wO({state:e,transaction:l}),from:Math.max(n-1,0),to:r.b-1,rule:o,pasteEvent:i,dropEvent:s})&&l.steps.length)return s="undefined"!=typeof DragEvent?new DragEvent("drop"):null,a="undefined"!=typeof ClipboardEvent?new ClipboardEvent("paste"):null,l};return n.map(e=>new yC({view(e){let t=t=>{var n;r=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:(e,t)=>(i=r===e.dom.parentElement,s=t,!1),paste:(e,t)=>{var n;let r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return a=t,o=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],c="paste"===s.getMeta("uiEvent")&&!o,u="drop"===s.getMeta("uiEvent")&&!i,d=s.getMeta("applyPasteRules"),f=!!d;if(!c&&!u&&!f)return;if(f){let{from:t,text:n}=d,o=t+n.length;return l({rule:e,state:r,from:t,to:{b:o},pasteEvt:w0(n)})}let p=n.doc.content.findDiffStart(r.doc.content),h=n.doc.content.findDiffEnd(r.doc.content);if("number"==typeof p&&h&&p!==h.b)return l({rule:e,state:r,from:p,to:h,pasteEvt:a})}}))}({editor:e,rules:r}),...o]}get attributes(){return wj(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=wR(this.extensions);return Object.fromEntries(t.filter(e=>!!wL(e,"addNodeView")).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:wP(t.name,this.schema)},o=wL(t,"addNodeView",r);return o?[t.name,(r,i,a,s,l)=>{let c=wD(r,n);return o()({node:r,view:i,getPos:a,decorations:s,innerDecorations:l,editor:e,extension:t,HTMLAttributes:c})}]:[]}))}setupExtensions(){this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;let n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:wV(e.name,this.schema)};"mark"===e.type&&(null===(t=wz(wL(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name);let r=wL(e,"onBeforeCreate",n),o=wL(e,"onCreate",n),i=wL(e,"onUpdate",n),a=wL(e,"onSelectionUpdate",n),s=wL(e,"onTransaction",n),l=wL(e,"onFocus",n),c=wL(e,"onBlur",n),u=wL(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),s&&this.editor.on("transaction",s),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),u&&this.editor.on("destroy",u)})}}class w2{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=wz(wL(this,"addOptions",{name:this.name}))),this.storage=wz(wL(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new w2(e)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>wK(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new w2({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=wz(wL(t,"addOptions",{name:t.name})),t.storage=wz(wL(t,"addStorage",{name:t.name,options:t.options})),t}}function w4(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:wq(t[r])?t[r].test(e[r]):t[r]===e[r])}function w3(e,t,n={}){return e.find(e=>e.type===t&&w4(e.attrs,n))}function w5(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;let o=w3([...r.node.marks],t,n);if(!o)return;let i=r.index,a=e.start()+r.offset,s=i+1,l=a+r.node.nodeSize;for(w3([...r.node.marks],t,n);i>0&&o.isInSet(e.parent.child(i-1).marks);)i-=1,a-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&function(e,t,n={}){return!!w3(e,t,n)}([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function w6(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function w8(e){return e instanceof yf}function w9(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function w7(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}w2.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new yC({key:new yE("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o,a=Math.min(...i.map(e=>e.$from.pos)),s=Math.max(...i.map(e=>e.$to.pos)),l=Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]));return function(e,t,n){let{from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:a={}}=n||{},s="";return e.nodesBetween(r,o,(e,n,l,c)=>{var u;e.isBlock&&n>r&&(s+=i);let d=null==a?void 0:a[e.type.name];if(d)return l&&(s+=d({node:e,pos:n,parent:l,index:c,range:t})),!1;e.isText&&(s+=null===(u=null==e?void 0:e.text)||void 0===u?void 0:u.slice(Math.max(r,n)-n,o-n))}),s}(r,{from:a,to:s},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});let xe=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){let r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&xe(r)}return e};function xt(e){let t=`<body>${e}</body>`;return xe(new window.DOMParser().parseFromString(t,"text/html").body)}function xn(e,t,n){n={slice:!0,parseOptions:{},...n};let r="object"==typeof e&&null!==e,o="string"==typeof e;if(r)try{if(Array.isArray(e)&&e.length>0)return gJ.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),xn("",t,n)}if(o){if(n.errorOnInvalidContent){let r=!1,o="",i=new vy({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,o="string"==typeof e?e:e.outerHTML,null)}]}})});if(n.slice?vw.fromSchema(i).parseSlice(xt(e),n.parseOptions):vw.fromSchema(i).parse(xt(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error("[tiptap error]: Invalid HTML content",{cause:Error(`Invalid element found: ${o}`)})}let r=vw.fromSchema(t);return n.slice?r.parseSlice(xt(e),n.parseOptions).content:r.parse(xt(e),n.parseOptions)}return xn("",t,n)}let xr=e=>!("type"in e);function xo(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function xi(e,t,n={}){let{from:r,to:o,empty:i}=e.selection,a=t?wP(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:i})});let l=o-r,c=s.filter(e=>!a||a.name===e.node.type.name).filter(e=>w4(e.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((e,t)=>e+t.to-t.from,0)>=l}function xa(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function xs(e,t){let n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}function xl(e,t){let n=w6(t,e.schema),{from:r,to:o,empty:i}=e.selection,a=[];i?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{a.push(...e.marks)});let s=a.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function xc(e,t){for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function xu(e){return t=>xc(t.$from,e)}function xd(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let o=w5(n.resolve(e),t.type);o&&r.push({mark:t,...o})}):n.nodesBetween(e,t,(e,t)=>{e&&(null==e?void 0:e.nodeSize)!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}function xf(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function xp(e,t){let{nodeExtensions:n}=wR(t),r=n.find(t=>t.name===e);if(!r)return!1;let o={name:r.name,options:r.options,storage:r.storage},i=wz(wL(r,"group",o));return"string"==typeof i&&i.split(" ").includes("list")}function xh(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}let xm=(e,t)=>{let n=xu(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;let o=e.doc.nodeAt(r);return!(n.node.type===(null==o?void 0:o.type)&&v1(e.doc,n.pos))||(e.join(n.pos),!0)},xg=(e,t)=>{let n=xu(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;let o=e.doc.nodeAt(r);return!(n.node.type===(null==o?void 0:o.type)&&v1(e.doc,r))||(e.join(r),!0)};var xv=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null==window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:o}=t,i=r.resolve(o.map(n)),a=r.resolve(o.map(n+e.nodeSize)),s=i.blockRange(a);if(!s)return;let l=vG(s);if(e.type.isTextblock){let{defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(s.start,e)}(l||0===l)&&t.lift(s,l)})}),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>wv(e,t),cut:(e,t)=>({editor:n,tr:r})=>{let{state:o}=n,i=o.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let a=r.mapping.map(t);return r.insert(a,i.content),r.setSelection(new yf(r.doc.resolve(a-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let o=e.selection.$anchor;for(let n=o.depth;n>0;n-=1)if(o.node(n).type===r.type){if(t){let t=o.before(n),r=o.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1},deleteNode:e=>({tr:t,state:n,dispatch:r})=>{let o=wP(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1)if(i.node(e).type===o){if(r){let n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{let{from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>b9(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>wg(e,t),extendMarkRange:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=w6(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(o){let e=w5(l,i,t);if(e&&e.from<=c&&e.to>=u){let t=yf.create(a,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{let n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};let a=()=>{w7()&&r.dom.focus(),requestAnimationFrame(()=>{!n.isDestroyed&&(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};if(r.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!w8(n.state.selection))return a(),!0;let s=function(e,t=null){if(!t)return null;let n=yl.atStart(e),r=yl.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;let o=n.from,i=r.to;return"all"===t?yf.create(e,w9(0,o,i),w9(e.content.size,o,i)):yf.create(e,w9(t,o,i),w9(t,o,i))}(o.doc,e)||n.state.selection,l=n.state.selection.eq(s);return i&&(l||o.setSelection(s),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},forEach:(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:r,dispatch:o,editor:i})=>{var a;if(o){let o,s;n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};try{o=xn(t,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:null!==(a=n.errorOnInvalidContent)&&void 0!==a?a:i.options.enableContentCheck})}catch(e){return i.emit("contentError",{editor:i,error:e,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:c}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0;if((xr(o)?o:[o]).forEach(e=>{e.check(),u=!!u&&e.isText&&0===e.marks.length,d=!!d&&e.isBlock}),l===c&&d){let{parent:e}=r.doc.resolve(l);!e.isTextblock||e.type.spec.code||e.childCount||(l-=1,c+=1)}u?(s=Array.isArray(t)?t.map(e=>e.text||"").join(""):"object"==typeof t&&t&&t.text?t.text:t,r.insertText(s,l,c)):(s=o,r.replaceWith(l,c,s)),n.updateSelection&&function(e,t,n){let r=e.steps.length-1;if(r<t)return;let o=e.steps[r];if(!(o instanceof vq||o instanceof vZ))return;let i=e.mapping.maps[r],a=0;i.forEach((e,t,n,r)=>{0===a&&(a=r)}),e.setSelection(yl.near(e.doc.resolve(a),-1))}(r,r.steps.length-1,0),n.applyInputRules&&r.setMeta("applyInputRules",{from:l,text:s}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:l,text:s})}return!0},joinBackward:()=>({state:e,dispatch:t})=>we(e,t),joinDown:()=>({state:e,dispatch:t})=>wf(e,t),joinForward:()=>({state:e,dispatch:t})=>wl(e,t),joinItemBackward:()=>({state:e,dispatch:t,tr:n})=>{try{let r=v4(e.doc,e.selection.$from.pos,-1);if(null==r)return!1;return n.join(r,2),t&&t(n),!0}catch(e){return!1}},joinItemForward:()=>({state:e,dispatch:t,tr:n})=>{try{let r=v4(e.doc,e.selection.$from.pos,1);if(null==r)return!1;return n.join(r,2),t&&t(n),!0}catch(e){return!1}},joinTextblockBackward:()=>({state:e,dispatch:t})=>wt(e,t),joinTextblockForward:()=>({state:e,dispatch:t})=>wn(e,t),joinUp:()=>({state:e,dispatch:t})=>wd(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{let i=(function(e){let t,n,r,o;let i=e.split(/-(?!$)/),a=i[i.length-1];"Space"===a&&(a=" ");for(let e=0;e<i.length-1;e+=1){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else if(/^mod$/i.test(a))w7()||xo()?o=!0:n=!0;else throw Error(`Unrecognized modifier name: ${a}`)}return t&&(a=`Alt-${a}`),n&&(a=`Ctrl-${a}`),o&&(a=`Meta-${a}`),r&&(a=`Shift-${a}`),a})(e).split(/-(?!$)/),a=i.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),s=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,s))});return null==l||l.steps.forEach(e=>{let t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0},lift:(e,t={})=>({state:n,dispatch:r})=>{let o=wP(e,n.schema);return!!xi(n,o,t)&&wp(n,r)},liftEmptyBlock:()=>({state:e,dispatch:t})=>wy(e,t),liftListItem:e=>({state:t,dispatch:n})=>{var r;return(r=wP(e,t.schema),function(e,t){let{$from:n,$to:o}=e.selection,i=n.blockRange(o,e=>e.childCount>0&&e.firstChild.type==r);return!!i&&(!t||(n.node(i.depth-1).type==r?function(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);i<a&&(o.step(new vZ(i-1,a,i,a,new g0(gJ.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new vt(o.doc.resolve(r.$from.pos),o.doc.resolve(a),r.depth));let s=vG(r);if(null==s)return!1;o.lift(r,s);let l=o.mapping.map(i,-1)-1;return v1(o.doc,l)&&o.join(l),t(o.scrollIntoView()),!0}(e,t,r,i):function(e,t,n){let r=e.tr,o=n.parent;for(let e=n.end,t=n.endIndex-1,i=n.startIndex;t>i;t--)e-=o.child(t).nodeSize,r.delete(e-1,e+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,l=n.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?gJ.empty:gJ.from(o))))return!1;let d=i.pos,f=d+a.nodeSize;return r.step(new vZ(d-(s?1:0),f+(l?1:0),d+1,f-1,new g0((s?gJ.empty:gJ.from(o.copy(gJ.empty))).append(l?gJ.empty:gJ.from(o.copy(gJ.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}(e,t,i)))})(t,n)},newlineInCode:()=>({state:e,dispatch:t})=>wh(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null,s=xa("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=wP(e,r.schema)),"mark"===s&&(a=w6(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,xs(e.attrs,t)),a&&e.marks.length&&e.marks.forEach(o=>{a===o.type&&n.addMark(r,r+e.nodeSize,a.create(xs(o.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),selectNodeBackward:()=>({state:e,dispatch:t})=>wi(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>wc(e,t),selectParentNode:()=>({state:e,dispatch:t})=>wb(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>wk(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>wC(e,t),setContent:(e,t=!1,n={},r={})=>({editor:o,tr:i,dispatch:a,commands:s})=>{var l,c;let{doc:u}=i;if("full"!==n.preserveWhitespace){let s=function(e,t,n={},r={}){return xn(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}(e,o.schema,n,{errorOnInvalidContent:null!==(l=r.errorOnInvalidContent)&&void 0!==l?l:o.options.enableContentCheck});return a&&i.replaceWith(0,u.content.size,s).setMeta("preventUpdate",!t),!0}return a&&i.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:u.content.size},e,{parseOptions:n,errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:o.options.enableContentCheck})},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let{selection:i}=n,{empty:a,ranges:s}=i,l=w6(e,r.schema);if(o){if(a){let e=xl(r,l);n.addStoredMark(l.create({...e,...t}))}else s.forEach(e=>{let o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,(e,r)=>{let a=Math.max(r,o),s=Math.min(r+e.nodeSize,i);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(a,s,l.create({...e.attrs,...t}))}):n.addMark(a,s,l.create(t))})})}return function(e,t,n){var r;let{selection:o}=t,i=null;if(w8(o)&&(i=o.$cursor),i){let t=null!==(r=e.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}let{ranges:a}=o;return a.some(({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),i=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));o=t&&i}return!o}),o})}(r,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{let i=wP(e,n.schema);return i.isTextblock?o().command(({commands:e})=>!!wS(i,t)(n)||e.clearNodes()).command(({state:e})=>wS(i,t)(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=w9(e,0,n.content.size),o=yh.create(n,r);t.setSelection(o)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:o}="number"==typeof e?{from:e,to:e}:e,i=yf.atStart(n).from,a=yf.atEnd(n).to,s=w9(r,i,a),l=w9(o,i,a),c=yf.create(n,s,l);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{var r;return(r=wP(e,t.schema),function(e,t){let{$from:n,$to:o}=e.selection,i=n.blockRange(o,e=>e.childCount>0&&e.firstChild.type==r);if(!i)return!1;let a=i.startIndex;if(0==a)return!1;let s=i.parent,l=s.child(a-1);if(l.type!=r)return!1;if(t){let n=l.lastChild&&l.lastChild.type==s.type,o=gJ.from(n?r.create():null),a=new g0(gJ.from(r.create(null,gJ.from(s.type.create(null,o)))),n?3:1,0),c=i.start,u=i.end;t(e.tr.step(new vZ(c-(n?3:1),u,c,u,a,1,!0)).scrollIntoView())}return!0})(t,n)},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:o})=>{let{selection:i,doc:a}=t,{$from:s,$to:l}=i,c=xf(o.extensionManager.attributes,s.node().type.name,s.node().attrs);if(i instanceof yh&&i.node.isBlock)return!!(s.parentOffset&&v0(a,s.pos))&&(r&&(e&&xh(n,o.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let u=l.parentOffset===l.parent.content.size,d=0===s.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(s.node(-1).contentMatchAt(s.indexAfter(-1))),f=u&&d?[{type:d,attrs:c}]:void 0,p=v0(t.doc,t.mapping.map(s.pos),1,f);if(!f&&!p&&v0(t.doc,t.mapping.map(s.pos),1,d?[{type:d}]:void 0)&&(p=!0,f=d?[{type:d,attrs:c}]:void 0),r){if(p&&(i instanceof yf&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,f),d&&!u&&!s.parentOffset&&s.parent.type!==d)){let e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,d)&&t.setNodeMarkup(t.mapping.map(s.before()),d)}e&&xh(n,o.extensionManager.splittableMarks),t.scrollIntoView()}return p},splitListItem:(e,t={})=>({tr:n,state:r,dispatch:o,editor:i})=>{var a;let s=wP(e,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;let d=l.node(-1);if(d.type!==s)return!1;let f=i.extensionManager.attributes;if(0===l.parent.content.size&&l.node(-1).childCount===l.indexAfter(-1)){if(2===l.depth||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(o){let e=gJ.empty,r=l.index(-1)?1:l.index(-2)?2:3;for(let t=l.depth-r;t>=l.depth-3;t-=1)e=gJ.from(l.node(t).copy(e));let o=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,i={...xf(f,l.node().type.name,l.node().attrs),...t},c=(null===(a=s.contentMatch.defaultType)||void 0===a?void 0:a.createAndFill(i))||void 0;e=e.append(gJ.from(s.createAndFill(null,c)||void 0));let u=l.before(l.depth-(r-1));n.replace(u,l.after(-o),new g0(e,4-r,0));let d=-1;n.doc.nodesBetween(u,n.doc.content.size,(e,t)=>{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)}),d>-1&&n.setSelection(yf.near(n.doc.resolve(d))),n.scrollIntoView()}return!0}let p=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,h={...xf(f,d.type.name,d.attrs),...t},m={...xf(f,l.node().type.name,l.node().attrs),...t};if(n.delete(l.pos,c.pos),!v0(n.doc,l.pos,2))return!1;if(o){let{selection:e,storedMarks:t}=r,{splittableMarks:a}=i.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(l.pos,2,p?[{type:s,attrs:h},{type:p,attrs:m}]:[{type:s,attrs:h}]).scrollIntoView(),!c||!o)return!0;let u=c.filter(e=>a.includes(e.type.name));n.ensureMarks(u)}return!0},toggleList:(e,t,n,r={})=>({editor:o,tr:i,state:a,dispatch:s,chain:l,commands:c,can:u})=>{let{extensions:d,splittableMarks:f}=o.extensionManager,p=wP(e,a.schema),h=wP(t,a.schema),{selection:m,storedMarks:g}=a,{$from:v,$to:y}=m,b=v.blockRange(y),w=g||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;let x=xu(e=>xp(e.type.name,d))(m);if(b.depth>=1&&x&&b.depth-x.depth<=1){if(x.node.type===p)return c.liftListItem(h);if(xp(x.node.type.name,d)&&p.validContent(x.node.content)&&s)return l().command(()=>(i.setNodeMarkup(x.pos,p),!0)).command(()=>xm(i,p)).command(()=>xg(i,p)).run()}return n&&w&&s?l().command(()=>{let e=u().wrapInList(p,r),t=w.filter(e=>f.includes(e.type.name));return i.ensureMarks(t),!!e||c.clearNodes()}).wrapInList(p,r).command(()=>xm(i,p)).command(()=>xg(i,p)).run():l().command(()=>!!u().wrapInList(p,r)||c.clearNodes()).wrapInList(p,r).command(()=>xm(i,p)).command(()=>xg(i,p)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{let{extendEmptyMarkRange:i=!1}=n,a=w6(e,r.schema);return!function(e,t,n={}){let{empty:r,ranges:o}=e.selection,i=t?w6(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!i||i.name===e.type.name).find(e=>w4(e.attrs,n,{strict:!1}));let a=0,s=[];if(o.forEach(({$from:t,$to:n})=>{let r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a+=i-n,s.push(...e.marks.map(e=>({mark:e,from:n,to:i})))})}),0===a)return!1;let l=s.filter(e=>!i||i.name===e.mark.type.name).filter(e=>w4(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),c=s.filter(e=>!i||e.mark.type!==i&&e.mark.type.excludes(i)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+c:l)>=a}(r,a,t)?o.setMark(a,t):o.unsetMark(a,{extendEmptyMarkRange:i})},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{let i;let a=wP(e,r.schema),s=wP(t,r.schema),l=xi(r,a,n);return(r.selection.$anchor.sameParent(r.selection.$head)&&(i=r.selection.$anchor.parent.attrs),l)?o.setNode(s,i):o.setNode(a,{...i,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{let o=wP(e,n.schema);return xi(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let o;let i=n[r];if(i.spec.isInputRules&&(o=i.getState(e))){if(t){let t=e.tr,n=o.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(o.text){let n=t.doc.resolve(o.from).marks();t.replaceWith(o.from,o.to,e.schema.text(o.text,n))}else t.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:o}=n;return!!r||(t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0)},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;let{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=w6(e,r.schema),{$from:c,empty:u,ranges:d}=s;if(!o)return!0;if(u&&a){let{from:e,to:t}=s,r=null===(i=c.marks().find(e=>e.type===l))||void 0===i?void 0:i.attrs,o=w5(c,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null,s=xa("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=wP(e,r.schema)),"mark"===s&&(a=w6(e,r.schema)),o&&n.selection.ranges.forEach(e=>{let o=e.$from.pos,s=e.$to.pos;r.doc.nodesBetween(o,s,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),a&&e.marks.length&&e.marks.forEach(i=>{if(a===i.type){let l=Math.max(r,o),c=Math.min(r+e.nodeSize,s);n.addMark(l,c,a.create({...i.attrs,...t}))}})})}),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>(function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=a&&vK(a,e,t);return!!s&&(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0)}})(wP(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>(function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&0==a.startIndex){if(0==o.index(a.depth-1))return!1;let e=n.doc.resolve(a.start-2);l=new vt(e,e,a.depth),a.endIndex<a.parent.childCount&&(a=new vt(o,n.doc.resolve(i.end(a.depth)),a.depth)),s=!0}let c=vK(l,e,t,a);return!!c&&(r&&r((function(e,t,n,r,o){let i=gJ.empty;for(let e=n.length-1;e>=0;e--)i=gJ.from(n[e].type.create(n[e].attrs,i));e.step(new vZ(t.start-(r?2:0),t.end,t.start,t.end,new g0(i,0,0),n.length,!0));let a=0;for(let e=0;e<n.length;e++)n[e].type==o&&(a=e+1);let s=n.length-a,l=t.start+n.length-(r?2:0),c=t.parent;for(let n=t.startIndex,r=t.endIndex,o=!0;n<r;n++,o=!1)!o&&v0(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(n).nodeSize;return e})(n.tr,a,c,s,e).scrollIntoView()),!0)}})(wP(e,n.schema),t)(n,r)});function xy(e){return new wZ({find:e.find,handler:({state:t,range:n,match:r})=>{let o=wz(e.getAttributes,void 0,r);if(!1===o||null===o)return null;let{tr:i}=t,a=r[r.length-1],s=r[0];if(a){let r=s.search(/\S/),l=n.from+s.indexOf(a),c=l+a.length;if(xd(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>l).length)return null;c<n.to&&i.delete(c,n.to),l>n.from&&i.delete(n.from+r,l);let u=n.from+r+a.length;i.addMark(n.from+r,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function xb(e){return new wZ({find:e.find,handler:({state:t,range:n,match:r})=>{let o=wz(e.getAttributes,void 0,r)||{},{tr:i}=t,a=n.from,s=n.to,l=e.type.create(o);if(r[1]){let e=a+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];i.insertText(t,a+r[0].length-1),i.replaceWith(e,s,l)}else if(r[0]){let t=e.type.isInline?a:a-1;i.insert(t,e.type.create(o)).delete(i.mapping.map(a),i.mapping.map(s))}i.scrollIntoView()}})}function xw(e){return new wZ({find:e.find,handler:({state:t,range:n,match:r})=>{let o=t.doc.resolve(n.from),i=wz(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)}})}function xx(e){return new wZ({find:e.find,handler:({state:t,range:n,match:r,chain:o})=>{let i=wz(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),s=a.doc.resolve(n.from).blockRange(),l=s&&vK(s,e.type,i);if(!l)return null;if(a.wrap(s,l),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:o}=e.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){let e=i.filter(e=>o.includes(e.type.name));a.ensureMarks(e)}}if(e.keepAttributes){let t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(t,i).run()}let c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&v1(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}w2.create({name:"commands",addCommands:()=>({...xv})}),w2.create({name:"drop",addProseMirrorPlugins(){return[new yC({key:new yE("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),w2.create({name:"editable",addProseMirrorPlugins(){return[new yC({key:new yE("editable"),props:{editable:()=>this.editor.options.editable}})]}}),w2.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:e}=this;return[new yC({key:new yE("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),w2.create({name:"keymap",addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:o,$anchor:i}=n,{pos:a,parent:s}=i,l=i.parent.isTextblock&&a>0?t.doc.resolve(a-1):i,c=l.parent.type.spec.isolating,u=i.pos-i.parentOffset,d=c&&1===l.parent.childCount?u===i.pos:yl.atStart(r).from===a;return!!o&&!!s.type.isTextblock&&!s.textContent.length&&!!d&&(!d||"paragraph"!==i.parent.type.name)&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return w7()||xo()?o:r},addProseMirrorPlugins(){return[new yC({key:new yE("clearDocument"),appendTransaction:(e,t,n)=>{let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),o=e.some(e=>e.getMeta("preventClearDocument"));if(!r||o)return;let{empty:i,from:a,to:s}=t.selection,l=yl.atStart(t.doc).from,c=yl.atEnd(t.doc).to;if(i||!(a===l&&s===c)||!function e(t,{checkChildren:n=!0,ignoreWhitespace:r=!1}={}){var o;if(r){if("hardBreak"===t.type.name)return!0;if(t.isText)return/^\s*$/m.test(null!==(o=t.text)&&void 0!==o?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(0===t.content.childCount)return!0;if(n){let o=!0;return t.content.forEach(t=>{!1!==o&&(e(t,{ignoreWhitespace:r,checkChildren:n})||(o=!1))}),o}return!1}(n.doc))return;let u=n.tr,d=wO({state:n,transaction:u}),{commands:f}=new wI({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),w2.create({name:"paste",addProseMirrorPlugins(){return[new yC({key:new yE("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),w2.create({name:"tabindex",addProseMirrorPlugins(){return[new yC({key:new yE("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class xC{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=wz(wL(this,"addOptions",{name:this.name}))),this.storage=wz(wL(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new xC(e)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>wK(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){let t=new xC(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=wz(wL(t,"addOptions",{name:t.name})),t.storage=wz(wL(t,"addStorage",{name:t.name,options:t.options})),t}}function xk(e){return new wX({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{let i=wz(e.getAttributes,void 0,r,o);if(!1===i||null===i)return null;let{tr:a}=t,s=r[r.length-1],l=r[0],c=n.to;if(s){let r=l.search(/\S/),o=n.from+l.indexOf(s),u=o+s.length;if(xd(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>o).length)return null;u<n.to&&a.delete(u,n.to),o>n.from&&a.delete(n.from+r,o),c=n.from+r+s.length,a.addMark(n.from+r,c,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}let xS="textStyle",xE=/^\s*([-+*])\s$/,xT=xC.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(xS)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=xx({find:xE,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=xx({find:xE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(xS),editor:this.editor})),[e]}}),xA=xC.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),xM=xC.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",w_(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:o}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:i}=this.options,{splittableMarks:a}=r.extensionManager,s=o||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&i){let t=s.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),xN=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,xO=xC.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",w_(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[xb({find:xN,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),xI=(e,t)=>{for(let n in t)e[n]=t[n];return e},xL="numeric",xR="ascii",xj="alpha",xP="asciinumeric",x_="alphanumeric",xD="domain",xz="emoji",xB="whitespace";function xH(e,t,n){for(let r in t[xL]&&(t[xP]=!0,t[x_]=!0),t[xR]&&(t[xP]=!0,t[xj]=!0),t[xP]&&(t[x_]=!0),t[xj]&&(t[x_]=!0),t[x_]&&(t[xD]=!0),t[xz]&&(t[xD]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function xF(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}xF.groups={},xF.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t){return void 0===t&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||xF.groups,t&&t.j?o=t:(o=new xF(t),n&&r&&xH(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this,i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){if(r=r||xF.groups,t&&t.j)return this.j[e]=t,t;let o,i=this.go(e);return i?(xI((o=new xF).j,i.j),o.jr.push.apply(o.jr,i.jr),o.jd=i.jd,o.t=i.t):o=new xF,t&&(r&&(o.t&&"string"==typeof o.t?xH(t,xI(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(o.t,r),n),r):n&&xH(t,n,r)),o.t=t),this.j[e]=o,o}};let xV=(e,t,n,r,o)=>e.ta(t,n,r,o),x$=(e,t,n,r,o)=>e.tr(t,n,r,o),xU=(e,t,n,r,o)=>e.ts(t,n,r,o),xq=(e,t,n,r,o)=>e.tt(t,n,r,o),xZ="WORD",xW="UWORD",xJ="LOCALHOST",xG="UTLD",xK="SCHEME",xY="SLASH_SCHEME",xX="OPENBRACE",xQ="CLOSEBRACE",x0="OPENBRACKET",x1="CLOSEBRACKET",x2="OPENPAREN",x4="CLOSEPAREN",x3="OPENANGLEBRACKET",x5="CLOSEANGLEBRACKET",x6="FULLWIDTHLEFTPAREN",x8="FULLWIDTHRIGHTPAREN",x9="LEFTCORNERBRACKET",x7="RIGHTCORNERBRACKET",Ce="LEFTWHITECORNERBRACKET",Ct="RIGHTWHITECORNERBRACKET",Cn="FULLWIDTHLESSTHAN",Cr="FULLWIDTHGREATERTHAN",Co="AMPERSAND",Ci="APOSTROPHE",Ca="ASTERISK",Cs="BACKSLASH",Cl="BACKTICK",Cc="CARET",Cu="COLON",Cd="COMMA",Cf="DOLLAR",Cp="EQUALS",Ch="EXCLAMATION",Cm="HYPHEN",Cg="PERCENT",Cv="PIPE",Cy="PLUS",Cb="POUND",Cw="QUERY",Cx="QUOTE",CC="SEMI",Ck="SLASH",CS="TILDE",CE="UNDERSCORE",CT="EMOJI";var CA=Object.freeze({__proto__:null,WORD:xZ,UWORD:xW,LOCALHOST:xJ,TLD:"TLD",UTLD:xG,SCHEME:xK,SLASH_SCHEME:xY,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:xX,CLOSEBRACE:xQ,OPENBRACKET:x0,CLOSEBRACKET:x1,OPENPAREN:x2,CLOSEPAREN:x4,OPENANGLEBRACKET:x3,CLOSEANGLEBRACKET:x5,FULLWIDTHLEFTPAREN:x6,FULLWIDTHRIGHTPAREN:x8,LEFTCORNERBRACKET:x9,RIGHTCORNERBRACKET:x7,LEFTWHITECORNERBRACKET:Ce,RIGHTWHITECORNERBRACKET:Ct,FULLWIDTHLESSTHAN:Cn,FULLWIDTHGREATERTHAN:Cr,AMPERSAND:Co,APOSTROPHE:Ci,ASTERISK:Ca,AT:"AT",BACKSLASH:Cs,BACKTICK:Cl,CARET:Cc,COLON:Cu,COMMA:Cd,DOLLAR:Cf,DOT:"DOT",EQUALS:Cp,EXCLAMATION:Ch,HYPHEN:Cm,PERCENT:Cg,PIPE:Cv,PLUS:Cy,POUND:Cb,QUERY:Cw,QUOTE:Cx,SEMI:CC,SLASH:Ck,TILDE:CS,UNDERSCORE:CE,EMOJI:CT,SYM:"SYM"});let CM=/[a-z]/,CN=/\p{L}/u,CO=/\p{Emoji}/u,CI=/\d/,CL=/\s/,CR=null,Cj=null;function CP(e,t,n,r,o){let i;let a=t.length;for(let n=0;n<a-1;n++){let a=t[n];e.j[a]?i=e.j[a]:((i=new xF(r)).jr=o.slice(),e.j[a]=i),e=i}return(i=new xF(n)).jr=o.slice(),e.j[t[a-1]]=i,i}function C_(e){let t=[],n=[],r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}let CD={defaultProtocol:"http",events:null,format:CB,formatHref:CB,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Cz(e,t){void 0===t&&(t=null);let n=xI({},CD);e&&(n=xI(n,e instanceof Cz?e.o:e));let r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function CB(e){return e}function CH(e,t){this.t="token",this.v=e,this.tk=t}function CF(e,t){class n extends CH{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}Cz.prototype={o:CD,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,o=this.o[e];return o&&("object"==typeof o?"function"==typeof(o=n.t in o?o[n.t]:CD[e])&&r&&(o=o(t,n)):"function"==typeof o&&r&&(o=o(t,n.t,n))),o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},CH.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=CD.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),o=this.toFormattedString(e),i={},a=e.get("className",t,this),s=e.get("target",t,this),l=e.get("rel",t,this),c=e.getObj("attributes",t,this),u=e.getObj("events",t,this);return i.href=n,a&&(i.class=a),s&&(i.target=s),l&&(i.rel=l),c&&xI(i,c),{tagName:r,attributes:i,content:o,eventListeners:u}}};let CV=CF("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),C$=CF("text"),CU=CF("nl"),Cq=CF("url",{isLink:!0,toHref(e){return void 0===e&&(e=CD.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==xJ&&e[1].t===Cu}}),CZ=e=>new xF(e);function CW(e,t,n){let r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}let CJ="undefined"!=typeof console&&console&&console.warn||(()=>{}),CG={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function CK(e,t){if(void 0===t&&(t=!1),CG.initialized&&CJ(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
3. "-" cannot repeat`);CG.customSchemes.push([e,t])}function CY(e){return CG.initialized||function(){CG.scanner=function(e){void 0===e&&(e=[]);let t={};xF.groups=t;let n=new xF;null==CR&&(CR=C_("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==Cj&&(Cj=C_("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),xq(n,"'",Ci),xq(n,"{",xX),xq(n,"}",xQ),xq(n,"[",x0),xq(n,"]",x1),xq(n,"(",x2),xq(n,")",x4),xq(n,"<",x3),xq(n,">",x5),xq(n,"（",x6),xq(n,"）",x8),xq(n,"「",x9),xq(n,"」",x7),xq(n,"『",Ce),xq(n,"』",Ct),xq(n,"＜",Cn),xq(n,"＞",Cr),xq(n,"&",Co),xq(n,"*",Ca),xq(n,"@","AT"),xq(n,"`",Cl),xq(n,"^",Cc),xq(n,":",Cu),xq(n,",",Cd),xq(n,"$",Cf),xq(n,".","DOT"),xq(n,"=",Cp),xq(n,"!",Ch),xq(n,"-",Cm),xq(n,"%",Cg),xq(n,"|",Cv),xq(n,"+",Cy),xq(n,"#",Cb),xq(n,"?",Cw),xq(n,'"',Cx),xq(n,"/",Ck),xq(n,";",CC),xq(n,"~",CS),xq(n,"_",CE),xq(n,"\\",Cs);let r=x$(n,CI,"NUM",{[xL]:!0});x$(r,CI,r);let o=x$(n,CM,xZ,{[xR]:!0});x$(o,CM,o);let i=x$(n,CN,xW,{[xj]:!0});x$(i,CM),x$(i,CN,i);let a=x$(n,CL,"WS",{[xB]:!0});xq(n,"\n","NL",{[xB]:!0}),xq(a,"\n"),x$(a,CL,a);let s=x$(n,CO,CT,{[xz]:!0});x$(s,CO,s),xq(s,"️",s),x$(xq(s,"‍"),CO,s);let l=[[CM,o]],c=[[CM,null],[CN,i]];for(let e=0;e<CR.length;e++)CP(n,CR[e],"TLD",xZ,l);for(let e=0;e<Cj.length;e++)CP(n,Cj[e],xG,xW,c);xH("TLD",{tld:!0,ascii:!0},t),xH(xG,{utld:!0,alpha:!0},t),CP(n,"file",xK,xZ,l),CP(n,"mailto",xK,xZ,l),CP(n,"http",xY,xZ,l),CP(n,"https",xY,xZ,l),CP(n,"ftp",xY,xZ,l),CP(n,"ftps",xY,xZ,l),xH(xK,{scheme:!0,ascii:!0},t),xH(xY,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],o=e[t][1]?{scheme:!0}:{slashscheme:!0};r.indexOf("-")>=0?o[xD]=!0:CM.test(r)?CI.test(r)?o[xP]=!0:o[xR]=!0:o[xL]=!0,xU(n,r,r,o)}return xU(n,"localhost",xJ,{ascii:!0}),n.jd=new xF("SYM"),{start:n,tokens:xI({groups:t},CA)}}(CG.customSchemes);for(let e=0;e<CG.tokenQueue.length;e++)CG.tokenQueue[e][1]({scanner:CG.scanner});CG.parser=function(e){let{groups:t}=e,n=t.domain.concat([Co,Ca,"AT",Cs,Cl,Cc,Cf,Cp,Cm,"NUM",Cg,Cv,Cy,Cb,Ck,"SYM",CS,CE]),r=[Ci,Cu,Cd,"DOT",Ch,Cw,Cx,CC,x3,x5,xX,xQ,x1,x0,x2,x4,x6,x8,x9,x7,Ce,Ct,Cn,Cr],o=[Co,Ci,Ca,Cs,Cl,Cc,Cf,Cp,Cm,xX,xQ,Cg,Cv,Cy,Cb,Cw,Ck,"SYM",CS,CE],i=CZ(),a=xq(i,CS);xV(a,o,a),xV(a,t.domain,a);let s=CZ(),l=CZ(),c=CZ();xV(i,t.domain,s),xV(i,t.scheme,l),xV(i,t.slashscheme,c),xV(s,o,a),xV(s,t.domain,s);let u=xq(s,"AT");xq(a,"AT",u),xq(l,"AT",u),xq(c,"AT",u);let d=xq(a,"DOT");xV(d,o,a),xV(d,t.domain,a);let f=CZ();xV(u,t.domain,f),xV(f,t.domain,f);let p=xq(f,"DOT");xV(p,t.domain,f);let h=CZ(CV);xV(p,t.tld,h),xV(p,t.utld,h),xq(u,xJ,h);let m=xq(f,Cm);xV(m,t.domain,f),xV(h,t.domain,f),xq(h,"DOT",p),xq(h,Cm,m),xV(xq(h,Cu),t.numeric,CV);let g=xq(s,Cm),v=xq(s,"DOT");xV(g,t.domain,s),xV(v,o,a),xV(v,t.domain,s);let y=CZ(Cq);xV(v,t.tld,y),xV(v,t.utld,y),xV(y,t.domain,s),xV(y,o,a),xq(y,"DOT",v),xq(y,Cm,g),xq(y,"AT",u);let b=xq(y,Cu),w=CZ(Cq);xV(b,t.numeric,w);let x=CZ(Cq),C=CZ();xV(x,n,x),xV(x,r,C),xV(C,n,x),xV(C,r,C),xq(y,Ck,x),xq(w,Ck,x);let k=xq(l,Cu),S=xq(c,Cu),E=xq(S,Ck),T=xq(E,Ck);xV(l,t.domain,s),xq(l,"DOT",v),xq(l,Cm,g),xV(c,t.domain,s),xq(c,"DOT",v),xq(c,Cm,g),xV(k,t.domain,x),xq(k,Ck,x),xV(T,t.domain,x),xV(T,n,x),xq(T,Ck,x);let A=[[xX,xQ],[x0,x1],[x2,x4],[x3,x5],[x6,x8],[x9,x7],[Ce,Ct],[Cn,Cr]];for(let e=0;e<A.length;e++){let[t,o]=A[e],i=xq(x,t);xq(C,t,i),xq(i,o,x);let a=CZ(Cq);xV(i,n,a);let s=CZ();xV(i,r),xV(a,n,a),xV(a,r,s),xV(s,n,a),xV(s,r,s),xq(a,o,x),xq(s,o,x)}return xq(i,xJ,y),xq(i,"NL",CU),{start:i,tokens:CA}}(CG.scanner.tokens);for(let e=0;e<CG.pluginQueue.length;e++)CG.pluginQueue[e][1]({scanner:CG.scanner,parser:CG.parser});CG.initialized=!0}(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let s=e,l=null,c=null,u=0,d=null,f=-1;for(;o<r&&!(l=s.go(n[o].t));)a.push(n[o++]);for(;o<r&&(c=l||s.go(n[o].t));)l=null,(s=c).accepts()?(f=0,d=s):f>=0&&f++,o++,u++;if(f<0)(o-=u)<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(CW(C$,t,a)),a=[]),o-=f,u-=f;let e=d.t,r=n.slice(o-u,o);i.push(CW(e,t,r))}}return a.length>0&&i.push(CW(C$,t,a)),i}(CG.parser.start,e,function(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,o=[],i=0,a=0;for(;a<r;){let s=e,l=null,c=0,u=null,d=-1,f=-1;for(;a<r&&(l=s.go(n[a]));)(s=l).accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[a].length,f++),c+=n[a].length,i+=n[a].length,a++;i-=d,a-=f,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}(CG.scanner.start,e))}function CX(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new Cz(n),o=CY(e),i=[];for(let e=0;e<o.length;e++){let n=o[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&i.push(n.toFormattedObject(r))}return i}let CQ=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function C0(e,t){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&n.push(t)}),!e||e.replace(CQ,"").match(RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}let C1=wY.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(e=>{if("string"==typeof e){CK(e);return}CK(e.scheme,e.optionalSlashes)})},onDestroy(){xF.groups={},CG.scanner=null,CG.parser=null,CG.tokenQueue=[],CG.pluginQueue=[],CG.customSchemes=[],CG.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:e=>!!e}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!(t&&C0(t,this.options.protocols))&&null}}]},renderHTML({HTMLAttributes:e}){return C0(e.href,this.options.protocols)?["a",w_(this.options.HTMLAttributes,e),0]:["a",w_(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[xk({find:e=>{let t=[];if(e){let{validate:n}=this.options,r=CX(e).filter(e=>e.isLink&&n(e.value));r.length&&r.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let r=[];return this.options.autolink&&r.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate},new yC({key:new yE("autolink"),appendTransaction:(t,n,r)=>{let o=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),i=t.some(e=>e.getMeta("preventAutolink"));if(!o||i)return;let{tr:a}=r;if((function(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,o)=>{let i=[];if(e.ranges.length)e.forEach((e,t)=>{i.push({from:e,to:t})});else{let{from:e,to:t}=n[o];if(void 0===e||void 0===t)return;i.push({from:e,to:t})}i.forEach(({from:e,to:n})=>{let i=t.slice(o).map(e,-1),a=t.slice(o).map(n),s=t.invert().map(i,-1),l=t.invert().map(a);r.push({oldRange:{from:s,to:l},newRange:{from:i,to:a}})})}),function(e){let t=function(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(e);return 1===t.length?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}(r)})(function(e,t){let n=new ya(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}(n.doc,[...t])).forEach(({newRange:t})=>{let n,o;let i=function(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}(r.doc,t,e=>e.isTextblock);if(i.length>1?(n=i[0],o=r.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ")):i.length&&r.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(n=i[0],o=r.doc.textBetween(n.pos,t.to,void 0," ")),n&&o){let t=o.split(" ").filter(e=>""!==e);if(t.length<=0)return!1;let i=t[t.length-1],s=n.pos+o.lastIndexOf(i);if(!i)return!1;let l=CY(i).map(t=>t.toObject(e.defaultProtocol));if(!(1===l.length?l[0].isLink:3===l.length&&!!l[1].isLink&&["()","[]"].includes(l[0].value+l[2].value)))return!1;l.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).forEach(t=>{xd(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||a.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),a.steps.length)return a}}))),!0===this.options.openOnClick&&r.push((t={type:this.type},new yC({key:new yE("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(0!==r.button||!e.editable)return!1;let a=r.target,s=[];for(;"DIV"!==a.nodeName;)s.push(a),a=a.parentNode;if(!s.find(e=>"A"===e.nodeName))return!1;let l=function(e,t){let n=xa("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){let n=wP(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,e=>{i.push(e)});let a=i.reverse().find(e=>e.type.name===n.name);return a?{...a.attrs}:{}}(e,t):"mark"===n?xl(e,t):{}}(e.state,t.type.name),c=r.target,u=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:l.href,d=null!==(i=null==c?void 0:c.target)&&void 0!==i?i:l.target;return!!c&&!!u&&(window.open(u,d),!0)}}}))),this.options.linkOnPaste&&r.push((n={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type},new yC({key:new yE("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{state:o}=e,{selection:i}=o,{empty:a}=i;if(a)return!1;let s="";r.content.forEach(e=>{s+=e.textContent});let l=CX(s,{defaultProtocol:n.defaultProtocol}).find(e=>e.isLink&&e.value===s);return!!s&&!!l&&(n.editor.commands.setMark(n.type,{href:l.href}),!0)}}}))),r}}),C2=xC.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",w_(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),C4="textStyle",C3=/^(\d+)\.\s$/,C5=xC.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",w_(this.options.HTMLAttributes,n),0]:["ol",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(C4)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=xx({find:C3,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=xx({find:C3,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(C4)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),C6=wY.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});var C8=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀\ud835\udd23lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),C9=new Uint16Array("Ȁaglq	\x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));let C7=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ke=null!==(em=String.fromCodePoint)&&void 0!==em?em:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function kt(e){return e>=eg.ZERO&&e<=eg.NINE}(m=eg||(eg={}))[m.NUM=35]="NUM",m[m.SEMI=59]="SEMI",m[m.EQUALS=61]="EQUALS",m[m.ZERO=48]="ZERO",m[m.NINE=57]="NINE",m[m.LOWER_A=97]="LOWER_A",m[m.LOWER_F=102]="LOWER_F",m[m.LOWER_X=120]="LOWER_X",m[m.LOWER_Z=122]="LOWER_Z",m[m.UPPER_A=65]="UPPER_A",m[m.UPPER_F=70]="UPPER_F",m[m.UPPER_Z=90]="UPPER_Z",(g=ev||(ev={}))[g.VALUE_LENGTH=49152]="VALUE_LENGTH",g[g.BRANCH_LENGTH=16256]="BRANCH_LENGTH",g[g.JUMP_TABLE=127]="JUMP_TABLE",(v=ey||(ey={}))[v.EntityStart=0]="EntityStart",v[v.NumericStart=1]="NumericStart",v[v.NumericDecimal=2]="NumericDecimal",v[v.NumericHex=3]="NumericHex",v[v.NamedEntity=4]="NamedEntity",(y=eb||(eb={}))[y.Legacy=0]="Legacy",y[y.Strict=1]="Strict",y[y.Attribute=2]="Attribute";class kn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ey.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=eb.Strict}startEntity(e){this.decodeMode=e,this.state=ey.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ey.EntityStart:if(e.charCodeAt(t)===eg.NUM)return this.state=ey.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=ey.NamedEntity,this.stateNamedEntity(e,t);case ey.NumericStart:return this.stateNumericStart(e,t);case ey.NumericDecimal:return this.stateNumericDecimal(e,t);case ey.NumericHex:return this.stateNumericHex(e,t);case ey.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===eg.LOWER_X?(this.state=ey.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ey.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let o=n-t;this.result=this.result*Math.pow(r,o)+Number.parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var r;let o=e.charCodeAt(t);if(!kt(o)&&(!((r=o)>=eg.UPPER_A)||!(r<=eg.UPPER_F))&&(!(r>=eg.LOWER_A)||!(r<=eg.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(o,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(!kt(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,r,o;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===eg.SEMI)this.consumed+=1;else if(this.decodeMode===eb.Strict)return 0;return this.emitCodePoint((r=this.result)>=55296&&r<=57343||r>1114111?65533:null!==(o=C7.get(r))&&void 0!==o?o:r,this.consumed),this.errors&&(e!==eg.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&ev.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let i=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,r){let o=(t&ev.BRANCH_LENGTH)>>7,i=t&ev.JUMP_TABLE;if(0===o)return 0!==i&&r===i?n:-1;if(i){let t=r-i;return t<0||t>=o?-1:e[n+t]-1}let a=n,s=a+o-1;for(;a<=s;){let t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return 0===this.result||this.decodeMode===eb.Attribute&&(0===o||function(e){var t;return e===eg.EQUALS||(t=e)>=eg.UPPER_A&&t<=eg.UPPER_Z||t>=eg.LOWER_A&&t<=eg.LOWER_Z||kt(t)}(i))?0:this.emitNotTerminatedNamedEntity();if(0!=(o=((r=n[this.treeIndex])&ev.VALUE_LENGTH)>>14)){if(i===eg.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==eb.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&ev.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~ev.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ey.NamedEntity:return 0!==this.result&&(this.decodeMode!==eb.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ey.NumericDecimal:return this.emitNumericEntity(0,2);case ey.NumericHex:return this.emitNumericEntity(0,3);case ey.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ey.EntityStart:return 0}}}function kr(e){let t="",n=new kn(e,e=>t+=ke(e));return function(e,r){let o=0,i=0;for(;(i=e.indexOf("&",i))>=0;){t+=e.slice(o,i),n.startEntity(r);let a=n.write(e,i+1);if(a<0){o=i+n.end();break}o=i+a,i=0===a?o+1:o}let a=t+e.slice(o);return t="",a}}let ko=kr(C8);kr(C9);let ki=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function ka(e,t){return function(n){let r;let o=0,i="";for(;r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}null==String.prototype.codePointAt||((e,t)=>e.codePointAt(t)),ka(/["&'<>]/g,ki),ka(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ka(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),(b=ew||(ew={}))[b.XML=0]="XML",b[b.HTML=1]="HTML",(w=ex||(ex={}))[w.UTF8=0]="UTF8",w[w.ASCII=1]="ASCII",w[w.Extensive=2]="Extensive",w[w.Attribute=3]="Attribute",w[w.Text=4]="Text",(x=eC||(eC={})).Attribute="attribute",x.Pseudo="pseudo",x.PseudoElement="pseudo-element",x.Tag="tag",x.Universal="universal",x.Adjacent="adjacent",x.Child="child",x.Descendant="descendant",x.Parent="parent",x.Sibling="sibling",x.ColumnCombinator="column-combinator",(C=ek||(ek={})).Any="any",C.Element="element",C.End="end",C.Equals="equals",C.Exists="exists",C.Hyphen="hyphen",C.Not="not",C.Start="start";let ks=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,kl=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,kc=new Map([[126,ek.Element],[94,ek.Start],[36,ek.End],[42,ek.Any],[33,ek.Not],[124,ek.Hyphen]]),ku=new Set(["has","not","matches","is","where","host","host-context"]),kd=new Set(["contains","icontains"]);function kf(e,t,n){let r=parseInt(t,16)-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function kp(e){return e.replace(kl,kf)}function kh(e){return 39===e||34===e}function km(e){return 32===e||9===e||10===e||12===e||13===e}function kg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/\xA0/g,"&nbsp;").replace(/\xAD/g,"&shy;")}var kv=e=>(function(e,t=eb.Legacy){return ko(e,t)})(e);function ky(e,t,...n){return"object"==typeof e&&(n=(e="fragment").children,t=e.attrs),Array.isArray(t)?(n=[t],t={}):t?t.attrs&&(t={...t.attrs,...t},delete t.attrs):t={},{tag:e,attrs:t,children:"string"==typeof n[0]?n:n.flat(Number.POSITIVE_INFINITY)}}var kb={},kw=Symbol.for("nodejs.util.inspect.custom"),kx={fontWeight:"bold"},kC={fontStyle:"italic"},kk={backgroundColor:"rgb(255, 250, 165)"},kS={textDecorations:"underline"},kE={textDecorations:"line-through"},kT={b:kx,strong:kx,em:kC,i:kC,mark:kk,u:kS,a:kS,s:kE,del:kE,ins:kk,strike:kE};function kA(e){return e.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(e,t)=>t.toUpperCase())}var kM=class e{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(e=!1){let t=new this.constructor;return e&&(t._childNodes=this._childNodes.map(e=>e.cloneNode(!0)),t._fixChildNodesParent()),t}_fixChildNodesParent(){this._childNodes.forEach(e=>e._parentNode=this)}insertBefore(e,t){if(e!==t){let n=t?this._childNodes.indexOf(t):0;n<0&&(n=0),this._childNodes.splice(n,0,e),this._fixChildNodesParent()}}appendChild(t){if(null!=t){if(t===this){console.warn("Cannot appendChild to self");return}if(t instanceof kP&&console.warn("No defined how to append a document to a node!",t),t instanceof kj)for(let e of[...t._childNodes])this.appendChild(e);else if(Array.isArray(t))for(let e of[...t])this.appendChild(e);else if(t instanceof e)t.remove(),this._childNodes.push(t);else try{let e="string"==typeof t?t:JSON.stringify(t,null,2);this._childNodes.push(new kO(e))}catch(e){console.error(`The data ${t} to be added to ${this.render()} is problematic: ${e}`)}this._fixChildNodesParent()}}removeChild(e){let t=this._childNodes.indexOf(e);t>=0&&(e._parentNode=null,this._childNodes.splice(t,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...e){this._childNodes=e.map(e=>"string"==typeof e?new kO(e):e.remove()),this._fixChildNodesParent()}replaceWith(...e){let t=this._parentNode;if(t){let n=this._indexInParent();n>=0&&(e=e.map(e=>"string"==typeof e?new kO(e):e.remove()),t._childNodes.splice(n,1,...e),this._parentNode=null,t._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){let e=this._indexInParent();return null!=e&&this.parentNode.childNodes[e+1]||null}get previousSibling(){let e=this._indexInParent();return e>0&&this.parentNode.childNodes[e-1]||null}flatten(){let e=[];for(let t of(this instanceof kL&&e.push(this),this._childNodes))e.push(...t.flatten());return e}flattenNodes(){let e=[];for(let t of(e.push(this),this._childNodes))e.push(...t.flattenNodes());return e}render(){return""}get textContent(){return this._childNodes.map(e=>e.textContent).join("")}set textContent(e){this._childNodes=[],e&&this.appendChild(new kO(e.toString()))}contains(e){return e===this||this._childNodes.some(t=>t.contains(e))}get ownerDocument(){return this.nodeType===e.DOCUMENT_NODE||this.nodeType===e.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[kw](){return`${this.constructor.name} "${this.render()}"`}};kM.ELEMENT_NODE=1,kM.TEXT_NODE=3,kM.CDATA_SECTION_NODE=4,kM.PROCESSING_INSTRUCTION_NODE=7,kM.COMMENT_NODE=8,kM.DOCUMENT_NODE=9,kM.DOCUMENT_TYPE_NODE=10,kM.DOCUMENT_FRAGMENT_NODE=11;var kN=kM,kO=class extends kN{get nodeType(){return kN.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(e=""){super(),this._text=e}render(){let e=this.parentNode?.tagName;return"SCRIPT"===e||"STYLE"===e?this._text:kg(this._text)}cloneNode(e=!1){let t=super.cloneNode(e);return t._text=this._text,t}},kI=class extends kN{getElementById(e){return this.flatten().find(t=>t._attributes.id===e)}getElementsByClassName(e){return this.flatten().filter(t=>t.classList.contains(e))}matches(e){return function(e,t,{debug:n=!1}={}){let r;for(let n of(null==(r=kb[e])&&(r=function(e){let t=[],n=function e(t,n,r){let o=[];function i(e){let t=n.slice(r+e).match(ks);if(!t)throw Error(`Expected name, found ${n.slice(r)}`);let[o]=t;return r+=e+o.length,kp(o)}function a(e){for(r+=e;r<n.length&&km(n.charCodeAt(r));)r++}function s(){let e=r+=1,t=1;for(;t>0&&r<n.length;r++)40!==n.charCodeAt(r)||l(r)?41===n.charCodeAt(r)&&!l(r)&&t--:t++;if(t)throw Error("Parenthesis not matched");return kp(n.slice(e,r-1))}function l(e){let t=0;for(;92===n.charCodeAt(--e);)t++;return(1&t)==1}function c(){if(o.length>0&&function(e){switch(e.type){case eC.Adjacent:case eC.Child:case eC.Descendant:case eC.Parent:case eC.Sibling:case eC.ColumnCombinator:return!0;default:return!1}}(o[o.length-1]))throw Error("Did not expect successive traversals.")}function u(e){if(o.length>0&&o[o.length-1].type===eC.Descendant){o[o.length-1].type=e;return}c(),o.push({type:e})}function d(e,t){o.push({type:eC.Attribute,name:e,action:t,value:i(1),namespace:null,ignoreCase:"quirks"})}function f(){if(o.length&&o[o.length-1].type===eC.Descendant&&o.pop(),0===o.length)throw Error("Empty sub-selector");t.push(o)}if(a(0),n.length===r)return r;t:for(;r<n.length;){let t=n.charCodeAt(r);switch(t){case 32:case 9:case 10:case 12:case 13:(0===o.length||o[0].type!==eC.Descendant)&&(c(),o.push({type:eC.Descendant})),a(1);break;case 62:u(eC.Child),a(1);break;case 60:u(eC.Parent),a(1);break;case 126:u(eC.Sibling),a(1);break;case 43:u(eC.Adjacent),a(1);break;case 46:d("class",ek.Element);break;case 35:d("id",ek.Equals);break;case 91:{let e;a(1);let t=null;124===n.charCodeAt(r)?e=i(1):n.startsWith("*|",r)?(t="*",e=i(2)):(e=i(0),124===n.charCodeAt(r)&&61!==n.charCodeAt(r+1)&&(t=e,e=i(1))),a(0);let s=ek.Exists,c=kc.get(n.charCodeAt(r));if(c){if(s=c,61!==n.charCodeAt(r+1))throw Error("Expected `=`");a(2)}else 61===n.charCodeAt(r)&&(s=ek.Equals,a(1));let u="",d=null;if("exists"!==s){if(kh(n.charCodeAt(r))){let e=n.charCodeAt(r),t=r+1;for(;t<n.length&&(n.charCodeAt(t)!==e||l(t));)t+=1;if(n.charCodeAt(t)!==e)throw Error("Attribute value didn't end");u=kp(n.slice(r+1,t)),r=t+1}else{let e=r;for(;r<n.length&&(!km(n.charCodeAt(r))&&93!==n.charCodeAt(r)||l(r));)r+=1;u=kp(n.slice(e,r))}a(0);let e=32|n.charCodeAt(r);115===e?(d=!1,a(1)):105===e&&(d=!0,a(1))}if(93!==n.charCodeAt(r))throw Error("Attribute selector didn't terminate");r+=1;let f={type:eC.Attribute,name:e,action:s,value:u,namespace:t,ignoreCase:d};o.push(f);break}case 58:{if(58===n.charCodeAt(r+1)){o.push({type:eC.PseudoElement,name:i(2).toLowerCase(),data:40===n.charCodeAt(r)?s():null});continue}let t=i(1).toLowerCase(),a=null;if(40===n.charCodeAt(r)){if(ku.has(t)){if(kh(n.charCodeAt(r+1)))throw Error(`Pseudo-selector ${t} cannot be quoted`);if(r=e(a=[],n,r+1),41!==n.charCodeAt(r))throw Error(`Missing closing parenthesis in :${t} (${n})`);r+=1}else{if(a=s(),kd.has(t)){let e=a.charCodeAt(0);e===a.charCodeAt(a.length-1)&&kh(e)&&(a=a.slice(1,-1))}a=kp(a)}}o.push({type:eC.Pseudo,name:t,data:a});break}case 44:f(),o=[],a(1);break;default:{let e;if(n.startsWith("/*",r)){let e=n.indexOf("*/",r+2);if(e<0)throw Error("Comment was not terminated");r=e+2,0===o.length&&a(0);break}let s=null;if(42===t)r+=1,e="*";else if(124===t){if(e="",124===n.charCodeAt(r+1)){u(eC.ColumnCombinator),a(2);break}}else if(ks.test(n.slice(r)))e=i(0);else break t;124===n.charCodeAt(r)&&124!==n.charCodeAt(r+1)&&(s=e,42===n.charCodeAt(r+1)?(e="*",r+=2):e=i(1)),o.push("*"===e?{type:eC.Universal,namespace:s}:{type:eC.Tag,name:e,namespace:s})}}}return f(),r}(t,`${e}`,0);if(n<e.length)throw Error(`Unmatched selector: ${e.slice(n)}`);return t}(e),kb[e]=r),r)){let r=(t,n)=>{let o=!1;for(let i of n){let{type:a,name:s,action:l,value:c,_ignoreCase:u=!0,data:d}=i;if("attribute"===a)"equals"===l?o=t.getAttribute(s)===c:"start"===l?o=!!t.getAttribute(s)?.startsWith(c):"end"===l?o=!!t.getAttribute(s)?.endsWith(c):"element"===l?o="class"===s?t.classList.contains(c):!!t.getAttribute(s)?.includes(c):"exists"===l?o=t.hasAttribute(s):"any"===l?o=!!t.getAttribute(s)?.includes(c):console.warn("Unknown CSS selector action",l);else if("tag"===a)o=t.tagName===s.toUpperCase();else if("universal"===a)o=!0;else if("pseudo"===a){if("not"===s){let e=!0;d.forEach(n=>{r(t,n)||(e=!1)}),o=!e}}else console.warn("Unknown CSS selector type",a,e,n);if(!o)break}return o};if(r(t,n))return!0}return!1}(e,this)}querySelectorAll(e){return this.flatten().filter(t=>t.matches(e))}querySelector(e){return this.flatten().find(t=>t.matches(e))}parent(e){return this.matches(e)?this:null==this.parentNode?null:this.parentNode?.parent(e)}handle(e,t){let n=0;for(let r of this.querySelectorAll(e))t(r,n++)}},kL=class extends kI{get nodeType(){return kN.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(e="div",t={}){super(),this._originalTagName=e,this._nodeName=(e||"").toUpperCase(),this._attributes=t||{}}cloneNode(e=!1){let t=super.cloneNode(e);return t._originalTagName=this._originalTagName,t._nodeName=this._nodeName,t._attributes=Object.assign({},this._attributes),t}get attributes(){return Object.entries(this._attributes).map(([e,t])=>({name:e,value:t}))}get attributesObject(){return{...this._attributes}}_findAttributeName(e){let t=e.toLowerCase();return Object.keys(this._attributes).find(e=>t===e.toLowerCase())||null}setAttribute(e,t){this.removeAttribute(e),this._attributes[e]=t,this._styles=void 0,this._dataset=void 0}getAttribute(e){let t=this._findAttributeName(e),n=t?this._attributes[t]:null;return null==n?null:"string"==typeof n?n:""}removeAttribute(e){this._findAttributeName(String(e))&&delete this._attributes[e]}hasAttribute(e){let t=this._findAttributeName(e);return!!t&&null!=this._attributes[t]}get style(){if(null==this._styles){let e={},t=0,n=this.getAttribute("style");if(n){let r;let o=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=o.exec(n);){++t;let n=r[1],o=r[2].trim();e[n]=o,e[kA(n)]=o}}this._styles={get length(){return t},getPropertyValue:t=>e[t],...kT[this.tagName.toLowerCase()],...e}}return this._styles}get dataset(){if(null==this._dataset){let e={};for(let[t,n]of Object.entries(this._attributes))t.startsWith("data-")&&(e[t.slice(5)]=n,e[kA(t.slice(5))]=n);this._dataset=e}return this._dataset}get tagName(){return this._nodeName}setTagName(e){this._nodeName=e.toUpperCase()}get id(){return this._attributes.id||null}set id(e){null==e?delete this._attributes.id:this._attributes.id=e}get src(){return this._attributes.src}set src(e){null==e?delete this._attributes.src:this._attributes.src=e}getElementsByTagName(e){e=e.toUpperCase();let t=this.flatten();return"*"!==e?t.filter(t=>t.tagName===e):t}setInnerHTML(e){}get innerHTML(){return this._childNodes.map(e=>e.render(kF)).join("")}set innerHTML(e){this.setInnerHTML(e)}get outerHTML(){return this.render(kV)}get className(){return this._attributes.class||""}set className(e){Array.isArray(e)?e=e.filter(e=>!!e).join(" "):"object"==typeof e&&(e=Object.entries(e).filter(([e,t])=>!!t).map(([e,t])=>e).join(" ")),this._attributes.class=e}get classList(){let e=String(this.className??"").trim().split(/\s+/g)||[];return{contains:t=>e.includes(t),add:t=>{e.includes(t)||(e.push(t),this.className=e)},remove:t=>{let n=e.indexOf(t);n>=0&&(e.splice(n,1),this.className=e)}}}render(e=kV){return e(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(t=>t.render(e)).join(""))}},kR=class e extends kN{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return e.DOCUMENT_TYPE_NODE}render(){return"<!DOCTYPE html>"}},kj=class e extends kI{get nodeType(){return kN.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(e=kV){return this._childNodes.map(t=>t.render(e)||[]).join("")}get innerHTML(){return this._childNodes.map(e=>e.render(kF)).join("")}createElement(e,t={}){return new kL(e,t)}createDocumentFragment(){return new e}createTextNode(e){return new kO(e)}},kP=class extends kj{get nodeType(){return kN.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(e=kV){let t=super.render(e);return this.docType&&(t=this.docType.render()+t),t}},k_=class extends kP{constructor(e=!1){if(super(),this.docType=new kR,!e){let e=new kL("html"),t=new kL("body"),n=new kL("head"),r=new kL("title");e.appendChild(n),n.appendChild(r),e.appendChild(t),this.appendChild(e)}}get body(){let e=this.querySelector("body");if(!e){let t=this.querySelector("html");t||(t=new kL("html"),this.appendChild(t)),e=new kL("body"),t.appendChild(t)}return e}get title(){return this.querySelector("title")?.textContent||""}set title(e){let t=this.querySelector("title");t&&(t.textContent=e)}get head(){let e=this.querySelector("head");if(!e){let t=this.querySelector("html");t||(t=new kL("html"),this.appendChild(t)),e=new kL("head"),t.insertBefore(t)}return e}},kD=new kP;(k={document:kD}).h=function(e,t,...n){let{tag:r,attrs:o,children:i}=ky(e,t,n);return function(e,t,n,r){if("function"==typeof t)return t({props:{...n,children:r},attrs:n,children:r,h:e.h,context:e});{let o,i=!0;if(t?"fragment"===t.toLowerCase()?(o=e.document.createDocumentFragment(),i=!1):o=e.document.createElement(t):o=e.document.createElement("div"),n&&i){let e=o;for(let[t,r]of Object.entries(n)){let n=(t=t.toString()).toLowerCase();"classname"===n?e.className=r:"on"===n?Object.entries(r).forEach(([t,n])=>{e.setAttribute(`on${t}`,String(n))}):!1!==r&&null!=r&&(!0===r?e.setAttribute(t,t):e.setAttribute(t,r.toString()))}}if(r)for(let t of r)for(let n of Array.isArray(t)?[...t]:[t])n&&!1!==n&&null!=n&&("object"!=typeof n?o.appendChild(e.document.createTextNode(n.toString())):o.appendChild(n));return o}}(k,r,o,i)},k.h;var kz={}.hasOwnProperty,kB=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function kH(e,t,n={},r){let o=!("string"==typeof r&&""===r||Array.isArray(r)&&(0===r.length||1===r.length&&""===r[0])||null==r),i=[];if("noop"!==(t=t.replace(/__/g,":"))&&""!==t){for(let e in"cdata"!==t?i.push(`<${t}`):i.push("<![CDATA["),n){var a;if(e&&(a=e,kz.call(n,a))){let t=n[e];if("html"===e)continue;"classname"===e.toLowerCase()&&(e="class"),e=e.replace(/__/g,":"),!0===t?i.push(` ${e}`):"style"===e&&"object"==typeof t?i.push(` ${e}="${Object.keys(t).filter(e=>null!=t[e]).map(e=>{let n=t[e];return n="number"==typeof n?`${n}px`:n,`${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${n}`}).join(";")}"`):!1!==t&&null!=t&&i.push(` ${e}="${kg(t.toString())}"`)}}if("cdata"!==t){if(e&&!o)return i.push(" />"),i.join("");i.push(">")}if(!e&&kB.includes(t))return i.join("")}if(o){if("string"==typeof r)i.push(r);else if(r&&r.length>0){for(let e of r)if(null!=e&&!1!==e)for(let n of(Array.isArray(e)||(e=[e]),e))n.startsWith("<")&&n.endsWith(">")||"script"===t||"style"===t?i.push(n):i.push(kg(n.toString()))}}return n.html&&i.push(n.html),"noop"!==t&&""!==t&&("cdata"!==t?i.push(`</${t}>`):i.push("]]>")),i.join("")}function kF(e,t,...n){let{tag:r,attrs:o,children:i}=ky(e,t,n);return kH(!1,r,o,i)}var kV=kH.bind(null,!1);kF.firstLine="<!DOCTYPE html>",kF.html=!0,n(48834).Buffer;var k$=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,kU=/^<\/([^>\s]+)[^>]*>/m,kq=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,kZ=/\s*\/\s*>\s*$/m,kW=class{constructor(e={}){this.attrRe=k$,this.endTagRe=kU,this.startTagRe=kq,this.defaults={ignoreWhitespaceText:!1},e.scanner&&(this.scanner=e.scanner),this.options=Object.assign({},this.defaults,e)}parse(e){let t,n,r,o=!1;for(;e.length;){if("<!--"===e.substring(0,4))-1!==(t=e.indexOf("-->"))?(this.scanner.comment(e.substring(4,t)),e=e.substring(t+3),o=!1):o=!0;else if("</"===e.substring(0,2))(n=this.endTagRe.exec(e))?(e=RegExp.rightContext,o=!1,this.parseEndTag(RegExp.lastMatch,n[1])):o=!0;else if("<"===e.charAt(0)){if(n=this.startTagRe.exec(e)){e=RegExp.rightContext,o=!1;let r=this.parseStartTag(RegExp.lastMatch,n[1],n);("script"===r||"style"===r)&&(-1!==(t=e.search(RegExp(`</${r}`,"i")))?(this.scanner.characters(e.substring(0,t)),e=e.substring(t),o=!1):o=!0)}else o=!0}if(o){let n=t=e.indexOf("<");0===t&&(t=e.substring(1).indexOf("<"),n+=1),-1===t?(r=e,e=""):(r=e.substring(0,n),e=e.substring(n)),this.options.ignoreWhitespaceText&&/^\s*$/.test(r)||this.scanner.characters(r)}o=!0,n=null}}parseStartTag(e,t,n){let r=kZ.test(e),o=n[2];r&&(o=o.replace(/\s*\/\s*$/,""));let i=this.parseAttributes(t,o);return this.scanner.startElement(t,i,r,n[0]),t.toLocaleLowerCase()}parseEndTag(e,t){this.scanner.endElement(t)}parseAttributes(e,t){let n={};return t.replace(this.attrRe,(...e)=>{let[t,r,o,i,a,s,l,c]=e;n[r]=c??s??i??!0}),n}};function kJ(e,t,...n){let{tag:r,attrs:o,children:i}=ky(e,t,n);return kH(!0,r,o,i)}function kG(e,t){var n;let r=wF(w1.resolve(t),void 0);return n=vr.fromJSON(r,e),vN.fromSchema(r).serializeFragment(n.content,{document:new k_}).render()}kL.prototype.setInnerHTML=function(e){let t=function(e){if("string"!=typeof e)throw console.error("parseHTML requires string, found",e),Error("parseHTML requires string");let t=0===e.indexOf("<!")?new k_(!0):new kj,n=[t];return new kW({scanner:{startElement(e,r,o){if("!doctype"===e.toLowerCase()){t.docType=new kR;return}for(let e in r)if(kz.call(r,e)){let t=r[e];"string"==typeof t&&(r[e]=kv(t))}let i=n[n.length-1];if(i){let t=kD.createElement(e,r);i.appendChild(t),kB.includes(e.toLowerCase())||o||n.push(t)}},endElement(e){n.pop()},characters(e){e=kv(e);let t=n[n.length-1];t?.lastChild?.nodeType===kN.TEXT_NODE?t.lastChild._text+=e:t&&t.appendChild(new kO(e))},comment(e){}}}).parse(e),t}(e);this._childNodes=t._childNodes,this._fixChildNodesParent()},kJ.firstLine='<?xml version="1.0" encoding="utf-8"?>',kJ.xml=!0;let kK=/^\s*>\s$/,kY=xC.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[xx({find:kK,type:this.type})]}}),kX=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,kQ=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,k0=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,k1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,k2=wY.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[xy({find:kX,type:this.type}),xy({find:k0,type:this.type})]},addPasteRules(){return[xk({find:kQ,type:this.type}),xk({find:k1,type:this.type})]}}),k4=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,k3=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,k5=wY.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[xy({find:k4,type:this.type})]},addPasteRules(){return[xk({find:k3,type:this.type})]}}),k6=/^```([a-z]+)?[\s\n]$/,k8=/^~~~([a-z]+)?[\s\n]$/,k9=xC.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;return[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",w_(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;let i=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith("\n\n");return!!i&&!!a&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;let a=o.after();return void 0!==a&&(r.nodeAt(a)?e.commands.command(({tr:e})=>(e.setSelection(yl.near(r.resolve(a))),!0)):e.commands.exitCode())}}},addInputRules(){return[xw({find:k6,type:this.type,getAttributes:e=>({language:e[1]})}),xw({find:k8,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new yC({key:new yE("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=null==o?void 0:o.mode;if(!n||!i)return!1;let{tr:a,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,"\n"));return a.replaceSelectionWith(this.type.create({language:i},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(yf.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),k7=xC.create({name:"doc",topNode:!0,content:"block+"});class Se{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,o;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),i=e?r.bottom:r.top;e&&t&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),o={left:r.left,right:r.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!o){let e=this.editorView.coordsAtPos(this.cursorPos);o={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let i=this.editorView.dom.offsetParent;if(!this.element&&(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),i&&(i!=document.body||"static"!=getComputedStyle(i).position)){let n=i.getBoundingClientRect();e=n.left-i.scrollLeft,t=n.top-i.scrollTop}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=o.left-e+"px",this.element.style.top=o.top-t+"px",this.element.style.width=o.right-o.left+"px",this.element.style.height=o.bottom-o.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=v3(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let St=w2.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new yC({view:t=>new Se(t,e)})}(this.options)]}});class Sn extends yl{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return Sn.valid(n)?new Sn(n):yl.near(n)}content(){return g0.empty}eq(e){return e instanceof Sn&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new Sn(e.resolve(t.pos))}getBookmark(){return new Sr(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0==n){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){n:for(;;){if(!n&&Sn.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let a=e.doc.resolve(r);if(Sn.valid(a))return a}for(;;){let i=t>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!yh.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue n}break}o=i,r+=t;let a=e.doc.resolve(r);if(Sn.valid(a))return a}return null}}}Sn.prototype.visible=!1,Sn.findFrom=Sn.findGapCursorFrom,yl.jsonID("gapcursor",Sn);class Sr{constructor(e){this.pos=e}map(e){return new Sr(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return Sn.valid(t)?new Sn(t):yl.near(t)}}let So=b8({ArrowLeft:Si("horiz",-1),ArrowRight:Si("horiz",1),ArrowUp:Si("vert",-1),ArrowDown:Si("vert",1)});function Si(e,t){let n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let i=e.selection,a=t>0?i.$to:i.$from,s=i.empty;if(i instanceof yf){if(!o.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}let l=Sn.findGapCursorFrom(a,t,s);return!!l&&(r&&r(e.tr.setSelection(new Sn(l))),!0)}}function Sa(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Sn.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&yh.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new Sn(r))),!0)}function Ss(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof Sn))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=gJ.empty;for(let e=r.length-1;e>=0;e--)o=gJ.from(r[e].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new g0(o,0,0));return i.setSelection(yf.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function Sl(e){if(!(e.selection instanceof Sn))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",b$.create(e.doc,[bH.widget(e.selection.head,t,{key:"gapcursor"})])}let Sc=w2.create({name:"gapCursor",addProseMirrorPlugins:()=>[new yC({props:{decorations:Sl,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&Sn.valid(n)?new Sn(n):null,handleClick:Sa,handleKeyDown:So,handleDOMEvents:{beforeinput:Ss}}})],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=wz(wL(e,"allowGapCursor",n)))&&void 0!==t?t:null}}}),Su=xC.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,w_(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>xw({find:RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});var Sd=function(){};Sd.prototype.append=function(e){return e.length?(e=Sd.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},Sd.prototype.prepend=function(e){return e.length?Sd.from(e).append(this):this},Sd.prototype.appendInner=function(e){return new Sp(this,e)},Sd.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?Sd.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Sd.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},Sd.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Sd.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},Sd.from=function(e){return e instanceof Sd?e:e&&e.length?new Sf(e):Sd.empty};var Sf=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Sd);Sd.empty=new Sf([]);var Sp=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;if(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r)||n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;if(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o)||n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(Sd);class Sh{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,o,i;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(r=(n=this.remapping(a,this.items.length)).maps.length);let s=e.tr,l=[],c=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(a,t+1)).maps.length),r--,c.push(e);return}if(n){c.push(new Sm(e.map));let t=e.step.map(n.slice(r)),o;t&&s.maybeStep(t).doc&&(o=s.mapping.maps[s.mapping.maps.length-1],l.push(new Sm(o,void 0,void 0,l.length+c.length))),r--,o&&n.appendMap(o,r)}else s.maybeStep(e.step);if(e.selection)return o=n?e.selection.map(n.slice(r)):e.selection,i=new Sh(this.items.slice(0,a).append(c.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:i,transform:s,selection:o}}addTransform(e,t,n,r){var o,i;let a,s=[],l=this.eventCount,c=this.items,u=!r&&c.length?c.get(c.length-1):null;for(let n=0;n<e.steps.length;n++){let o=e.steps[n].invert(e.docs[n]),i=new Sm(e.mapping.maps[n],o,t),a;(a=u&&u.merge(i))&&(i=a,n?s.pop():c=c.slice(0,c.length-1)),s.push(i),t&&(l++,t=void 0),r||(u=i)}let d=l-n.depth;return d>Sv&&(o=c,i=d,o.forEach((e,t)=>{if(e.selection&&0==i--)return a=t,!1}),c=o.slice(a),l-=d),new Sh(c.append(s),l)}remapping(e,t){let n=new v_;return this.items.forEach((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)},e,t),n}addMaps(e){return 0==this.eventCount?this:new Sh(this.items.append(e.map(e=>new Sm(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},r);let s=t;this.items.forEach(t=>{let r=o.getMirror(--s);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(o.slice(s+1,r));c&&a++,n.push(new Sm(l,i,c))}else n.push(new Sm(l))},r);let l=[];for(let e=t;e<i;e++)l.push(new Sm(o.maps[e]));let c=new Sh(this.items.slice(0,r).append(l).append(n),a);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let l=new Sm(a.invert(),e,s),c,u=r.length-1;(c=r.length&&r[u].merge(l))?r[u]=c:r.push(l)}}else i.map&&n--},this.items.length,0),new Sh(Sd.from(r.reverse()),o)}}Sh.empty=new Sh(Sd.empty,0);class Sm{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Sm(t.getMap().invert(),t,this.selection)}}}class Sg{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}let Sv=20;function Sy(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach((e,n,r,o)=>t.push(r,o));return t}function Sb(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}let Sw=!1,Sx=null;function SC(e){let t=e.plugins;if(Sx!=t){Sw=!1,Sx=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){Sw=!0;break}}return Sw}let Sk=new yE("history"),SS=new yE("closeHistory");function SE(e,t){return(n,r)=>{let o=Sk.getState(n);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(r){let i=function(e,t,n){let r=SC(t),o=Sk.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,r);if(!i)return null;let a=i.selection.resolve(i.transform.doc),s=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),o,r),l=new Sg(n?s:i.remaining,n?i.remaining:s,null,0,-1);return i.transform.setSelection(a).setMeta(Sk,{redo:n,historyState:l})}(o,n,e);i&&r(t?i.scrollIntoView():i)}return!0}}let ST=SE(!1,!0),SA=SE(!0,!0);SE(!1,!1),SE(!0,!1);let SM=w2.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>ST(e,t),redo:()=>({state:e,dispatch:t})=>SA(e,t)}),addProseMirrorPlugins(){return[function(e={}){return new yC({key:Sk,state:{init:()=>new Sg(Sh.empty,Sh.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let o=n.getMeta(Sk),i;if(o)return o.historyState;n.getMeta(SS)&&(e=new Sg(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(Sk))return a.getMeta(Sk).redo?new Sg(e.done.addTransform(n,void 0,r,SC(t)),e.undone,Sy(n.mapping.maps),e.prevTime,e.prevComposition):new Sg(e.done,e.undone.addTransform(n,void 0,r,SC(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new Sg(e.done.rebased(n,i),e.undone.rebased(n,i),Sb(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Sg(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Sb(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!a&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)}),n}(n,e.prevRanges)),s=a?Sb(e.prevRanges,n.mapping):Sy(n.mapping.maps);return new Sg(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,SC(t)),Sh.empty,s,n.time,null==o?e.prevComposition:o)}})(n,r,t,e)},config:e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?ST:"historyRedo"==n?SA:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),SN=xC.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",w_(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{let{selection:n}=t,{$from:r,$to:o}=n,i=e();return 0===r.parentOffset?i.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):n instanceof yh?i.insertContentAt(o.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:e,dispatch:t})=>{var n;if(t){let{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(yf.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(yh.create(e.doc,t.pos)):e.setSelection(yf.create(e.doc,t.pos));else{let o=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();o&&(e.insert(r,o),e.setSelection(yf.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[xb({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),SO=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,SI=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,SL=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,SR=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Sj=wY.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[xy({find:SO,type:this.type}),xy({find:SL,type:this.type})]},addPasteRules(){return[xk({find:SI,type:this.type}),xk({find:SR,type:this.type})]}}),SP=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,S_=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,SD=wY.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",w_(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[xy({find:SP,type:this.type})]},addPasteRules(){return[xk({find:S_,type:this.type})]}}),Sz=xC.create({name:"text",group:"inline"}),SB=w2.create({name:"starterKit",addExtensions(){var e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v;let y=[];return!1!==this.options.bold&&y.push(k2.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.blockquote&&y.push(kY.configure(null===(t=this.options)||void 0===t?void 0:t.blockquote)),!1!==this.options.bulletList&&y.push(xT.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&y.push(k5.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&y.push(k9.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&y.push(k7.configure(null===(i=this.options)||void 0===i?void 0:i.document)),!1!==this.options.dropcursor&&y.push(St.configure(null===(a=this.options)||void 0===a?void 0:a.dropcursor)),!1!==this.options.gapcursor&&y.push(Sc.configure(null===(s=this.options)||void 0===s?void 0:s.gapcursor)),!1!==this.options.hardBreak&&y.push(xM.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(Su.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(SM.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(SN.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push(Sj.configure(null===(f=this.options)||void 0===f?void 0:f.italic)),!1!==this.options.listItem&&y.push(C2.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&y.push(C5.configure(null===(h=this.options)||void 0===h?void 0:h.orderedList)),!1!==this.options.paragraph&&y.push(xA.configure(null===(m=this.options)||void 0===m?void 0:m.paragraph)),!1!==this.options.strike&&y.push(SD.configure(null===(g=this.options)||void 0===g?void 0:g.strike)),!1!==this.options.text&&y.push(Sz.configure(null===(v=this.options)||void 0===v?void 0:v.text)),y}});var SH=n(36088),SF=SH.default||SH,SV=n(76854),S$=n.n(SV);class SU{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,(a,s)=>{a.isText?(o+=a.text.slice(Math.max(e,s)-s,t-s),i=!n):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),i=!n):!i&&a.isBlock&&(o+=n,i=!0)},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new SU(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new SU(n,r)}cutByIndex(e,t){return e==t?SU.empty:0==e&&t==this.content.length?this:new SU(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new SU(r,o)}addToStart(e){return new SU([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new SU(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return function e(t,n,r){for(let o=0;;o++){if(o==t.childCount||o==n.childCount)return t.childCount==n.childCount?null:r;let i=t.child(o),a=n.child(o);if(i==a){r+=i.nodeSize;continue}if(!i.sameMarkup(a))return r;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)r++;return r}if(i.content.size||a.content.size){let t=e(i.content,a.content,r+1);if(null!=t)return t}r+=i.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return function e(t,n,r,o){for(let i=t.childCount,a=n.childCount;;){if(0==i||0==a)return i==a?null:{a:r,b:o};let s=t.child(--i),l=n.child(--a),c=s.nodeSize;if(s==l){r-=c,o-=c;continue}if(!s.sameMarkup(l))return{a:r,b:o};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);for(;e<t&&s.text[s.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,o--;return{a:r,b:o}}if(s.content.size||l.content.size){let t=e(s.content,l.content,r-1,o-1);if(t)return t}r-=c,o-=c}}(this,e,t,n)}findIndex(e,t=-1){if(0==e)return SZ(0,e);if(e==this.size)return SZ(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?SZ(n+1,o):SZ(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return SU.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new SU(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return SU.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new SU(t||e,n)}static from(e){if(!e)return SU.empty;if(e instanceof SU)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new SU([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}SU.empty=new SU([],0);let Sq={index:0,offset:0};function SZ(e,t){return Sq.index=e,Sq.offset=t,Sq}class SW{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&function e(t,n){if(t===n)return!0;if(!(t&&"object"==typeof t)||!(n&&"object"==typeof n))return!1;let r=Array.isArray(t);if(Array.isArray(n)!=r)return!1;if(r){if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else{for(let r in t)if(!(r in n)||!e(t[r],n[r]))return!1;for(let e in n)if(!(e in t))return!1}return!0}(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return SW.none;if(e instanceof SW)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}SW.none=[];class SJ extends Error{}class SG{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=function e(t,n,r,o){let{index:i,offset:a}=t.findIndex(n),s=t.maybeChild(i);if(a==n||s.isText)return o&&!o.canReplace(i,i,r)?null:t.cut(0,n).append(r).append(t.cut(n));let l=e(s.content,n-a-1,r);return l&&t.replaceChild(i,s.copy(l))}(this.content,e+this.openStart,t);return n&&new SG(n,this.openStart,this.openEnd)}removeBetween(e,t){return new SG(function e(t,n,r){let{index:o,offset:i}=t.findIndex(n),a=t.maybeChild(o),{index:s,offset:l}=t.findIndex(r);if(i==n||a.isText){if(l!=r&&!t.child(s).isText)throw RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(r))}if(o!=s)throw RangeError("Removing non-flat range");return t.replaceChild(o,a.copy(e(a.content,n-i-1,r-i-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return SG.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw RangeError("Invalid input for Slice.fromJSON");return new SG(SU.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new SG(e,n,r)}}SG.empty=new SG(SU.empty,0,0);class SK{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}class SY{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new S4(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new S4(this,t,!0);return n.addAll(e,t.from,t.to),SG.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){var r;let n=this.tags[o];if(r=n.tag,(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,r)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=S3(e)),e.mark=t})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=S3(e)),e.node=t})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new SY(e,SY.schemaRules(e)))}}let SX={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},SQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},S0={ol:!0,ul:!0};function S1(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class S2{constructor(e,t,n,r,o,i,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=SW.none,this.stashMarks=[],this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(SU.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=SU.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(SU.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):function(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t||0>i.indexOf(o)&&a(o))return!0}};if(a(o.contentMatch))return!0}}(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!SX.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class S4{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r=t.topNode,o,i=S1(null,t.preserveWhitespace,0)|(n?4:0);o=r?new S2(r.type,r.attrs,SW.none,SW.none,!0,t.topMatch||r.type.contentMatch,i):n?new S2(null,null,SW.none,SW.none,!0,null,i):new S2(e.schema.topNodeType,null,SW.none,SW.none,!0,null,i),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){let t=e.getAttribute("style"),n=t?this.readStyles(function(e){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=t.exec(e);)r.push(n[1],n[2].trim());return r}(t)):null,r=this.top;if(null!=n)for(let e=0;e<n.length;e++)this.addPendingMark(n[e]);if(this.addElement(e),null!=n)for(let e=0;e<n.length;e++)this.removePendingMark(n[e],r)}}addTextNode(e){let t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,`
`):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n=e.nodeName.toLowerCase(),r;S0.hasOwnProperty(n)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&S0.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,t));if(o?o.ignore:SQ.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let t,r=this.top,i=this.needsBlock;if(SX.hasOwnProperty(n))t=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}this.addAll(e),t&&this.sync(r),this.needsBlock=i}else this.addElementByRule(e,o,!1===o.consuming?r:void 0)}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
`))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=SW.none;r:for(let n=0;n<e.length;n+=2)for(let r;;){let o=this.parser.matchStyle(e[n],e[n+1],this,r);if(!o)continue r;if(o.ignore)return null;if(t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1===o.consuming)r=o;else break}return t}addElementByRule(e,t,n){let r,o,i;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs||null,t.preserveWhitespace):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(a)&&this.open--,i&&this.removePendingMark(i,a)}addAll(e,t,n){let r=t||0;for(let o=t?e.childNodes[t]:e.firstChild,i=null==n?null:e.childNodes[n];o!=i;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length)||o.solid)break}if(!t)return!1;this.sync(n);for(let e=0;e<t.length;e++)this.enterInner(t[e],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let n=t.activeMarks;for(let r=0;r<e.marks.length;r++)(!t.type||t.type.allowsMarkType(e.marks[r].type))&&(n=e.marks[r].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let i=S1(e,r,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new S2(e,t,o.activeMarks,o.pendingMarks,n,null,i)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(e){let t=function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==t)break}}}function S3(e){let t={};for(let n in e)t[n]=e[n];return t}class S5{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class S6{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&S6.empty)return S6.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){let o=l?e==s?-1:e==u?1:t:t,i=s+r+(o<0?0:c);if(n)return i;let d=e==(t<0?s:u)?null:a/3+(e-s)*65536,f=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(f|=8),new S5(i,f,d)}r+=c-l}return n?e+r:new S5(e+r,0,null)}touches(e,t){let n=0,r=65535&t,o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?n:0);if(a>e)break;let s=this.ranges[t+o];if(e<=a+s&&t==3*r)return!0;n+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),o+=c-l}}invert(){return new S6(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?S6.empty:new S6(e<0?[0,-e,0]:[0,0,e])}}S6.empty=new S6([]);let S8=Object.create(null);class S9{getMap(){return S6.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=S8[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in S8)throw RangeError("Duplicate use of step JSON ID "+e);return S8[e]=t,t.prototype.jsonID=e,t}}class S7{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new S7(e,null)}static fail(e){return new S7(null,e)}static fromReplace(e,t,n,r){try{return S7.ok(e.replace(t,n,r))}catch(e){if(e instanceof SJ)return S7.fail(e.message);throw e}}}function Ee(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(Ee(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return SU.fromArray(r)}class Et extends S9{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new SG(Ee(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return S7.fromReplace(e,this.from,this.to,o)}invert(){return new En(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new Et(t.pos,n.pos,this.mark)}merge(e){return e instanceof Et&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Et(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new Et(t.from,t.to,e.markFromJSON(t.mark))}}S9.jsonID("addMark",Et);class En extends S9{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new SG(Ee(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return S7.fromReplace(e,this.from,this.to,n)}invert(){return new Et(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new En(t.pos,n.pos,this.mark)}merge(e){return e instanceof En&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new En(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new En(t.from,t.to,e.markFromJSON(t.mark))}}S9.jsonID("removeMark",En);class Er extends S9{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return S7.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return S7.fromReplace(e,this.pos,this.pos+1,new SG(SU.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new Er(this.pos,t.marks[n]);return new Er(this.pos,this.mark)}}return new Eo(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Er(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Er(t.pos,e.markFromJSON(t.mark))}}S9.jsonID("addNodeMark",Er);class Eo extends S9{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return S7.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return S7.fromReplace(e,this.pos,this.pos+1,new SG(SU.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new Er(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Eo(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Eo(t.pos,e.markFromJSON(t.mark))}}S9.jsonID("removeNodeMark",Eo);class Ei extends S9{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Es(e,this.from,this.to)?S7.fail("Structure replace would overwrite content"):S7.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new S6([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ei(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new Ei(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof Ei)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?SG.empty:new SG(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ei(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?SG.empty:new SG(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ei(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new Ei(t.from,t.to,SG.fromJSON(e,t.slice),!!t.structure)}}S9.jsonID("replace",Ei);class Ea extends S9{constructor(e,t,n,r,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Es(e,this.from,this.gapFrom)||Es(e,this.gapTo,this.to)))return S7.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return S7.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?S7.fromReplace(e,this.from,this.to,n):S7.fail("Content does not fit in gap")}getMap(){return new S6([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Ea(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new Ea(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ea(t.from,t.to,t.gapFrom,t.gapTo,SG.fromJSON(e,t.slice),t.insert,!!t.structure)}}function Es(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function El(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!((0==o||r.canReplace(o,r.childCount))&&(i==r.childCount||r.canReplace(0,i))))break}return null}function Ec(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=r;s&&e<o;e++)s=s.matchType(n.child(e).type);return s&&s.validEnd?a:null}(r,t);return i?o.map(Eu).concat({type:t,attrs:n}).concat(i.map(Eu)):null}function Eu(e){return{type:e,attrs:null}}function Ed(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[t]||n;if(s!=n&&(a=a.replaceChild(0,s.type.create(s.attrs))),!n.canReplace(i+1,n.childCount)||!s.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function Ef(e,t){var n,r;let o=e.resolve(t),i=o.index();return n=o.nodeBefore,r=o.nodeAfter,!!(n&&r&&!n.isLeaf&&n.canAppend(r))&&o.parent.canReplace(i,i+1)}function Ep(e,t,n=t,r=SG.empty){if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return!r.openStart&&!r.openEnd&&o.start()==i.start()&&o.parent.canReplace(o.index(),i.index(),r.content)?new Ei(t,n,r):new Eh(o,i,r).fit()}S9.jsonID("replaceAround",Ea);class Eh{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=SU.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=SU.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let o=this.placed,i=n.depth,a=r.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new SG(o,i,a);return e>-1?new Ea(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new Ei(n.pos,r.pos,s):null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n=null,r=(t?(n=Ev(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:i,match:a}=this.frontier[o],s,l=null;if(1==e&&(r?a.matchType(r.type)||(l=a.fillBefore(SU.from(r),!1)):n&&i.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:l};if(2==e&&r&&(s=a.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:s};if(n&&a.matchType(n.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ev(e,t);return!!r.childCount&&!r.firstChild.isLeaf&&(this.unplaced=new SG(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ev(e,t);if(r.childCount<=1&&t>0){let o=e.size-t<=t+r.size;this.unplaced=new SG(Em(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new SG(Em(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let i=this.unplaced,a=n?n.content:i.content,s=i.openStart-e,l=0,c=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)c.push(r.child(e));u=u.matchFragment(r)}let f=a.size+e-(i.content.size-i.openEnd);for(;l<a.childCount;){let e=a.child(l),t=u.matchType(e.type);if(!t)break;(++l>1||0==s||e.content.size)&&(u=t,c.push(function e(t,n,r){if(n<=0)return t;let o=t.content;return n>1&&(o=o.replaceChild(0,e(o.firstChild,n-1,1==o.childCount?r-1:0))),n>0&&(o=t.type.contentMatch.fillBefore(o).append(o),r<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(SU.empty,!0)))),t.copy(o)}(e.mark(d.allowedMarks(e.marks)),1==l?s:0,l==a.childCount?f:-1)))}let p=l==a.childCount;p||(f=-1),this.placed=Eg(this.placed,t,SU.from(c)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?SG.empty:new SG(Em(i.content,e-1,1),e-1,f<0?i.openEnd:e-1):new SG(Em(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Ey(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){r:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=Ey(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=Ey(e,n,r,t,!0);if(!o||o.childCount)continue r}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Eg(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Eg(this.placed,this.depth,SU.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(SU.empty,!0);e.childCount&&(this.placed=Eg(this.placed,this.frontier.length,e))}}function Em(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Em(e.firstChild.content,t-1,n)))}function Eg(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Eg(e.lastChild.content,t-1,n)))}function Ev(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Ey(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}class Eb extends S9{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return S7.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return S7.fromReplace(e,this.pos,this.pos+1,new SG(SU.from(r),0,t.isLeaf?0:1))}getMap(){return S6.empty}invert(e){return new Eb(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Eb(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new Eb(t.pos,t.attr,t.value)}}S9.jsonID("attr",Eb);let Ew=class extends Error{};(Ew=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),Ew.prototype.constructor=Ew,Ew.prototype.name="TransformError";let Ex=Object.create(null);class EC{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Ek(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=SG.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(l.pos),a?SG.empty:t),0==a&&ER(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=e.mapping.slice(n),l=s.map(i.pos),c=s.map(a.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),ER(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new ET(e):EL(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let o=t<0?EL(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):EL(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new EO(e.node(0))}static atStart(e){return EL(e,e,0,0,1)||new EO(e)}static atEnd(e){return EL(e,e,e.content.size,e.childCount,-1)||new EO(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let n=Ex[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Ex)throw RangeError("Duplicate use of selection JSON ID "+e);return Ex[e]=t,t.prototype.jsonID=e,t}getBookmark(){return ET.between(this.$anchor,this.$head).getBookmark()}}EC.prototype.visible=!0;class Ek{constructor(e,t){this.$from=e,this.$to=t}}let ES=!1;function EE(e){ES||e.parent.inlineContent||(ES=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class ET extends EC{constructor(e,t=e){EE(e),EE(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return EC.near(n);let r=e.resolve(t.map(this.anchor));return new ET(r.parent.inlineContent?r:n,n)}replace(e,t=SG.empty){if(super.replace(e,t),t==SG.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof ET&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new EA(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new ET(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if((!n||r)&&(n=r>=0?1:-1),!t.parent.inlineContent){let e=EC.findFrom(t,n,!0)||EC.findFrom(t,-n,!0);if(!e)return EC.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(EC.findFrom(e,-n,!0)||EC.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0&&(e=t)),new ET(e,t)}}EC.jsonID("text",ET);class EA{constructor(e,t){this.anchor=e,this.head=t}map(e){return new EA(e.map(this.anchor),e.map(this.head))}resolve(e){return ET.between(e.resolve(this.anchor),e.resolve(this.head))}}class EM extends EC{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?EC.near(o):new EM(o)}content(){return new SG(SU.from(this.node),0,0)}eq(e){return e instanceof EM&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new EN(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new EM(e.resolve(t.anchor))}static create(e,t){return new EM(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}EM.prototype.visible=!1,EC.jsonID("node",EM);class EN{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new EA(n,n):new EN(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&EM.isSelectable(n)?new EM(t):EC.near(t)}}class EO extends EC{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=SG.empty){if(t==SG.empty){e.delete(0,e.doc.content.size);let t=EC.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new EO(e)}map(e){return new EO(e)}eq(e){return e instanceof EO}getBookmark(){return EI}}EC.jsonID("all",EO);let EI={map(){return this},resolve:e=>new EO(e)};function EL(e,t,n,r,o,i=!1){if(t.inlineContent)return ET.create(e,n);for(let a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let r=t.child(a);if(r.isAtom){if(!i&&EM.isSelectable(r))return EM.create(e,n-(o<0?r.nodeSize:0))}else{let t=EL(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function ER(e,t,n){let r,o=e.steps.length-1;if(o<t)return;let i=e.steps[o];(i instanceof Ei||i instanceof Ea)&&(e.mapping.maps[o].forEach((e,t,n,o)=>{null==r&&(r=o)}),e.setSelection(EC.near(e.doc.resolve(r),n)))}function Ej(e,t){return t&&e?e.bind(t):e}class EP{constructor(e,t,n){this.name=e,this.init=Ej(t.init,n),this.apply=Ej(t.apply,n)}}new EP("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new EP("selection",{init:(e,t)=>e.selection||EC.atStart(t.doc),apply:e=>e.selection}),new EP("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new EP("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t});class E_{constructor(e){this.spec=e,this.props={},e.props&&function e(t,n,r){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(n):"handleDOMEvents"==o&&(i=e(i,n,{})),r[o]=i}return r}(e.props,this,this.props),this.key=e.key?e.key.key:Ez("plugin")}getState(e){return e[this.key]}}let ED=Object.create(null);function Ez(e){return e in ED?e+"$"+ ++ED[e]:(ED[e]=0,e+"$")}class EB{constructor(e="key"){this.key=Ez(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}class EH{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class EF{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&EF.empty)return EF.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[a+o],c=this.ranges[a+i],u=s+l;if(e<=u){let o=l?e==s?-1:e==u?1:t:t,i=s+r+(o<0?0:c);if(n)return i;let d=e==(t<0?s:u)?null:a/3+(e-s)*65536,f=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(f|=8),new EH(i,f,d)}r+=c-l}return n?e+r:new EH(e+r,0,null)}touches(e,t){let n=0,r=65535&t,o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?n:0);if(a>e)break;let s=this.ranges[t+o];if(e<=a+s&&t==3*r)return!0;n+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(a,a+l,s,s+c),o+=c-l}}invert(){return new EF(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?EF.empty:new EF(e<0?[0,-e,0]:[0,0,e])}}EF.empty=new EF([]);let EV=Object.create(null);class E${getMap(){return EF.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=EV[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in EV)throw RangeError("Duplicate use of step JSON ID "+e);return EV[e]=t,t.prototype.jsonID=e,t}}class EU{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new EU(e,null)}static fail(e){return new EU(null,e)}static fromReplace(e,t,n,r){try{return EU.ok(e.replace(t,n,r))}catch(e){if(e instanceof SJ)return EU.fail(e.message);throw e}}}function Eq(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(Eq(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return SU.fromArray(r)}class EZ extends E${constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new SG(Eq(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return EU.fromReplace(e,this.from,this.to,o)}invert(){return new EW(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new EZ(t.pos,n.pos,this.mark)}merge(e){return e instanceof EZ&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new EZ(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new EZ(t.from,t.to,e.markFromJSON(t.mark))}}E$.jsonID("addMark",EZ);class EW extends E${constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new SG(Eq(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return EU.fromReplace(e,this.from,this.to,n)}invert(){return new EZ(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new EW(t.pos,n.pos,this.mark)}merge(e){return e instanceof EW&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new EW(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new EW(t.from,t.to,e.markFromJSON(t.mark))}}E$.jsonID("removeMark",EW);class EJ extends E${constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&EK(e,this.from,this.to)?EU.fail("Structure replace would overwrite content"):EU.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new EF([this.from,this.to-this.from,this.slice.size])}invert(e){return new EJ(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new EJ(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof EJ)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?SG.empty:new SG(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new EJ(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?SG.empty:new SG(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new EJ(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new EJ(t.from,t.to,SG.fromJSON(e,t.slice),!!t.structure)}}E$.jsonID("replace",EJ);class EG extends E${constructor(e,t,n,r,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(EK(e,this.from,this.gapFrom)||EK(e,this.gapTo,this.to)))return EU.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return EU.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?EU.fromReplace(e,this.from,this.to,n):EU.fail("Content does not fit in gap")}getMap(){return new EF([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new EG(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new EG(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new EG(t.from,t.to,t.gapFrom,t.gapTo,SG.fromJSON(e,t.slice),t.insert,!!t.structure)}}function EK(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function EY(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[t]||n;if(s!=n&&(a=a.replaceChild(0,s.type.create(s.attrs))),!n.canReplace(i+1,n.childCount)||!s.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function EX(e,t){var n,r;let o=e.resolve(t),i=o.index();return n=o.nodeBefore,r=o.nodeAfter,!!(n&&r&&!n.isLeaf&&n.canAppend(r))&&o.parent.canReplace(i,i+1)}E$.jsonID("replaceAround",EG);let EQ=class extends Error{};(EQ=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),EQ.prototype.constructor=EQ,EQ.prototype.name="TransformError";let E0=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0),E1=(e,t,n)=>{let{$cursor:r}=e.selection;if(!r||(n?!n.endOfTextblock("backward",e):r.parentOffset>0))return!1;let o=E3(r);if(!o){let n=r.blockRange(),o=n&&El(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&Ti(e,o,t))return!0;if(0==r.parent.content.size&&(E2(i,"end")||EM.isSelectable(i))){let n=Ep(e.doc,r.before(),r.after(),SG.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(E2(i,"end")?EC.findFrom(r.doc.resolve(r.mapping.map(o.pos,-1)),-1):EM.create(r.doc,o.pos-i.nodeSize)),t(r.scrollIntoView())}return!0}}return!!i.isAtom&&o.depth==r.depth-1&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)};function E2(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}let E4=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=E3(r)}let a=i&&i.nodeBefore;return!!(a&&EM.isSelectable(a))&&(t&&t(e.tr.setSelection(EM.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function E3(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}let E5=(e,t,n)=>{let{$cursor:r}=e.selection;if(!r||(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size))return!1;let o=E8(r);if(!o)return!1;let i=o.nodeAfter;if(Ti(e,o,t))return!0;if(0==r.parent.content.size&&(E2(i,"start")||EM.isSelectable(i))){let n=Ep(e.doc,r.before(),r.after(),SG.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(E2(i,"start")?EC.findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):EM.create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!!i.isAtom&&o.depth==r.depth-1&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)},E6=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=E8(r)}let a=i&&i.nodeAfter;return!!(a&&EM.isSelectable(a))&&(t&&t(e.tr.setSelection(EM.create(e.doc,i.pos)).scrollIntoView()),!0)};function E8(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}let E9=(e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&El(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)},E7=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!!(n.parent.type.spec.code&&n.sameParent(r))&&(t&&t(e.tr.insertText(`
`).scrollIntoView()),!0)};function Te(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}let Tt=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),a=Te(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,a.createAndFill());o.setSelection(EC.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},Tn=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof EO||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Te(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,a=e.tr.insert(n,i.createAndFill());a.setSelection(ET.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},Tr=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Ed(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&El(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)},To=(e,t)=>{let{$from:n,to:r}=e.selection,o,i=n.sharedDepth(r);return 0!=i&&(o=n.before(i),t&&t(e.tr.setSelection(EM.create(e.doc,o))),!0)};function Ti(e,t,n){let r,o,i,a=t.nodeBefore,s=t.nodeAfter,l,c;if(a.type.spec.isolating||s.type.spec.isolating)return!1;if(r=t.nodeBefore,o=t.nodeAfter,i=t.index(),r&&o&&r.type.compatibleContent(o.type)&&(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(i,i+1)&&(o.isTextblock||Ef(e.doc,t.pos)))&&(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)))return!0;let u=t.parent.canReplace(t.index(),t.index()+1);if(u&&(l=(c=a.contentMatchAt(a.childCount)).findWrapping(s.type))&&c.matchType(l[0]||s.type).validEnd){if(n){let r=t.pos+s.nodeSize,o=SU.empty;for(let e=l.length-1;e>=0;e--)o=SU.from(l[e].create(null,o));o=SU.from(a.copy(o));let i=e.tr.step(new Ea(t.pos-1,r,t.pos,r,new SG(o,1,0),l.length,!0)),c=r+2*l.length;Ef(i.doc,c)&&i.join(c),n(i.scrollIntoView())}return!0}let d=EC.findFrom(t,1),f=d&&d.$from.blockRange(d.$to),p=f&&El(f);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(f,p).scrollIntoView()),!0;if(u&&E2(s,"start",!0)&&E2(a,"end")){let r=a,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=s,l=1;for(;!i.isTextblock;i=i.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=SU.empty;for(let e=o.length-1;e>=0;e--)r=SU.from(o[e].copy(r));n(e.tr.step(new Ea(t.pos-o.length,t.pos+s.nodeSize,t.pos+l,t.pos+s.nodeSize-l,new SG(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Ta(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(ET.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}let Ts=Ta(-1),Tl=Ta(1);function Tc(e,t=null){return function(n,r){let{from:o,to:i}=n.selection,a=!1;return n.doc.nodesBetween(o,i,(r,o)=>{if(a)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t))){if(r.type==e)a=!0;else{let t=n.doc.resolve(o),r=t.index();a=t.parent.canReplaceWith(r,r+1,e)}}}),!!a&&(r&&r(n.tr.setBlockType(o,i,e,t).scrollIntoView()),!0)}}function Tu(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}"u">typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"u">typeof os&&os.platform&&os.platform();class Td{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(i);return o.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a=[],s=!!e,l=e||o.tr,c={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(l,t),o=n(...e)(r);return a.push(o),c}])),run:()=>(s||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),a.every(e=>!0===e))};return c}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,o=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:o}=this,{view:i}=r;o.storedMarks&&e.setStoredMarks(o.storedMarks);let a={tr:e,editor:r,view:i,state:Tu({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(a)]))}};return a}}function Tf(e,t,n){return void 0===e.config[t]&&e.parent?Tf(e.parent,t,n):"function"==typeof e.config[t]?e.config[t].bind({...n,parent:e.parent?Tf(e.parent,t,n):null}):e.config[t]}function Tp(e,t){if("string"==typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Th(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}"class"===e?n[e]=[n[e],t].join(" "):"style"===e?n[e]=[n[e],t].join("; "):n[e]=t}),n},{})}function Tm(e,t,...n){return"function"==typeof e?t?e.bind(t)(...n):e(...n):e}function Tg(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Tv(e,t){let n={...e};return Tg(e)&&Tg(t)&&Object.keys(t).forEach(r=>{Tg(t[r])&&r in e?n[r]=Tv(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}class Ty{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Tm(Tf(this,"addOptions",{name:this.name}))),this.storage=Tm(Tf(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ty(e)}configure(e={}){let t=this.extend();return t.options=Tv(this.options,e),t.storage=Tm(Tf(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){let t=new Ty(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Tm(Tf(t,"addOptions",{name:t.name})),t.storage=Tm(Tf(t,"addStorage",{name:t.name,options:t.options})),t}}function Tb(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>{var o;return n.strict?t[r]===e[r]:(o=t[r],"[object RegExp]"===Object.prototype.toString.call(o))?t[r].test(e[r]):t[r]===e[r]})}function Tw(e,t,n={}){return e.find(e=>e.type===t&&Tb(e.attrs,n))}function Tx(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&0!==r.offset&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;let o=Tw([...r.node.marks],t,n);if(!o)return;let i=r.index,a=e.start()+r.offset,s=i+1,l=a+r.node.nodeSize;for(Tw([...r.node.marks],t,n);i>0&&o.isInSet(e.parent.child(i-1).marks);)i-=1,a-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&function(e,t,n={}){return!!Tw(e,t,n)}([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function TC(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function Tk(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function TS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function TE(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}function TT(e,t,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof e&&null!==e)try{return Array.isArray(e)?SU.fromArray(e.map(e=>t.nodeFromJSON(e))):t.nodeFromJSON(e)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),TT("",t,n)}if("string"==typeof e){let r=SY.fromSchema(t);return n.slice?r.parseSlice(TE(e),n.parseOptions).content:r.parse(TE(e),n.parseOptions)}return TT("",t,n)}Ty.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new E_({key:new EB("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o;return function(e,t,n){let{from:r,to:o}=t,{blockSeparator:i=`

`,textSerializers:a={}}=n||{},s="",l=!0;return e.nodesBetween(r,o,(e,n,c,u)=>{var d;let f=null==a?void 0:a[e.type.name];f?(e.isBlock&&!l&&(s+=i,l=!0),c&&(s+=f({node:e,pos:n,parent:c,index:u,range:t}))):e.isText?(s+=null===(d=null==e?void 0:e.text)||void 0===d?void 0:d.slice(Math.max(r,n)-n,o-n),l=!1):e.isBlock&&!l&&(s+=i,l=!0)}),s}(r,{from:Math.min(...i.map(e=>e.$from.pos)),to:Math.max(...i.map(e=>e.$to.pos))},{textSerializers:Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))})}}})]}});let TA=e=>e.toString().startsWith("<");function TM(){return"u">typeof navigator&&/Mac/.test(navigator.platform)}function TN(e,t,n={}){let{from:r,to:o,empty:i}=e.selection,a=t?Tp(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:i})});let l=o-r,c=s.filter(e=>!a||a.name===e.node.type.name).filter(e=>Tb(e.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((e,t)=>e+t.to-t.from,0)>=l}function TO(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function TI(e,t){let n="string"==typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}function TL(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function TR(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}function Tj(e){return t=>(function(e,t){for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}})(t.$from,e)}function TP(e,t){var n;let{nodeExtensions:r}={baseExtensions:(n=t).filter(e=>"extension"===e.type),nodeExtensions:n.filter(e=>"node"===e.type),markExtensions:n.filter(e=>"mark"===e.type)},o=r.find(t=>t.name===e);if(!o)return!1;let i={name:o.name,options:o.options,storage:o.storage},a=Tm(Tf(o,"group",i));return"string"==typeof a&&a.split(" ").includes("list")}let T_=(e,t)=>{let n=Tj(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;let o=e.doc.nodeAt(r);return n.node.type===(null==o?void 0:o.type)&&EX(e.doc,n.pos)&&e.join(n.pos),!0},TD=(e,t)=>{let n=Tj(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;let o=e.doc.nodeAt(r);return n.node.type===(null==o?void 0:o.type)&&EX(e.doc,r)&&e.join(r),!0};var Tz=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null==window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())}),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:o}=r;return n&&o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:o}=t,i=r.resolve(o.map(n)),a=r.resolve(o.map(n+e.nodeSize)),s=i.blockRange(a);if(!s)return;let l=function(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!((0==o||r.canReplace(o,r.childCount))&&(i==r.childCount||r.canReplace(0,i))))break}return null}(s);if(e.type.isTextblock){let{defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(s.start,e)}(l||0===l)&&t.lift(s,l)})}),!0},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>Tn(e,t),deleteNode:e=>({tr:t,state:n,dispatch:r})=>{let o=Tp(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1)if(i.node(e).type===o){if(r){let n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{let{from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>E0(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),exitCode:()=>({state:e,dispatch:t})=>Tt(e,t),extendMarkRange:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=TC(e,r.schema),{doc:a,selection:s}=n,{$from:l,from:c,to:u}=s;if(o){let e=Tx(l,i,t);if(e&&e.from<=c&&e.to>=u){let t=ET.create(a,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{let n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};let a=()=>{TS()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),null!=t&&t.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!(n.state.selection instanceof ET))return a(),!0;let s=function(e,t=null){if(!t)return null;let n=EC.atStart(e),r=EC.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;let o=n.from,i=r.to;return"all"===t?ET.create(e,Tk(0,o,i),Tk(e.content.size,o,i)):ET.create(e,Tk(t,o,i),Tk(t,o,i))}(o.doc,e)||n.state.selection,l=n.state.selection.eq(s);return i&&(l||o.setSelection(s),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},forEach:(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};let o=TT(t,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===o.toString())return!0;let{from:a,to:s}="number"==typeof e?{from:e,to:e}:e,l=!0,c=!0;if((TA(o)?o:[o]).forEach(e=>{e.check(),l=!!l&&e.isText&&0===e.marks.length,c=!!c&&e.isBlock}),a===s&&c){let{parent:e}=r.doc.resolve(a);!e.isTextblock||e.type.spec.code||e.childCount||(a-=1,s+=1)}l?r.insertText(t,a,s):r.replaceWith(a,s,o),n.updateSelection&&function(e,t,n){let r=e.steps.length-1;if(r<t)return;let o=e.steps[r];if(!(o instanceof EJ||o instanceof EG))return;let i=e.mapping.maps[r],a=0;i.forEach((e,t,n,r)=>{0===a&&(a=r)}),e.setSelection(EC.near(e.doc.resolve(a),-1))}(r,r.steps.length-1,0)}return!0},joinBackward:()=>({state:e,dispatch:t})=>E1(e,t),joinForward:()=>({state:e,dispatch:t})=>E5(e,t),keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{let i=(function(e){let t,n,r,o;let i=e.split(/-(?!$)/),a=i[i.length-1];"Space"===a&&(a=" ");for(let e=0;e<i.length-1;e+=1){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else if(/^mod$/i.test(a))TS()||TM()?o=!0:n=!0;else throw Error(`Unrecognized modifier name: ${a}`)}return t&&(a=`Alt-${a}`),n&&(a=`Ctrl-${a}`),o&&(a=`Meta-${a}`),r&&(a=`Shift-${a}`),a})(e).split(/-(?!$)/),a=i.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),s=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,s))});return null==l||l.steps.forEach(e=>{let t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0},lift:(e,t={})=>({state:n,dispatch:r})=>{let o=Tp(e,n.schema);return!!TN(n,o,t)&&E9(n,r)},liftEmptyBlock:()=>({state:e,dispatch:t})=>Tr(e,t),liftListItem:e=>({state:t,dispatch:n})=>{var r;return(r=Tp(e,t.schema),function(e,t){var n;let o,i,a,{$from:s,$to:l}=e.selection,c=s.blockRange(l,e=>e.childCount>0&&e.firstChild.type==r);return!!c&&(!t||(s.node(c.depth-1).type==r?(n=c,o=e.tr,(i=n.end)<(a=n.$to.end(n.depth))&&(o.step(new Ea(i-1,a,i,a,new SG(SU.from(r.create(null,n.parent.copy())),1,0),1,!0)),n=new SK(o.doc.resolve(n.$from.pos),o.doc.resolve(a),n.depth)),t(o.lift(n,El(n)).scrollIntoView()),!0):function(e,t,n){let r=e.tr,o=n.parent;for(let e=n.end,t=n.endIndex-1,i=n.startIndex;t>i;t--)e-=o.child(t).nodeSize,r.delete(e-1,e+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,l=n.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?SU.empty:SU.from(o))))return!1;let d=i.pos,f=d+a.nodeSize;return r.step(new Ea(d-(s?1:0),f+(l?1:0),d+1,f-1,new SG((s?SU.empty:SU.from(o.copy(SU.empty))).append(l?SU.empty:SU.from(o.copy(SU.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}(e,t,c)))})(t,n)},newlineInCode:()=>({state:e,dispatch:t})=>E7(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null,s=TO("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=Tp(e,r.schema)),"mark"===s&&(a=TC(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,TI(e.attrs,t)),a&&e.marks.length&&e.marks.forEach(o=>{a===o.type&&n.addMark(r,r+e.nodeSize,a.create(TI(o.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size}),selectNodeBackward:()=>({state:e,dispatch:t})=>E4(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>E6(e,t),selectParentNode:()=>({state:e,dispatch:t})=>To(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>Tl(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>Ts(e,t),setContent:(e,t=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{let{doc:a}=r,s=function(e,t,n={}){return TT(e,t,{slice:!1,parseOptions:n})}(e,o.schema,n);return i&&r.replaceWith(0,a.content.size,s).setMeta("preventUpdate",!t),!0},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let{selection:i}=n,{empty:a,ranges:s}=i,l=TC(e,r.schema);if(o){if(a){let e=function(e,t){let n=TC(t,e.schema),{from:r,to:o,empty:i}=e.selection,a=[];i?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{a.push(...e.marks)});let s=a.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}(r,l);n.addStoredMark(l.create({...e,...t}))}else s.forEach(e=>{let o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,(e,r)=>{let a=Math.max(r,o),s=Math.min(r+e.nodeSize,i);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(a,s,l.create({...e.attrs,...t}))}):n.addMark(a,s,l.create(t))})})}return!0},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{let i=Tp(e,n.schema);return i.isTextblock?o().command(({commands:e})=>!!Tc(i,t)(n)||e.clearNodes()).command(({state:e})=>Tc(i,t)(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=Tk(e,0,n.content.size),o=EM.create(n,r);t.setSelection(o)}return!0},setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:o}="number"==typeof e?{from:e,to:e}:e,i=ET.atStart(n).from,a=ET.atEnd(n).to,s=Tk(r,i,a),l=Tk(o,i,a),c=ET.create(n,s,l);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{var r;return(r=Tp(e,t.schema),function(e,t){let{$from:n,$to:o}=e.selection,i=n.blockRange(o,e=>e.childCount>0&&e.firstChild.type==r);if(!i)return!1;let a=i.startIndex;if(0==a)return!1;let s=i.parent,l=s.child(a-1);if(l.type!=r)return!1;if(t){let n=l.lastChild&&l.lastChild.type==s.type,o=SU.from(n?r.create():null),a=new SG(SU.from(r.create(null,SU.from(s.type.create(null,o)))),n?3:1,0),c=i.start,u=i.end;t(e.tr.step(new Ea(c-(n?3:1),u,c,u,a,1,!0)).scrollIntoView())}return!0})(t,n)},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:o})=>{let{selection:i,doc:a}=t,{$from:s,$to:l}=i,c=TL(o.extensionManager.attributes,s.node().type.name,s.node().attrs);if(i instanceof EM&&i.node.isBlock)return!!(s.parentOffset&&EY(a,s.pos))&&(r&&(e&&TR(n,o.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;if(r){let r=l.parentOffset===l.parent.content.size;i instanceof ET&&t.deleteSelection();let a=0===s.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(s.node(-1).contentMatchAt(s.indexAfter(-1))),u=r&&a?[{type:a,attrs:c}]:void 0,d=EY(t.doc,t.mapping.map(s.pos),1,u);if(!u&&!d&&EY(t.doc,t.mapping.map(s.pos),1,a?[{type:a}]:void 0)&&(d=!0,u=a?[{type:a,attrs:c}]:void 0),d&&(t.split(t.mapping.map(s.pos),1,u),a&&!r&&!s.parentOffset&&s.parent.type!==a)){let e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,a)&&t.setNodeMarkup(t.mapping.map(s.before()),a)}e&&TR(n,o.extensionManager.splittableMarks),t.scrollIntoView()}return!0},splitListItem:e=>({tr:t,state:n,dispatch:r,editor:o})=>{var i;let a=Tp(e,n.schema),{$from:s,$to:l}=n.selection,c=n.selection.node;if(c&&c.isBlock||s.depth<2||!s.sameParent(l))return!1;let u=s.node(-1);if(u.type!==a)return!1;let d=o.extensionManager.attributes;if(0===s.parent.content.size&&s.node(-1).childCount===s.indexAfter(-1)){if(2===s.depth||s.node(-3).type!==a||s.index(-2)!==s.node(-2).childCount-1)return!1;if(r){let e=SU.empty,n=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-n;t>=s.depth-3;t-=1)e=SU.from(s.node(t).copy(e));let r=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,o=TL(d,s.node().type.name,s.node().attrs),l=(null===(i=a.contentMatch.defaultType)||void 0===i?void 0:i.createAndFill(o))||void 0;e=e.append(SU.from(a.createAndFill(null,l)||void 0));let c=s.before(s.depth-(n-1));t.replace(c,s.after(-r),new SG(e,4-n,0));let u=-1;t.doc.nodesBetween(c,t.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&0===e.content.size&&(u=t+1)}),u>-1&&t.setSelection(ET.near(t.doc.resolve(u))),t.scrollIntoView()}return!0}let f=l.pos===s.end()?u.contentMatchAt(0).defaultType:null,p=TL(d,u.type.name,u.attrs),h=TL(d,s.node().type.name,s.node().attrs);return t.delete(s.pos,l.pos),!!EY(t.doc,s.pos,2)&&(r&&t.split(s.pos,2,f?[{type:a,attrs:p},{type:f,attrs:h}]:[{type:a,attrs:p}]).scrollIntoView(),!0)},toggleList:(e,t)=>({editor:n,tr:r,state:o,dispatch:i,chain:a,commands:s,can:l})=>{let{extensions:c}=n.extensionManager,u=Tp(e,o.schema),d=Tp(t,o.schema),{selection:f}=o,{$from:p,$to:h}=f,m=p.blockRange(h);if(!m)return!1;let g=Tj(e=>TP(e.type.name,c))(f);if(m.depth>=1&&g&&m.depth-g.depth<=1){if(g.node.type===u)return s.liftListItem(d);if(TP(g.node.type.name,c)&&u.validContent(g.node.content)&&i)return a().command(()=>(r.setNodeMarkup(g.pos,u),!0)).command(()=>T_(r,u)).command(()=>TD(r,u)).run()}return a().command(()=>!!l().wrapInList(u)||s.clearNodes()).wrapInList(u).command(()=>T_(r,u)).command(()=>TD(r,u)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{let{extendEmptyMarkRange:i=!1}=n,a=TC(e,r.schema);return!function(e,t,n={}){let{empty:r,ranges:o}=e.selection,i=t?TC(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!i||i.name===e.type.name).find(e=>Tb(e.attrs,n,{strict:!1}));let a=0,s=[];if(o.forEach(({$from:t,$to:n})=>{let r=t.pos,o=n.pos;e.doc.nodesBetween(r,o,(e,t)=>{if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a+=i-n,s.push(...e.marks.map(e=>({mark:e,from:n,to:i})))})}),0===a)return!1;let l=s.filter(e=>!i||i.name===e.mark.type.name).filter(e=>Tb(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),c=s.filter(e=>!i||e.mark.type!==i&&e.mark.type.excludes(i)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+c:l)>=a}(r,a,t)?o.setMark(a,t):o.unsetMark(a,{extendEmptyMarkRange:i})},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{let i=Tp(e,r.schema),a=Tp(t,r.schema);return TN(r,i,n)?o.setNode(a):o.setNode(i,n)},toggleWrap:(e,t={})=>({state:n,commands:r})=>{let o=Tp(e,n.schema);return TN(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let o;let i=n[r];if(i.spec.isInputRules&&(o=i.getState(e))){if(t){let t=e.tr,n=o.transform;for(let e=n.steps.length-1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(o.text){let n=t.doc.resolve(o.from).marks();t.replaceWith(o.from,o.to,e.schema.text(o.text,n))}else t.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;let{extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=TC(e,r.schema),{$from:c,empty:u,ranges:d}=s;if(!o)return!0;if(u&&a){let{from:e,to:t}=s,r=null===(i=c.marks().find(e=>e.type===l))||void 0===i?void 0:i.attrs,o=Tx(c,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else d.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null,s=TO("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=Tp(e,r.schema)),"mark"===s&&(a=TC(e,r.schema)),o&&n.selection.ranges.forEach(e=>{let o=e.$from.pos,s=e.$to.pos;r.doc.nodesBetween(o,s,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),a&&e.marks.length&&e.marks.forEach(i=>{if(a===i.type){let l=Math.max(r,o),c=Math.min(r+e.nodeSize,s);n.addMark(l,c,a.create({...i.attrs,...t}))}})})}),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>(function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=a&&Ec(a,e,t);return!!s&&(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0)}})(Tp(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>(function(e,t=null){return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&o.node(a.depth-1).type.compatibleContent(e)&&0==a.startIndex){if(0==o.index(a.depth-1))return!1;let e=n.doc.resolve(a.start-2);l=new SK(e,e,a.depth),a.endIndex<a.parent.childCount&&(a=new SK(o,n.doc.resolve(i.end(a.depth)),a.depth)),s=!0}let c=Ec(l,e,t,a);return!!c&&(r&&r((function(e,t,n,r,o){let i=SU.empty;for(let e=n.length-1;e>=0;e--)i=SU.from(n[e].type.create(n[e].attrs,i));e.step(new Ea(t.start-(r?2:0),t.end,t.start,t.end,new SG(i,0,0),n.length,!0));let a=0;for(let e=0;e<n.length;e++)n[e].type==o&&(a=e+1);let s=n.length-a,l=t.start+n.length-(r?2:0),c=t.parent;for(let n=t.startIndex,r=t.endIndex,o=!0;n<r;n++,o=!1)!o&&Ed(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=c.child(n).nodeSize;return e})(n.tr,a,c,s,e).scrollIntoView()),!0)}})(Tp(e,n.schema),t)(n,r)});Ty.create({name:"commands",addCommands:()=>({...Tz})}),Ty.create({name:"editable",addProseMirrorPlugins(){return[new E_({key:new EB("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Ty.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:e}=this;return[new E_({key:new EB("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Ty.create({name:"keymap",addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:o,$anchor:i}=n,{pos:a,parent:s}=i,l=EC.atStart(r).from===a;return!!o&&!!l&&!!s.type.isTextblock&&!s.textContent.length&&e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return TS()||TM()?o:r},addProseMirrorPlugins(){return[new E_({key:new EB("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some(e=>e.docChanged)&&!t.doc.eq(n.doc)))return;let{empty:r,from:o,to:i}=t.selection,a=EC.atStart(t.doc).from,s=EC.atEnd(t.doc).to,l=0===n.doc.textBetween(0,n.doc.content.size," "," ").length;if(r||!(o===a&&i===s)||!l)return;let c=n.tr,u=Tu({state:n,transaction:c}),{commands:d}=new Td({editor:this.editor,state:u});if(d.clearNodes(),c.steps.length)return c}})]}}),Ty.create({name:"tabindex",addProseMirrorPlugins(){return[new E_({key:new EB("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class TB{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Tm(Tf(this,"addOptions",{name:this.name}))),this.storage=Tm(Tf(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new TB(e)}configure(e={}){let t=this.extend();return t.options=Tv(this.options,e),t.storage=Tm(Tf(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){let t=new TB(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Tm(Tf(t,"addOptions",{name:t.name})),t.storage=Tm(Tf(t,"addStorage",{name:t.name,options:t.options})),t}}let TH=TB.create({name:"column",group:"column",content:"(paragraph|block)*",isolating:!0,selectable:!1,renderHTML:({HTMLAttributes:e})=>["div",Th(e,{class:"column"}),0]}),TF=(e,t)=>Array.from({length:e},(e,n)=>t(n)),TV=({type:e,content:t})=>t?{type:e,content:t}:{type:e},T$=({content:e})=>TV({type:"paragraph",content:e}),TU=({content:e})=>TV({type:"column",content:e}),Tq=({content:e})=>TV({type:"columnBlock",content:e}),TZ=e=>{let t=[T$({})];return TF(e,()=>TU({content:t}))},TW=(e,t)=>{for(let n=e.depth;n>0;n--){let r=e.node(n),o=n>0?e.before(n):0,i=e.start(n);if(t({node:r,pos:o,start:i}))return{start:i,depth:n,node:r,pos:o}}throw Error("no ancestor found")};class TJ extends EC{constructor(e){let{$from:t,$to:n}=e;super(t,n),this._$from=t,this._$to=n}get $from(){return this._$from}get $to(){return this._$to}map(){return this}content(){return this.$from.doc.slice(this.from,this.to,!0)}eq(e){return e instanceof TJ&&e.anchor==this.anchor}toJSON(){return{type:"column",from:this.from,to:this.to}}expandSelection(e){var t;let n=({pos:t,node:n})=>n.type.name===TH.name||e.resolve(t).depth<=0,{pos:r}=TW(this.$from,n);this._$from=e.resolve(r);let{pos:o,node:i}=TW(this.$to,n);this._$to=e.resolve(o+i.nodeSize),(null==(t=this.getFirstNode())?void 0:t.type.name)===TG.name&&(this._$from=e.resolve(this.$from.pos+2),this._$to=e.resolve(this.$to.pos+2)),this.$anchor=this._$from,this.$head=this._$to,this.ranges=[new Ek(this._$from,this._$to)]}static create(e,t,n){return new TJ(new ET(e.resolve(t),e.resolve(n)))}getFirstNode(){return this.content().content.firstChild}}let TG=TB.create({name:"columnBlock",group:"block",content:"column{2,}",isolating:!0,selectable:!0,addOptions:()=>({nestedColumns:!1,columnType:TH}),renderHTML:({HTMLAttributes:e})=>["div",Th(e,{class:"column-block"}),0],addCommands(){return{unsetColumns:()=>({tr:e,dispatch:t})=>{try{if(!t)return;let n=e.selection.$from,r=TW(n,({node:e})=>!this.options.nestedColumns&&e.type==this.type||e.type==this.type);if(void 0===r)return;let o=[];r.node.descendants((e,t,n)=>{(null==n?void 0:n.type.name)===TH.name&&o.push(e)}),o=o.reverse().filter(e=>e.content.size>0);let i=e.doc.resolve(r.pos),a=new EM(i);return e=e.setSelection(a),o.forEach(t=>e=e.insert(r.pos,t)),e=e.deleteSelection(),t(e)}catch(e){console.error(e)}},setColumns:(e,t=!1)=>({tr:n,dispatch:r})=>{try{let o,i;let{doc:a,selection:s}=n;if(!r){console.log("no dispatch");return}let l=new TJ(s);l.expandSelection(a);let{openStart:c,openEnd:u}=l.content();if(c!==u){console.warn("failed depth check");return}if(t){let t=l.content().toJSON(),n=TU(t),r=TZ(e-1);o=Tq({content:[n,...r]})}else{let t=TZ(e);o=Tq({content:t})}let d=a.type.schema.nodeFromJSON(o);if(null===d)return;if(!(i=l.$anchor.parent.type).contentMatch.matchType(this.type)||!this.options.nestedColumns&&i.name===TH.name){console.warn("content not allowed");return}return n=(n=n.setSelection(l)).replaceSelectionWith(d,!1),r(n)}catch(e){console.error(e)}}}}}),TK=Ty.create({name:"columnExtension",addExtensions(){let e=[];return!1!==this.options.column&&e.push(TH),!1!==this.options.columnBlock&&e.push(TG),e}});if(n(17369),"undefined"!=typeof WeakMap){let e=new WeakMap;eS=t=>e.get(t),eE=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;eS=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},eE=(n,r)=>(10==t&&(t=0),e[t++]=n,e[t++]=r)}var TY=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,o=t/this.width|0,i=r+1,a=o+1;for(let e=1;i<this.width&&this.map[t+e]==n;e++)i++;for(let e=1;a<this.height&&this.map[t+this.width*e]==n;e++)a++;return{left:r,top:o,right:i,bottom:a}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:o,top:i,bottom:a}=this.findCell(e);return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[i*this.width+(n<0?r-1:o)]:(n<0?0==i:a==this.height)?null:this.map[r+this.width*(n<0?i-1:a)]}rectBetween(e,t){let{left:n,right:r,top:o,bottom:i}=this.findCell(e),{left:a,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,a),top:Math.min(o,l),right:Math.max(r,s),bottom:Math.max(i,c)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let o=e.left;o<e.right;o++){let i=r*this.width+o,a=this.map[i];if(!n[a]){if(n[a]=!0,o==e.left&&o&&this.map[i-1]==a||r==e.top&&r&&this.map[i-this.width]==a)continue;t.push(a)}}return t}positionAt(e,t,n){for(let r=0,o=0;;r++){let i=o+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<o;)n++;return n==r?i-1:this.map[n]}o=i}}static get(e){return eS(e)||eE(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let o=e.child(r),i=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let o=n.child(e);t+o.attrs.rowspan>r&&(i+=o.attrs.colspan)}}for(let e=0;e<o.childCount;e++){let t=o.child(e);i+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[],o=0,i=null,a=[];for(let e=0,o=t*n;e<o;e++)r[e]=0;for(let s=0,l=0;s<n;s++){let c=e.child(s);l++;for(let e=0;;e++){for(;o<r.length&&0!=r[o];)o++;if(e==c.childCount)break;let u=c.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:f-e});break}let c=o+e*t;for(let e=0;e<d;e++){0==r[c+e]?r[c+e]=l:(i||(i=[])).push({type:"collision",row:s,pos:l,n:d-e});let n=p&&p[e];if(n){let r=(c+e)%t*2,o=a[r];null==o||o!=n&&1==a[r+1]?(a[r]=n,a[r+1]=1):o==n&&a[r+1]++}}}o+=d,l+=u.nodeSize}let u=(s+1)*t,d=0;for(;o<u;)0==r[o++]&&d++;d&&(i||(i=[])).push({type:"missing",row:s,n:d}),l++}let s=new TY(t,n,r,i),l=!1;for(let e=0;!l&&e<a.length;e+=2)null!=a[e]&&a[e+1]<n&&(l=!0);return l&&function(e,t,n){e.problems||(e.problems=[]);let r={};for(let o=0;o<e.map.length;o++){let i=e.map[o];if(r[i])continue;r[i]=!0;let a=n.nodeAt(i);if(!a)throw RangeError(`No cell with offset ${i} found`);let s=null,l=a.attrs;for(let n=0;n<l.colspan;n++){let r=t[(o+n)%e.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((s||(s=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}(l)))[n]=r)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}(s,a,e),s}(e))}};function TX(e){let t=e.cached.tableNodeTypes;if(!t)for(let n in t=e.cached.tableNodeTypes={},e.nodes){let r=e.nodes[n],o=r.spec.tableRole;o&&(t[o]=r)}return t}var TQ=new yE("selectingCells");function T0(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function T1(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function T2(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let n=T0(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function T4(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function T3(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function T5(e,t,n){let r=e.node(-1),o=TY.get(r),i=e.start(-1),a=o.nextCell(e.pos-i,t,n);return null==a?null:e.node(0).resolve(i+a)}function T6(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function T8(e,t,n=1){let r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var T9=class e extends yl{constructor(e,t=e){let n=e.node(-1),r=TY.get(n),o=e.start(-1),i=r.rectBetween(e.pos-o,t.pos-o),a=e.node(0),s=r.cellsInRect(i).filter(e=>e!=t.pos-o);s.unshift(t.pos-o);let l=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=o+e+1;return new yc(a.resolve(r),a.resolve(r+t.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),o=t.resolve(n.map(this.$headCell.pos));if(T4(r)&&T4(o)&&T3(r,o)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,o):t&&this.isColSelection()?e.colSelection(r,o):new e(r,o)}return yf.between(r,o)}content(){let e=this.$anchorCell.node(-1),t=TY.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[];for(let n=r.top;n<r.bottom;n++){let a=[];for(let i=n*t.width+r.left,s=r.left;s<r.right;s++,i++){let n=t.map[i];if(o[n])continue;o[n]=!0;let s=t.findCell(n),l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);let c=r.left-s.left,u=s.right-r.right;if(c>0||u>0){let e=l.attrs;if(c>0&&(e=T6(e,0,c)),u>0&&(e=T6(e,e.colspan-u,u)),s.left<r.left){if(!(l=l.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...l.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};l=s.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}a.push(l)}i.push(e.child(n).copy(gJ.from(a)))}let a=this.isColSelection()&&this.isRowSelection()?e:i;return new g0(gJ.from(a),1,1)}replace(e,t=g0.empty){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=e.mapping.slice(n);e.replace(s.map(i.pos),s.map(a.pos),o?g0.empty:t)}let o=yl.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new g0(gJ.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=TY.get(t),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<o.length;n++)e(t.nodeAt(o[n]),r+o[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),o=TY.get(r),i=t.start(-1),a=o.findCell(t.pos-i),s=o.findCell(n.pos-i),l=t.node(0);return a.top<=s.top?(a.top>0&&(t=l.resolve(i+o.map[a.left])),s.bottom<o.height&&(n=l.resolve(i+o.map[o.width*(o.height-1)+s.right-1]))):(s.top>0&&(n=l.resolve(i+o.map[s.left])),a.bottom<o.height&&(t=l.resolve(i+o.map[o.width*(o.height-1)+a.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=TY.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),o=t.colCount(this.$headCell.pos-n);return!(Math.min(r,o)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.colspan,o+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),o=TY.get(r),i=t.start(-1),a=o.findCell(t.pos-i),s=o.findCell(n.pos-i),l=t.node(0);return a.left<=s.left?(a.left>0&&(t=l.resolve(i+o.map[a.top*o.width])),s.right<o.width&&(n=l.resolve(i+o.map[o.width*(s.top+1)-1]))):(s.left>0&&(n=l.resolve(i+o.map[s.top*o.width])),a.right<o.width&&(t=l.resolve(i+o.map[o.width*(a.top+1)-1]))),new e(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new T7(this.$anchorCell.pos,this.$headCell.pos)}};T9.prototype.visible=!1,yl.jsonID("cell",T9);var T7=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&T3(t,n)?new T9(t,n):yl.near(n,1)}};function Ae(e){if(!(e.selection instanceof T9))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(bH.node(n,n+e.nodeSize,{class:"selectedCell"}))}),b$.create(e.doc,t)}var At=new yE("fix-tables");function An(e,t){let n;let r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let o,i;let a=TY.get(t);if(!a.problems)return r;r||(r=e.tr);let s=[];for(let e=0;e<a.height;e++)s.push(0);for(let e=0;e<a.problems.length;e++){let o=a.problems[e];if("collision"==o.type){let e=t.nodeAt(o.pos);if(!e)continue;let i=e.attrs;for(let e=0;e<i.rowspan;e++)s[o.row+e]+=o.n;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,T6(i,i.colspan-o.n,o.n))}else if("missing"==o.type)s[o.row]+=o.n;else if("overlong_rowspan"==o.type){let e=t.nodeAt(o.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-o.n})}else if("colwidth mismatch"==o.type){let e=t.nodeAt(o.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,{...e.attrs,colwidth:o.colwidth})}}for(let e=0;e<s.length;e++)s[e]&&(null==o&&(o=e),i=e);for(let l=0,c=n+1;l<a.height;l++){let n=t.child(l),a=c+n.nodeSize,u=s[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let s=[];for(let n=0;n<u;n++){let n=TX(e.schema)[t].createAndFill();n&&s.push(n)}let d=(0==l||o==l-1)&&i==l?c+1:a-1;r.insert(r.mapping.map(d),s)}c=a}return r.setMeta(At,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&function e(t,n,r,o){let i=t.childCount,a=n.childCount;o:for(let s=0,l=0;s<a;s++){let a=n.child(s);for(let e=l,n=Math.min(i,s+3);e<n;e++)if(t.child(e)==a){l=e+1,r+=a.nodeSize;continue o}o(a,r),l<i&&t.child(l).sameMarkup(a)?e(t.child(l),a,r+1,o):a.nodesBetween(0,a.content.size,o,r+1),r+=a.nodeSize}}(t.doc,e.doc,0,r):e.doc.descendants(r),n}function Ar(e){let t=e.selection,n=T2(e),r=n.node(-1),o=n.start(-1),i=TY.get(r);return{...t instanceof T9?i.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):i.findCell(n.pos-o),tableStart:o,map:i,table:r}}function Ao(e,{map:t,tableStart:n,table:r},o){let i=o>0?-1:0;(function(e,t,n){let r=TX(t.type.schema).header_cell;for(let o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=r)return!1;return!0})(t,r,o+i)&&(i=0==o||o==t.width?null:0);for(let a=0;a<t.height;a++){let s=a*t.width+o;if(o>0&&o<t.width&&t.map[s-1]==t.map[s]){let i=t.map[s],l=r.nodeAt(i);e.setNodeMarkup(e.mapping.map(n+i),null,T8(l.attrs,o-t.colCount(i))),a+=l.attrs.rowspan-1}else{let l=null==i?TX(r.type.schema).cell:r.nodeAt(t.map[s+i]).type,c=t.positionAt(a,o,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function Ai(e,{map:t,tableStart:n,table:r},o){var i;let a=n;for(let e=0;e<o;e++)a+=r.child(e).nodeSize;let s=[],l=o>0?-1:0;(function(e,t,n){var r;let o=TX(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if((null==(r=t.nodeAt(e.map[i+n*e.width]))?void 0:r.type)!=o)return!1;return!0})(t,r,o+l)&&(l=0==o||o==t.height?null:0);for(let a=0,c=t.width*o;a<t.width;a++,c++)if(o>0&&o<t.height&&t.map[c]==t.map[c-t.width]){let o=t.map[c],i=r.nodeAt(o).attrs;e.setNodeMarkup(n+o,null,{...i,rowspan:i.rowspan+1}),a+=i.colspan-1}else{let e=null==l?TX(r.type.schema).cell:null==(i=r.nodeAt(t.map[c+l*t.width]))?void 0:i.type,n=null==e?void 0:e.createAndFill();n&&s.push(n)}return e.insert(a,TX(r.type.schema).row.create(null,s)),e}function Aa(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function As(e,t){let n=e.selection;if(!(n instanceof T9)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=Ar(e),{map:o}=r;if(function({width:e,height:t,map:n},r){let o=r.top*e+r.left,i=o,a=(r.bottom-1)*e+r.left,s=o+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[i]==n[i-1]||r.right<e&&n[s]==n[s+1])return!0;i+=e,s+=e}for(let i=r.left;i<r.right;i++){if(r.top>0&&n[o]==n[o-e]||r.bottom<t&&n[a]==n[a+e])return!0;o++,a++}return!1}(o,r))return!1;if(t){let n,i;let a=e.tr,s={},l=gJ.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let c=o.map[e*o.width+t],u=r.table.nodeAt(c);if(!s[c]&&u){if(s[c]=!0,null==n)n=c,i=u;else{Aa(u)||(l=l.append(u.content));let e=a.mapping.map(c+r.tableStart);a.delete(e,e+u.nodeSize)}}}if(null==n||null==i)return!0;if(a.setNodeMarkup(n+r.tableStart,null,{...T8(i.attrs,i.attrs.colspan,r.right-r.left-i.attrs.colspan),rowspan:r.bottom-r.top}),l.size){let e=n+1+i.content.size,t=Aa(i)?n+1:e;a.replaceWith(t+r.tableStart,e+r.tableStart,l)}a.setSelection(new T9(a.doc.resolve(n+r.tableStart))),t(a)}return!0}function Al(e,t){var n;let r=TX(e.schema);return(n=({node:e})=>r[e.type.spec.tableRole],(e,t)=>{var r;let o,i;let a=e.selection;if(a instanceof T9){if(a.$anchorCell.pos!=a.$headCell.pos)return!1;o=a.$anchorCell.nodeAfter,i=a.$anchorCell.pos}else{if(!(o=function(e){for(let t=e.depth;t>0;t--){let n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(a.$from)))return!1;i=null==(r=T0(a.$from))?void 0:r.pos}if(null==o||null==i||1==o.attrs.colspan&&1==o.attrs.rowspan)return!1;if(t){let r,s=o.attrs,l=[],c=s.colwidth;s.rowspan>1&&(s={...s,rowspan:1}),s.colspan>1&&(s={...s,colspan:1});let u=Ar(e),d=e.tr;for(let e=0;e<u.right-u.left;e++)l.push(c?{...s,colwidth:c&&c[e]?[c[e]]:null}:s);for(let e=u.top;e<u.bottom;e++){let t=u.map.positionAt(e,u.left,u.table);e==u.top&&(t+=o.nodeSize);for(let i=u.left,a=0;i<u.right;i++,a++)(i!=u.left||e!=u.top)&&d.insert(r=d.mapping.map(t+u.tableStart,1),n({node:o,row:e,col:i}).createAndFill(l[a]))}d.setNodeMarkup(i,n({node:o,row:u.top,col:u.left}),l[0]),a instanceof T9&&d.setSelection(new T9(d.doc.resolve(a.$anchorCell.pos),r?d.doc.resolve(r):void 0)),t(d)}return!0})(e,t)}function Ac(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){let o=t.table.nodeAt(r[e]);if(o&&o.type!==n.header_cell)return!1}return!0}function Au(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(t,n){if(!T1(t))return!1;if(n){let r=TX(t.schema),o=Ar(t),i=t.tr,a=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),s=a.map(e=>o.table.nodeAt(e));for(let e=0;e<a.length;e++)s[e].type==r.header_cell&&i.setNodeMarkup(o.tableStart+a[e],r.cell,s[e].attrs);if(0==i.steps.length)for(let e=0;e<a.length;e++)i.setNodeMarkup(o.tableStart+a[e],r.header_cell,s[e].attrs);n(i)}return!0}:function(t,n){if(!T1(t))return!1;if(n){let r=TX(t.schema),o=Ar(t),i=t.tr,a=Ac("row",o,r),s=Ac("column",o,r),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:o.map.height}:"row"==e?{left:l,top:0,right:o.map.width,bottom:1}:o,u="column"==e?s?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;o.map.cellsInRect(c).forEach(e=>{let t=e+o.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,u,n.attrs)}),n(i)}return!0}}Au("row",{useDeprecatedLogic:!0}),Au("column",{useDeprecatedLogic:!0});var Ad=Au("cell",{useDeprecatedLogic:!0});function Af(e){return function(t,n){if(!T1(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t),o=r.lastChild;if(o)return n-1-o.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(T2(t),e);if(null==r)return!1;if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(yf.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function Ap(e,t){let n=e.selection;if(!(n instanceof T9))return!1;if(t){let r=e.tr,o=TX(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new g0(o,0,0))}),r.docChanged&&t(r)}return!0}function Ah(e,t){let n=e.createAndFill();return new ya(n).replace(0,n.content.size,t).doc}function Am(e,t,n,r,o,i,a,s){if(0==a||a==t.height)return!1;let l=!1;for(let c=o;c<i;c++){let o=a*t.width+c,i=t.map[o];if(t.map[o-t.width]==i){l=!0;let o=n.nodeAt(i),{top:u,left:d}=t.findCell(i);e.setNodeMarkup(e.mapping.slice(s).map(i+r),null,{...o.attrs,rowspan:a-u}),e.insert(e.mapping.slice(s).map(t.positionAt(a,d,n)),o.type.createAndFill({...o.attrs,rowspan:u+o.attrs.rowspan-a})),c+=o.attrs.colspan-1}}return l}function Ag(e,t,n,r,o,i,a,s){if(0==a||a==t.width)return!1;let l=!1;for(let c=o;c<i;c++){let o=c*t.width+a,i=t.map[o];if(t.map[o-1]==i){l=!0;let o=n.nodeAt(i),u=t.colCount(i),d=e.mapping.slice(s).map(i+r);e.setNodeMarkup(d,null,T6(o.attrs,a-u,o.attrs.colspan-(a-u))),e.insert(d+o.nodeSize,o.type.createAndFill(T6(o.attrs,0,a-u))),c+=o.attrs.rowspan-1}}return l}function Av(e,t,n,r,o){let i=n?e.doc.nodeAt(n-1):e.doc;if(!i)throw Error("No table found");let a=TY.get(i),{top:s,left:l}=r,c=l+o.width,u=s+o.height,d=e.tr,f=0;function p(){if(!(i=n?d.doc.nodeAt(n-1):d.doc))throw Error("No table found");a=TY.get(i),f=d.mapping.maps.length}(function(e,t,n,r,o,i,a){let s,l;let c=TX(e.doc.type.schema);if(o>t.width)for(let i=0,a=0;i<t.height;i++){let u;let d=n.child(i);a+=d.nodeSize;let f=[];u=null==d.lastChild||d.lastChild.type==c.cell?s||(s=c.cell.createAndFill()):l||(l=c.header_cell.createAndFill());for(let e=t.width;e<o;e++)f.push(u);e.insert(e.mapping.slice(0).map(a-1+r),f)}if(i>t.height){let a=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,o);e++){let o=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==c.header_cell;a.push(o?l||(l=c.header_cell.createAndFill()):s||(s=c.cell.createAndFill()))}let u=c.row.create(null,gJ.from(a)),d=[];for(let e=t.height;e<i;e++)d.push(u);e.insert(e.mapping.slice(0).map(r+n.nodeSize-2),d)}return!!(s||l)})(d,a,i,n,c,u,0)&&p(),Am(d,a,i,n,l,c,s,f)&&p(),Am(d,a,i,n,l,c,u,f)&&p(),Ag(d,a,i,n,s,u,l,f)&&p(),Ag(d,a,i,n,s,u,c,f)&&p();for(let e=s;e<u;e++){let t=a.positionAt(e,l,i),r=a.positionAt(e,c,i);d.replace(d.mapping.slice(f).map(t+n),d.mapping.slice(f).map(r+n),new g0(o.rows[e-s],0,0))}p(),d.setSelection(new T9(d.doc.resolve(n+a.positionAt(s,l,i)),d.doc.resolve(n+a.positionAt(u-1,c-1,i)))),t(d)}var Ay=b8({ArrowLeft:Aw("horiz",-1),ArrowRight:Aw("horiz",1),ArrowUp:Aw("vert",-1),ArrowDown:Aw("vert",1),"Shift-ArrowLeft":Ax("horiz",-1),"Shift-ArrowRight":Ax("horiz",1),"Shift-ArrowUp":Ax("vert",-1),"Shift-ArrowDown":Ax("vert",1),Backspace:Ap,"Mod-Backspace":Ap,Delete:Ap,"Mod-Delete":Ap});function Ab(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Aw(e,t){return(n,r,o)=>{if(!o)return!1;let i=n.selection;if(i instanceof T9)return Ab(n,r,yl.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;let a=AE(o,e,t);if(null==a)return!1;if("horiz"==e)return Ab(n,r,yl.near(n.doc.resolve(i.head+t),t));{let o;let i=n.doc.resolve(a),s=T5(i,e,t);return o=s?yl.near(s,1):t<0?yl.near(n.doc.resolve(i.before(-1)),-1):yl.near(n.doc.resolve(i.after(-1)),1),Ab(n,r,o)}}}function Ax(e,t){return(n,r,o)=>{let i;if(!o)return!1;let a=n.selection;if(a instanceof T9)i=a;else{let r=AE(o,e,t);if(null==r)return!1;i=new T9(n.doc.resolve(r))}let s=T5(i.$headCell,e,t);return!!s&&Ab(n,r,new T9(i.$anchorCell,s))}}function AC(e,t){let n=T0(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new T9(n))),!0)}function Ak(e,t,n){if(!T1(e.state))return!1;let r=function(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,r--,t=t.child(0).content;let o=t.child(0),i=o.type.spec.tableRole,a=o.type.schema,s=[];if("row"==i)for(let e=0;e<t.childCount;e++){let o=t.child(e).content,i=e?0:Math.max(0,n-1),l=e<t.childCount-1?0:Math.max(0,r-1);(i||l)&&(o=Ah(TX(a).row,new g0(o,i,l)).content),s.push(o)}else{if("cell"!=i&&"header_cell"!=i)return null;s.push(n||r?Ah(TX(a).row,new g0(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:o,colspan:i}=r.child(t).attrs;for(let t=e;t<e+o;t++)n[t]=(n[t]||0)+i}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let o=0;o<n.length;o++)if(o>=t.length&&t.push(gJ.empty),n[o]<r){let i=TX(e).cell.createAndFill(),a=[];for(let e=n[o];e<r;e++)a.push(i);t[o]=t[o].append(gJ.from(a))}return{height:t.length,width:r,rows:t}}(a,s)}(n),o=e.state.selection;if(o instanceof T9){r||(r={width:1,height:1,rows:[gJ.from(Ah(TX(e.state.schema).cell,n))]});let t=o.$anchorCell.node(-1),i=o.$anchorCell.start(-1),a=TY.get(t).rectBetween(o.$anchorCell.pos-i,o.$headCell.pos-i);return r=function({width:e,height:t,rows:n},r,o){if(e!=r){let t=[],o=[];for(let e=0;e<n.length;e++){let i=n[e],a=[];for(let n=t[e]||0,o=0;n<r;o++){let s=i.child(o%i.childCount);n+s.attrs.colspan>r&&(s=s.type.createChecked(T6(s.attrs,s.attrs.colspan,n+s.attrs.colspan-r),s.content)),a.push(s),n+=s.attrs.colspan;for(let n=1;n<s.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+s.attrs.colspan}o.push(gJ.from(a))}n=o,e=r}if(t!=o){let e=[];for(let r=0,i=0;r<o;r++,i++){let a=[],s=n[i%t];for(let e=0;e<s.childCount;e++){let t=s.child(e);r+t.attrs.rowspan>o&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,o-t.attrs.rowspan)},t.content)),a.push(t)}e.push(gJ.from(a))}n=e,t=o}return{width:e,height:t,rows:n}}(r,a.right-a.left,a.bottom-a.top),Av(e.state,e.dispatch,i,a,r),!0}if(!r)return!1;{let t=T2(e.state),n=t.start(-1);return Av(e.state,e.dispatch,n,TY.get(t.node(-1)).findCell(t.pos-n),r),!0}}function AS(e,t){var n;let r;if(t.ctrlKey||t.metaKey)return;let o=AT(e,t.target);if(t.shiftKey&&e.state.selection instanceof T9)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&o&&null!=(r=T0(e.state.selection.$anchor))&&(null==(n=AA(e,t))?void 0:n.pos)!=r.pos)i(r,t),t.preventDefault();else if(!o)return;function i(t,n){let r=AA(e,n),o=null==TQ.getState(e.state);if(!r||!T3(t,r)){if(!o)return;r=t}let i=new T9(t,r);if(o||!e.state.selection.eq(i)){let n=e.state.tr.setSelection(i);o&&n.setMeta(TQ,t.pos),e.dispatch(n)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",s),null!=TQ.getState(e.state)&&e.dispatch(e.state.tr.setMeta(TQ,-1))}function s(n){let r;let s=TQ.getState(e.state);if(null!=s)r=e.state.doc.resolve(s);else if(AT(e,n.target)!=o&&!(r=AA(e,t)))return a();r&&i(r,n)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",s)}function AE(e,t,n){if(!(e.state.selection instanceof yf))return null;let{$head:r}=e.state.selection;for(let o=r.depth-1;o>=0;o--){let i=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:i.childCount))break;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){let i=r.before(o),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?i:null}}return null}function AT(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function AA(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?T0(e.state.doc.resolve(n.pos)):null}var AM=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),AN(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,AN(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function AN(e,t,n,r,o,i){var a;let s=0,l=!0,c=t.firstChild,u=e.firstChild;if(u){for(let e=0,n=0;e<u.childCount;e++){let{colspan:a,colwidth:d}=u.child(e).attrs;for(let e=0;e<a;e++,n++){let a=o==n?i:d&&d[e],u=a?a+"px":"";s+=a||r,a||(l=!1),c?(c.style.width!=u&&(c.style.width=u),c=c.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;c;){let e=c.nextSibling;null==(a=c.parentNode)||a.removeChild(c),c=e}l?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}var AO=new yE("tableColumnResizing"),AI=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let n=t.getMeta(AO);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(this.activeHandle,n.setDragging);if(this.activeHandle>-1&&t.docChanged){let n=t.mapping.map(this.activeHandle,-1);return T4(t.doc.resolve(n))||(n=-1),new e(n,this.dragging)}return this}};function AL(e,t,n,r){let o=e.posAtCoords({left:t.clientX+("right"==n?-r:r),top:t.clientY});if(!o)return -1;let{pos:i}=o,a=T0(e.state.doc.resolve(i));if(!a)return -1;if("right"==n)return a.pos;let s=TY.get(a.node(-1)),l=a.start(-1),c=s.map.indexOf(a.pos-l);return c%s.width==0?-1:l+s.map[c-1]}function AR(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function Aj(e,t){e.dispatch(e.state.tr.setMeta(AO,{setHandle:t}))}function AP(e,t,n,r,o,i){let a=0,s=!0,l=t.firstChild,c=e.firstChild;for(let e=0,n=0;e<c.childCount;e+=1){let{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e+=1,n+=1){let c=o===n?i:d&&d[e],u=c?`${c}px`:"";a+=c||r,c||(s=!1),l?(l.style.width!==u&&(l.style.width=u),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;l;){let e=l.nextSibling;l.parentNode.removeChild(l),l=e}s?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}class A_{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),AP(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,AP(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function AD(e,t){return t?e.createChecked(null,t):e.createAndFill()}let Az=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof T9))return!1;let n=0,r=xc(t.ranges[0].$from,e=>"table"===e.type.name);return null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},AB=xC.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:A_,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:n,tableWidth:r,tableMinWidth:o}=function(e,t,n,r){let o=0,i=!0,a=[],s=e.firstChild;if(!s)return{};for(let e=0,n=0;e<s.childCount;e+=1){let{colspan:r,colwidth:l}=s.child(e).attrs;for(let e=0;e<r;e+=1,n+=1){let r=void 0===n?void 0:l&&l[e],s=r?`${r}px`:"";o+=r||t,r||(i=!1),a.push(["col",s?{style:`width: ${s}`}:{}])}}return{colgroup:["colgroup",{},...a],tableWidth:i?`${o}px`:"",tableMinWidth:i?"":`${o}px`}}(e,this.options.cellMinWidth);return["table",w_(this.options.HTMLAttributes,t,{style:r?`width: ${r}`:`min-width: ${o}`}),n,["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:i})=>{let a=function(e,t,n,r,o){let i=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(n=>{let r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),a=[],s=[];for(let e=0;e<n;e+=1){let e=AD(i.cell,void 0);if(e&&s.push(e),r){let e=AD(i.header_cell,void 0);e&&a.push(e)}}let l=[];for(let e=0;e<t;e+=1)l.push(i.row.createChecked(null,r&&0===e?a:s));return i.table.createChecked(null,l)}(i.schema,e,t,n);if(o){let e=r.selection.from+1;r.replaceSelectionWith(a).scrollIntoView().setSelection(yf.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!T1(e))return!1;if(t){let n=Ar(e);t(Ao(e.tr,n,n.left))}return!0})(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!T1(e))return!1;if(t){let n=Ar(e);t(Ao(e.tr,n,n.right))}return!0})(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(function(e,t){if(!T1(e))return!1;if(t){let n=Ar(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;!function(e,{map:t,table:n,tableStart:r},o){let i=e.mapping.maps.length;for(let a=0;a<t.height;){let s=a*t.width+o,l=t.map[s],c=n.nodeAt(l),u=c.attrs;if(o>0&&t.map[s-1]==l||o<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(i).map(r+l),null,T6(u,o-t.colCount(l)));else{let t=e.mapping.slice(i).map(r+l);e.delete(t,t+c.nodeSize)}a+=u.rowspan}}(r,n,e),e!=n.left;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=TY.get(e)}t(r)}return!0})(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!T1(e))return!1;if(t){let n=Ar(e);t(Ai(e.tr,n,n.top))}return!0})(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!T1(e))return!1;if(t){let n=Ar(e);t(Ai(e.tr,n,n.bottom))}return!0})(e,t),deleteRow:()=>({state:e,dispatch:t})=>(function(e,t){if(!T1(e))return!1;if(t){let n=Ar(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;!function(e,{map:t,table:n,tableStart:r},o){let i=0;for(let e=0;e<o;e++)i+=n.child(e).nodeSize;let a=i+n.child(o).nodeSize,s=e.mapping.maps.length;e.delete(i+r,a+r);let l=new Set;for(let i=0,a=o*t.width;i<t.width;i++,a++){let c=t.map[a];if(!l.has(c)){if(l.add(c),o>0&&c==t.map[a-t.width]){let t=n.nodeAt(c).attrs;e.setNodeMarkup(e.mapping.slice(s).map(c+r),null,{...t,rowspan:t.rowspan-1}),i+=t.colspan-1}else if(o<t.height&&c==t.map[a+t.width]){let a=n.nodeAt(c),l=a.attrs,u=a.type.create({...l,rowspan:a.attrs.rowspan-1},a.content),d=t.positionAt(o+1,i,n);e.insert(e.mapping.slice(s).map(r+d),u),i+=l.colspan-1}}}}(r,n,e),e!=n.top;e--){let e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=TY.get(n.table)}t(r)}return!0})(e,t),deleteTable:()=>({state:e,dispatch:t})=>(function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1})(e,t),mergeCells:()=>({state:e,dispatch:t})=>As(e,t),splitCell:()=>({state:e,dispatch:t})=>Al(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>Au("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>Au("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>Ad(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!As(e,t)||Al(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>(function(n,r){if(!T1(n))return!1;let o=T2(n);if(o.nodeAfter.attrs[e]===t)return!1;if(r){let i=n.tr;n.selection instanceof T9?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&i.setNodeMarkup(r,null,{...n.attrs,[e]:t})}):i.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[e]:t}),r(i)}return!0})(n,r),goToNextCell:()=>({state:e,dispatch:t})=>Af(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>Af(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&An(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){let n=T9.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Az,"Mod-Backspace":Az,Delete:Az,"Mod-Delete":Az}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[function({handleWidth:e=5,cellMinWidth:t=25,View:n=AM,lastColumnResizable:r=!0}={}){let o=new yC({key:AO,state:{init(e,r){var i,a;let s=null==(a=null==(i=o.spec)?void 0:i.props)?void 0:a.nodeViews,l=TX(r.schema).table.name;return n&&s&&(s[l]=(e,r)=>new n(e,t,r)),new AI(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=AO.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r,o){let i=AO.getState(e.state);if(i&&!i.dragging){let r=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),a=-1;if(r){let{left:o,right:i}=r.getBoundingClientRect();t.clientX-o<=n?a=AL(e,t,"left",n):i-t.clientX<=n&&(a=AL(e,t,"right",n))}if(a!=i.activeHandle){if(!o&&-1!==a){let t=e.state.doc.resolve(a),n=t.node(-1),r=TY.get(n),o=t.start(-1);if(r.colCount(t.pos-o)+t.nodeAfter.attrs.colspan-1==r.width-1)return}Aj(e,a)}}}(t,n,e,0,r)},mouseleave:e=>{!function(e){let t=AO.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&Aj(e,-1)}(e)},mousedown:(e,n)=>{!function(e,t,n){var r;let o=null!=(r=e.dom.ownerDocument.defaultView)?r:window,i=AO.getState(e.state);if(!i||-1==i.activeHandle||i.dragging)return;let a=e.state.doc.nodeAt(i.activeHandle),s=function(e,t,{colspan:n,colwidth:r}){let o=r&&r[r.length-1];if(o)return o;let i=e.domAtPos(t),a=i.node.childNodes[i.offset].offsetWidth,s=n;if(r)for(let e=0;e<n;e++)r[e]&&(a-=r[e],s--);return a/s}(e,i.activeHandle,a.attrs);function l(t){o.removeEventListener("mouseup",l),o.removeEventListener("mousemove",c);let r=AO.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){let r=e.state.doc.resolve(t),o=r.node(-1),i=TY.get(o),a=r.start(-1),s=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<i.height;e++){let t=e*i.width+s;if(e&&i.map[t]==i.map[t-i.width])continue;let r=i.map[t],c=o.nodeAt(r).attrs,u=1==c.colspan?0:s-i.colCount(r);if(c.colwidth&&c.colwidth[u]==n)continue;let d=c.colwidth?c.colwidth.slice():Array(c.colspan).fill(0);d[u]=n,l.setNodeMarkup(a+r,null,{...c,colwidth:d})}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,AR(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(AO,{setDragging:null})))}function c(t){if(!t.which)return l(t);let r=AO.getState(e.state);if(r&&r.dragging){let o=AR(r.dragging,t,n);!function(e,t,n,r){let o=e.state.doc.resolve(t),i=o.node(-1),a=o.start(-1),s=TY.get(i).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,l=e.domAtPos(o.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&AN(i,l.firstChild,l,r,s,n)}(e,r.activeHandle,o,n)}}e.dispatch(e.state.tr.setMeta(AO,{setDragging:{startX:t.clientX,startWidth:s}})),o.addEventListener("mouseup",l),o.addEventListener("mousemove",c),t.preventDefault()}(e,n,t)}},decorations:e=>{let t=AO.getState(e);if(t&&t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),o=r.node(-1);if(!o)return b$.empty;let i=TY.get(o),a=r.start(-1),s=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1;for(let e=0;e<i.height;e++){let t=s+e*i.width;if((s==i.width-1||i.map[t]!=i.map[t+1])&&(0==e||i.map[t]!=i.map[t-i.width])){let e=i.map[t],r=a+e+o.nodeAt(e).nodeSize-1,s=document.createElement("div");s.className="column-resize-handle",n.push(bH.widget(r,s))}}return b$.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],function({allowTableNodeSelection:e=!1}={}){return new yC({key:TQ,state:{init:()=>null,apply(e,t){let n=e.getMeta(TQ);if(null!=n)return -1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:o}=e.mapping.mapResult(t);return r?null:o}},props:{decorations:Ae,handleDOMEvents:{mousedown:AS},createSelectionBetween:e=>null!=TQ.getState(e.state)?e.state.selection:null,handleTripleClick:AC,handleKeyDown:Ay,handlePaste:Ak},appendTransaction:(t,n,r)=>(function(e,t,n){let r,o;let i=(t||e).selection,a=(t||e).doc;if(i instanceof yh&&(o=i.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)r=T9.create(a,i.from);else if("row"==o){let e=a.resolve(i.from+1);r=T9.rowSelection(e,e)}else if(!n){let e=TY.get(i.node),t=i.from+1,n=t+e.map[e.width*e.height-1];r=T9.create(a,t+1,n)}}else i instanceof yf&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,o=e.depth;for(;o>=0&&!(e.after(o+1)<e.end(o));o--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(o).type.spec.tableRole)}(i)?r=yf.create(a,i.from):i instanceof yf&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(i)&&(r=yf.create(a,i.$from.start(),i.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t})(r,An(r,n),e)})}({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:wz(wL(e,"tableRole",t))}}}),AH=xC.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",w_(this.options.HTMLAttributes,e),0]}}),AF=xC.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",w_(this.options.HTMLAttributes,e),0]}}),AV=xC.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",w_(this.options.HTMLAttributes,e),0]}}),A$=xM.extend({name:"hard_break"}),AU=xA.extend({addAttributes:()=>({indent:{default:null,renderHTML:e=>({style:"margin-left: ".concat(e.indent?3*e.indent:0,"em")})}})}),Aq=e=>({target:e.target,href:"file"===e.linktype?"/media/".concat(e.fieldvalue.id,"/").concat(e.fieldvalue.fileName):e.href,rel:function(e){if("external"===e)return"noopener noreferrer"}(e.linktype.name),download:"_download"===e.target&&("file"===e.linktype||"media"===e.linkType.name)?e.fieldvalue.fileName||"":void 0,"data-type":e.linktype.name||void 0,"data-variant":e["data-variant"]||e.variant||"default"}),AZ=xO.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),"data-twic-src":{default:""},height:{default:0},width:{default:0},linkAttributes:{default:{href:"",fieldvalue:"",variant:"default",target:"_self",linktype:{group:"general",name:"external"}}}}},parseHTML:()=>[{tag:"img[data-twic-src]"}],renderHTML(e){let{HTMLAttributes:t}=e,n=["img",{...t,"data-twic-src":"image:".concat(t.src)}];return t.linkAttributes.href?["a",{...Aq(t.linkAttributes),"aria-label":t.alt},n]:n}}),AW=C1.extend({addAttributes(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),fieldvalue:{default:""},linktype:{default:{group:"",name:""}},"data-variant":{default:""}}},renderHTML(e){let{HTMLAttributes:t}=e;return["a",Aq(t),0]}}),AJ=C2.extend({name:"list_item"});xT.configure({itemTypeName:"list_item"}),C5.configure({itemTypeName:"list_item"});let AG=C5.extend({name:"ordered_list"}),AK=xT.extend({name:"bullet_list"}),AY=Su.extend({name:"heading",addOptions(){var e;return{...null===(e=this.parent)||void 0===e?void 0:e.call(this),levels:[1,2,3,4,5,6]}},renderHTML(e){let{node:t}=e,n=S$()(t.textContent||"",{lower:!0});return["h".concat(t.attrs.level),{id:n},0]}});function AX(e,t){if(Array.isArray(e))return e.map(e=>AX(e,t));if(!e||"object"!=typeof e)return e;{let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=AX(e[r],t));return t(n)}}function AQ(e){let t=e.replace(/<p>\s*<\/p>/g,"");return t.match(/^(\s|<br\s*\/?>)*$/)?null:t}var A0=n(21093),A1=n(34406);let A2=()=>{let e=A1.env.IRIS_OAUTH_TOKEN_URL;if(!e)return"";let t=e.match(/https:\/\/login.microsoftonline.com\/([^/]+)\/oauth2\/v2.0\/token/);return t?t[1]:""},A4=e=>{let t={[eh.PRODUCTION]:"",[eh.SANDBOX]:"zandbak",[eh.DEVELOPMENT]:"ontwikkel"},n=A2(),r=t[e]+"/"+n;return r.startsWith("/")?r.slice(1):r};function A3(e){return{domain:"https://media.iris.databalk.app",path:A4(e||eh.DEVELOPMENT)}}var A5=n(61301);class A6 extends Error{constructor(e,t,n){super(e),this.info=t,this.status=n,Object.setPrototypeOf(this,A6.prototype)}}async function A8(e){let t=await fetch(e);if(!t.ok)throw new A6("An error occurred while fetching the data.",await t.json(),t.status);return t.json()}n(34406),n(529),n(15153),n(34406),n(34406);let A9=e=>{let t=(0,eO.useMemo)(()=>window.matchMedia(e),[e,!0]),[n,r]=(0,eO.useState)(t.matches);return(0,eO.useEffect)(()=>{let e=()=>r(t.matches);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},[t,!0]),n};var A7={guiOptions:{consentModal:{layout:"box",position:"bottom left",equalWeightButtons:!1,flipButtons:!1},preferencesModal:{layout:"box",position:"left",equalWeightButtons:!0,flipButtons:!1}},categories:{necessary:{readOnly:!0,enabled:!0},preferences:{enabled:!0},analytics:{autoClear:{cookies:[{name:/^(_ga|_gid|_clck|_clsk|CLID|ANONCHK|MR|MUID|SM)/}],reloadPage:!0}},marketing:{enabled:!1}},language:{default:"nl",translations:{nl:{consentModal:{label:"Cookie toestemming",title:"Deze website maakt gebruik van cookies",description:"We gebruiken cookies om content en advertenties te personaliseren, om functies voor social media te bieden en om ons websiteverkeer te analyseren. Ook delen we informatie over je gebruik van onze site met onze partners voor social media, adverteren en analyse. Deze partners kunnen deze gegevens combineren met andere informatie die je aan ze hebt verstrekt of die ze hebben verzameld op basis van je gebruik van hun services.",acceptAllBtn:"Alles accepteren",acceptNecessaryBtn:"Alles weigeren",showPreferencesBtn:"Voorkeuren beheren",footer:'<a href="/privacybeleid">Privacybeleid</a>'},preferencesModal:{title:"Cookie voorkeuren",acceptAllBtn:"Alles accepteren",acceptNecessaryBtn:"Alles weigeren",savePreferencesBtn:"Voorkeuren opslaan",closeIconLabel:"Sluit venster",serviceCounterLabel:"Dienst|Diensten",sections:[{title:'Noodzakelijk <span class="pm__badge">Altijd Ingeschakeld</span>',description:"Noodzakelijke cookies helpen een website bruikbaarder te maken, door basisfuncties als paginanavigatie en toegang tot beveiligde gedeelten van de website mogelijk te maken. Zonder deze cookies kan de website niet naar behoren werken.",linkedCategory:"necessary"},{title:"Voorkeuren",description:"Voorkeurscookies zorgen ervoor dat een website informatie kan onthouden die van invloed is op het gedrag en de vormgeving van de website, zoals de taal van jouw voorkeur of de regio waar je woont.",linkedCategory:"preferences"},{title:"Statistieken",description:"Statistische cookies helpen eigenaren van websites begrijpen hoe bezoekers hun website gebruiken, door anoniem gegevens te verzamelen en te rapporteren.",linkedCategory:"analytics"},{title:"Marketing/Media",description:"Marketingcookies worden gebruikt om bezoekers te volgen wanneer ze verschillende websites bezoeken. Hun doel is advertenties weergeven die zijn toegesneden op en relevant zijn voor de individuele gebruiker. Deze advertenties worden zo waardevoller voor uitgevers en externe adverteerders. Met deze instelling bepaal je of je onder andere ingesloten video's wilt kunnen bekijken.",linkedCategory:"marketing"},{title:"Meer informatie",description:'Bekijk de <a href="/privacybeleid">privacybeleid</a> voor meer informatie over hoe we cookies gebruiken.'}]}}}}},Me=e=>{let{identifier:t,internalCookieConsent:n}=e,[r,o]=(0,eO.useState)(!1),i=(0,eI.useRouter)();return((0,eO.useEffect)(()=>{if(r)return;let e=e=>{window.gtag.pageview(e)};return i.events.on("routeChangeComplete",e),o(!0),()=>{i.events.off("routeChangeComplete",e)}},[r,i.events]),r)?(0,eA.jsxs)(eA.Fragment,{children:[(0,eA.jsx)(eN(),{strategy:"afterInteractive",type:"text/plain","data-category":"analytics","data-cookieconsent":"analytics",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)}),(0,eA.jsx)(eN(),{id:"gtag-config",type:"text/plain","data-category":"analytics","data-cookieconsent":"analytics",strategy:"afterInteractive",children:"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('consent', 'default', {\n'ad_storage': 'denied',\n'ad_user_data': 'denied',\n'ad_personalization': 'denied',\n'analytics_storage': 'granted'\n});\ngtag('js', new Date());\ngtag('config', '".concat(t,"', {\npage_path: window.location.pathname,\n});")}),(0,eA.jsx)(eN(),{id:"google-analytics-on-consent-script-tag",strategy:"afterInteractive",children:"window.addEventListener('cc:onChange', ({ detail }) => {\n            if (typeof gtag !== 'function') {\n              // Google Analytics not loaded yet\n              return;\n            }\n\n            const enabledMarketing = detail.cookie.categories.includes('marketing');\n\n            gtag('consent', 'update', {\n              'ad_storage': enabledMarketing ? 'granted' : 'denied',\n              'ad_personalization': enabledMarketing ? 'granted' : 'denied',\n              'ad_storage': enabledMarketing ? 'granted' : 'denied',\n            });\n          });"})]}):null},Mt=e=>{let{identifier:t}=e;return(0,eA.jsxs)(eA.Fragment,{children:[(0,eA.jsx)(eN(),{id:"gtm-conig",type:"text/plain",strategy:"afterInteractive","data-category":"analytics","data-cookieconsent":"analytics",children:"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('consent', 'default', {\n'ad_storage': 'denied',\n'ad_user_data': 'denied',\n'ad_personalization': 'denied',\n'analytics_storage': 'granted'\n});\n(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','".concat(t,"');")}),(0,eA.jsx)(eN(),{id:"google-tag-manager-on-consent-script-tag",strategy:"afterInteractive",children:"window.addEventListener('cc:onChange', ({ detail }) => {\n            if (typeof gtag !== 'function') {\n              // Google Analytics not loaded yet\n              return;\n            }\n\n            const enabledMarketing = detail.cookie.categories.includes('marketing');\n\n            gtag('consent', 'update', {\n              'ad_storage': enabledMarketing ? 'granted' : 'denied',\n              'ad_personalization': enabledMarketing ? 'granted' : 'denied',\n              'ad_storage': enabledMarketing ? 'granted' : 'denied',\n            });\n          });"})]})},Mn=function(e){let{identifier:t}=e;return(0,eA.jsx)(eA.Fragment,{children:(0,eA.jsx)(eN(),{id:"clarity-script-tag",type:"text/plain",strategy:"afterInteractive","data-category":"analytics","data-cookieconsent":"analytics",children:'(function(c,l,a,r,i,t,y){\nc[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\nt=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\ny=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n})(window, document, "clarity", "script", "'.concat(t,'");')})})},Mr=function(e){let{provider:t,identifier:n}=e;if(void 0===n||void 0===t)return console.warn("[Analytics] No Provider/API key provided"),null;switch(t){case"google-analytics":return(0,eA.jsx)(Me,{identifier:n});case"google-tag-manager":return(0,eA.jsx)(Mt,{identifier:n});case"microsoft-clarity":return(0,eA.jsx)(Mn,{identifier:n});default:return console.warn("[Analytics] Invalid provider"),null}},Mo=function(e){let{cbid:t=null}=e;return t&&(0,eA.jsx)(eA.Fragment,{children:(0,eA.jsx)(eN(),{id:"Cookiebot",src:"https://consent.cookiebot.com/uc.js","data-cbid":t,"data-blockingmode":"auto",type:"text/javascript"})})},Mi=n(23848),Ma=n(97729),Ms=n.n(Ma),Ml=n(92521),Mc=n.n(Ml),Mu=(0,eO.createContext)(void 0),Md=e=>{let{liveChatAppID:t=null,liveChatOrgID:n=null,liveChatOrgURL:r=null}=e;return t&&n&&r&&(0,eA.jsx)(eN(),{id:"Microsoft_Omnichannel_LCWidget",src:"https://oc-cdn-public-eur.azureedge.net/livechatwidget/scripts/LiveChatBootstrapper.js","data-app-id":t,"data-lcw-version":"prod","data-org-id":n,"data-org-url":r})};let Mf=["http://localhost:4200/","https://beheer.iris-ontwikkel.databalk.app/","https://beheer.iris-zandbak.databalk.app/","https://beheer.iris.databalk.app/"],Mp="opt-in",Mh="opt-out",Mm="show--consent",Mg="show--preferences",Mv="disable--interaction",My="data-category",Mb="button",Mw="aria-hidden",Mx="btn-group",MC="click",Mk="data-role",MS="consentModal",ME="preferencesModal";class MT{constructor(){this.t={mode:Mp,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}}let MA=new MT,MM=(e,t)=>e.indexOf(t),MN=(e,t)=>-1!==MM(e,t),MO=e=>Array.isArray(e),MI=e=>"string"==typeof e,ML=e=>!!e&&"object"==typeof e&&!MO(e),MR=e=>"function"==typeof e,Mj=e=>Object.keys(e),MP=e=>Array.from(new Set(e)),M_=()=>document.activeElement,MD=e=>e.preventDefault(),Mz=(e,t)=>e.querySelectorAll(t),MB=e=>{let t=document.createElement(e);return e===Mb&&(t.type=e),t},MH=(e,t,n)=>e.setAttribute(t,n),MF=(e,t,n)=>{e.removeAttribute(n?"data-"+t:t)},MV=(e,t,n)=>e.getAttribute(n?"data-"+t:t),M$=(e,t)=>e.appendChild(t),MU=(e,t)=>e.classList.add(t),Mq=(e,t)=>MU(e,"cm__"+t),MZ=(e,t)=>MU(e,"pm__"+t),MW=(e,t)=>e.classList.remove(t),MJ=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let n in e){let r=e[n];t[n]=MJ(r)}return t},MG=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),MK=(e,t,n,r)=>{e.addEventListener(t,n),r&&MA.o.m.push({pe:e,me:t,ge:n})},MY=()=>{let e=MA.t.cookie.expiresAfterDays;return MR(e)?e(MA.o.F):e},MX=(e,t)=>{let n=e||[],r=t||[];return n.filter(e=>!MN(r,e)).concat(r.filter(e=>!MN(n,e)))},MQ=e=>{MA.o.R=MP(e),MA.o.F=(()=>{let e="custom",{R:t,O:n,B:r}=MA.o,o=t.length;return o===n.length?e="all":o===r.length&&(e="necessary"),e})()},M0=(e,t,n,r)=>{let o="accept-",{show:i,showPreferences:a,hide:s,hidePreferences:l,acceptCategory:c}=t,u=e||document,d=e=>Mz(u,`[data-cc="${e}"]`),f=(e,t)=>{MD(e),c(t),l(),s()},p=d("show-preferencesModal"),h=d("show-consentModal"),m=d(o+"all"),g=d(o+"necessary"),v=d(o+"custom"),y=MA.t.lazyHtmlGeneration;for(let e of p)MH(e,"aria-haspopup","dialog"),MK(e,MC,e=>{MD(e),a()}),y&&(MK(e,"mouseenter",e=>{MD(e),MA.o.N||n(t,r)},!0),MK(e,"focus",()=>{MA.o.N||n(t,r)}));for(let e of h)MH(e,"aria-haspopup","dialog"),MK(e,MC,e=>{MD(e),i(!0)},!0);for(let e of m)MK(e,MC,e=>{f(e,"all")},!0);for(let e of v)MK(e,MC,e=>{f(e)},!0);for(let e of g)MK(e,MC,e=>{f(e,[])},!0)},M1=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},M2=(e,t)=>{let n=r=>{r.target.removeEventListener("transitionend",n),"opacity"===r.propertyName&&"1"===getComputedStyle(e).opacity&&M1(1===t?MA.ne.be:MA.ne.ve)};MK(e,"transitionend",n)},M4=e=>{clearTimeout(r),e?MU(MA.ne.ye,Mv):r=setTimeout(()=>{MW(MA.ne.ye,Mv)},500)},M3=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],M5=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${M3[e]}"/></svg>`,M6=e=>{let t=MA.ne,n=MA.o;(e=>{let r=e===t.he;MK(n.i.disablePageInteraction?t.ye:r?t.Ce:t.ye,"keydown",t=>{if("Tab"!==t.key||!(r?n.k&&!n.A:n.A))return;let o=M_(),i=r?n.q:n.K;0!==i.length&&(t.shiftKey?o!==i[0]&&e.contains(o)||(MD(t),M1(i[1])):o!==i[1]&&e.contains(o)||(MD(t),M1(i[0])))},!0)})(e)},M8=["[href]",Mb,"input","details","[tabindex]"].map(e=>e+':not([tabindex="-1"])').join(","),M9=e=>{let{o:t,ne:n}=MA,r=(e,t)=>{let n=Mz(e,M8);t[0]=n[0],t[1]=n[n.length-1]};1===e&&t.T&&r(n.he,t.q),2===e&&t.N&&r(n.we,t.K)},M7=(e,t,n)=>{let{de:r,le:o,ie:i,_e:a,ue:s,fe:l}=MA.ce,c=MA.re;if(t){let r={modalName:t};return e===c.fe?MR(l)&&l(r):e===c._e?MR(a)&&a(r):(r.modal=n,MR(s)&&s(r)),MG(e,r)}let u={cookie:MA.o.p};e===c.ie?MR(i)&&i(MJ(u)):e===c.le?MR(o)&&o(MJ(u)):(u.changedCategories=MA.o.L,u.changedServices=MA.o.ee,MR(r)&&r(MJ(u))),MG(e,MJ(u))},Ne=(e,t)=>{try{return e()}catch(e){return t||console.warn("CookieConsent:",e),!1}},Nt=e=>{let{Y:t,ee:n,O:r,X:o,oe:i,p:a,L:s}=MA.o;for(let e of r)for(let r of n[e]||t[e]||[]){let n=o[e][r];if(!n)continue;let{onAccept:i,onReject:a}=n;!n.Se&&MN(t[e],r)?(n.Se=!0,MR(i)&&i()):n.Se&&!MN(t[e],r)&&(n.Se=!1,MR(a)&&a())}if(!MA.t.manageScriptTags)return;let l=e||a.categories||[],c=(e,r)=>{if(r>=e.length)return;let o=i[r];if(o.xe)return c(e,r+1);let a=o.Me,u=o.De,d=o.Te,f=MN(l,u),p=!!d&&MN(t[u],d);if(!d&&!o.ke&&f||!d&&o.ke&&!f&&MN(s,u)||d&&!o.ke&&p||d&&o.ke&&!p&&MN(n[u]||[],d)){o.xe=!0;let t=MV(a,"type",!0);MF(a,"type",!!t),MF(a,My);let n=MV(a,"src",!0);n&&MF(a,"src",!0);let i=MB("script");for(let{nodeName:e}of(i.textContent=a.innerHTML,a.attributes))MH(i,e,a[e]||MV(a,e));t&&(i.type=t),n?i.src=n:n=a.src;let s=!!n&&(!t||["text/javascript","module"].includes(t));if(s&&(i.onload=i.onerror=()=>{c(e,++r)}),a.replaceWith(i),s)return}c(e,++r)};c(i,0)},Nn="bottom",Nr="left",No="center",Ni="right",Na="inline",Ns="wide",Nl="pm--",Nc=["middle","top",Nn],Nu=[Nr,No,Ni],Nd={box:{Ee:[Ns,Na],Ae:Nc,Ne:Nu,He:Nn,Ve:Ni},cloud:{Ee:[Na],Ae:Nc,Ne:Nu,He:Nn,Ve:No},bar:{Ee:[Na],Ae:Nc.slice(1),Ne:[],He:Nn,Ve:""}},Nf={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[Ns],Ae:[],Ne:[Nr,Ni],He:"",Ve:Nr}},Np=e=>{let t=MA.o.i.guiOptions,n=t&&t.consentModal,r=t&&t.preferencesModal;0===e&&Nh(MA.ne.he,Nd,n,"cm--","box","cm"),1===e&&Nh(MA.ne.we,Nf,r,Nl,"box","pm")},Nh=(e,t,n,r,o,i)=>{e.className=i;let a=n&&n.layout,s=n&&n.position,l=n&&n.flipButtons,c=!n||!1!==n.equalWeightButtons,u=a&&a.split(" ")||[],d=u[0],f=u[1],p=d in t?d:o,h=t[p],m=MN(h.Ee,f)&&f,g=s&&s.split(" ")||[],v=g[0],y=r===Nl?g[0]:g[1],b=MN(h.Ae,v)?v:h.He,w=MN(h.Ne,y)?y:h.Ve,x=t=>{t&&MU(e,r+t)};x(p),x(m),x(b),x(w),l&&x("flip");let C=i+"__btn--secondary";if("cm"===i){let{Ie:e,Le:t}=MA.ne;e&&(c?MW(e,C):MU(e,C)),t&&(c?MW(t,C):MU(t,C))}else{let{je:e}=MA.ne;e&&(c?MW(e,C):MU(e,C))}},Nm=(e,t)=>{let n;let r=MA.o,o=MA.ne,{hide:i,hidePreferences:a,acceptCategory:s}=e,l=e=>{s(e),a(),i()},c=r.u&&r.u.preferencesModal;if(!c)return;let u=c.title,d=c.closeIconLabel,f=c.acceptAllBtn,p=c.acceptNecessaryBtn,h=c.savePreferencesBtn,m=c.sections||[],g=f||p||h;if(o.Fe)o.Pe=MB("div"),MZ(o.Pe,"body");else{o.Fe=MB("div"),MU(o.Fe,"pm-wrapper");let e=MB("div");MU(e,"pm-overlay"),M$(o.Fe,e),MK(e,MC,a),o.we=MB("div"),MU(o.we,"pm"),MH(o.we,"role","dialog"),MH(o.we,Mw,!0),MH(o.we,"aria-modal",!0),MH(o.we,"aria-labelledby","pm__title"),MK(o.ye,"keydown",e=>{27===e.keyCode&&a()},!0),o.Oe=MB("div"),MZ(o.Oe,"header"),o.Re=MB("h2"),MZ(o.Re,"title"),o.Re.id="pm__title",o.Be=MB(Mb),MZ(o.Be,"close-btn"),MH(o.Be,"aria-label",c.closeIconLabel||""),MK(o.Be,MC,a),o.Ge=MB("span"),o.Ge.innerHTML=M5(),M$(o.Be,o.Ge),o.Je=MB("div"),MZ(o.Je,"body"),o.Ue=MB("div"),MZ(o.Ue,"footer"),MU(MB("div"),"btns");var v=MB("div"),y=MB("div");MZ(v,Mx),MZ(y,Mx),M$(o.Ue,v),M$(o.Ue,y),M$(o.Oe,o.Re),M$(o.Oe,o.Be),o.ve=MB("div"),MH(o.ve,"tabIndex",-1),M$(o.we,o.ve),M$(o.we,o.Oe),M$(o.we,o.Je),g&&M$(o.we,o.Ue),M$(o.Fe,o.we)}u&&(o.Re.innerHTML=u,d&&MH(o.Be,"aria-label",d)),m.forEach((e,t)=>{let i=e.title,a=e.description,s=e.linkedCategory,l=s&&r.P[s],u=e.cookieTable,d=u&&u.body,f=u&&u.caption,p=d&&d.length>0,h=!!l,m=h&&r.X[s],g=ML(m)&&Mj(m)||[],v=h&&(!!a||!!p||Mj(m).length>0);var y,b,w=MB("div");if(MZ(w,"section"),v||a){var x=MB("div");MZ(x,"section-desc-wrapper")}let C=g.length;if(v&&C>0){let e=MB("div");for(let t of(MZ(e,"section-services"),g)){let n=m[t],r=n&&n.label||t,o=MB("div"),i=MB("div"),a=MB("div"),c=MB("div");MZ(o,"service"),MZ(c,"service-title"),MZ(i,"service-header"),MZ(a,"service-icon");let u=Ng(r,t,l,!0,s);c.innerHTML=r,M$(i,a),M$(i,c),M$(o,i),M$(o,u),M$(e,o)}M$(x,e)}if(i){var k=MB("div"),S=MB(h?Mb:"div");if(MZ(k,"section-title-wrapper"),MZ(S,"section-title"),S.innerHTML=i,M$(k,S),h){let e=MB("span");e.innerHTML=M5(2,3.5),MZ(e,"section-arrow"),M$(k,e),w.className+="--toggle";let t=Ng(i,s,l),n=c.serviceCounterLabel;if(C>0&&MI(n)){let e=MB("span");MZ(e,"badge"),MZ(e,"service-counter"),MH(e,Mw,!0),MH(e,"data-servicecounter",C),n&&MH(e,"data-counterlabel",n=(n=n.split("|")).length>1&&C>1?n[1]:n[0]),e.innerHTML=C+(n?" "+n:""),M$(S,e)}if(v){MZ(w,"section--expandable");var E=s+"-desc";MH(S,"aria-expanded",!1),MH(S,"aria-controls",E)}M$(k,t)}else MH(S,"role","heading"),MH(S,"aria-level","3");M$(w,k)}if(a){var T=MB("p");MZ(T,"section-desc"),T.innerHTML=a,M$(x,T)}if(v&&(MH(x,Mw,"true"),x.id=E,y=x,b=S,MK(S,MC,()=>{w.classList.contains("is-expanded")?(MW(w,"is-expanded"),MH(b,"aria-expanded","false"),MH(y,Mw,"true")):(MU(w,"is-expanded"),MH(b,"aria-expanded","true"),MH(y,Mw,"false"))}),p)){let e=MB("table"),n=MB("thead"),r=MB("tbody");if(f){let t=MB("caption");MZ(t,"table-caption"),t.innerHTML=f,e.appendChild(t)}MZ(e,"section-table"),MZ(n,"table-head"),MZ(r,"table-body");let i=u.headers,a=Mj(i),s=o.$e.createDocumentFragment(),l=MB("tr");for(let e of a){let n=i[e],r=MB("th");r.id="cc__row-"+n+t,MH(r,"scope","col"),MZ(r,"table-th"),r.innerHTML=n,M$(s,r)}M$(l,s),M$(n,l);let c=o.$e.createDocumentFragment();for(let e of d){let n=MB("tr");for(let r of(MZ(n,"table-tr"),a)){let o=i[r],a=e[r],s=MB("td"),l=MB("div");MZ(s,"table-td"),MH(s,"data-column",o),MH(s,"headers","cc__row-"+o+t),l.insertAdjacentHTML("beforeend",a),M$(s,l),M$(n,s)}M$(c,n)}M$(r,c),M$(e,n),M$(e,r),M$(x,e)}(v||a)&&M$(w,x);let A=o.Pe||o.Je;h?(n||MZ(n=MB("div"),"section-toggles"),n.appendChild(w)):n=null,M$(A,n||w)}),f&&(o.ze||(o.ze=MB(Mb),MZ(o.ze,"btn"),MH(o.ze,Mk,"all"),M$(v,o.ze),MK(o.ze,MC,()=>l("all"))),o.ze.innerHTML=f),p&&(o.je||(o.je=MB(Mb),MZ(o.je,"btn"),MH(o.je,Mk,"necessary"),M$(v,o.je),MK(o.je,MC,()=>l([]))),o.je.innerHTML=p),h&&(o.qe||(o.qe=MB(Mb),MZ(o.qe,"btn"),MZ(o.qe,"btn--secondary"),MH(o.qe,Mk,"save"),M$(y,o.qe),MK(o.qe,MC,()=>l())),o.qe.innerHTML=h),o.Pe&&(o.we.replaceChild(o.Pe,o.Je),o.Je=o.Pe),Np(1),r.N||(r.N=!0,M7(MA.re.ue,ME,o.we),t(e),M$(o.Ce,o.Fe),M6(o.we),setTimeout(()=>MU(o.Fe,"cc--anim"),100)),M9(2)};function Ng(e,t,n,r,o){let i=MA.o,a=MA.ne,s=MB("label"),l=MB("input"),c=MB("span"),u=MB("span"),d=MB("span"),f=MB("span"),p=MB("span");if(f.innerHTML=M5(1,3),p.innerHTML=M5(0,3),l.type="checkbox",MU(s,"section__toggle-wrapper"),MU(l,"section__toggle"),MU(f,"toggle__icon-on"),MU(p,"toggle__icon-off"),MU(c,"toggle__icon"),MU(u,"toggle__icon-circle"),MU(d,"toggle__label"),MH(c,Mw,"true"),r?(MU(s,"toggle-service"),MH(l,My,o),a.se[o][t]=l):a.ae[t]=l,r?MK(l,"change",()=>{let e=a.se[o],t=a.ae[o];for(let t in i.Z[o]=[],e){let n=e[t];n.checked&&i.Z[o].push(n.value)}t.checked=i.Z[o].length>0}):MK(l,MC,()=>{let e=a.se[t],n=l.checked;for(let r in i.Z[t]=[],e)e[r].checked=n,n&&i.Z[t].push(r)}),l.value=t,d.textContent=e.replace(/<.*>.*<\/.*>/gm,""),M$(u,p),M$(u,f),M$(c,u),i.D)(n.readOnly||n.enabled)&&(l.checked=!0);else if(r){let e=i.Y[o];l.checked=n.readOnly||MN(e,t)}else MN(i.R,t)&&(l.checked=!0);return n.readOnly&&(l.disabled=!0),M$(s,l),M$(s,c),M$(s,d),s}let Nv=()=>{let e=MB("span");return MA.ne.Ke||(MA.ne.Ke=e),e},Ny=(e,t)=>{let n=MA.o,r=MA.ne,{hide:o,showPreferences:i,acceptCategory:a}=e,s=n.u&&n.u.consentModal;if(!s)return;let l=s.acceptAllBtn,c=s.acceptNecessaryBtn,u=s.showPreferencesBtn,d=s.closeIconLabel,f=s.footer,p=s.label,h=s.title,m=e=>{o(),a(e)};if(!r.Qe){r.Qe=MB("div"),r.he=MB("div"),r.We=MB("div"),r.Xe=MB("div"),r.Ye=MB("div"),MU(r.Qe,"cm-wrapper"),MU(r.he,"cm"),Mq(r.We,"body"),Mq(r.Xe,"texts"),Mq(r.Ye,"btns"),MH(r.he,"role","dialog"),MH(r.he,"aria-modal","true"),MH(r.he,Mw,"false"),MH(r.he,"aria-describedby","cm__desc"),p?MH(r.he,"aria-label",p):h&&MH(r.he,"aria-labelledby","cm__title");let e=n.i.guiOptions,t=e&&e.consentModal,o="box"===(t&&t.layout||"box").split(" ")[0];h&&d&&o&&(r.Le||(r.Le=MB(Mb),r.Le.innerHTML=M5(),Mq(r.Le,"btn"),Mq(r.Le,"btn--close"),MK(r.Le,MC,()=>{m([])}),M$(r.We,r.Le)),MH(r.Le,"aria-label",d)),M$(r.We,r.Xe),(l||c||u)&&M$(r.We,r.Ye),r.be=MB("div"),MH(r.be,"tabIndex",-1),M$(r.he,r.be),M$(r.he,r.We),M$(r.Qe,r.he)}h&&(r.Ze||(r.Ze=MB("h2"),r.Ze.className=r.Ze.id="cm__title",M$(r.Xe,r.Ze)),r.Ze.innerHTML=h);let g=s.description;if(g&&(n.V&&(g=g.replace("{{revisionMessage}}",n.I?"":s.revisionMessage||"")),r.et||(r.et=MB("p"),r.et.className=r.et.id="cm__desc",M$(r.Xe,r.et)),r.et.innerHTML=g),l&&(r.tt||(r.tt=MB(Mb),M$(r.tt,Nv()),Mq(r.tt,"btn"),MH(r.tt,Mk,"all"),MK(r.tt,MC,()=>{m("all")})),r.tt.firstElementChild.innerHTML=l),c&&(r.Ie||(r.Ie=MB(Mb),M$(r.Ie,Nv()),Mq(r.Ie,"btn"),MH(r.Ie,Mk,"necessary"),MK(r.Ie,MC,()=>{m([])})),r.Ie.firstElementChild.innerHTML=c),u&&(r.ot||(r.ot=MB(Mb),M$(r.ot,Nv()),Mq(r.ot,"btn"),Mq(r.ot,"btn--secondary"),MH(r.ot,Mk,"show"),MK(r.ot,"mouseenter",()=>{n.N||Nm(e,t)}),MK(r.ot,MC,i)),r.ot.firstElementChild.innerHTML=u),r.nt||(r.nt=MB("div"),Mq(r.nt,Mx),l&&M$(r.nt,r.tt),c&&M$(r.nt,r.Ie),(l||c)&&M$(r.We,r.nt),M$(r.Ye,r.nt)),r.ot&&!r.st&&(r.st=MB("div"),r.Ie&&r.tt?(Mq(r.st,Mx),M$(r.st,r.ot),M$(r.Ye,r.st)):(M$(r.nt,r.ot),Mq(r.nt,Mx+"--uneven"))),f){if(!r.ct){let e=MB("div"),t=MB("div");r.ct=MB("div"),Mq(e,"footer"),Mq(t,"links"),Mq(r.ct,"link-group"),M$(t,r.ct),M$(e,t),M$(r.he,e)}r.ct.innerHTML=f}Np(0),n.T||(n.T=!0,M7(MA.re.ue,MS,r.he),t(e),M$(r.Ce,r.Qe),M6(r.he),setTimeout(()=>MU(r.Qe,"cc--anim"),100)),M9(1),M0(r.We,e,Nm,t)},Nb=e=>{if(!MI(e))return null;if(e in MA.o._)return e;let t=e.slice(0,2);return t in MA.o._?t:null},Nw=()=>MA.o.l||MA.o.i.language.default,Nx=e=>{e&&(MA.o.l=e)},NC=async e=>{let t=MA.o,n=Nb(e)?e:Nw(),r=t._[n];return MI(r)?r=await (async e=>{try{let t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(r):MR(r)&&(r=await r()),!!r&&(t.u=r,Nx(n),!0)},Nk=()=>{let e=MA.o.i.language.rtl,t=MA.ne.Ce;e&&t&&(MO(e)||(e=[e]),MN(e,MA.o.l)?MU(t,"cc--rtl"):MW(t,"cc--rtl"))},NS=()=>{let e=MA.ne;if(e.Ce)return;e.Ce=MB("div"),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),Nk();let t=MA.o.i.root;t&&MI(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},NE=e=>Ne(()=>localStorage.removeItem(e)),NT=(e,t)=>{if(t instanceof RegExp)return e.filter(e=>t.test(e));{let n=MM(e,t);return n>-1?[e[n]]:[]}},NA=e=>{let{hostname:t,protocol:n}=location,{name:r,path:o,domain:i,sameSite:a,useLocalStorage:s}=MA.t.cookie,l=e?(()=>{let e=MA.o.S,t=e?new Date-e:0;return 864e5*MY()-t})():864e5*MY(),c=new Date;c.setTime(c.getTime()+l),MA.o.p.expirationTime=c.getTime();let u=JSON.stringify(MA.o.p),d=r+"="+encodeURIComponent(u)+(0!==l?"; expires="+c.toUTCString():"")+"; Path="+o+"; SameSite="+a;MN(t,".")&&(d+="; Domain="+i),"https:"===n&&(d+="; Secure"),s?Ne(()=>localStorage.setItem(r,u)):document.cookie=d,MA.o.p},NM=(e,t,n)=>{if(0===e.length)return;let r=n||MA.t.cookie.domain,o=t||MA.t.cookie.path,i="www."===r.slice(0,4),a=i&&r.substring(4),s=(e,t)=>{document.cookie=e+"=; path="+o+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(let t of e)s(t),s(t,r),i&&s(t,a)},NN=e=>{var t;let n=e||MA.t.cookie.name,r=MA.t.cookie.useLocalStorage;return t=r?Ne(()=>localStorage.getItem(n))||"":NO(n,!0),Ne(()=>JSON.parse(r?t:decodeURIComponent(t)),!0)||{}},NO=(e,t)=>{let n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?t?n.pop():e:""},NI=e=>{let t=document.cookie.split(/;\s*/),n=[];for(let r of t){let t=r.split("=")[0];e?Ne(()=>{e.test(t)&&n.push(t)}):n.push(t)}return n},NL=e=>MN(MA.o.D?[]:MA.o.R,e),NR=(e,t)=>MN(MA.o.D?[]:MA.o.Y[t]||[],e),Nj=e=>{let{ne:t,o:n}=MA;if(!n.k){if(!n.T){if(!e)return;Ny(N_,NS)}n.k=!0,n.U=M_(),n.v&&M4(!0),M2(t.he,1),MU(t.ye,Mm),MH(t.he,Mw,"false"),setTimeout(()=>{M1(MA.ne.be)},100),M7(MA.re.fe,MS)}},NP=()=>{let e=MA.o;e.A||(e.N||Nm(N_,NS),e.A=!0,e.k?e.$=M_():e.U=M_(),M2(MA.ne.we,2),MU(MA.ne.ye,Mg),MH(MA.ne.we,Mw,"false"),setTimeout(()=>{M1(MA.ne.ve)},100),M7(MA.re.fe,ME))};var N_={show:Nj,hide:()=>{let{ne:e,o:t,re:n}=MA;t.k&&(t.k=!1,t.v&&M4(),M1(e.Ke,!0),MW(e.ye,Mm),MH(e.he,Mw,"true"),M1(t.U),t.U=null,M7(n._e,MS))},showPreferences:NP,hidePreferences:()=>{let e=MA.o;e.A&&(e.A=!1,(()=>{let e=ND(),t=MA.o.P,n=MA.ne.ae,r=MA.ne.se,o=e=>MN(MA.o.G,e);for(let i in n){let a=!!t[i].readOnly;for(let t in n[i].checked=a||(e?NL(i):o(i)),r[i])r[i][t].checked=a||(e?NR(t,i):o(i))}})(),M1(MA.ne.Ge,!0),MW(MA.ne.ye,Mg),MH(MA.ne.we,Mw,"true"),e.k?(M1(e.$),e.$=null):(M1(e.U),e.U=null),M7(MA.re._e,ME))},acceptCategory:(e,t=[])=>{((e,t)=>{let{O:n,R:r,B:o,N:i,Z:a,G:s,X:l}=MA.o,c=[];if(e)for(let t of(MO(e)?c.push(...e):MI(e)&&(c="all"===e?n:[e]),n))a[t]=MN(c,t)?Mj(l[t]):[];else c=[...r,...s],i&&(c=(()=>{let e=MA.ne.ae;if(!e)return[];let t=[];for(let n in e)e[n].checked&&t.push(n);return t})());(c=c.filter(e=>!MN(n,e)||!MN(t,e))).push(...o),MQ(c)})(e,t),(e=>{let t=MA.o,{Z:n,B:r,Y:o,X:i,O:a}=t;for(let e of(t.te=MJ(o),a)){let a=Mj(i[e]),s=n[e]&&n[e].length>0,l=MN(r,e);if(0!==a.length){if(o[e]=[],l)o[e].push(...a);else if(s){let t=n[e];o[e].push(...t)}else o[e]=t.Z[e];o[e]=MP(o[e])}}})(),(()=>{let e=MA.o;e.L=MA.t.mode===Mh&&e.D?MX(e.G,e.R):MX(e.R,e.p.categories);let t=e.L.length>0,n=!1;for(let t of e.O)e.ee[t]=MX(e.Y[t],e.te[t]),e.ee[t].length>0&&(n=!0);let r=MA.ne.ae;for(let t in r)r[t].checked=MN(e.R,t);for(let t of e.O){let n=MA.ne.se[t],r=e.Y[t];for(let e in n)n[e].checked=MN(r,e)}e.C||(e.C=new Date),e.M||(e.M="10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))),e.p={categories:MJ(e.R),revision:MA.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:MJ(e.Y)};let o=!1,i=t||n;(e.D||i)&&(e.D&&(e.D=!1,o=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),NA(),MA.t.autoClearCookies&&(o||i)&&(e=>{let t=MA.o,n=NI(),r=(e=>{let t=MA.o;return(e?t.O:t.L).filter(e=>{let n=t.P[e];return!!n&&!n.readOnly&&!!n.autoClear})})(e);for(let e in t.ee)for(let r of t.ee[e]){let o=t.X[e][r].cookies;if(!MN(t.Y[e],r)&&o)for(let e of o)NM(NT(n,e.name),e.path,e.domain)}for(let o of r){let r=t.P[o].autoClear,i=r&&r.cookies||[],a=MN(t.L,o),s=!MN(t.R,o),l=a&&s;if(e?s:l)for(let e of(r.reloadPage&&l&&(t.j=!0),i))NM(NT(n,e.name),e.path,e.domain)}})(o),Nt()),o&&(M7(MA.re.ie),M7(MA.re.le),MA.t.mode===Mp)||(i&&M7(MA.re.de),e.j&&(e.j=!1,location.reload()))})()}};let ND=()=>!MA.o.D,Nz=async e=>{let{o:t,t:n,re:r}=MA,o=window;if(!o._ccRun){if(o._ccRun=!0,(e=>{let{ne:t,t:n,o:r}=MA,{cookie:o}=n,i=MA.ce,a=e.cookie,s=e.categories,l=Mj(s)||[],c=navigator,u=document;t.$e=u,t.ye=u.documentElement,o.domain=location.hostname,r.i=e,r.P=s,r.O=l,r._=e.language.translations,r.v=!!e.disablePageInteraction,i.ie=e.onFirstConsent,i.le=e.onConsent,i.de=e.onChange,i._e=e.onModalHide,i.fe=e.onModalShow,i.ue=e.onModalReady;let{mode:d,autoShow:f,lazyHtmlGeneration:p,autoClearCookies:h,revision:m,manageScriptTags:g,hideFromBots:v}=e;d===Mh&&(n.mode=d),"boolean"==typeof h&&(n.autoClearCookies=h),"boolean"==typeof g&&(n.manageScriptTags=g),"number"==typeof m&&m>=0&&(n.revision=m,r.V=!0),"boolean"==typeof f&&(n.autoShow=f),"boolean"==typeof p&&(n.lazyHtmlGeneration=p),!1===v&&(n.hideFromBots=!1),!0===n.hideFromBots&&c&&(r.J=c.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(c.userAgent)||c.webdriver),ML(a)&&(n.cookie={...o,...a}),n.autoClearCookies,r.V,n.manageScriptTags,(e=>{let{P:t,X:n,Y:r,Z:o,B:i}=MA.o;for(let a of e){let e=t[a],s=e.services||{},l=ML(s)&&Mj(s)||[];for(let t of(n[a]={},r[a]=[],o[a]=[],e.readOnly&&(i.push(a),r[a]=l),MA.ne.se[a]={},l)){let e=s[t];e.Se=!1,n[a][t]=e}}})(l),(()=>{if(!MA.t.manageScriptTags)return;let e=MA.o;for(let t of Mz(document,"script["+My+"]")){let n=MV(t,My),r=t.dataset.service||"",o=!1;if(n&&"!"===n.charAt(0)&&(n=n.slice(1),o=!0),"!"===r.charAt(0)&&(r=r.slice(1),o=!0),MN(e.O,n)&&(e.oe.push({Me:t,xe:!1,ke:o,De:n,Te:r}),r)){let t=e.X[n];t[r]||(t[r]={Se:!1})}}})(),Nx((()=>{let e=MA.o.i.language.autoDetect;if(e){let t=Nb({browser:navigator.language,document:document.documentElement.lang}[e]);if(t)return t}return Nw()})())})(e),t.J)return;(()=>{let e=MA.o,t=MA.t,n=NN(),{categories:r,services:o,consentId:i,consentTimestamp:a,lastConsentTimestamp:s,data:l,revision:c}=n,u=MO(r);e.p=n,e.M=i;let d=!!i&&MI(i);e.C=a,e.C&&(e.C=new Date(a)),e.S=s,e.S&&(e.S=new Date(s)),e.h=void 0!==l?l:null,e.V&&d&&c!==t.revision&&(e.I=!1),e.D=!(d&&e.I&&e.C&&e.S&&u),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(n.expirationTime||0),e.D&&NE(t.cookie.name)),e.D,(()=>{let e=MA.o;for(let t of e.O){let n=e.P[t];if(n.readOnly||n.enabled){e.G.push(t);let n=e.X[t]||{};for(let r in n)e.Z[t].push(r),e.i.mode===Mh&&e.Y[t].push(r)}}})(),e.D?t.mode===Mh&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...o},MQ([...e.B,...r]))})();let i=ND();if(!await NC())return!1;if(M0(null,N_,Nm,NS),MA.o.D&&Ny(N_,NS),MA.t.lazyHtmlGeneration||Nm(N_,NS),n.autoShow&&!i&&Nj(!0),i)return Nt(),M7(r.le);n.mode===Mh&&Nt(t.G)}};var NB=n(92014);function NH(e){return(0,NB.w_)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M167.31,160.69a16,16,0,1,1-22.62,0A16,16,0,0,1,167.31,160.69Zm-86.62-8a16,16,0,1,0,22.62,0A16,16,0,0,0,80.69,152.69Zm14.62-33.38a16,16,0,1,0-22.62,0A16,16,0,0,0,95.31,119.31Zm48-6.62a16,16,0,1,0,0,22.62A16,16,0,0,0,143.31,112.69ZM236,128A108,108,0,1,1,128,20a12,12,0,0,1,12,12,36,36,0,0,0,36,36,12,12,0,0,1,12,12,36,36,0,0,0,36,36A12,12,0,0,1,236,128Zm-24.67,10.65A60.17,60.17,0,0,1,165,91a60.17,60.17,0,0,1-47.66-46.32,84,84,0,1,0,94,94Z"}}]})(e)}n(53911);let NF=e=>{let{config:t}=e,n={...A7,...t};return(0,eO.useEffect)(()=>{setTimeout(()=>{Nz(n)},100)},[]),(0,eA.jsx)("a",{href:"#",onClick:NP,style:{position:"fixed",bottom:"1rem",left:"1rem",zIndex:999999,backgroundColor:"#000",color:"#fff",padding:".75rem",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":"Cookie voorkeuren",title:"Cookie voorkeuren",children:(0,eA.jsx)(NH,{size:24})})},NV=e=>{var t,n,r,o,i;let{category:a,provider:s,source:l,children:c}=e,{cookieConsentContainer:u}=(0,eO.useContext)(N0.context.ThemeContext),{data:{settings:d}}=ez(),{button:f}=(0,eO.useContext)(N0.context.ThemeContext),[p,h]=(0,eO.useState)(!1),[m,g]=(0,eO.useState)(!1);return((0,eO.useEffect)(()=>{var e;h(!0),(null==d?void 0:null===(e=d.config)||void 0===e?void 0:e.cookieBotID)||NL(a)?g(!0):g(!1);let t=e=>{g(e.detail.cookie.categories.includes("marketing"))};return window.addEventListener("cc:onChange",t),window.addEventListener("cc:onConsent",t),()=>{window.removeEventListener("cc:onChange",t),window.removeEventListener("cc:onConsent",t)}},[a,null==d?void 0:null===(t=d.config)||void 0===t?void 0:t.cookieBotID]),p)?m?(0,eA.jsx)(eA.Fragment,{children:c}):(0,eA.jsx)("div",{className:(0,eF.m6)("h-full flex flex-col items-center justify-center bg-gray-100",null==u?void 0:u.container),children:(0,eA.jsxs)("div",{className:"max-w-xl mx-auto p-1 flex flex-col gap-2 items-center justify-center",children:[(0,eA.jsxs)("h3",{className:"text-center text-lg font-semibold",children:["Toestemming nodig voor bekijken content van ",s]}),(0,eA.jsxs)("p",{className:"text-center",children:["Op deze plek staat ingesloten content die van ",s," afkomstig is. Het tonen van deze inhoud kan ertoe leiden dat ",s," ","persoonlijke gegevens zoals je IP-adres verwerkt en/of cookies op jouw computer of ander apparaat zet. Hiervoor moet je eerst expliciet toestemming geven."]}),(0,eA.jsxs)("div",{className:"mt-4",children:[(0,eA.jsx)("button",{className:(0,eF.m6)(null==f?void 0:f.base,null==f?void 0:null===(n=f.color)||void 0===n?void 0:n.primaryOutline,null==f?void 0:null===(r=f.size)||void 0===r?void 0:r.lg,"bg-primary-400 mr-4 p-2"),onClick:NP,children:"Voorkeur aanpassen"}),(0,eA.jsxs)(ej(),{href:l,className:(0,eF.m6)(null==f?void 0:f.base,null==f?void 0:null===(o=f.size)||void 0===o?void 0:o.lg,null==f?void 0:null===(i=f.color)||void 0===i?void 0:i.white,null==u?void 0:u.linkText),target:"_blank",children:["Bekijk content op ",s]})]})]})}):null};eL().events.on("routeChangeStart",()=>{Mc().start()}),eL().events.on("routeChangeComplete",()=>Mc().done()),eL().events.on("routeChangeError",()=>Mc().done());var N$=function(e){var t,n,r,o;let{Component:i,pageProps:a,config:s,...l}=e,c=(null===(n=l.appSettings)||void 0===n?void 0:null===(t=n.settings)||void 0===t?void 0:t.config)||{};!function(e){let[t,n]=(0,eO.useState)(!1);(0,eO.useEffect)(()=>{mm(e),n(!0)},[e])}(l.env),(0,eO.useEffect)(()=>{var e;let t=window.location!=window.parent.location?document.referrer:document.location.href,n=document.title,r=null===(e=document.querySelector("link[rel='icon']"))||void 0===e?void 0:e.getAttribute("href");Mf.forEach(e=>{e===t&&window.parent.postMessage({type:"DOCUMENT_TITLE",data:{title:n,favicon:r}},e)})},[]);let{ThemeContext:u}=eB;return s.theme?(0,eA.jsx)(Mu.Provider,{value:mh,children:(0,eA.jsxs)(u.Provider,{value:s.theme,children:[(0,eA.jsxs)(Ms(),{children:[(0,eA.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),(0,eA.jsx)("link",{rel:"icon",href:"/icon.svg",type:"image/svg+xml"})]}),c.analyticsEnabled&&c.analyticsProvider&&c.analyticsID&&(0,eA.jsx)(Mr,{provider:c.analyticsProvider,identifier:c.analyticsID}),c.liveChatEnabled&&c.liveChatAppID&&(0,eA.jsx)(Md,{liveChatAppID:c.liveChatAppID,liveChatOrgID:c.liveChatOrgID,liveChatOrgURL:c.liveChatOrgURL}),c.cookiesEnabled&&!c.cookieBotID&&(0,eA.jsx)(NF,{config:s.cookieNotice}),c.cookiesEnabled&&c.cookieBotID&&(0,eA.jsx)(Mo,{cbid:c.cookieBotID}),(0,eA.jsx)(eD,{data:l.appSettings,components:(null==s?void 0:s.components)||void 0,labels:(null==s?void 0:s.labels)||void 0,children:(0,eA.jsxs)(Mi.SessionProvider,{session:null==a?void 0:a.session,refetchInterval:60,children:[(0,eA.jsx)(g$,{domain:(null===(r=l.twicPicsConfig)||void 0===r?void 0:r.domain)||"",path:(null===(o=l.twicPicsConfig)||void 0===o?void 0:o.path)||""}),(0,eA.jsx)(i,{...a})]})})]})}):(console.error("No theme provided"),null)},NU=n(34406);async function Nq(e){var t,n,r,o;let i=my({key:"appSettings"}),a=mf(),s=A3(a),l={provider:NU.env.CONFIG_ANALYTICS_PROVIDER||null,identifier:NU.env.CONFIG_ANALYTICS_ID||null},c={appId:NU.env.CONFIG_LIVECHAT_APP_ID||null,orgId:NU.env.CONFIG_LIVECHAT_ORG_ID||null,orgUrl:NU.env.CONFIG_LIVECHAT_ORG_URL||null},u={cbid:NU.env.CONFIG_COOKIEBOT_ID||null},d={enabled:(null===(n=i.settings)||void 0===n?void 0:null===(t=n.config.reCaptcha)||void 0===t?void 0:t.enabled)||!1,key:(null===(o=i.settings)||void 0===o?void 0:null===(r=o.config.reCaptcha)||void 0===r?void 0:r.key)||NU.env.NEXT_PUBLIC_RECAPTCHA_KEY||null};return{appSettings:i,env:a,twicPicsConfig:s,analyticsConfig:l,liveChatConfig:c,reCaptchaConfig:d,cookieBotConfig:u}}var NZ=function(){var e;let{data:{settings:t}}=ez();return(0,eO.useEffect)(()=>{var e,n;if(!(null==t?void 0:null===(e=t.config)||void 0===e?void 0:e.cookiesEnabled)||!(null==t?void 0:null===(n=t.config)||void 0===n?void 0:n.cookieBotID))return;let r=document.getElementById("CookieBotDeclaration");if(r){let e=document.createElement("script");e.id="CookieDeclaration",e.type="text/javascript",e.async=!0,e.src="https://consent.cookiebot.com/".concat(t.config.cookieBotID,"/cd.js"),r.appendChild(e)}},[null==t?void 0:t.config.cookieBotID,null==t?void 0:null===(e=t.config)||void 0===e?void 0:e.cookiesEnabled]),(0,eA.jsx)("div",{id:"CookieBotDeclaration"})},NW=n(40489);function NJ(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,eF.m6)((0,NW.W)(t))}let NG={renderProsemirrorDocument:function(e){var t;let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.parse('{"project":"projecten","news":"nieuws","vacancy":"over-ons/vacatures","process":"regelen","stories":"bewonersverhalen"}'),n=(e,t)=>{let n="/".concat(e.attrs.href);return t&&(n="/".concat(t).concat(n)),{...e,attrs:{...e.attrs,href:n}}};return AX(e,e=>{var r,o,i,a,s,l,c,u,d,f,p,h;return"link"===e.type&&(null===(o=e.attrs)||void 0===o?void 0:null===(r=o.linktype)||void 0===r?void 0:r.name)==="project"?n(e,t.project):"link"===e.type&&(null===(a=e.attrs)||void 0===a?void 0:null===(i=a.linktype)||void 0===i?void 0:i.name)==="news"?n(e,t.news):"link"===e.type&&(null===(l=e.attrs)||void 0===l?void 0:null===(s=l.linktype)||void 0===s?void 0:s.name)==="vacancy"?n(e,t.vacancy):"link"===e.type&&(null===(u=e.attrs)||void 0===u?void 0:null===(c=u.linktype)||void 0===c?void 0:c.name)==="process"?n(e,t.process):"link"===e.type&&(null===(f=e.attrs)||void 0===f?void 0:null===(d=f.linktype)||void 0===d?void 0:d.name)==="stories"?n(e,t.stories):"link"===e.type&&(null===(h=e.attrs)||void 0===h?void 0:null===(p=h.linktype)||void 0===p?void 0:p.name)==="page"?n(e,null):e})}(e),r=(n=AX(n,e=>"text"===e.type&&""===e.text?{type:"hardBreak"}:e)).content.map(e=>{if("heading"===e.type){var t,n;let r=e.content&&(null===(n=e.content[0])||void 0===n?void 0:null===(t=n.text)||void 0===t?void 0:t.toLowerCase())||"";return{...e,attrs:{...e.attrs,id:S$()(r)}}}return e.content?{...e,content:function e(t){let n=[];return t.forEach(t=>{"text"===t.type&&t.text?t.text.split("\n").forEach((e,r)=>{r>0&&n.push({type:"hard_break"}),""!==e.trim()&&n.push({...t,text:e})}):t.content?n.push({...t,content:e(t.content)}):n.push(t)}),n}(e.content)}:e});return AB.configure({resizable:!0}),null===AQ(t=kG({type:"doc",content:r},[SB.configure({heading:!1,paragraph:!1}),AY,AU,C6,AZ,AW,A$,AJ,AK,AG,TK,AB,AH,AF,AV]))?null:SF(t)},getAllHeadings:function(e){return e.content.filter(e=>"heading"===e.type&&e.attrs.level<=3).map(e=>({value:e.content[0].text,slug:S$()(e.content[0].text.toLowerCase())}))},htmlFromProsemirrorDocument:function(e){return AQ(kG(e,[SB.configure({paragraph:!1}),AU,C6,TK,AB,AH,AF,AV,Sc,AZ,AW,A$,AJ,AK,AG]))},getMediaURL:function(e){var t,n;return"/media/".concat(null==e?void 0:null===(t=e.media)||void 0===t?void 0:t.mediaHash,"/").concat(null==e?void 0:null===(n=e.media)||void 0===n?void 0:n.fileName)},formatDateTime:gq.o0,formatTimeSlot:gq.KL,prepareSEO:e=>{var t;let n=window.location.origin?window.location.origin:"",r="".concat(n,"/");return{...e.seo,url:r,image:(null===(t=e.seo)||void 0===t?void 0:t.image)||{url:r+"icon-512.png",height:"512px",alt:"Logo",width:"512px"}}},COOKIE_NOTICE_KEY:"databalk.site.cookies",MIME_TYPES:{htm:"text/html",html:"text/html",pdf:"application/pdf",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png"},parseLink:gZ.V,parseJSON:function(e){try{return JSON.parse(e)}catch(e){}return null},formatCurrency:gq.xG,getImageFromMedia:e=>{var t;return(null===(t=e[0])||void 0===t?void 0:t.id)?e[0].image:e.map(e=>e.image[0])},isActive:gq.zh,nl2br:function(e){return e.replace(/([^>])\n/g,"$1<br/>")},isValidSlug:function(e){return/^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(e)},formatAddress:gq.Tg,getFullURLFromPath:gZ.Z,reportAccessibility:gU,validateIBAN:function(e){if(!e||e.length<5)return!1;let t={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"}[e.substring(0,2)];if(void 0!==t&&!RegExp("^[A-Z]{2}\\d{2}".concat(t,"$"),"").test(e))return!1;let n=e.substring(4,e.length)+e.substring(0,4),r="";for(let e=0;e<n.length;e+=1){let t=n.charAt(e);r+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(t)}let o=0;for(let e=0;e<r.length;e+=1){let t=r.charAt(e);o=parseInt("".concat(o).concat(t),10)%97}return 1===o},stripTrailingSlash:function(e){return e.replace(/\/+$/,"")},preparePath:function(e){let t="string"==typeof e?e:e.join("/");return{path:t.split("/").pop().toLowerCase(),fullSlug:t}},hasWrongURL:function(e){return/.*\.(xml|css|js)$/i.test(e)},getTwicPicsConfig:A3,getEnvironment:mf,getAppInsightsConnectionStringFromEnv:mp,ensureArray:A5.r,fetcher:A8,pluginConfig:A7},NK={iris:eY,iris23:eQ,data:eW},NY={getCache:my,setCache:function(e){let{key:t,data:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12e4;mv().put(t,JSON.stringify(n),r)},delCache:e=>{let{key:t}=e;return mv().del(t)}},NX={FileInput:function(e){let{onChange:t,multiple:n,disabled:r,inputText:o,showFiles:i=!0,accept:a="image/*"}=e,s=(0,eO.useRef)(null),[l,c]=(0,eO.useState)([]),[u,d]=(0,eO.useState)({show:!1,message:""}),f=async e=>{if(!e.target.files)return;let r=Array.from(e.target.files).filter(e=>e.size<=1e7),o=l.reduce((e,t)=>e+t.FileSize,0),i=r.reduce((e,t)=>e+t.size,0);if(r.length!==e.target.files.length){d({show:!0,message:"Dit bestand is te groot om te uploaden. De maximale bestandsgrootte is 10 MB."});return}if(o+i>1e7){d({show:!0,message:"".concat(1===r.length?"Bestand":"Bestanden"," niet toegevoegd: De totale bestandsgrootte is te groot om te uploaden. De maximale bestandsgrootte is 10 MB.")});return}d({show:!1,message:""});let a=await mw(r),s=n?[...l,...a]:a;t&&t(e,s),c(s)},p=(e,n)=>{let r=l.filter((e,t)=>t!==n);t&&t(e,r),c(r)};return(0,eA.jsxs)(eA.Fragment,{children:[(0,eA.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg px-3 py-2 border-2 border-gray-500 border-dashed hover:border-gray-600 min-h-[100px] ".concat(u.show?"border-red-500 hover:border-red-600":""),children:[(0,eA.jsx)("input",{type:"file",accept:a,multiple:n,ref:s,onChange:f,hidden:!0}),i&&(0,eA.jsxs)(eA.Fragment,{children:[l.length>0&&l.map((e,t)=>(0,eA.jsxs)("div",{className:"my-2 flex w-full justify-between items-center gap-2 rounded px-3 py-2 ring-1 bg-white ring-gray-500",children:[(0,eA.jsxs)("span",{children:["".concat(e.FileID,".").concat(e.FileExtension)," (",mT(e.FileSize),")"]}),(0,eA.jsxs)("button",{type:"button",className:"flex items-center justify-center gap-2 rounded-lg text-sm bg-gray-100 px-2 py-1 hover:bg-gray-300",onClick:e=>p(e,t),children:[(0,eA.jsx)(mb.qy0,{size:20}),"Verwijderen"]})]},e.FileID)),(0,eA.jsxs)("button",{type:"button",className:"mx-auto  mt-1 flex items-center justify-center gap-2 rounded-lg bg-white px-3 py-2 ring-2 text-sm ring-gray-500 hover:bg-white/30",disabled:r,onClick:()=>{s&&s.current&&s.current.click()},children:[(0,eA.jsx)(mb.nIw,{size:20}),o||"Uploaden"]}),(0,eA.jsxs)("span",{className:"text-xs text-gray-500 mt-2",children:["Maximale uploadgrootte: ",mT(1e7)]})]})]}),u.show&&(0,eA.jsx)("span",{className:"text-red-500",children:u.message})]})},Maintenance:e=>{var t,n,r;let{children:o}=e,{data:{settings:i}}=ez(),a=(0,eI.useRouter)(),{button:s}=(0,eO.useContext)(eB.ThemeContext);return(null==i?void 0:null===(t=i.config.maintenanceMode)||void 0===t?void 0:t.enabled)?(0,eA.jsx)("div",{className:"!h-full !w-full flex flex-col justify-center items-center py-6",children:(0,eA.jsxs)("div",{className:"text-center flex flex-col gap-3 justify-start ",children:[(0,eA.jsx)("h1",{className:"text-primary",children:null==i?void 0:i.config.maintenanceMode.title}),(0,eA.jsx)("p",{className:"text-gray-700",children:null==i?void 0:i.config.maintenanceMode.message}),(0,eA.jsxs)("div",{className:"flex flex-row gap-4 justify-center",children:[(0,eA.jsx)("button",{onClick:()=>{a.back()},className:(0,eF.m6)(null==s?void 0:s.base,null==s?void 0:null===(n=s.color)||void 0===n?void 0:n.primary),children:"Ga terug"}),(0,eA.jsx)(ej(),{href:"/",children:(0,eA.jsx)("button",{className:(0,eF.m6)(null==s?void 0:s.base,null==s?void 0:null===(r=s.color)||void 0===r?void 0:r.primary),children:"Home"})})]})]})}):o},Input:mA,PinInput:e=>{let{digits:t=6,onChange:n,value:r}=e,[o,i]=(0,eO.useState)(Array(t).fill("")||r.split("")),a=/^\d+$/,s=(e,n)=>{let r=[...o];if(r[n]=e,e&&n<t-1){var a;null===(a=document.getElementById("pin".concat(n+1)))||void 0===a||a.focus()}i(r)},l=(e,t)=>{if("Backspace"===e.key&&!o[t]&&t>0){var n;null===(n=document.getElementById("pin".concat(t-1)))||void 0===n||n.focus()}};return(0,eO.useEffect)(()=>{var e;null===(e=document.getElementById("pin0"))||void 0===e||e.focus()},[]),(0,eO.useEffect)(()=>{n(o.join(""))},[o]),(0,eA.jsx)(eA.Fragment,{children:(0,eA.jsx)("div",{onPaste:e=>{e.preventDefault();let n=e.clipboardData.getData("text").split("").filter((e,t)=>t<6);if(n.length===t){var r;i(n),null===(r=document.getElementById("pin".concat(t-1)))||void 0===r||r.focus()}},className:"flex space-x-2",children:o.map((e,t)=>(0,eA.jsx)("input",{id:"pin".concat(t),type:"text",maxLength:1,value:e,onChange:e=>{let n=e.target.value;s(a.test(n)?n:"",t)},onKeyDown:e=>l(e,t),className:"w-12 h-12 text-center text-xl rounded-md border"},t))})})},InputError:function(e){var t;let{outputKey:n,errors:r}=e;return r[n]?(0,eA.jsx)("span",{className:"text-sm text-red-500",children:null===(t=r[n])||void 0===t?void 0:t.message}):null},Label:mM,TextArea:mN,OmniChannelLCWidget:e=>{let{appID:t,orgID:n,orgURL:r}=e;return(0,eA.jsx)(eN(),{id:"Microsoft_Omnichannel_LCWidget",src:"https://oc-cdn-public-eur.azureedge.net/livechatwidget/scripts/LiveChatBootstrapper.js","data-app-id":t,"data-lcw-version":"prod","data-org-id":n,"data-org-url":r,"data-enable-telemetry":"false"})},Image:function(e){let{file:t,width:n,height:r,className:o,fill:i=!1,mode:a="cover",focus:s="auto",step:l=100,ratio:c="none"}=e;return t&&(null==t?void 0:t.fileName)&&(null==t?void 0:t.id)?t.fileName.endsWith(".svg")?(0,eA.jsx)(mI(),{src:"/media/".concat(t.id,"/").concat(t.fileName),alt:t.alt||t.title||"",title:t.title,width:n,height:r,className:o,fill:i}):(0,eA.jsx)(gV,{src:"/".concat(t.id,"/").concat(t.fileName),alt:t.alt||t.title,title:t.title,className:o,mode:a,focus:t.focus||s,step:l,ratio:c}):null}},NQ={useWindowSize:function(){let[e,t]=(0,eO.useState)({width:0,height:0});return(0,eO.useEffect)(()=>(window.addEventListener("resize",function(){t({width:window.innerWidth,height:window.innerHeight})}),t({width:window.innerWidth,height:window.innerHeight}),()=>window.removeEventListener("resize",function(){t({width:window.innerWidth,height:window.innerHeight})})),[]),e},useExternalScripts:e=>{(0,eO.useEffect)(()=>{let t=e=>new Promise((t,n)=>{let r=document.createElement("script");r.src=e,r.async=!0,r.onload=t,r.onerror=n,document.body.appendChild(r)});(async()=>{for(let n of e)await t(n)})()},[e])},useHasMounted:function(){let[e,t]=eO.useState(!1);return eO.useEffect(()=>{t(!0)},[]),e},useStickyState:function(e,t){let[n,r]=eO.useState(()=>{let n=window.localStorage.getItem(t);return null!==n?JSON.parse(n):e});return eO.useEffect(()=>{window.localStorage.setItem(t,JSON.stringify(n))},[t,n]),[n,r]},useMediaQuery:A9,useTailwindBreakpoints:()=>{let e=A9("(min-width: 640px)"),t=A9("(min-width: 768px)");return{isSm:e,isMd:t,isLg:A9("(min-width: 1024px)"),isXl:A9("(min-width: 1280px)"),is2xl:A9("(min-width: 1536px)")}}},N0={theme:A0.Z,context:eB}},21093:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r={button:{base:"button inline-flex gap-4 items-center whitespace-nowrap rounded px-4 py-2 shadow-primary-500 transition-all duration-200 hover:shadow-md relative cursor-pointer",color:{primary:"bg-primary-500 text-white hover:bg-primary-300 disabled:bg-gray-300 disabled:cursor-blocked",primaryOutline:"hover:bg-primary-300 border border-white px-4 py-2 text-white transition-colors",secondary:"bg-secondary-500 text-white hover:bg-secondary-300",white:"text-primary-500 hover:bg-primary-300 bg-white px-4 py-2 transition-colors hover:text-white"},size:{lg:"text-lg rounded-lg py-[10px]",md:"text-base rounded-md",sm:"text-sm"}},cookieNotice:{container:"bg-primary-500 fixed bottom-0 flex w-full items-center justify-between p-4 text-white z-[9999999]",text:"text-md",readMoreLink:"underline hover:text-accent",acceptButton:"float-right mr-4",declineButton:"float-right"},cookieConsentContainer:{container:"",linkText:"p-2"},textLink:"text-primary-500 hover:text-primary-300 py-2 transition-colors duration-200",richText:"prose prose-lg max-w-none prose-h2:font-medium prose-p:text-[#333333]",heading:{base:"font-display mb-4",color:{primary:"text-primary-500",secondary:"text-secondary-500",black:"text-black",white:"text-white"},size:{h1:"text-4xl",h2:"text-3xl",h3:"text-2xl",h4:"text-xl",h5:"text-lg",h6:"text-base"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",bold:"font-bold",semiBold:"font-semibold"}},components:{skipLink:{button:"absolute top-0 lg:left-0 md:right-0 sm:right-0 lg:right-auto md:right-auto focus:right-auto focus:bg-primary focus:text-white focus:border-3 focus:border-white focus:p-4 z-[999] transition-opacity duration-300 opacity-0 focus:opacity-100"},rowLayout:{container:"grid grid-cols-1 gap-4 grid-flow-dense"},mapContainer:"z-1 bor aspect-square w-full rounded-xl border border-gray-200",siteHeader:{container:"container mx-auto h-20 md:h-24",wrapper:"flex h-full items-center gap-2 sm:gap-8 xl:gap-16"},video:{container:"aspect-video w-full rounded-lg border-gray-300 shadow-lg my-[30px]",iframe:"h-full w-full rounded-lg",title:"hidden"},videoList:{container:"",wrapper:"list-none flex flex-col gap-4 pt-10",title:"mt-4",iconType:"arrow",icon:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0 ml-auto mr-4",videoTitle:"",listItem:"flex shadow overflow-hidden rounded-2xl flex-row justify-start items-center gap-4",frame:"relative h-[100px] w-[100px]"},searchResults:{tabs:{wrapper:"flex gap-1",base:"text-md whitespace-nowrap border-b-4 px-3 py-2 transition duration-150 ease-in-out focus:outline-none border-transparent text-gray-600 hover:border-gray-300 hover:text-gray-800",selected:"border-primary-500 font-semibold text-gray-800"},result:{resultsFound:"font-semibold",wrapper:"group px-2 py-5 transition-colors hover:bg-gray-50 text-left",metaText:"flex flex-wrap items-center gap-2 font-medium text-base md:text-lg text-gray-500",resultWrapper:"flex flex-col divide-y border-y border-gray-200"},arrow:{base:"text-secondary mt-0.5 transition-transform group-hover:translate-x-1 flex-shrink-0",openable:"transition-transform group-hover:rotate-90 group-hover:translate-x-0",open:"rotate-0 group-hover:-rotate-90 group-hover:translate-x-0"},resultsNumber:"text-sm font-semibold text-gray-500"},buttonList:{wrapper:"flex flex-row flex-wrap gap-4"},linkList:{container:"",title:"font-display text-primary-500 mb-2 text-xl font-medium ",wrapper:"flex flex-col divide-y divide-gray-200",description:"pl-[30px] py-2",link:"text-primary-600 hover:text-primary-500 group flex items-center gap-2 py-2 transition-colors duration-200 hover:underline",icon:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0",iconType:"arrow"},stepList:{customLine:"",customNumber:"",customWrapper:"",wrapper:"",stepTitle:"",step:{wrapper:"relative gap-4 flex pb-14",dashes:{first:"after:border-primary-100  after:absolute after:inset-y-0 after:left-5 after:z-10 after:w-1 after:border-l after:border-dashed",last:"",middle:"after:border-primary-100  after:absolute after:inset-y-0 after:left-5 after:z-10 after:w-1 after:border-l after:border-dashed"},number:{first:"border-primary-500 text-primary-700 relative z-20 flex h-10 w-10 items-center justify-center rounded-full border-2 bg-white text-center text-xl font-semibold",last:"border-primary-500 text-primary-700 relative z-20 flex h-10 w-10 items-center justify-center rounded-full border-2 bg-white text-center text-xl font-semibold",middle:"border-primary-500 text-primary-700 relative z-20 flex h-10 w-10 items-center justify-center rounded-full border-2 bg-white text-center text-xl font-semibold"}}},personsList:{itemsWrapper:"flex flex-col divide-y divide-gray-300",container:"flex items-center gap-4 py-2",avatar:"relative h-32 w-32 overflow-hidden rounded-full",jobTitle:"text-sm italic",textWrapper:""},accordionList:{list:"flex flex-col gap-2",title:"mt-4",listItem:{arrow:"transition-transform duration-150 rotate-90 flex-shrink-0",container:"group rounded-lg border border-gray-300 transition-colors duration-150 hover:border-primary-400",disclosureButton:"flex w-full gap-4 items-center justify-between rounded-lg px-4 py-3 text-left text-xl text-primary-500 duration-150 focus:outline-none focus-visible:ring focus-visible:ring-primary-500 focus-visible:ring-opacity-75 group-hover:text-primary-700",disclosurePanel:"px-4 pb-4 text-sm text-gray-500"}},categoryOverview:{disclosureButton:"text-primary-500 focus-visible:ring-primary-500 rounded-lg bg-gray-100 text-left text-sm duration-150 hover:bg-gray-200 focus:outline-none focus-visible:ring focus-visible:ring-opacity-75 my-2 flex w-full items-center justify-between px-4 py-3",disclosureArrow:"h-5 w-5 text-6xl rotate-90 transition-all transform",disclosureCategoryButton:{wrapper:"text-primary-500 group flex flex-col items-center gap-4 p-4",text:"font-display text-xl font-bold",image:"relative h-10 w-10"},disclosurePanel:"pb-2 pt-4 text-sm text-gray-500",disclosureContainer:"px-5",link:"text text-primary-500 hover:text-primary-300 group -mt-px flex items-center gap-2 border-y border-gray-200 py-3 transition-colors duration-200",linkTitleWrapper:"flex py-1",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0",linkTitle:"ml-2",iconType:"arrow",tabs:{container:"flex-1 pt-12",tabList:"container mx-auto grid gap-x-2 grid-cols-4 p-0 xl:max-w-6xl",tabWrapper:{default:"first-of-type:rounded-tl-2xl last-of-type:rounded-tr-2xl",selected:"ring-secondary-800 z-2 relative mt-[-20px] rounded-t-2xl bg-white pt-[20px] shadow-[0_10px_50px_-12px_rgb(0,0,0,0.25)] hover:bg-white tab-selected",notSelected:"hover:bg-primary-50 bg-primary-50/50"},tab:{container:"text-primary-500 group flex flex-col items-center gap-4 p-4",label:"font-display text-xl font-bold",imageWrapper:"relative h-32 w-full",image:"w-full h-full object-contain"},panelsWrapper:"bg-primary-50/50 mb-[-4rem] flex-1 pb-[6rem]",panels:"z-1 container relative mx-auto rounded-b-2xl bg-white p-0 px-10 shadow-xl xl:max-w-6xl",panel:"py-12",columnsWrapper:"grid",columns:"grid w-full grid-cols-3 gap-x-8",linksWrapper:"col-span-2 grid grid-cols-2 content-start gap-x-4",textWrapper:""}},cardItem:{container:"rounded-xl border transition-all duration-500"},cardOverview:{container:"bg-white rounded-md",title:"font-display text-xl font-bold mb-4",cardContainer:"flex flex-row justify-between gap-4"},downloadOverview:{container:"bg-white p-4 rounded-md shadow-md",title:"font-display text-xl font-bold mb-4"},downloadList:{wrapper:"flex justify-between md:items-center border-b border-gray-200 py-2 gap-4",title:"text-lg text-gray-700 min-w-0",link:"text-white hover:text-white flex items-center gap-2 hover:underline md:ml-auto",button:"bg-primary-500 text-white px-4 py-2 rounded-md self-center"},socials:{title:"font-display text-3xl font-medium text-primary-500"},socialButton:{showTitle:!1,variant:"rounded",orientation:"horizontal",iconSize:20,button:"duration-50 text-primary-500 hover:text-accent flex gap-1 bg-gray-100 p-2"},logosList:{wrapper:"flex flex-row overflow-x-auto partners-section",logoLink:"flex flex-col items-center justify-center m-3",logoImage:"w-48 h-48 object-contain"},quote:"px-3 py-8 text-center before:pr-2  before:text-2xl before:font-bold  before:content-['\"']  after:ml-1 after:text-2xl after:font-bold after:content-['\"']  md:px-8  text-primary-500 rounded bg-gray-100",quoteAuthor:"px-4 text-right text-gray-400",newsOverviewCard:{wrapper:"overflow-hidden rounded-lg bg-white shadow-md transition-all duration-200 hover:-translate-y-1 hover:shadow-lg",dateTime:"text-xs text-gray-500 uppercase font-semibold",description:"line-clamp-2 mb-4 text-sm text-gray-700",image:"",title:"text-md before:content[''] font-display text-primary-500 line-clamp-3 my-2 text-xl font-semibold before:absolute before:inset-0",readMore:"text-primary-500 hover:text-primary-300 group mt-auto flex items-center gap-1 text-sm font-medium transition-colors duration-200",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0"},vacancyCard:{wrapper:"group relative block h-full w-full overflow-hidden rounded-lg bg-white shadow-md transition-all duration-200 hover:-translate-y-1 hover:shadow-lg",dateTime:"text-xs uppercase text-gray-500",description:"line-clamp-2 mb-4 text-sm text-gray-700",subtitle:"capitalize text-black",title:"text-md before:content[''] font-display text-primary-500 my-2 line-clamp-3 text-xl font-semibold before:absolute before:inset-0",readMore:"text-primary-500 hover:text-primary-300 group mt-auto flex items-center gap-1 text-sm font-medium transition-colors duration-200",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0"},newsOverview:{wrapper:"bg-primary-50 py-16",title:"font-display text-primary-500 mb-8 text-3xl font-semibold",noNews:"text-sm text-gray-700",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0",moreNews:"text-primary-500 hover:text-primary-300 group flex items-center gap-1 font-medium transition-colors duration-200",moreNewsContainer:"mt-8 flex justify-end",cardContainer:"grid grid-cols-1 gap-4 md:grid-cols-3"},bewonersverhalenOverview:{wrapper:"bg-primary-50 py-16",title:"font-display text-primary-500 mb-8 text-3xl font-semibold",noNews:"text-sm text-gray-700",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0",moreNews:"text-primary-500 hover:text-primary-300 group flex items-center gap-1 font-medium transition-colors duration-200",moreNewsContainer:"mt-8 flex justify-end"},knowledgeArticle:{arrow:"transition-transform duration-150 rotate-90 flex-shrink-0",wrapper:"hover:border-primary-400 rounded-lg border border-gray-300 transition-colors duration-150",discolosureButton:"text-primary-500 focus-visible:ring-primary-500 group-hover:text-primary-700  rounded-lg text-left text-xl duration-150 focus:outline-none focus-visible:ring focus-visible:ring-opacity-75 flex w-full items-center justify-between  px-4 py-3",disclosurePanel:"p-4 text text-gray-500",title:"mb-8",article:{content:""}},knowledgeArticleList:{container:"",title:"mt-4",content:"mb-4",wrapper:"grid gap-2",item:""},hero:{backgroundImage:"absolute h-full w-full",wrapper:"relative min-h-[550px] h-auto flex flex-col justify-end items-center",backgroundTint:"absolute inset-0 bg-gradient-to-r from-black/40",contentWrapper:"w-full h-full flex flex-col justify-center items-center relative z-1 my-8",contentContainer:"container mx-auto lg:max-w-5xl",titleContainer:"flex flex-col",title:"font-display max-w-lg pb-8 text-5xl font-bold text-white md:text-6xl",subtitle:"pb-4 text-xl font-medium text-white md:text-3xl",navigationContainer:"",navigation:{image:"h-12 w-12 lg:h-[100px] lg:w-[100px]",wrapper:"grid w-full grid-cols-1 gap-2 md:grid-cols-2 md:gap-4 lg:gap-8 lg:grid-cols-4",button:"text-black gap-4 hover:text-black hover:bg-white md:flex-col flex w-full whitespace-nowrap rounded-lg bg-white text-lg font-medium transition-all hover:scale-105 inline-block text-black items-center rounded bg-white text-lg py-2 px-4 duration-200 hover:shadow-md text-primary-500 hover:bg-primary-300 transition-colors hover:text-white"}},cta:{ctaButton:"",button:"",container:"flex items-start lg:items-center flex-col lg:flex-row justify-between gap-8 lg:gap-16 rounded bg-gray-100 p-8",title:"",description:""},featuredContent:{container:"flex flex-col rounded bg-gray-100 p-8 items-start",title:"font-display text-primary-500 mb-8 text-3xl font-semibold",content:"prose prose-lg max-w-none",button:"mt-4"},featuredImage:{container:"gap-y-8 gap-x-16 py-16",image:"shadow-2xl h-full rounded-lg",content:"flex-1",description:"prose-lg",button:"mt-4",title:""},informationBanner:{container:"flex items-center mt-10",icon:"absolute bg-circle w-8 h-8 rounded-full mr-4 flex items-center justify-center bg-secondary-500 -mt-[50px] z-50 text-white",titleBackground:"absolute bg-circle w-14 h-14 rounded-full mr-4 flex items-center justify-center bg-primary-500 -ml-[30px] z-0 ",title:"text-white font-semibold absolute break-all",wrapper:"flex flex-col bg-white rounded p-4 shadow-md pl-[40px]",content:"text-gray-600"},projectHeader:{image:"w-full h-full",mapImage:"w-full h-full ",introImage:"w-full rounded-lg h-full"},flowNodeContainer:"flex flex-col gap-6 rounded bg-gray-200 p-4 md:p-8 lg:p-16",album:{albumTitle:"text-2xl font-bold mb-4 text-center",albumSize:"grid gap-4 relative h-full w-full md:h-[450px]",albumImage:"w-full h-[225px] rounded-lg object-cover"},locationDetailsHeader:"font-display text-primary-500 my-1 text-xl font-semibold project-title bg",mapHeader:"font-display text-primary-500 my-1 text-xl font-semibold project-title",projectsOverview:{wrapper:"bg-primary-50 py-16",title:"font-display text-primary-500 mb-8 text-3xl font-semibold",noProjects:"text-sm text-gray-700",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0",moreProjects:"text-primary-500 hover:text-primary-300 group flex items-center gap-1 font-medium transition-colors duration-200",moreProjectsContainer:"mt-8 flex justify-end",cardContainer:"grid grid-cols-1 gap-4 md:grid-cols-3"},projectOverviewCard:{wrapper:"overflow-hidden rounded-lg bg-white shadow-md transition-all duration-200 hover:-translate-y-1 hover:shadow-lg",dateTime:"text-xs text-gray-500 uppercase font-semibold",description:"line-clamp-2 mb-4 text-sm text-gray-700",image:"",title:"text-md before:content[''] font-display text-primary-500 line-clamp-3 my-2 text-xl font-semibold before:absolute before:inset-0",readMore:"text-primary-500 hover:text-primary-300 group mt-auto flex items-center gap-1 text-sm font-medium transition-colors duration-200",arrow:"text-accent-500 transition-all duration-200 group-hover:translate-x-1 flex-shrink-0"}},layout:{footer:{container:"bg-primary-500 print:hidden sticky top-[100vh] text-white",wrapper:"flex-1",aboutUs:{container:"leading-relaxed"},logo:{container:"mb-8 h-16 w-[200px]",logoFileName:"logo-alt.svg"},links:{textField:"prose-invert prose-xs text-sm",container:"bg-primary-600 py-4 text-white",link:"text-md text-white transition-colors duration-200 ease-in-out hover:underline"},copyright:{container:"container mx-auto text-white",content:"ml-auto text-xs text-white"}},projectFilterButton:"",projectCard:{container:"rounded-transition-all group overflow-hidden rounded-lg border border-gray-200 bg-white shadow-md duration-200 hover:-translate-y-1 hover:shadow-lg flex flex-col",title:"font-display text-secondary-500 my-1 mb-2 text-xl font-semibold",category:"flex flex-wrap text-gray-700",image:"mb-2 h-[200px] w-full overflow-hidden md:mb-0 md:w-full",span:"mx-2 text-gray-300",wrapper:"p-5"},projectContainer:"container mx-auto max-w-5xl pb-16 pt-8",projectDetailWrapper:"container mx-auto flex lg:max-w-5xl flex-col gap-4 lg:flex-row",header:{wrapper:{base:"top-0 z-50 transition-all duration-500 print:hidden sticky bg-white shadow",navOpen:"fixed inset-x-0 top-0 bg-white"},logoFileName:"/assets/logo.svg",logo:"relative h-16 w-[120px] md:w-[200px]",navigation:{mode:"default",noLogin:{linkText:"Mijn gegevens",linkUrl:"/mijn-gegevens"},showCustomLink:{linkText:"#",linkUrl:"#",show:!1},supportButton:{linkText:"#",linkUrl:"#",show:!1},wrapper:"mt-[6px] print:hidden",link:"whitespace-nowrap  border-b-2 border-transparent font-medium text-primary-500 transition-colors duration-200 hover:border-accent-500 hover:text-primary-300",linkActive:"!border-accent-500 !text-primary-300",controlsWrapper:"",controls:{text:"transition-color group flex items-center gap-2 font-medium text-primary-500 duration-200 hover:text-primary-300 [&>*]:flex-shrink-0 whitespace-nowrap",icon:"transition-color text-primary-300 duration-200 group-hover:text-accent-500"},mobile:{wrapper:"text-primary-500 print:hidden group relative flex items-center gap-3 font-medium",menuIcon:"transition-color print:hidden text-primary-300 group-hover:text-accent-500 duration-200",closeIcon:"transition-color print:hidden text-primary-300 group-hover:text-accent-500 duration-200"}},notification:{container:"bg-primary print:hidden hover:bg-primary-400 group block text-center text-white transition-colors duration-200",icon:"text-white transition-all duration-200 group-hover:translate-x-1 flex-shrink-0",text:"flex flex-grow items-center justify-center gap-2 text-white py-3"}},page:{homepage:"min-h-screen",breadcrumbs:{container:"flex flex-wrap justify-start overflow-hidden",link:"transition-color truncate pr-2 text-sm text-gray-500 duration-200 hover:text-gray-700 hover:underline",currentLink:"font-semibold",arrow:"-ml-2 text-2xl text-gray-300"},header:{container:"container relative z-10 mx-auto",image:"relative h-[30vw] max-h-[200px] xl:max-h-[350px] w-full xl:-mb-28 cut-notch",imageInnerWrapper:"h-full w-full",title:"font-display text-5xl text-secondary-500  break-words hyphens-auto",description:"text-xl leading-relaxed text-gray-800  page-description",wrapper:"flex flex-col gap-8 pb-4 pt-8 xl:pt-16 xl:-mx-16 xl:px-16 xl:rounded-t-3xl xl:bg-white"},disclosure:{image:"h-full w-full object-contain"}},article:{container:"flex flex-col",image:"relative h-[300px] overflow-hidden rounded-lg shadow-lg",dateText:"text-xs font-semibold uppercase text-primary-500",socialButtonsWrapper:"mb-20 mt-10",socialButtonsHeader:"text-primary-500 mb-2 font-semibold"},searchBar:"searchBorder focus:outline-primary-300 h-12 w-full rounded-md border border-gray-400 px-3 py-2 pr-10 text-gray-800 ",projectOverview:{wrapper:"bg-gray-100 py-4 lg:py-8"},projectList:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",newsHeader:"font-display text-primary-500 mb-8 text-3xl font-semibold",newsSection:"text-primary-500 w-full bg-gray-100 py-16",bewonersverhalenCardHeader:"font-display text-primary-500 mb-8 text-3xl font-semibold"},offers:{filters:{rangeFilter:{label:"text-primary-500 mb-2 text-lg",track:"bg-primary-500 absolute h-[6px] rounded-xl",thumb:"bg-primary-700 hover:bg-primary-500 block h-5 w-5 cursor-pointer rounded-full shadow"},selectFilter:{label:"mb-2 text-lg text-primary-500",checkbox:"text-primary-500 focus:ring-primary-500 peer h-4 w-4 rounded border-gray-300 bg-gray-100 focus:ring-2 disabled:opacity-30"}},offerItem:{linkWrapper:"relative flex w-full cursor-pointer flex-row items-stretch justify-start px-4 py-4 transition-colors duration-200 hover:bg-gray-100 min-h-[178px]",content:{wrapper:"flex w-full md:flex-row gap-5 flex-col",image:"relative aspect-video md:aspect-auto h-full w-auto overflow-hidden rounded-md md:flex-shrink-0 md:w-[25%]",title:"text-primary mb-2 text-xl font-medium",subtitle:"text-gray-600 text-sm",itemDetail:"flex flex-row whitespace-nowrap  items-center gap-x-2 text-gray-600",itemDetailText:"text-sm",price:"mt-2 text-lg font-semibold text-gray-600",priceMobile:"text-xl text-gray-600"}}}}},61301:function(e,t,n){"use strict";function r(e){return e?Array.isArray(e)?e:"object"==typeof e&&Object.keys(e).length>0?[e]:[]:[]}n.d(t,{r:function(){return r}})},54793:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nl-NL";if(!e)return;let r=new Date(e);return new Intl.DateTimeFormat(n,t).format(r)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nl-NL";if(null!=e)return new Intl.NumberFormat(t,{style:"currency",currency:"EUR"}).format(e)}function i(e){return"".concat(null==e?void 0:e.straatnaam," ").concat(null==e?void 0:e.huisnummer).concat((null==e?void 0:e.huisnummertoevoeging)||"")}function a(e,t){if(null==e||0===e.length||null==t||0===t.length)return"";let n=new Date(e),r=new Date(t),o=n.toLocaleDateString("nl-NL",{dateStyle:"medium"}),i=n.toLocaleTimeString("nl-NL",{timeStyle:"short"}),a=r.toLocaleTimeString("nl-NL",{timeStyle:"short"});return"".concat(o," ").concat(i," - ").concat(a)}function s(e,t){if(!e||!t)return!1;let n=new Date,r=new Date(e),o=new Date(t);return n>=r&&n<=o}n.d(t,{KL:function(){return a},Tg:function(){return i},o0:function(){return r},xG:function(){return o},zh:function(){return s}})},43610:function(e,t,n){"use strict";function r(e){if(!e||!(null==e?void 0:e.value))return"#no-link";if("tel"===e.type)return"tel:".concat(e.value);if("mailto"===e.type)return"mailto:".concat(e.value);if("media"===e.type)return"/media/".concat(e.value.id,"/").concat(e.value.fileName);if("collection"===e.type){let{collection:t,slug:n}=e.value,r="";switch(r=(null==n?void 0:n.startsWith("/"))?null==n?void 0:n.slice(1):n,t){case"page":return"/".concat(r);case"news":return"/nieuws/".concat(r);case"project":return"/projecten/".concat(r);case"process":return"/regelen/".concat(r.replaceAll("_","-"));default:return"#".concat(r)}}return e.value}function o(e,t){let n="";if(t)for(let r=0;r<=e;r++)n+="/".concat(t[r].slug);return n}n.d(t,{V:function(){return r},Z:function(){return o}})},19745:function(e,t){"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let a="refresh",s="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=r||(r={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12394:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(14079),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22657:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(17653),o=n(19013),i=n(52322),a=o._(n(2784)),s=r._(n(28316)),l=r._(n(68792)),c=n(25123),u=n(96648),d=n(41897);n(71388);let f=n(24698),p=r._(n(59553)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1};function m(e,t,n,r,o,i,a){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:s,width:l,decoding:c,className:u,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:v,fill:y,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:x,setShowAltText:C,sizesInput:k,onLoad:S,onError:E,...T}=e;return(0,i.jsx)("img",{...T,...g(f),loading:h,width:l,height:s,decoding:c,"data-nimg":y?"fill":"1",className:u,style:d,sizes:o,srcSet:r,src:n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&m(e,p,b,w,x,v,k))},[n,p,b,w,x,E,v,k,t]),onLoad:e=>{m(e.currentTarget,p,b,w,x,v,k)},onError:e=>{C(!0),"empty"!==p&&x(!0),E&&E(e)}})});function y(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&s.default.preload?(s.default.preload(n.src,r),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(f.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=e,m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[b,w]=(0,a.useState)(!1),[x,C]=(0,a.useState)(!1),{props:k,meta:S}=(0,c.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:b,showAltText:x});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{...k,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:C,sizesInput:e.sizes,ref:t}),S.priority?(0,i.jsx)(y,{isAppRouter:!n,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(17653),o=n(52322),i=r._(n(2784)),a=n(40706),s=n(90345),l=n(8985),c=n(70286),u=n(95549),d=n(24698),f=n(47640),p=n(34407),h=n(12394),m=n(70558),g=n(19745),v=new Set;function y(e,t,n,r,o,i){if(i||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let w=i.default.forwardRef(function(e,t){let n,r;let{href:l,as:v,children:w,prefetch:x=null,passHref:C,replace:k,shallow:S,scroll:E,locale:T,onClick:A,onMouseEnter:M,onTouchStart:N,legacyBehavior:O=!1,...I}=e;n=w,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let L=i.default.useContext(d.RouterContext),R=i.default.useContext(f.AppRouterContext),j=null!=L?L:R,P=!L,_=!1!==x,D=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:z,as:B}=i.default.useMemo(()=>{if(!L){let e=b(l);return{href:e,as:v?b(v):e}}let[e,t]=(0,a.resolveHref)(L,l,!0);return{href:e,as:v?(0,a.resolveHref)(L,v):t||e}},[L,l,v]),H=i.default.useRef(z),F=i.default.useRef(B);O&&(r=i.default.Children.only(n));let V=O?r&&"object"==typeof r&&r.ref:t,[$,U,q]=(0,p.useIntersection)({rootMargin:"200px"}),Z=i.default.useCallback(e=>{(F.current!==B||H.current!==z)&&(q(),F.current=B,H.current=z),$(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[B,V,z,q,$]);i.default.useEffect(()=>{j&&U&&_&&y(j,z,B,{locale:T},{kind:D},P)},[B,z,U,T,_,null==L?void 0:L.locale,j,P,D]);let W={ref:Z,onClick(e){O||"function"!=typeof A||A(e),O&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),j&&!e.defaultPrevented&&function(e,t,n,r,o,a,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?i.default.startTransition(f):f()}(e,j,z,B,k,S,E,T,P)},onMouseEnter(e){O||"function"!=typeof M||M(e),O&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),j&&(_||!P)&&y(j,z,B,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)},onTouchStart:function(e){O||"function"!=typeof N||N(e),O&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),j&&(_||!P)&&y(j,z,B,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:D},P)}};if((0,c.isAbsoluteUrl)(B))W.href=B;else if(!O||C||"a"===r.type&&!("href"in r.props)){let e=void 0!==T?T:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,h.getDomainLocale)(B,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);W.href=t||(0,m.addBasePath)((0,u.addLocale)(B,e,null==L?void 0:L.defaultLocale))}return O?i.default.cloneElement(r,W):(0,o.jsx)("a",{...I,...W,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34407:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),o=n(41346),i="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,c=l||!i,[u,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},s.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,f.current]),[p,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72392:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},noSSR:function(){return a}});let r=n(17653);n(52322),n(2784);let o=r._(n(23711));function i(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=o.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(i):Promise.resolve(i(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(71388);let r=n(74999),o=n(96648);function i(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,c,{src:u,sizes:d,unoptimized:f=!1,priority:p=!1,loading:h,className:m,quality:g,width:v,height:y,fill:b=!1,style:w,overrideSrc:x,onLoad:C,onLoadingComplete:k,placeholder:S="empty",blurDataURL:E,fetchPriority:T,decoding:A="async",layout:M,objectFit:N,objectPosition:O,lazyBoundary:I,lazyRoot:L,...R}=e,{imgConf:j,showAltText:P,blurComplete:_,defaultLoader:D}=t,z=j||o.imageConfigDefault;if("allSizes"in z)s=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t);s={...z,allSizes:e,deviceSizes:t}}if(void 0===D)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let B=R.loader||D;delete R.loader,delete R.srcSet;let H="__next_img_default"in B;if(H){if("custom"===s.loader)throw Error('Image with src "'+u+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(M){"fill"===M&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!d&&(d=t)}let F="",V=a(v),$=a(y);if("object"==typeof(n=u)&&(i(n)||void 0!==n.src)){let e=i(u)?u.default:u;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,c=e.blurHeight,E=E||e.blurDataURL,F=e.src,!b){if(V||$){if(V&&!$){let t=V/e.width;$=Math.round(e.height*t)}else if(!V&&$){let t=$/e.height;V=Math.round(e.width*t)}}else V=e.width,$=e.height}}let U=!p&&("lazy"===h||void 0===h);(!(u="string"==typeof u?u:F)||u.startsWith("data:")||u.startsWith("blob:"))&&(f=!0,U=!1),s.unoptimized&&(f=!0),H&&u.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),p&&(T="high");let q=a(g),Z=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:O}:{},P?{}:{color:"transparent"},w),W=_||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:V,heightInt:$,blurWidth:l,blurHeight:c,blurDataURL:E||"",objectFit:Z.objectFit})+'")':'url("'+S+'")',J=W?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},G=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,a),u=l.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:s({config:t,src:n,quality:i,width:l[u]})}}({config:s,src:u,unoptimized:f,width:V,quality:q,sizes:d,loader:B});return{props:{...R,loading:U?"lazy":h,fetchPriority:T,width:V,height:$,decoding:A,className:m,style:{...Z,...J},sizes:G.sizes,srcSet:G.srcSet,src:x||G.src},meta:{unoptimized:f,priority:p,placeholder:S,fill:b}}}},74999:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,s=r?40*r:t,l=o?40*o:n,c=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},5329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=n(17653),o=n(25123),i=n(22657),a=r._(n(59553));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=i.Image},59553:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},79195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(17653)._(n(2784)).default.createContext(null)},23711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=n(17653)._(n(2784)),o=n(79195),i=[],a=[],s=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function l(){if(!i){let t=new c(e,n);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&a.push(t=>{for(let n of e)if(t.includes(n))return l()})}function u(e,t){!function(){l();let e=r.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let a=r.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),r.default.useMemo(()=>{var t;return a.loading||a.error?r.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:i.retry}):a.loaded?r.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>l(),u.displayName="LoadableComponent",r.default.forwardRef(u)}(l,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{d(i).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());d(a,e).then(n,n)})),window.__NEXT_PRELOADREADY=u.preloadReady;let f=u},62053:function(e,t,n){"use strict";n.d(t,{Lfi:function(){return a},oHP:function(){return o},ywL:function(){return i}});var r=n(92014);function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"}}]})(e)}function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"}},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"}}]})(e)}},54613:function(e,t,n){"use strict";n.d(t,{Tfp:function(){return i},bTu:function(){return o},fmn:function(){return a}});var r=n(92014);function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"}}]})(e)}function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"}}]})(e)}},35433:function(e,t,n){"use strict";n.d(t,{hKY:function(){return i},rWO:function(){return a},tUd:function(){return o}});var r=n(92014);function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0116 16v288a16 16 0 01-16 16c-128 0-177.45 25.81-208 64-30.37-38-80-64-208-64-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0116-16c131.57.59 192 32.84 208 96zm0 0v288"}}]})(e)}function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 01-11.31-4.69l-352-352a16 16 0 0122.62-22.62l352 352A16 16 0 01432 448zM248 315.85l-51.79-51.79a2 2 0 00-3.39 1.69 64.11 64.11 0 0053.49 53.49 2 2 0 001.69-3.39zm16-119.7L315.87 248a2 2 0 003.4-1.69 64.13 64.13 0 00-53.55-53.55 2 2 0 00-1.72 3.39z"}},{tag:"path",attr:{d:"M491 273.36a32.2 32.2 0 00-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 00-71.82 11.79 4 4 0 00-1.56 6.63l47.24 47.24a4 4 0 003.82 1.05 96 96 0 01116 116 4 4 0 001.05 3.81l67.95 68a4 4 0 005.4.24 343.81 343.81 0 0067.24-77.4zM256 352a96 96 0 01-93.3-118.63 4 4 0 00-1.05-3.81l-66.84-66.87a4 4 0 00-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 255.68 416a238.22 238.22 0 0072.64-11.55 4 4 0 001.61-6.64l-47.47-47.46a4 4 0 00-3.81-1.05A96 96 0 01256 352z"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"}},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 00-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 00-.1-34.76zM256 352a96 96 0 1196-96 96.11 96.11 0 01-96 96z"}}]})(e)}},92014:function(e,t,n){"use strict";n.d(t,{w_:function(){return l}});var r=n(2784),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function l(e){return function(t){return r.createElement(c,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,o=e.attr,i=e.size,l=e.title,c=s(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,c,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==i?r.createElement(i.Consumer,null,function(e){return t(e)}):t(o)}},34398:function(e,t,n){"use strict";n.d(t,{Adh:function(){return M},Azx:function(){return f},Cs$:function(){return a},ExP:function(){return O},F3s:function(){return P},Fyy:function(){return h},G1z:function(){return k},GH$:function(){return F},Hid:function(){return K},HmO:function(){return C},Jgf:function(){return g},L8_:function(){return B},NqZ:function(){return T},Nrw:function(){return A},OB$:function(){return m},Qcu:function(){return G},QsJ:function(){return J},S$_:function(){return E},TbW:function(){return p},VZp:function(){return _},XAr:function(){return v},Xap:function(){return Q},YG0:function(){return s},YTS:function(){return d},_SY:function(){return w},_qA:function(){return u},cy8:function(){return L},dc7:function(){return z},dtO:function(){return o},e1i:function(){return q},eSQ:function(){return $},eVh:function(){return b},e_Z:function(){return c},ffJ:function(){return H},gJg:function(){return Z},hSQ:function(){return S},hnQ:function(){return x},hp_:function(){return D},kc8:function(){return i},nIw:function(){return Y},nzV:function(){return l},oK$:function(){return j},qy0:function(){return U},s60:function(){return X},tbY:function(){return W},tdG:function(){return R},tgW:function(){return V},tsq:function(){return N},x2F:function(){return I},y6H:function(){return y}});var r=n(92014);function o(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.9999 16.1716L18.3638 10.8076L19.778 12.2218L11.9999 20L4.22168 12.2218L5.63589 10.8076L10.9999 16.1716V4H12.9999V16.1716Z"}}]})(e)}function i(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 15.0006L7.75732 10.758L9.17154 9.34375L12 12.1722L14.8284 9.34375L16.2426 10.758L12 15.0006Z"}}]})(e)}function a(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.1717 12.0005L9.34326 9.17203L10.7575 7.75781L15.0001 12.0005L10.7575 16.2431L9.34326 14.8289L12.1717 12.0005Z"}}]})(e)}function s(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"}}]})(e)}function l(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"}}]})(e)}function c(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.9999 7.82843V20H10.9999V7.82843L5.63589 13.1924L4.22168 11.7782L11.9999 4L19.778 11.7782L18.3638 13.1924L12.9999 7.82843Z"}}]})(e)}function u(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 21.0001H5C4.44772 21.0001 4 20.5524 4 20.0001V11.0001L1 11.0001L11.3273 1.61162C11.7087 1.26488 12.2913 1.26488 12.6727 1.61162L23 11.0001L20 11.0001V20.0001C20 20.5524 19.5523 21.0001 19 21.0001ZM6 19.0001H18V9.15757L12 3.70302L6 9.15757V19.0001Z"}}]})(e)}function d(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM12.0606 11.6829L5.64722 6.2377L4.35278 7.7623L12.0731 14.3171L19.6544 7.75616L18.3456 6.24384L12.0606 11.6829Z"}}]})(e)}function f(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM20 7.23792L12.0718 14.338L4 7.21594V19H20V7.23792ZM4.51146 5L12.0619 11.662L19.501 5H4.51146Z"}}]})(e)}function p(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17 2C17.5523 2 18 2.44772 18 3V7H21C21.5523 7 22 7.44772 22 8V18C22 18.5523 21.5523 19 21 19H18V21C18 21.5523 17.5523 22 17 22H7C6.44772 22 6 21.5523 6 21V19H3C2.44772 19 2 18.5523 2 18V8C2 7.44772 2.44772 7 3 7H6V3C6 2.44772 6.44772 2 7 2H17ZM16 17H8V20H16V17ZM20 9H4V17H6V16C6 15.4477 6.44772 15 7 15H17C17.5523 15 18 15.4477 18 16V17H20V9ZM8 10V12H5V10H8ZM16 4H8V7H16V4Z"}}]})(e)}function h(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.45455 19L2 22.5V4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4V18C22 18.5523 21.5523 19 21 19H6.45455ZM5.76282 17H20V5H4V18.3851L5.76282 17ZM11 10H13V12H11V10ZM7 10H9V12H7V10ZM15 10H17V12H15V10Z"}}]})(e)}function m(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2C20.5523 2 21 2.44772 21 3V8C21 8.55228 20.5523 9 20 9H15V22C15 22.5523 14.5523 23 14 23H10C9.44772 23 9 22.5523 9 22V9H3.5C2.94772 9 2.5 8.55228 2.5 8V5.61803C2.5 5.23926 2.714 4.893 3.05279 4.72361L8.5 2H20ZM15 4H8.97214L4.5 6.23607V7H11V21H13V7H15V4ZM19 4H17V7H19V4Z"}}]})(e)}function g(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 8C3.34315 8 2 6.65685 2 5C2 3.34315 3.34315 2 5 2C6.65685 2 8 3.34315 8 5C8 6.65685 6.65685 8 5 8ZM19 8C17.3431 8 16 6.65685 16 5C16 3.34315 17.3431 2 19 2C20.6569 2 22 3.34315 22 5C22 6.65685 20.6569 8 19 8ZM19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19C22 20.6569 20.6569 22 19 22ZM5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19C8 20.6569 6.65685 22 5 22ZM9 4H15V6H9V4ZM9 18H15V20H9V18ZM4 9H6V15H4V9ZM18 9H20V15H18V9Z"}}]})(e)}function v(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 16.42V19.9561C21 20.4811 20.5941 20.9167 20.0705 20.9537C19.6331 20.9846 19.2763 21 19 21C10.1634 21 3 13.8366 3 5C3 4.72371 3.01545 4.36687 3.04635 3.9295C3.08337 3.40588 3.51894 3 4.04386 3H7.5801C7.83678 3 8.05176 3.19442 8.07753 3.4498C8.10067 3.67907 8.12218 3.86314 8.14207 4.00202C8.34435 5.41472 8.75753 6.75936 9.3487 8.00303C9.44359 8.20265 9.38171 8.44159 9.20185 8.57006L7.04355 10.1118C8.35752 13.1811 10.8189 15.6425 13.8882 16.9565L15.4271 14.8019C15.5572 14.6199 15.799 14.5573 16.001 14.6532C17.2446 15.2439 18.5891 15.6566 20.0016 15.8584C20.1396 15.8782 20.3225 15.8995 20.5502 15.9225C20.8056 15.9483 21 16.1633 21 16.42Z"}}]})(e)}function y(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z"}}]})(e)}function b(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 4H15V8H19V20H5V4ZM3.9985 2C3.44749 2 3 2.44405 3 2.9918V21.0082C3 21.5447 3.44476 22 3.9934 22H20.0066C20.5551 22 21 21.5489 21 20.9925L20.9997 7L16 2H3.9985ZM10.4999 7.5C10.4999 9.07749 10.0442 10.9373 9.27493 12.6534C8.50287 14.3757 7.46143 15.8502 6.37524 16.7191L7.55464 18.3321C10.4821 16.3804 13.7233 15.0421 16.8585 15.49L17.3162 13.5513C14.6435 12.6604 12.4999 9.98994 12.4999 7.5H10.4999ZM11.0999 13.4716C11.3673 12.8752 11.6042 12.2563 11.8037 11.6285C12.2753 12.3531 12.8553 13.0182 13.5101 13.5953C12.5283 13.7711 11.5665 14.0596 10.6352 14.4276C10.7999 14.1143 10.9551 13.7948 11.0999 13.4716Z"}}]})(e)}function w(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16H8V8H12C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16ZM10 10V14H12C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10H10ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z"}}]})(e)}function x(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 20V4H4V19C4 19.5523 4.44772 20 5 20H16ZM19 22H5C3.34315 22 2 20.6569 2 19V3C2 2.44772 2.44772 2 3 2H17C17.5523 2 18 2.44772 18 3V10H22V19C22 20.6569 20.6569 22 19 22ZM18 12V19C18 19.5523 18.4477 20 19 20C19.5523 20 20 19.5523 20 19V12H18ZM6 6H12V12H6V6ZM8 8V10H10V8H8ZM6 13H14V15H6V13ZM6 16H14V18H6V16Z"}}]})(e)}function C(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 8V20H19V8H5ZM5 6H19V4H5V6ZM20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM7 10H11V14H7V10ZM7 16H17V18H7V16ZM13 11H17V13H13V11Z"}}]})(e)}function k(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.8287 7.7574L9.1718 13.4143C8.78127 13.8048 8.78127 14.4379 9.1718 14.8285C9.56232 15.219 10.1955 15.219 10.586 14.8285L16.2429 9.17161C17.4144 8.00004 17.4144 6.10055 16.2429 4.92897C15.0713 3.7574 13.1718 3.7574 12.0002 4.92897L6.34337 10.5858C4.39075 12.5384 4.39075 15.7043 6.34337 17.6569C8.29599 19.6095 11.4618 19.6095 13.4144 17.6569L19.0713 12L20.4855 13.4143L14.8287 19.0711C12.095 21.8048 7.66283 21.8048 4.92916 19.0711C2.19549 16.3374 2.19549 11.9053 4.92916 9.17161L10.586 3.51476C12.5386 1.56214 15.7045 1.56214 17.6571 3.51476C19.6097 5.46738 19.6097 8.63321 17.6571 10.5858L12.0002 16.2427C10.8287 17.4143 8.92916 17.4143 7.75759 16.2427C6.58601 15.0711 6.58601 13.1716 7.75759 12L13.4144 6.34319L14.8287 7.7574Z"}}]})(e)}function S(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 4H21V6H11V4ZM11 8H17V10H11V8ZM11 14H21V16H11V14ZM11 18H17V20H11V18ZM3 4H9V10H3V4ZM5 6V8H7V6H5ZM3 14H9V20H3V14ZM5 16V18H7V16H5Z"}}]})(e)}function E(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.00488 9.00293C5.55717 9.00293 6.00488 9.45064 6.00488 10.0029C7.63965 10.0029 9.14352 10.5633 10.3349 11.5025L12.5049 11.5029C13.8375 11.5029 15.0348 12.0822 15.8588 13.0027L19.0049 13.0029C20.9972 13.0029 22.7173 14.1682 23.521 15.8543C21.1562 18.975 17.3268 21.0029 13.0049 21.0029C10.2142 21.0029 7.85466 20.3997 5.944 19.345C5.80557 19.7285 5.43727 20.0029 5.00488 20.0029H2.00488C1.4526 20.0029 1.00488 19.5552 1.00488 19.0029V10.0029C1.00488 9.45064 1.4526 9.00293 2.00488 9.00293H5.00488ZM6.00589 12.0029L6.00488 17.0249L6.05024 17.0574C7.84406 18.3178 10.183 19.0029 13.0049 19.0029C16.0089 19.0029 18.8035 17.8473 20.84 15.8735L20.9729 15.7399L20.8537 15.6395C20.3897 15.2765 19.8205 15.0513 19.2099 15.0099L19.0049 15.0029L16.8934 15.003C16.9664 15.3246 17.0049 15.6593 17.0049 16.0029V17.0029H8.00488V15.0029L14.7949 15.0019L14.7605 14.9235C14.38 14.1299 13.593 13.5682 12.6693 13.5082L12.5049 13.5029L9.57547 13.5028C8.66823 12.5774 7.40412 12.0032 6.00589 12.0029ZM4.00488 11.0029H3.00488V18.0029H4.00488V11.0029ZM18.0049 5.00293C19.6617 5.00293 21.0049 6.34608 21.0049 8.00293C21.0049 9.65978 19.6617 11.0029 18.0049 11.0029C16.348 11.0029 15.0049 9.65978 15.0049 8.00293C15.0049 6.34608 16.348 5.00293 18.0049 5.00293ZM18.0049 7.00293C17.4526 7.00293 17.0049 7.45064 17.0049 8.00293C17.0049 8.55521 17.4526 9.00293 18.0049 9.00293C18.5572 9.00293 19.0049 8.55521 19.0049 8.00293C19.0049 7.45064 18.5572 7.00293 18.0049 7.00293ZM11.0049 2.00293C12.6617 2.00293 14.0049 3.34608 14.0049 5.00293C14.0049 6.65978 12.6617 8.00293 11.0049 8.00293C9.34803 8.00293 8.00488 6.65978 8.00488 5.00293C8.00488 3.34608 9.34803 2.00293 11.0049 2.00293ZM11.0049 4.00293C10.4526 4.00293 10.0049 4.45064 10.0049 5.00293C10.0049 5.55521 10.4526 6.00293 11.0049 6.00293C11.5572 6.00293 12.0049 5.55521 12.0049 5.00293C12.0049 4.45064 11.5572 4.00293 11.0049 4.00293Z"}}]})(e)}function T(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14 13.5H16.5L17.5 9.5H14V7.5C14 6.47062 14 5.5 16 5.5H17.5V2.1401C17.1743 2.09685 15.943 2 14.6429 2C11.9284 2 10 3.65686 10 6.69971V9.5H7V13.5H10V22H14V13.5Z"}}]})(e)}function A(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.0281 2.00098C14.1535 2.00284 14.7238 2.00879 15.2166 2.02346L15.4107 2.02981C15.6349 2.03778 15.8561 2.04778 16.1228 2.06028C17.1869 2.10944 17.9128 2.27778 18.5503 2.52528C19.2094 2.77944 19.7661 3.12278 20.3219 3.67861C20.8769 4.23444 21.2203 4.79278 21.4753 5.45028C21.7219 6.08694 21.8903 6.81361 21.9403 7.87778C21.9522 8.14444 21.9618 8.36564 21.9697 8.58989L21.976 8.78397C21.9906 9.27672 21.9973 9.8471 21.9994 10.9725L22.0002 11.7182C22.0003 11.8093 22.0003 11.9033 22.0003 12.0003L22.0002 12.2824L21.9996 13.0281C21.9977 14.1535 21.9918 14.7238 21.9771 15.2166L21.9707 15.4107C21.9628 15.6349 21.9528 15.8561 21.9403 16.1228C21.8911 17.1869 21.7219 17.9128 21.4753 18.5503C21.2211 19.2094 20.8769 19.7661 20.3219 20.3219C19.7661 20.8769 19.2069 21.2203 18.5503 21.4753C17.9128 21.7219 17.1869 21.8903 16.1228 21.9403C15.8561 21.9522 15.6349 21.9618 15.4107 21.9697L15.2166 21.976C14.7238 21.9906 14.1535 21.9973 13.0281 21.9994L12.2824 22.0002C12.1913 22.0003 12.0973 22.0003 12.0003 22.0003L11.7182 22.0002L10.9725 21.9996C9.8471 21.9977 9.27672 21.9918 8.78397 21.9771L8.58989 21.9707C8.36564 21.9628 8.14444 21.9528 7.87778 21.9403C6.81361 21.8911 6.08861 21.7219 5.45028 21.4753C4.79194 21.2211 4.23444 20.8769 3.67861 20.3219C3.12278 19.7661 2.78028 19.2069 2.52528 18.5503C2.27778 17.9128 2.11028 17.1869 2.06028 16.1228C2.0484 15.8561 2.03871 15.6349 2.03086 15.4107L2.02457 15.2166C2.00994 14.7238 2.00327 14.1535 2.00111 13.0281L2.00098 10.9725C2.00284 9.8471 2.00879 9.27672 2.02346 8.78397L2.02981 8.58989C2.03778 8.36564 2.04778 8.14444 2.06028 7.87778C2.10944 6.81278 2.27778 6.08778 2.52528 5.45028C2.77944 4.79194 3.12278 4.23444 3.67861 3.67861C4.23444 3.12278 4.79278 2.78028 5.45028 2.52528C6.08778 2.27778 6.81278 2.11028 7.87778 2.06028C8.14444 2.0484 8.36564 2.03871 8.58989 2.03086L8.78397 2.02457C9.27672 2.00994 9.8471 2.00327 10.9725 2.00111L13.0281 2.00098ZM12.0003 7.00028C9.23738 7.00028 7.00028 9.23981 7.00028 12.0003C7.00028 14.7632 9.23981 17.0003 12.0003 17.0003C14.7632 17.0003 17.0003 14.7607 17.0003 12.0003C17.0003 9.23738 14.7607 7.00028 12.0003 7.00028ZM12.0003 9.00028C13.6572 9.00028 15.0003 10.3429 15.0003 12.0003C15.0003 13.6572 13.6576 15.0003 12.0003 15.0003C10.3434 15.0003 9.00028 13.6576 9.00028 12.0003C9.00028 10.3434 10.3429 9.00028 12.0003 9.00028ZM17.2503 5.50028C16.561 5.50028 16.0003 6.06018 16.0003 6.74943C16.0003 7.43867 16.5602 7.99944 17.2503 7.99944C17.9395 7.99944 18.5003 7.43954 18.5003 6.74943C18.5003 6.06018 17.9386 5.49941 17.2503 5.50028Z"}}]})(e)}function M(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.001 9C10.3436 9 9.00098 10.3431 9.00098 12C9.00098 13.6573 10.3441 15 12.001 15C13.6583 15 15.001 13.6569 15.001 12C15.001 10.3427 13.6579 9 12.001 9ZM12.001 7C14.7614 7 17.001 9.2371 17.001 12C17.001 14.7605 14.7639 17 12.001 17C9.24051 17 7.00098 14.7629 7.00098 12C7.00098 9.23953 9.23808 7 12.001 7ZM18.501 6.74915C18.501 7.43926 17.9402 7.99917 17.251 7.99917C16.5609 7.99917 16.001 7.4384 16.001 6.74915C16.001 6.0599 16.5617 5.5 17.251 5.5C17.9393 5.49913 18.501 6.0599 18.501 6.74915ZM12.001 4C9.5265 4 9.12318 4.00655 7.97227 4.0578C7.18815 4.09461 6.66253 4.20007 6.17416 4.38967C5.74016 4.55799 5.42709 4.75898 5.09352 5.09255C4.75867 5.4274 4.55804 5.73963 4.3904 6.17383C4.20036 6.66332 4.09493 7.18811 4.05878 7.97115C4.00703 9.0752 4.00098 9.46105 4.00098 12C4.00098 14.4745 4.00753 14.8778 4.05877 16.0286C4.0956 16.8124 4.2012 17.3388 4.39034 17.826C4.5591 18.2606 4.7605 18.5744 5.09246 18.9064C5.42863 19.2421 5.74179 19.4434 6.17187 19.6094C6.66619 19.8005 7.19148 19.9061 7.97212 19.9422C9.07618 19.9939 9.46203 20 12.001 20C14.4755 20 14.8788 19.9934 16.0296 19.9422C16.8117 19.9055 17.3385 19.7996 17.827 19.6106C18.2604 19.4423 18.5752 19.2402 18.9074 18.9085C19.2436 18.5718 19.4445 18.2594 19.6107 17.8283C19.8013 17.3358 19.9071 16.8098 19.9432 16.0289C19.9949 14.9248 20.001 14.5389 20.001 12C20.001 9.52552 19.9944 9.12221 19.9432 7.97137C19.9064 7.18906 19.8005 6.66149 19.6113 6.17318C19.4434 5.74038 19.2417 5.42635 18.9084 5.09255C18.573 4.75715 18.2616 4.55693 17.8271 4.38942C17.338 4.19954 16.8124 4.09396 16.0298 4.05781C14.9258 4.00605 14.5399 4 12.001 4ZM12.001 2C14.7176 2 15.0568 2.01 16.1235 2.06C17.1876 2.10917 17.9135 2.2775 18.551 2.525C19.2101 2.77917 19.7668 3.1225 20.3226 3.67833C20.8776 4.23417 21.221 4.7925 21.476 5.45C21.7226 6.08667 21.891 6.81333 21.941 7.8775C21.9885 8.94417 22.001 9.28333 22.001 12C22.001 14.7167 21.991 15.0558 21.941 16.1225C21.8918 17.1867 21.7226 17.9125 21.476 18.55C21.2218 19.2092 20.8776 19.7658 20.3226 20.3217C19.7668 20.8767 19.2076 21.22 18.551 21.475C17.9135 21.7217 17.1876 21.89 16.1235 21.94C15.0568 21.9875 14.7176 22 12.001 22C9.28431 22 8.94514 21.99 7.87848 21.94C6.81431 21.8908 6.08931 21.7217 5.45098 21.475C4.79264 21.2208 4.23514 20.8767 3.67931 20.3217C3.12348 19.7658 2.78098 19.2067 2.52598 18.55C2.27848 17.9125 2.11098 17.1867 2.06098 16.1225C2.01348 15.0558 2.00098 14.7167 2.00098 12C2.00098 9.28333 2.01098 8.94417 2.06098 7.8775C2.11014 6.8125 2.27848 6.0875 2.52598 5.45C2.78014 4.79167 3.12348 4.23417 3.67931 3.67833C4.23514 3.1225 4.79348 2.78 5.45098 2.525C6.08848 2.2775 6.81348 2.11 7.87848 2.06C8.94514 2.0125 9.28431 2 12.001 2Z"}}]})(e)}function N(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.3362 18.339H15.6707V14.1622C15.6707 13.1662 15.6505 11.8845 14.2817 11.8845C12.892 11.8845 12.6797 12.9683 12.6797 14.0887V18.339H10.0142V9.75H12.5747V10.9207H12.6092C12.967 10.2457 13.837 9.53325 15.1367 9.53325C17.8375 9.53325 18.337 11.3108 18.337 13.6245V18.339H18.3362ZM7.00373 8.57475C6.14573 8.57475 5.45648 7.88025 5.45648 7.026C5.45648 6.1725 6.14648 5.47875 7.00373 5.47875C7.85873 5.47875 8.55173 6.1725 8.55173 7.026C8.55173 7.88025 7.85798 8.57475 7.00373 8.57475ZM8.34023 18.339H5.66723V9.75H8.34023V18.339ZM19.6697 3H4.32923C3.59498 3 3.00098 3.5805 3.00098 4.29675V19.7033C3.00098 20.4202 3.59498 21 4.32923 21H19.6675C20.401 21 21.001 20.4202 21.001 19.7033V4.29675C21.001 3.5805 20.401 3 19.6675 3H19.6697Z"}}]})(e)}function O(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.94048 4.99993C6.94011 5.81424 6.44608 6.54702 5.69134 6.85273C4.9366 7.15845 4.07187 6.97605 3.5049 6.39155C2.93793 5.80704 2.78195 4.93715 3.1105 4.19207C3.43906 3.44699 4.18654 2.9755 5.00048 2.99993C6.08155 3.03238 6.94097 3.91837 6.94048 4.99993ZM7.00048 8.47993H3.00048V20.9999H7.00048V8.47993ZM13.3205 8.47993H9.34048V20.9999H13.2805V14.4299C13.2805 10.7699 18.0505 10.4299 18.0505 14.4299V20.9999H22.0005V13.0699C22.0005 6.89993 14.9405 7.12993 13.2805 10.1599L13.3205 8.47993Z"}}]})(e)}function I(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M22.2125 5.65605C21.4491 5.99375 20.6395 6.21555 19.8106 6.31411C20.6839 5.79132 21.3374 4.9689 21.6493 4.00005C20.8287 4.48761 19.9305 4.83077 18.9938 5.01461C18.2031 4.17106 17.098 3.69303 15.9418 3.69434C13.6326 3.69434 11.7597 5.56661 11.7597 7.87683C11.7597 8.20458 11.7973 8.52242 11.8676 8.82909C8.39047 8.65404 5.31007 6.99005 3.24678 4.45941C2.87529 5.09767 2.68005 5.82318 2.68104 6.56167C2.68104 8.01259 3.4196 9.29324 4.54149 10.043C3.87737 10.022 3.22788 9.84264 2.64718 9.51973C2.64654 9.5373 2.64654 9.55487 2.64654 9.57148C2.64654 11.5984 4.08819 13.2892 6.00199 13.6731C5.6428 13.7703 5.27232 13.8194 4.90022 13.8191C4.62997 13.8191 4.36771 13.7942 4.11279 13.7453C4.64531 15.4065 6.18886 16.6159 8.0196 16.6491C6.53813 17.8118 4.70869 18.4426 2.82543 18.4399C2.49212 18.4402 2.15909 18.4205 1.82812 18.3811C3.74004 19.6102 5.96552 20.2625 8.23842 20.2601C15.9316 20.2601 20.138 13.8875 20.138 8.36111C20.138 8.1803 20.1336 7.99886 20.1256 7.81997C20.9443 7.22845 21.651 6.49567 22.2125 5.65605Z"}}]})(e)}function L(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8 2H1L9.26086 13.0145L1.44995 21.9999H4.09998L10.4883 14.651L16 22H23L14.3917 10.5223L21.8001 2H19.1501L13.1643 8.88578L8 2ZM17 20L5 4H7L19 20H17Z"}}]})(e)}function R(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.001 2C17.5238 2 22.001 6.47715 22.001 12C22.001 17.5228 17.5238 22 12.001 22C10.1671 22 8.44851 21.5064 6.97086 20.6447L2.00516 22L3.35712 17.0315C2.49494 15.5536 2.00098 13.8345 2.00098 12C2.00098 6.47715 6.47813 2 12.001 2ZM8.59339 7.30019L8.39232 7.30833C8.26293 7.31742 8.13607 7.34902 8.02057 7.40811C7.93392 7.45244 7.85348 7.51651 7.72709 7.63586C7.60774 7.74855 7.53857 7.84697 7.46569 7.94186C7.09599 8.4232 6.89729 9.01405 6.90098 9.62098C6.90299 10.1116 7.03043 10.5884 7.23169 11.0336C7.63982 11.9364 8.31288 12.8908 9.20194 13.7759C9.4155 13.9885 9.62473 14.2034 9.85034 14.402C10.9538 15.3736 12.2688 16.0742 13.6907 16.4482C13.6907 16.4482 14.2507 16.5342 14.2589 16.5347C14.4444 16.5447 14.6296 16.5313 14.8153 16.5218C15.1066 16.5068 15.391 16.428 15.6484 16.2909C15.8139 16.2028 15.8922 16.159 16.0311 16.0714C16.0311 16.0714 16.0737 16.0426 16.1559 15.9814C16.2909 15.8808 16.3743 15.81 16.4866 15.6934C16.5694 15.6074 16.6406 15.5058 16.6956 15.3913C16.7738 15.2281 16.8525 14.9166 16.8838 14.6579C16.9077 14.4603 16.9005 14.3523 16.8979 14.2854C16.8936 14.1778 16.8047 14.0671 16.7073 14.0201L16.1258 13.7587C16.1258 13.7587 15.2563 13.3803 14.7245 13.1377C14.6691 13.1124 14.6085 13.1007 14.5476 13.097C14.4142 13.0888 14.2647 13.1236 14.1696 13.2238C14.1646 13.2218 14.0984 13.279 13.3749 14.1555C13.335 14.2032 13.2415 14.3069 13.0798 14.2972C13.0554 14.2955 13.0311 14.292 13.0074 14.2858C12.9419 14.2685 12.8781 14.2457 12.8157 14.2193C12.692 14.1668 12.6486 14.1469 12.5641 14.1105C11.9868 13.8583 11.457 13.5209 10.9887 13.108C10.8631 12.9974 10.7463 12.8783 10.6259 12.7616C10.2057 12.3543 9.86169 11.9211 9.60577 11.4938C9.5918 11.4705 9.57027 11.4368 9.54708 11.3991C9.50521 11.331 9.45903 11.25 9.44455 11.1944C9.40738 11.0473 9.50599 10.9291 9.50599 10.9291C9.50599 10.9291 9.74939 10.663 9.86248 10.5183C9.97128 10.379 10.0652 10.2428 10.125 10.1457C10.2428 9.95633 10.2801 9.76062 10.2182 9.60963C9.93764 8.92565 9.64818 8.24536 9.34986 7.56894C9.29098 7.43545 9.11585 7.33846 8.95659 7.32007C8.90265 7.31384 8.84875 7.30758 8.79459 7.30402C8.66053 7.29748 8.5262 7.29892 8.39232 7.30833L8.59339 7.30019Z"}}]})(e)}function j(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.2439 4C12.778 4.00294 14.1143 4.01586 15.5341 4.07273L16.0375 4.09468C17.467 4.16236 18.8953 4.27798 19.6037 4.4755C20.5486 4.74095 21.2913 5.5155 21.5423 6.49732C21.942 8.05641 21.992 11.0994 21.9982 11.8358L21.9991 11.9884L21.9991 11.9991C21.9991 11.9991 21.9991 12.0028 21.9991 12.0099L21.9982 12.1625C21.992 12.8989 21.942 15.9419 21.5423 17.501C21.2878 18.4864 20.5451 19.261 19.6037 19.5228C18.8953 19.7203 17.467 19.8359 16.0375 19.9036L15.5341 19.9255C14.1143 19.9824 12.778 19.9953 12.2439 19.9983L12.0095 19.9991L11.9991 19.9991C11.9991 19.9991 11.9956 19.9991 11.9887 19.9991L11.7545 19.9983C10.6241 19.9921 5.89772 19.941 4.39451 19.5228C3.4496 19.2573 2.70692 18.4828 2.45587 17.501C2.0562 15.9419 2.00624 12.8989 2 12.1625V11.8358C2.00624 11.0994 2.0562 8.05641 2.45587 6.49732C2.7104 5.51186 3.45308 4.73732 4.39451 4.4755C5.89772 4.05723 10.6241 4.00622 11.7545 4H12.2439ZM9.99911 8.49914V15.4991L15.9991 11.9991L9.99911 8.49914Z"}}]})(e)}function P(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 20.8995L16.9497 15.9497C19.6834 13.2161 19.6834 8.78392 16.9497 6.05025C14.2161 3.31658 9.78392 3.31658 7.05025 6.05025C4.31658 8.78392 4.31658 13.2161 7.05025 15.9497L12 20.8995ZM12 23.7279L5.63604 17.364C2.12132 13.8492 2.12132 8.15076 5.63604 4.63604C9.15076 1.12132 14.8492 1.12132 18.364 4.63604C21.8787 8.15076 21.8787 13.8492 18.364 17.364L12 23.7279ZM12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 15C9.79086 15 8 13.2091 8 11C8 8.79086 9.79086 7 12 7C14.2091 7 16 8.79086 16 11C16 13.2091 14.2091 15 12 15Z"}}]})(e)}function _(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.17071 18C6.58254 16.8348 7.69378 16 9 16C10.3062 16 11.4175 16.8348 11.8293 18H22V20H11.8293C11.4175 21.1652 10.3062 22 9 22C7.69378 22 6.58254 21.1652 6.17071 20H2V18H6.17071ZM12.1707 11C12.5825 9.83481 13.6938 9 15 9C16.3062 9 17.4175 9.83481 17.8293 11H22V13H17.8293C17.4175 14.1652 16.3062 15 15 15C13.6938 15 12.5825 14.1652 12.1707 13H2V11H12.1707ZM6.17071 4C6.58254 2.83481 7.69378 2 9 2C10.3062 2 11.4175 2.83481 11.8293 4H22V6H11.8293C11.4175 7.16519 10.3062 8 9 8C7.69378 8 6.58254 7.16519 6.17071 6H2V4H6.17071ZM9 6C9.55228 6 10 5.55228 10 5C10 4.44772 9.55228 4 9 4C8.44772 4 8 4.44772 8 5C8 5.55228 8.44772 6 9 6ZM15 13C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12C14 12.5523 14.4477 13 15 13ZM9 20C9.55228 20 10 19.5523 10 19C10 18.4477 9.55228 18 9 18C8.44772 18 8 18.4477 8 19C8 19.5523 8.44772 20 9 20Z"}}]})(e)}function D(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M1.99805 21.0003V19.0003L3.99805 19.0001V4.83489C3.99805 4.35161 4.34367 3.93748 4.81916 3.85102L14.2907 2.12892C14.6167 2.06965 14.9291 2.28589 14.9884 2.61191C14.9948 2.64733 14.998 2.68325 14.998 2.71924V4.00014L18.998 4.00032C19.5503 4.00032 19.998 4.44803 19.998 5.00032V19.0001L21.998 19.0003V21.0003H17.998V6.00032L14.998 6.00014V21.0003H1.99805ZM12.998 4.39674L5.99805 5.66947V19.0003H12.998V4.39674ZM11.998 11.0003V13.0003H9.99805V11.0003H11.998Z"}}]})(e)}function z(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.97308 18H11V13H13V18H14.0269C14.1589 16.7984 14.7721 15.8065 15.7676 14.7226C15.8797 14.6006 16.5988 13.8564 16.6841 13.7501C17.5318 12.6931 18 11.385 18 10C18 6.68629 15.3137 4 12 4C8.68629 4 6 6.68629 6 10C6 11.3843 6.46774 12.6917 7.31462 13.7484C7.40004 13.855 8.12081 14.6012 8.23154 14.7218C9.22766 15.8064 9.84103 16.7984 9.97308 18ZM10 20V21H14V20H10ZM5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.624 15.7748 16 17 16 18.5V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V18.5C8 17 6.37458 15.7736 5.75395 14.9992Z"}}]})(e)}function B(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.865 3.00017L22.3912 19.5002C22.6674 19.9785 22.5035 20.5901 22.0252 20.8662C21.8732 20.954 21.7008 21.0002 21.5252 21.0002H2.47266C1.92037 21.0002 1.47266 20.5525 1.47266 20.0002C1.47266 19.8246 1.51886 19.6522 1.60663 19.5002L11.1329 3.00017C11.4091 2.52187 12.0206 2.358 12.4989 2.63414C12.651 2.72191 12.7772 2.84815 12.865 3.00017ZM4.20471 19.0002H19.7932L11.9989 5.50017L4.20471 19.0002ZM10.9989 16.0002H12.9989V18.0002H10.9989V16.0002ZM10.9989 9.00017H12.9989V14.0002H10.9989V9.00017Z"}}]})(e)}function H(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.0007 15.1709L19.1931 5.97852L20.6073 7.39273L10.0007 17.9993L3.63672 11.6354L5.05093 10.2212L10.0007 15.1709Z"}}]})(e)}function F(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"}}]})(e)}function V(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z"}}]})(e)}function $(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z"}}]})(e)}function U(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z"}}]})(e)}function q(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM14 9H19L12 16L5 9H10V3H14V9Z"}}]})(e)}function Z(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z"}}]})(e)}function W(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"}}]})(e)}function J(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 11H15V13H3V11ZM3 18H21V20H3V18Z"}}]})(e)}function G(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"}}]})(e)}function K(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM13 12H17V14H11V7H13V12Z"}}]})(e)}function Y(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z"}}]})(e)}function X(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z"}}]})(e)}function Q(e){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 9H21L11 24V15H4L13 0V9ZM11 11V7.22063L7.53238 13H13V17.3944L17.263 11H11Z"}}]})(e)}},17369:function(){},11267:function(){},64595:function(){},34112:function(){},53911:function(){},94438:function(){},92445:function(){},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else if(47===n)break;else n=47;if(47===n){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,o="",i=!1,a=arguments.length-1;a>=-1&&!i;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(o=r+"/"+o,i=47===r.charCodeAt(0));return(o=n(o,!i),i)?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,a=i-o,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,c=a<l?a:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>c&&(47===e.charCodeAt(o+d)?u=d:0===d&&(u=0));break}var f=e.charCodeAt(o+d);if(f!==n.charCodeAt(s+d))break;47===f&&(u=d)}var p="";for(d=o+u+1;d<=i;++d)(d===i||47===e.charCodeAt(d))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+u):(s+=u,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return -1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){o=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){o=r+1;break}}else -1===i&&(a=!1,i=r+1);return -1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!i){r=s+1;break}continue}-1===o&&(i=!1,o=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===o||0===a||1===a&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var o=e.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,d=0;u>=n;--u){if(47===(o=e.charCodeAt(u))){if(!c){s=u+1;break}continue}-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&i?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&i?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(114);e.exports=o}()},25237:function(e,t,n){e.exports=n(72392)},97729:function(e,t,n){e.exports=n(68792)},96577:function(e,t,n){e.exports=n(5329)},39097:function(e,t,n){e.exports=n(14470)},5632:function(e,t,n){e.exports=n(70743)},45847:function(e,t,n){e.exports=n(19406)},92521:function(e,t,n){var r,o;void 0!==(o="function"==typeof(r=function(){var e,t,n,r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,t,n){return e<t?t:e>n?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(o[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=i(e,o.minimum,1),r.status=1===e?null:e;var n=r.render(!t),l=n.querySelector(o.barSelector),c=o.speed,u=o.easing;return n.offsetWidth,a(function(t){var i,a;""===o.positionUsing&&(o.positionUsing=r.getPositioningCSS()),s(l,(i=e,(a="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+i)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+i)*100+"%,0)"}:{"margin-left":(-1+i)*100+"%"}).transition="all "+c+"ms "+u,a)),1===e?(s(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){s(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},c)},c)):setTimeout(t,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var n,i=t.querySelector(o.barSelector),a=e?"-100":(-1+(r.status||0))*100,l=document.querySelector(o.parent);return s(i,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!o.showSpinner&&(n=t.querySelector(o.spinnerSelector))&&f(n),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(t),t},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var a=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,o){var i;r=t[i=(i=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[i]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(i)),n.style[r]=o}return function(e,t){var r,o,i=arguments;if(2==i.length)for(r in t)void 0!==(o=t[r])&&t.hasOwnProperty(r)&&n(e,r,o);else n(e,i[1],i[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=d(e),r=n+t;l(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=d(e);l(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)&&(e.exports=o)},34406:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},18701:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}let o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});let i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(i,a);o[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});let{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(52558),u=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce((e,t)=>{let n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},52558:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},76854:function(e){var t;t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","ǈ":"LJ","ǉ":"lj","ǋ":"NJ","ǌ":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","∑":"soma","\xa3":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function n(n,r){if("string"!=typeof n)throw Error("slugify: string argument expected");var o=t[(r="string"==typeof r?{replacement:r}:r||{}).locale]||{},i=void 0===r.replacement?"-":r.replacement,a=void 0===r.trim||r.trim,s=n.normalize().split("").reduce(function(t,n){var a=o[n];return void 0===a&&(a=e[n]),void 0===a&&(a=n),a===i&&(a=" "),t+a.replace(r.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return r.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),a&&(s=s.trim()),s=s.replace(/\s+/g,i),r.lower&&(s=s.toLowerCase()),s}return n.extend=function(t){Object.assign(e,t)},n},e.exports=t(),e.exports.default=t()},91618:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(63338)),o=n(31380);function i(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n}i.default=i,e.exports=i},31380:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||o.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}},63338:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var o=r(n(6299))},529:function(){},85748:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},96314:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},85297:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},91461:function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise(function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},53100:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},73419:function(e,t,n){var r=n(37028),o=n(78560);e.exports=function(e,t,n){if(r())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var a=new(e.bind.apply(e,i));return n&&o(a,n.prototype),a},e.exports.__esModule=!0,e.exports.default=e.exports},98870:function(e,t,n){var r=n(47739);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},26290:function(e,t,n){var r=n(47739);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1147:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},68230:function(e,t,n){var r=n(78560);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},71600:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},19549:function(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},37028:function(e){function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},66193:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},16147:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},60421:function(e,t,n){var r=n(67425).default,o=n(85297);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},27609:function(e,t,n){var r=n(67425).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function p(e,n,r,o){var i,a,l=Object.create((n&&n.prototype instanceof b?n:b).prototype);return s(l,"_invoke",{value:(i=new O(o||[]),a=m,function(n,o){if(a===g)throw Error("Generator is already running");if(a===v){if("throw"===n)throw o;return{value:t,done:!0}}for(i.method=n,i.arg=o;;){var s=i.delegate;if(s){var l=function e(n,r){var o=r.method,i=n.iterator[o];if(i===t)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),y;var a=h(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var s=a.arg;return s?s.done?(r[n.resultName]=s.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,y)}(s,i);if(l){if(l===y)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===m)throw a=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=g;var c=h(e,r,i);if("normal"===c.type){if(a=i.done?v:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=v,i.method="throw",i.arg=c.arg)}})}),l}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m="suspendedStart",g="executing",v="completed",y={};function b(){}function w(){}function x(){}var C={};f(C,c,function(){return this});var k=Object.getPrototypeOf,S=k&&k(k(I([])));S&&S!==i&&a.call(S,c)&&(C=S);var E=x.prototype=b.prototype=Object.create(C);function T(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function A(e,t){var n;s(this,"_invoke",{value:function(o,i){function s(){return new t(function(n,s){!function n(o,i,s,l){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(d).then(function(e){u.value=e,s(u)},function(e){return n("throw",e,s,l)})}l(c.arg)}(o,i,n,s)})}return n=n?n.then(s,s):s()}})}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw TypeError(r(e)+" is not iterable")}return w.prototype=x,s(E,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,d,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},T(A.prototype),f(A.prototype,u,function(){return this}),n.AsyncIterator=A,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new A(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},T(E),f(E,d,"Generator"),f(E,c,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},78560:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},43681:function(e,t,n){var r=n(96314),o=n(66193),i=n(60121),a=n(16147);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},68064:function(e,t,n){var r=n(67425).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},47739:function(e,t,n){var r=n(67425).default,o=n(68064);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},67425:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},60121:function(e,t,n){var r=n(85748);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=({}).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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},78365:function(e,t,n){var r=n(1147),o=n(78560),i=n(19549),a=n(73419);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},82841:function(e,t,n){var r=n(27609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},60418:function(e,t,n){"use strict";let r,o,i;n.d(t,{Z:function(){return th}});var a,s,l,c,u,d={};function f(e,t){return function(){return e.apply(t,arguments)}}n.r(d),n.d(d,{hasBrowserEnv:function(){return ev},hasStandardBrowserEnv:function(){return eb},hasStandardBrowserWebWorkerEnv:function(){return ew},navigator:function(){return ey},origin:function(){return ex}});var p=n(34406);let{toString:h}=Object.prototype,{getPrototypeOf:m}=Object,g=(r=Object.create(null),e=>{let t=h.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),v=e=>(e=e.toLowerCase(),t=>g(t)===e),y=e=>t=>typeof t===e,{isArray:b}=Array,w=y("undefined"),x=v("ArrayBuffer"),C=y("string"),k=y("function"),S=y("number"),E=e=>null!==e&&"object"==typeof e,T=e=>{if("object"!==g(e))return!1;let t=m(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A=v("Date"),M=v("File"),N=v("Blob"),O=v("FileList"),I=v("URLSearchParams"),[L,R,j,P]=["ReadableStream","Request","Response","Headers"].map(v);function _(e,t,{allOwnKeys:n=!1}={}){let r,o;if(null!=e){if("object"!=typeof e&&(e=[e]),b(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{let o;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}}function D(e,t){let n;t=t.toLowerCase();let r=Object.keys(e),o=r.length;for(;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}let z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B=e=>!w(e)&&e!==z,H=(o="undefined"!=typeof Uint8Array&&m(Uint8Array),e=>o&&e instanceof o),F=v("HTMLFormElement"),V=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$=v("RegExp"),U=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};_(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},q="abcdefghijklmnopqrstuvwxyz",Z="0123456789",W={DIGIT:Z,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+Z},J=v("AsyncFunction"),G=(a="function"==typeof setImmediate,s=k(z.postMessage),a?setImmediate:s?(l=`axios@${Math.random()}`,c=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===l&&c.length&&c.shift()()},!1),e=>{c.push(e),z.postMessage(l,"*")}):e=>setTimeout(e)),K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(z):void 0!==p&&p.nextTick||G;var Y={isArray:b,isArrayBuffer:x,isBuffer:function(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=g(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&x(e.buffer)},isString:C,isNumber:S,isBoolean:e=>!0===e||!1===e,isObject:E,isPlainObject:T,isReadableStream:L,isRequest:R,isResponse:j,isHeaders:P,isUndefined:w,isDate:A,isFile:M,isBlob:N,isRegExp:$,isFunction:k,isStream:e=>E(e)&&k(e.pipe),isURLSearchParams:I,isTypedArray:H,isFileList:O,forEach:_,merge:function e(){let{caseless:t}=B(this)&&this||{},n={},r=(r,o)=>{let i=t&&D(n,o)||o;T(n[i])&&T(r)?n[i]=e(n[i],r):T(r)?n[i]=e({},r):b(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(_(t,(t,r)=>{n&&k(t)?e[r]=f(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&m(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:g,kindOfTest:v,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(b(e))return e;let t=e.length;if(!S(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:V,hasOwnProp:V,reduceDescriptors:U,freezeMethods:e=>{U(e,(t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(k(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(b(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:D,global:z,isContextDefined:B,ALPHABET:W,generateString:(e=16,t=W.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let o=b(e)?[]:{};return _(e,(e,t)=>{let i=n(e,r+1);w(i)||(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:J,isThenable:e=>e&&(E(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:G,asap:K};function X(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});let Q=X.prototype,ee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ee[e]={value:e}}),Object.defineProperties(X,ee),Object.defineProperty(Q,"isAxiosError",{value:!0}),X.from=(e,t,n,r,o,i)=>{let a=Object.create(Q);return Y.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),X.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var et=n(48834).Buffer;function en(e){return Y.isPlainObject(e)||Y.isArray(e)}function er(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function eo(e,t,n){return e?e.concat(t).map(function(e,t){return e=er(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ei=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});var ea=function(e,t,n){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(!s&&Y.isBlob(e))throw new X("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):et.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e){if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var c;if(Y.isArray(e)&&(c=e,Y.isArray(c)&&!c.some(en))||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(s=Y.toArray(e)))return n=er(n),s.forEach(function(e,r){Y.isUndefined(e)||null===e||t.append(!0===a?eo([n],r,i):null===a?n:n+"[]",l(e))}),!1}}return!!en(e)||(t.append(eo(o,n,i),l(e)),!1)}let u=[],d=Object.assign(ei,{defaultVisitor:c,convertValue:l,isVisitable:en});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!Y.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Y.forEach(n,function(n,i){!0===(!(Y.isUndefined(n)||null===n)&&o.call(t,n,Y.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function es(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function el(e,t){this._pairs=[],e&&ea(e,this,t)}let ec=el.prototype;function eu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ed(e,t,n){let r;if(!t)return e;let o=n&&n.encode||eu,i=n&&n.serialize;if(r=i?i(t,n):Y.isURLSearchParams(t)?t.toString():new el(t,n).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}ec.append=function(e,t){this._pairs.push([e,t])},ec.toString=function(e){let t=e?function(t){return e.call(this,t,es)}:es;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ef{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ep={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh="undefined"!=typeof URLSearchParams?URLSearchParams:el,em="undefined"!=typeof FormData?FormData:null,eg="undefined"!=typeof Blob?Blob:null;let ev="undefined"!=typeof window&&"undefined"!=typeof document,ey="object"==typeof navigator&&navigator||void 0,eb=ev&&(!ey||0>["ReactNative","NativeScript","NS"].indexOf(ey.product)),ew="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ex=ev&&window.location.href||"http://localhost";var eC={...d,isBrowser:!0,classes:{URLSearchParams:eh,FormData:em,Blob:eg},protocols:["http","https","file","blob","url","data"]},ek=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,n)=>{!function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=o>=t.length;return(i=!i&&Y.isArray(r)?r.length:i,s)?Y.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n:(r[i]&&Y.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&Y.isArray(r[i])&&(r[i]=function(e){let t,n;let r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i]))),!a}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let eS={transitional:ep,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return o?JSON.stringify(ek(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,ea(a,new eC.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return eC.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return ea(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eS.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw X.from(e,X.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eC.classes.FormData,Blob:eC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{eS.headers[e]={}});let eE=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eT=e=>{let t,n,r;let o={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&eE[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)}),o};let eA=Symbol("internals");function eM(e){return e&&String(e).trim().toLowerCase()}function eN(e){return!1===e||null==e?e:Y.isArray(e)?e.map(eN):String(e)}let eO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eI(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),Y.isString(t)){if(Y.isString(r))return -1!==t.indexOf(r);if(Y.isRegExp(r))return r.test(t)}}class eL{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function o(e,t,n){let o=eM(t);if(!o)throw Error("header name must be a non-empty string");let i=Y.findKey(r,o);i&&void 0!==r[i]&&!0!==n&&(void 0!==n||!1===r[i])||(r[i||t]=eN(e))}let i=(e,t)=>Y.forEach(e,(e,n)=>o(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Y.isString(e)&&(e=e.trim())&&!eO(e))i(eT(e),t);else if(Y.isHeaders(e))for(let[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=eM(e)){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eM(e)){let n=Y.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eI(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function o(e){if(e=eM(e)){let o=Y.findKey(n,e);o&&(!t||eI(n,n[o],o,t))&&(delete n[o],r=!0)}}return Y.isArray(e)?e.forEach(o):o(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let o=t[n];(!e||eI(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,o)=>{let i=Y.findKey(n,o);if(i){t[i]=eN(r),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=eN(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eA]=this[eA]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eM(e);t[r]||(!function(e,t){let n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}function eR(e,t){let n=this||eS,r=t||n,o=eL.from(r.headers),i=r.data;return Y.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ej(e){return!!(e&&e.__CANCEL__)}function eP(e,t,n){X.call(this,null==e?"canceled":e,X.ERR_CANCELED,t,n),this.name="CanceledError"}function e_(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(eL.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(eL),Y.inherits(eP,X,{__CANCEL__:!0});var eD=function(e,t){let n;let r=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=o[a];n||(n=l),r[i]=s,o[i]=l;let u=a,d=0;for(;u!==i;)d+=r[u++],u%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let f=c&&l-c;return f?Math.round(1e3*d/f):void 0}},ez=function(e,t){let n,r,o=0,i=1e3/t,a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]};let eB=(e,t,n=3)=>{let r=0,o=eD(50,250);return ez(n=>{let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eH=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eF=e=>(...t)=>Y.asap(()=>e(...t));var eV=eC.hasStandardBrowserEnv?function(){let e;let t=eC.navigator&&/(msie|trident)/i.test(eC.navigator.userAgent),n=document.createElement("a");function r(e){let r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){let n=Y.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},e$=eC.hasStandardBrowserEnv?{write(e,t,n,r,o,i){let a=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eU(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eq=e=>e instanceof eL?{...e}:e;function eZ(e,t){t=t||{};let n={};function r(e,t,n){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:n},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function o(e,t,n){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function a(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}let l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eq(e),eq(t),!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(r){let i=l[r]||o,a=i(e[r],t[r],r);Y.isUndefined(a)&&i!==s||(n[r]=a)}),n}var eW=e=>{let t;let n=eZ({},e),{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eL.from(s),n.url=ed(eU(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Y.isFormData(r)){if(eC.hasStandardBrowserEnv||eC.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(eC.hasStandardBrowserEnv&&(o&&Y.isFunction(o)&&(o=o(n)),o||!1!==o&&eV(n.url))){let e=i&&a&&e$.read(a);e&&s.set(i,e)}return n},eJ="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o,i,a,s;let l=eW(e),c=l.data,u=eL.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l;function h(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let m=new XMLHttpRequest;function g(){if(!m)return;let r=eL.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());e_(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(l.method.toUpperCase(),l.url,!0),m.timeout=l.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new X("Request aborted",X.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new X("Network Error",X.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||ep;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new X(t,r.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,m)),m=null},void 0===c&&u.setContentType(null),"setRequestHeader"in m&&Y.forEach(u.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(l.withCredentials)||(m.withCredentials=!!l.withCredentials),d&&"json"!==d&&(m.responseType=l.responseType),p&&([i,s]=eB(p,!0),m.addEventListener("progress",i)),f&&m.upload&&([o,a]=eB(f),m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(r=t=>{m&&(n(!t||t.type?new eP(null,e,m):t),m.abort(),m=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(v&&-1===eC.protocols.indexOf(v)){n(new X("Unsupported protocol "+v+":",X.ERR_BAD_REQUEST,e));return}m.send(c||null)})},eG=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,o=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof X?t:new eP(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,o(new X(`timeout ${t} of ms exceeded`,X.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));let{signal:s}=r;return s.unsubscribe=()=>Y.asap(a),s}};let eK=function*(e,t){let n,r=e.byteLength;if(!t||r<t){yield e;return}let o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},eY=async function*(e,t){for await(let n of eX(e))yield*eK(n,t)},eX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},eQ=(e,t,n,r)=>{let o;let i=eY(e,t),a=0,s=e=>{!o&&(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},e0="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e1=e0&&"function"==typeof ReadableStream,e2=e0&&("function"==typeof TextEncoder?(i=new TextEncoder,e=>i.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e4=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e3=e1&&e4(()=>{let e=!1,t=new Request(eC.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e5=e1&&e4(()=>Y.isReadableStream(new Response("").body)),e6={stream:e5&&(e=>e.body)};e0&&(u=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e6[e]||(e6[e]=Y.isFunction(u[e])?t=>t[e]():(t,n)=>{throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})}));let e8=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new Request(eC.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await e2(e)).byteLength:void 0},e9=async(e,t)=>{let n=Y.toFiniteNumber(e.getContentLength());return null==n?e8(t):n},e7={http:null,xhr:eJ,fetch:e0&&(async e=>{let t,n,{url:r,method:o,data:i,signal:a,cancelToken:s,timeout:l,onDownloadProgress:c,onUploadProgress:u,responseType:d,headers:f,withCredentials:p="same-origin",fetchOptions:h}=eW(e);d=d?(d+"").toLowerCase():"text";let m=eG([a,s&&s.toAbortSignal()],l),g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});try{if(u&&e3&&"get"!==o&&"head"!==o&&0!==(n=await e9(f,i))){let e,t=new Request(r,{method:"POST",body:i,duplex:"half"});if(Y.isFormData(i)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eH(n,eB(eF(u)));i=eQ(t.body,65536,e,r)}}Y.isString(p)||(p=p?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...h,signal:m,method:o.toUpperCase(),headers:f.normalize().toJSON(),body:i,duplex:"half",credentials:a?p:void 0});let s=await fetch(t),l=e5&&("stream"===d||"response"===d);if(e5&&(c||l&&g)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=Y.toFiniteNumber(s.headers.get("content-length")),[n,r]=c&&eH(t,eB(eF(c),!0))||[];s=new Response(eQ(s.body,65536,n,()=>{r&&r(),g&&g()}),e)}d=d||"text";let v=await e6[Y.findKey(e6,d)||"text"](s,e);return!l&&g&&g(),await new Promise((n,r)=>{e_(n,r,{data:v,headers:eL.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(g&&g(),n&&"TypeError"===n.name&&/fetch/i.test(n.message))throw Object.assign(new X("Network Error",X.ERR_NETWORK,e,t),{cause:n.cause||n});throw X.from(n,n&&n.code,e,t)}})};Y.forEach(e7,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let te=e=>`- ${e}`,tt=e=>Y.isFunction(e)||null===e||!1===e;var tn=e=>{let t,n;let{length:r}=e=Y.isArray(e)?e:[e],o={};for(let i=0;i<r;i++){let r;if(n=t=e[i],!tt(t)&&void 0===(n=e7[(r=String(t)).toLowerCase()]))throw new X(`Unknown adapter '${r}'`);if(n)break;o[r||"#"+i]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new X("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(te).join("\n"):" "+te(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eP(null,e)}function to(e){return tr(e),e.headers=eL.from(e.headers),e.data=eR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tn(e.adapter||eS.adapter)(e).then(function(t){return tr(e),t.data=eR.call(e,e.transformResponse,t),t.headers=eL.from(t.headers),t},function(t){return!ej(t)&&(tr(e),t&&t.response&&(t.response.data=eR.call(e,e.transformResponse,t.response),t.response.headers=eL.from(t.response.headers))),Promise.reject(t)})}let ti="1.7.7",ta={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ta[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ts={};ta.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ti+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new X(r(o," has been removed"+(t?" in "+t:"")),X.ERR_DEPRECATED);return t&&!ts[o]&&(ts[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var tl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],a=t[i];if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new X("option "+i+" must be "+n,X.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new X("Unknown option "+i,X.ERR_BAD_OPTION)}},validators:ta};let tc=tl.validators;class tu{constructor(e){this.defaults=e,this.interceptors={request:new ef,response:new ef}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:a}=t=eZ(this.defaults,t);void 0!==o&&tl.assertOptions(o,{silentJSONParsing:tc.transitional(tc.boolean),forcedJSONParsing:tc.transitional(tc.boolean),clarifyTimeoutError:tc.transitional(tc.boolean)},!1),null!=i&&(Y.isFunction(i)?t.paramsSerializer={serialize:i}:tl.assertOptions(i,{encode:tc.function,serialize:tc.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&Y.merge(a.common,a[t.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eL.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d=0;if(!c){let e=[to.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,u),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=to.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=u.length;d<r;)n=n.then(u[d++],u[d++]);return n}getUri(e){return ed(eU((e=eZ(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){tu.prototype[e]=function(t,n){return this.request(eZ(n||{},{method:e,url:t,data:(n||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(eZ(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tu.prototype[e]=t(),tu.prototype[e+"Form"]=t(!0)});class td{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new eP(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new td(function(t){e=t}),cancel:e}}}let tf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tf).forEach(([e,t])=>{tf[t]=e});let tp=function e(t){let n=new tu(t),r=f(tu.prototype.request,n);return Y.extend(r,tu.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eZ(t,n))},r}(eS);tp.Axios=tu,tp.CanceledError=eP,tp.CancelToken=td,tp.isCancel=ej,tp.VERSION=ti,tp.toFormData=ea,tp.AxiosError=X,tp.Cancel=tp.CanceledError,tp.all=function(e){return Promise.all(e)},tp.spread=function(e){return function(t){return e.apply(null,t)}},tp.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},tp.mergeConfig=eZ,tp.AxiosHeaders=eL,tp.formToJSON=e=>ek(Y.isHTMLForm(e)?new FormData(e):e),tp.getAdapter=tn,tp.HttpStatusCode=tf,tp.default=tp;var th=tp},40489:function(e,t,n){"use strict";function r(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{W:function(){return r}}),t.Z=r},4538:function(e,t,n){"use strict";let r,o,i,a,s,l;n.d(t,{V:function(){return ed}});var c,u,d=n(2784),f=n.t(d,2),p=n(55635),h=n(71232),m=n(49952),g=n(93939),v=n(14488),y=n(57241),b=n(94913),w=n(80714),x=n(62404);function C(e,t){let n=(0,d.useRef)([]),r=(0,h.z)(e);(0,d.useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}var k=n(91803);let S=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&S[0]!==e.target&&(S.unshift(e.target),(S=S.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var E=n(5179),T=n(78417),A=n(62325),M=n(78116);function N(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var O=((r=O||{})[r.None=1]="None",r[r.InitialFocus=2]="InitialFocus",r[r.TabLock=4]="TabLock",r[r.FocusLock=8]="FocusLock",r[r.RestoreFocus=16]="RestoreFocus",r[r.All=30]="All",r);let I=Object.assign((0,M.yV)(function(e,t){let n=(0,d.useRef)(null),r=(0,w.T)(n,t),{initialFocus:o,containers:i,features:a=30,...s}=e;(0,b.H)()||(a=1);let l=(0,y.i)(n);!function(e,t){let{ownerDocument:n}=e,r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,d.useRef)(S.slice());return C((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,A.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=S.slice())},[e,S,t]),(0,h.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);C(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,E.C5)(r())},[t]),(0,v.L)(()=>{t&&(0,E.C5)(r())})}({ownerDocument:l},!!(16&a));let c=function(e,t){let{ownerDocument:n,container:r,initialFocus:o}=e,i=(0,d.useRef)(null),a=(0,g.t)();return C(()=>{if(!t)return;let e=r.current;e&&(0,A.Y)(()=>{if(!a.current)return;let t=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===t){i.current=t;return}}else if(e.contains(t)){i.current=t;return}null!=o&&o.current?(0,E.C5)(o.current):(0,E.jA)(e,E.TO.First)===E.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==n?void 0:n.activeElement})},[t]),i}({ownerDocument:l,container:n,initialFocus:o},!!(2&a));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:i}=e,a=(0,g.t)();(0,m.O)(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!a.current)return;let n=N(o);r.current instanceof HTMLElement&&n.add(r.current);let s=i.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?L(n,l)?(i.current=l,(0,E.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,E.C5)(s)):(0,E.C5)(i.current)},!0)}({ownerDocument:l,container:n,containers:i,previousActiveElement:c},!!(8&a));let u=(0,x.l)(),f=(0,h.z)(e=>{let t=n.current;t&&(0,T.E)(u.current,{[x.N.Forwards]:()=>{(0,E.jA)(t,E.TO.First,{skipElements:[e.relatedTarget]})},[x.N.Backwards]:()=>{(0,E.jA)(t,E.TO.Last,{skipElements:[e.relatedTarget]})}})}),O=(0,p.G)(),I=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&a)&&d.createElement(k._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:k.A.Focusable}),(0,M.sY)({ourProps:{ref:r,onKeyDown(e){"Tab"==e.key&&(I.current=!0,O.requestAnimationFrame(()=>{I.current=!1}))},onBlur(e){let t=N(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(L(t,r)||(I.current?(0,E.jA)(n.current,(0,T.E)(u.current,{[x.N.Forwards]:()=>E.TO.Next,[x.N.Backwards]:()=>E.TO.Previous})|E.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,E.C5)(e.target)))}},theirProps:s,defaultTag:"div",name:"FocusTrap"}),!!(4&a)&&d.createElement(k._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:k.A.Focusable}))}),{features:O});function L(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var R=n(73901);let{useState:j,useEffect:P,useLayoutEffect:_,useDebugValue:D}=f;void 0!==window.document&&window.document.createElement;let z=f.useSyncExternalStore;var B=n(25766),H=n(86519),F=n(37625);let V=(c=()=>new Map,u={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,H.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,i={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},a=[(0,F.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,H.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),a=t.querySelector(r);a&&!o(a)&&(i=a)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=o.clientWidth-o.offsetWidth,a=t-i;r.style(o,"paddingRight","".concat(a,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(i)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(i)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},o=c(),i=new Set,{getSnapshot:()=>o,subscribe:e=>(i.add(e),()=>i.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a=u[e].call(o,...n);a&&(o=a,i.forEach(e=>e()))}});V.subscribe(()=>{let e=V.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&V.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&V.dispatch("TEARDOWN",n)}});var $=n(19778);let U=new Map,q=new Map;function Z(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,B.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=q.get(r))?n:0;return q.set(r,o+1),0!==o||(U.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=q.get(r))?e:1;if(1===t?q.delete(r):q.set(r,t-1),1!==t)return;let n=U.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,U.delete(r))}},[e,t])}var W=n(45599),J=n(58498),G=n(28470),K=n(99121);let Y=(0,d.createContext)(()=>{});Y.displayName="StackContext";var X=((a=X||{})[a.Add=0]="Add",a[a.Remove=1]="Remove",a);function Q(e){let{children:t,onUpdate:n,type:r,element:o,enabled:i}=e,a=(0,d.useContext)(Y),s=(0,h.z)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n(...t),a(...t)});return(0,B.e)(()=>{let e=void 0===i||!0===i;return e&&s(0,r,o),()=>{e&&s(1,r,o)}},[s,r,o,i]),d.createElement(Y.Provider,{value:s},t)}var ee=n(30952);let et=(0,d.createContext)(null),en=Object.assign((0,M.yV)(function(e,t){let n=(0,$.M)(),{id:r="headlessui-description-".concat(n),...o}=e,i=function e(){let t=(0,d.useContext)(et);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=(0,w.T)(t);(0,B.e)(()=>i.register(r),[r,i.register]);let s={ref:a,...i.props,id:r};return(0,M.sY)({ourProps:s,theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})}),{});var er=n(9947),eo=((s=eo||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),ei=((l=ei||{})[l.SetTitleId=0]="SetTitleId",l);let ea={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},es=(0,d.createContext)(null);function el(e){let t=(0,d.useContext)(es);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,el),t}return t}function ec(e,t){return(0,T.E)(t.type,ea,e,t)}es.displayName="DialogContext";let eu=M.AN.RenderStrategy|M.AN.Static,ed=Object.assign((0,M.yV)(function(e,t){let n=(0,$.M)(),{id:r="headlessui-dialog-".concat(n),open:o,onClose:i,initialFocus:a,role:s="dialog",__demoMode:l=!1,...c}=e,[u,f]=(0,d.useState)(0),p=(0,d.useRef)(!1);s="dialog"===s||"alertdialog"===s?s:(p.current||(p.current=!0,console.warn("Invalid role [".concat(s,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let g=(0,G.oJ)();void 0===o&&null!==g&&(o=(g&G.ZM.Open)===G.ZM.Open);let v=(0,d.useRef)(null),x=(0,w.T)(v,t),C=(0,y.i)(v),k=e.hasOwnProperty("open")||null!==g,S=e.hasOwnProperty("onClose");if(!k&&!S)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!k)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!S)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof o)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(o));if("function"!=typeof i)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(i));let E=o?0:1,[A,N]=(0,d.useReducer)(ec,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),O=(0,h.z)(()=>i(!1)),L=(0,h.z)(e=>N({type:0,id:e})),j=!!(0,b.H)()&&!l&&0===E,P=u>1,_=null!==(0,d.useContext)(es),[D,H]=(0,R.k)(),{resolveContainers:F,mainTreeNodeRef:U,MainTreeNode:q}=(0,J.v)({portals:D,defaultContainers:[{get current(){var Y;return null!=(Y=A.panelRef.current)?Y:v.current}}]}),ee=null!==g&&(g&G.ZM.Closing)===G.ZM.Closing,en=!_&&!ee&&j;Z((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==C?void 0:C.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(U.current)&&e instanceof HTMLElement))?t:null},[U]),en);let eo=!!P||j;Z((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==C?void 0:C.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(U.current)&&e instanceof HTMLElement))?t:null},[U]),eo);let ei=!(!j||P);(0,W.O)(F,e=>{e.preventDefault(),O()},ei);let ea=!(P||0!==E);(0,m.O)(null==C?void 0:C.defaultView,"keydown",e=>{ea&&(e.defaultPrevented||e.key===er.R.Escape&&(e.preventDefault(),e.stopPropagation(),O()))}),function(e,t){var n;let r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],i]}},r=z(V.subscribe,V.getSnapshot,V.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,B.e)(()=>{if(!(!e||!t))return V.dispatch("PUSH",e,n),()=>V.dispatch("POP",e,n)},[t,e])}(C,!(ee||0!==E||_),F),(0,d.useEffect)(()=>{if(0!==E||!v.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&O()}});return e.observe(v.current),()=>e.disconnect()},[E,v,O]);let[el,ed]=function(){let[e,t]=(0,d.useState)([]);return[e.length>0?e.join(" "):void 0,(0,d.useMemo)(()=>function(e){let n=(0,h.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,d.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return d.createElement(et.Provider,{value:r},e.children)},[t])]}(),ef=(0,d.useMemo)(()=>[{dialogState:E,close:O,setTitleId:L},A],[E,A,O,L]),ep=(0,d.useMemo)(()=>({open:0===E}),[E]),eh={ref:x,id:r,role:s,"aria-modal":0===E||void 0,"aria-labelledby":A.titleId,"aria-describedby":el};return d.createElement(Q,{type:"Dialog",enabled:0===E,element:v,onUpdate:(0,h.z)((e,t)=>{"Dialog"===t&&(0,T.E)(e,{[X.Add]:()=>f(e=>e+1),[X.Remove]:()=>f(e=>e-1)})})},d.createElement(K.O,{force:!0},d.createElement(R.h,null,d.createElement(es.Provider,{value:ef},d.createElement(R.h.Group,{target:v},d.createElement(K.O,{force:!1},d.createElement(ed,{slot:ep,name:"Dialog.Description"},d.createElement(I,{initialFocus:a,containers:F,features:j?(0,T.E)(P?"parent":"leaf",{parent:I.features.RestoreFocus,leaf:I.features.All&~I.features.FocusLock}):I.features.None},d.createElement(H,null,(0,M.sY)({ourProps:eh,theirProps:c,slot:ep,defaultTag:"div",features:eu,visible:0===E,name:"Dialog"}))))))))),d.createElement(q,null))}),{Backdrop:(0,M.yV)(function(e,t){let n=(0,$.M)(),{id:r="headlessui-dialog-backdrop-".concat(n),...o}=e,[{dialogState:i},a]=el("Dialog.Backdrop"),s=(0,w.T)(t);(0,d.useEffect)(()=>{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let l=(0,d.useMemo)(()=>({open:0===i}),[i]);return d.createElement(K.O,{force:!0},d.createElement(R.h,null,(0,M.sY)({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,M.yV)(function(e,t){let n=(0,$.M)(),{id:r="headlessui-dialog-panel-".concat(n),...o}=e,[{dialogState:i},a]=el("Dialog.Panel"),s=(0,w.T)(t,a.panelRef),l=(0,d.useMemo)(()=>({open:0===i}),[i]),c=(0,h.z)(e=>{e.stopPropagation()});return(0,M.sY)({ourProps:{ref:s,id:r,onClick:c},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,M.yV)(function(e,t){let n=(0,$.M)(),{id:r="headlessui-dialog-overlay-".concat(n),...o}=e,[{dialogState:i,close:a}]=el("Dialog.Overlay"),s=(0,w.T)(t),l=(0,h.z)(e=>{if(e.target===e.currentTarget){if((0,ee.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}),c=(0,d.useMemo)(()=>({open:0===i}),[i]);return(0,M.sY)({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,M.yV)(function(e,t){let n=(0,$.M)(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:i,setTitleId:a}]=el("Dialog.Title"),s=(0,w.T)(t);(0,d.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let l=(0,d.useMemo)(()=>({open:0===i}),[i]);return(0,M.sY)({ourProps:{ref:s,id:r},theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:en})},8485:function(e,t,n){"use strict";let r,o;n.d(t,{p:function(){return M}});var i,a=n(2784),s=n(71232),l=n(19778),c=n(58838),u=n(80714),d=n(28470),f=n(30952),p=n(78417),h=n(34488),m=n(78116);let g=null!=(i=a.startTransition)?i:function(e){e()};var v=n(9947),y=((r=y||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),b=((o=b||{})[o.ToggleDisclosure=0]="ToggleDisclosure",o[o.CloseDisclosure=1]="CloseDisclosure",o[o.SetButtonId=2]="SetButtonId",o[o.SetPanelId=3]="SetPanelId",o[o.LinkPanel=4]="LinkPanel",o[o.UnlinkPanel=5]="UnlinkPanel",o);let w={0:e=>({...e,disclosureState:(0,p.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},x=(0,a.createContext)(null);function C(e){let t=(0,a.useContext)(x);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,C),t}return t}x.displayName="DisclosureContext";let k=(0,a.createContext)(null);k.displayName="DisclosureAPIContext";let S=(0,a.createContext)(null);function E(e,t){return(0,p.E)(t.type,w,e,t)}S.displayName="DisclosurePanelContext";let T=a.Fragment,A=m.AN.RenderStrategy|m.AN.Static,M=Object.assign((0,m.yV)(function(e,t){let{defaultOpen:n=!1,...r}=e,o=(0,a.useRef)(null),i=(0,u.T)(t,(0,u.h)(e=>{o.current=e},void 0===e.as||e.as===a.Fragment)),l=(0,a.useRef)(null),c=(0,a.useRef)(null),f=(0,a.useReducer)(E,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:c,panelRef:l,buttonId:null,panelId:null}),[{disclosureState:g,buttonId:v},y]=f,b=(0,s.z)(e=>{y({type:1});let t=(0,h.r)(o);if(!t||!v)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(v):t.getElementById(v);null==n||n.focus()}),w=(0,a.useMemo)(()=>({close:b}),[b]),C=(0,a.useMemo)(()=>({open:0===g,close:b}),[g,b]);return a.createElement(x.Provider,{value:f},a.createElement(k.Provider,{value:w},a.createElement(d.up,{value:(0,p.E)(g,{0:d.ZM.Open,1:d.ZM.Closed})},(0,m.sY)({ourProps:{ref:i},theirProps:r,slot:C,defaultTag:T,name:"Disclosure"}))))}),{Button:(0,m.yV)(function(e,t){let n=(0,l.M)(),{id:r="headlessui-disclosure-button-".concat(n),...o}=e,[i,d]=C("Disclosure.Button"),p=(0,a.useContext)(S),h=null!==p&&p===i.panelId,g=(0,a.useRef)(null),y=(0,u.T)(g,t,h?null:i.buttonRef),b=(0,m.Y2)();(0,a.useEffect)(()=>{if(!h)return d({type:2,buttonId:r}),()=>{d({type:2,buttonId:null})}},[r,d,h]);let w=(0,s.z)(e=>{var t;if(h){if(1===i.disclosureState)return;switch(e.key){case v.R.Space:case v.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0}),null==(t=i.buttonRef.current)||t.focus()}}else switch(e.key){case v.R.Space:case v.R.Enter:e.preventDefault(),e.stopPropagation(),d({type:0})}}),x=(0,s.z)(e=>{e.key===v.R.Space&&e.preventDefault()}),k=(0,s.z)(t=>{var n;(0,f.P)(t.currentTarget)||e.disabled||(h?(d({type:0}),null==(n=i.buttonRef.current)||n.focus()):d({type:0}))}),E=(0,a.useMemo)(()=>({open:0===i.disclosureState}),[i]),T=(0,c.f)(e,g),A=h?{ref:y,type:T,onKeyDown:w,onClick:k}:{ref:y,id:r,type:T,"aria-expanded":0===i.disclosureState,"aria-controls":i.linkedPanel?i.panelId:void 0,onKeyDown:w,onKeyUp:x,onClick:k};return(0,m.sY)({mergeRefs:b,ourProps:A,theirProps:o,slot:E,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,m.yV)(function(e,t){let n=(0,l.M)(),{id:r="headlessui-disclosure-panel-".concat(n),...o}=e,[i,s]=C("Disclosure.Panel"),{close:c}=function e(t){let n=(0,a.useContext)(k);if(null===n){let n=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),f=(0,m.Y2)(),p=(0,u.T)(t,i.panelRef,e=>{g(()=>s({type:e?4:5}))});(0,a.useEffect)(()=>(s({type:3,panelId:r}),()=>{s({type:3,panelId:null})}),[r,s]);let h=(0,d.oJ)(),v=null!==h?(h&d.ZM.Open)===d.ZM.Open:0===i.disclosureState,y=(0,a.useMemo)(()=>({open:0===i.disclosureState,close:c}),[i,c]);return a.createElement(S.Provider,{value:i.panelId},(0,m.sY)({mergeRefs:f,ourProps:{ref:p,id:r},theirProps:o,slot:y,defaultTag:"div",features:A,visible:v,name:"Disclosure.Panel"}))})})},9947:function(e,t,n){"use strict";let r;n.d(t,{R:function(){return o}});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},10762:function(e,t,n){"use strict";let r,o;n.d(t,{J:function(){return B}});var i=n(2784),a=n(73901),s=n(71232),l=n(49952),c=n(19778),u=n(25766),d=n(2422),f=n(45599),p=n(57241),h=n(58838),m=n(58498),g=n(80714),v=n(62404),y=n(91803),b=n(28470),w=n(30952),x=n(5179),C=n(78417),k=n(34488),S=n(78116),E=n(9947),T=((r=T||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),A=((o=A||{})[o.TogglePopover=0]="TogglePopover",o[o.ClosePopover=1]="ClosePopover",o[o.SetButton=2]="SetButton",o[o.SetButtonId=3]="SetButtonId",o[o.SetPanel=4]="SetPanel",o[o.SetPanelId=5]="SetPanelId",o);let M={0:e=>{let t={...e,popoverState:(0,C.E)(e.popoverState,{0:1,1:0})};return 0===t.popoverState&&(t.__demoMode=!1),t},1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},N=(0,i.createContext)(null);function O(e){let t=(0,i.useContext)(N);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,O),t}return t}N.displayName="PopoverContext";let I=(0,i.createContext)(null);function L(e){let t=(0,i.useContext)(I);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,L),t}return t}I.displayName="PopoverAPIContext";let R=(0,i.createContext)(null);function j(){return(0,i.useContext)(R)}R.displayName="PopoverGroupContext";let P=(0,i.createContext)(null);function _(e,t){return(0,C.E)(t.type,M,e,t)}P.displayName="PopoverPanelContext";let D=S.AN.RenderStrategy|S.AN.Static,z=S.AN.RenderStrategy|S.AN.Static,B=Object.assign((0,S.yV)(function(e,t){var n;let{__demoMode:r=!1,...o}=e,c=(0,i.useRef)(null),u=(0,g.T)(t,(0,g.h)(e=>{c.current=e})),h=(0,i.useRef)([]),v=(0,i.useReducer)(_,{__demoMode:r,popoverState:r?0:1,buttons:h,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,i.createRef)(),afterPanelSentinel:(0,i.createRef)()}),[{popoverState:y,button:w,buttonId:k,panel:E,panelId:T,beforePanelSentinel:A,afterPanelSentinel:M},O]=v,L=(0,p.i)(null!=(n=c.current)?n:w),R=(0,i.useMemo)(()=>{if(!w||!E)return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(w))^Number(null==e?void 0:e.contains(E)))return!0;let e=(0,x.GO)(),t=e.indexOf(w),n=(t+e.length-1)%e.length,r=(t+1)%e.length,o=e[n],i=e[r];return!E.contains(o)&&!E.contains(i)},[w,E]),D=(0,d.E)(k),z=(0,d.E)(T),B=(0,i.useMemo)(()=>({buttonId:D,panelId:z,close:()=>O({type:1})}),[D,z,O]),H=j(),F=null==H?void 0:H.registerPopover,V=(0,s.z)(()=>{var e;return null!=(e=null==H?void 0:H.isFocusWithinPopoverGroup())?e:(null==L?void 0:L.activeElement)&&((null==w?void 0:w.contains(L.activeElement))||(null==E?void 0:E.contains(L.activeElement)))});(0,i.useEffect)(()=>null==F?void 0:F(B),[F,B]);let[$,U]=(0,a.k)(),q=(0,m.v)({mainTreeNodeRef:null==H?void 0:H.mainTreeNodeRef,portals:$,defaultContainers:[w,E]});(0,l.O)(null==L?void 0:L.defaultView,"focus",e=>{var t,n,r,o;e.target!==window&&e.target instanceof HTMLElement&&0===y&&(V()||w&&E&&(q.contains(e.target)||null!=(n=null==(t=A.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(o=null==(r=M.current)?void 0:r.contains)&&o.call(r,e.target)||O({type:1})))},!0),(0,f.O)(q.resolveContainers,(e,t)=>{O({type:1}),(0,x.sP)(t,x.tJ.Loose)||(e.preventDefault(),null==w||w.focus())},0===y);let Z=(0,s.z)(e=>{O({type:1});let t=e?e instanceof HTMLElement?e:"current"in e&&e.current instanceof HTMLElement?e.current:w:w;null==t||t.focus()}),W=(0,i.useMemo)(()=>({close:Z,isPortalled:R}),[Z,R]),J=(0,i.useMemo)(()=>({open:0===y,close:Z}),[y,Z]);return i.createElement(P.Provider,{value:null},i.createElement(N.Provider,{value:v},i.createElement(I.Provider,{value:W},i.createElement(b.up,{value:(0,C.E)(y,{0:b.ZM.Open,1:b.ZM.Closed})},i.createElement(U,null,(0,S.sY)({ourProps:{ref:u},theirProps:o,slot:J,defaultTag:"div",name:"Popover"}),i.createElement(q.MainTreeNode,null))))))}),{Button:(0,S.yV)(function(e,t){let n=(0,c.M)(),{id:r="headlessui-popover-button-".concat(n),...o}=e,[a,l]=O("Popover.Button"),{isPortalled:u}=L("Popover.Button"),d=(0,i.useRef)(null),f="headlessui-focus-sentinel-".concat((0,c.M)()),m=j(),b=null==m?void 0:m.closeOthers,k=null!==(0,i.useContext)(P);(0,i.useEffect)(()=>{if(!k)return l({type:3,buttonId:r}),()=>{l({type:3,buttonId:null})}},[k,r,l]);let[T]=(0,i.useState)(()=>Symbol()),A=(0,g.T)(d,t,k?null:e=>{if(e)a.buttons.current.push(T);else{let e=a.buttons.current.indexOf(T);-1!==e&&a.buttons.current.splice(e,1)}a.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&l({type:2,button:e})}),M=(0,g.T)(d,t),N=(0,p.i)(d),I=(0,s.z)(e=>{var t,n,r;if(k){if(1===a.popoverState)return;switch(e.key){case E.R.Space:case E.R.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),l({type:1}),null==(r=a.button)||r.focus()}}else switch(e.key){case E.R.Space:case E.R.Enter:e.preventDefault(),e.stopPropagation(),1===a.popoverState&&(null==b||b(a.buttonId)),l({type:0});break;case E.R.Escape:if(0!==a.popoverState)return null==b?void 0:b(a.buttonId);if(!d.current||null!=N&&N.activeElement&&!d.current.contains(N.activeElement))return;e.preventDefault(),e.stopPropagation(),l({type:1})}}),R=(0,s.z)(e=>{k||e.key===E.R.Space&&e.preventDefault()}),_=(0,s.z)(t=>{var n,r;(0,w.P)(t.currentTarget)||e.disabled||(k?(l({type:1}),null==(n=a.button)||n.focus()):(t.preventDefault(),t.stopPropagation(),1===a.popoverState&&(null==b||b(a.buttonId)),l({type:0}),null==(r=a.button)||r.focus()))}),D=(0,s.z)(e=>{e.preventDefault(),e.stopPropagation()}),z=0===a.popoverState,B=(0,i.useMemo)(()=>({open:z}),[z]),H=(0,h.f)(e,d),F=k?{ref:M,type:H,onKeyDown:I,onClick:_}:{ref:A,id:a.buttonId,type:H,"aria-expanded":0===a.popoverState,"aria-controls":a.panel?a.panelId:void 0,onKeyDown:I,onKeyUp:R,onClick:_,onMouseDown:D},V=(0,v.l)(),$=(0,s.z)(()=>{let e=a.panel;e&&(0,C.E)(V.current,{[v.N.Forwards]:()=>(0,x.jA)(e,x.TO.First),[v.N.Backwards]:()=>(0,x.jA)(e,x.TO.Last)})===x.fE.Error&&(0,x.jA)((0,x.GO)().filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,C.E)(V.current,{[v.N.Forwards]:x.TO.Next,[v.N.Backwards]:x.TO.Previous}),{relativeTo:a.button})});return i.createElement(i.Fragment,null,(0,S.sY)({ourProps:F,theirProps:o,slot:B,defaultTag:"button",name:"Popover.Button"}),z&&!k&&u&&i.createElement(y._,{id:f,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:$}))}),Overlay:(0,S.yV)(function(e,t){let n=(0,c.M)(),{id:r="headlessui-popover-overlay-".concat(n),...o}=e,[{popoverState:a},l]=O("Popover.Overlay"),u=(0,g.T)(t),d=(0,b.oJ)(),f=null!==d?(d&b.ZM.Open)===b.ZM.Open:0===a,p=(0,s.z)(e=>{if((0,w.P)(e.currentTarget))return e.preventDefault();l({type:1})}),h=(0,i.useMemo)(()=>({open:0===a}),[a]);return(0,S.sY)({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:p},theirProps:o,slot:h,defaultTag:"div",features:D,visible:f,name:"Popover.Overlay"})}),Panel:(0,S.yV)(function(e,t){let n=(0,c.M)(),{id:r="headlessui-popover-panel-".concat(n),focus:o=!1,...a}=e,[l,d]=O("Popover.Panel"),{close:f,isPortalled:h}=L("Popover.Panel"),m="headlessui-focus-sentinel-before-".concat((0,c.M)()),w="headlessui-focus-sentinel-after-".concat((0,c.M)()),k=(0,i.useRef)(null),T=(0,g.T)(k,t,e=>{d({type:4,panel:e})}),A=(0,p.i)(k),M=(0,S.Y2)();(0,u.e)(()=>(d({type:5,panelId:r}),()=>{d({type:5,panelId:null})}),[r,d]);let N=(0,b.oJ)(),I=null!==N?(N&b.ZM.Open)===b.ZM.Open:0===l.popoverState,R=(0,s.z)(e=>{var t;if(e.key===E.R.Escape){if(0!==l.popoverState||!k.current||null!=A&&A.activeElement&&!k.current.contains(A.activeElement))return;e.preventDefault(),e.stopPropagation(),d({type:1}),null==(t=l.button)||t.focus()}});(0,i.useEffect)(()=>{var t;e.static||1===l.popoverState&&(null==(t=e.unmount)||t)&&d({type:4,panel:null})},[l.popoverState,e.unmount,e.static,d]),(0,i.useEffect)(()=>{if(l.__demoMode||!o||0!==l.popoverState||!k.current)return;let e=null==A?void 0:A.activeElement;k.current.contains(e)||(0,x.jA)(k.current,x.TO.First)},[l.__demoMode,o,k,l.popoverState]);let j=(0,i.useMemo)(()=>({open:0===l.popoverState,close:f}),[l,f]),_={ref:T,id:r,onKeyDown:R,onBlur:o&&0===l.popoverState?e=>{var t,n,r,o,i;let a=e.relatedTarget;a&&k.current&&(null!=(t=k.current)&&t.contains(a)||(d({type:1}),(null!=(r=null==(n=l.beforePanelSentinel.current)?void 0:n.contains)&&r.call(n,a)||null!=(i=null==(o=l.afterPanelSentinel.current)?void 0:o.contains)&&i.call(o,a))&&a.focus({preventScroll:!0})))}:void 0,tabIndex:-1},D=(0,v.l)(),B=(0,s.z)(()=>{let e=k.current;e&&(0,C.E)(D.current,{[v.N.Forwards]:()=>{var t;(0,x.jA)(e,x.TO.First)===x.fE.Error&&(null==(t=l.afterPanelSentinel.current)||t.focus())},[v.N.Backwards]:()=>{var e;null==(e=l.button)||e.focus({preventScroll:!0})}})}),H=(0,s.z)(()=>{let e=k.current;e&&(0,C.E)(D.current,{[v.N.Forwards]:()=>{var e;if(!l.button)return;let t=(0,x.GO)(),n=t.indexOf(l.button),r=t.slice(0,n+1),o=[...t.slice(n+1),...r];for(let t of o.slice())if("true"===t.dataset.headlessuiFocusGuard||null!=(e=l.panel)&&e.contains(t)){let e=o.indexOf(t);-1!==e&&o.splice(e,1)}(0,x.jA)(o,x.TO.First,{sorted:!1})},[v.N.Backwards]:()=>{var t;(0,x.jA)(e,x.TO.Previous)===x.fE.Error&&(null==(t=l.button)||t.focus())}})});return i.createElement(P.Provider,{value:r},I&&h&&i.createElement(y._,{id:m,ref:l.beforePanelSentinel,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:B}),(0,S.sY)({mergeRefs:M,ourProps:_,theirProps:a,slot:j,defaultTag:"div",features:z,visible:I,name:"Popover.Panel"}),I&&h&&i.createElement(y._,{id:w,ref:l.afterPanelSentinel,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:H}))}),Group:(0,S.yV)(function(e,t){let n=(0,i.useRef)(null),r=(0,g.T)(n,t),[o,a]=(0,i.useState)([]),l=(0,m.H)(),c=(0,s.z)(e=>{a(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),u=(0,s.z)(e=>(a(t=>[...t,e]),()=>c(e))),d=(0,s.z)(()=>{var e;let t=(0,k.r)(n);if(!t)return!1;let r=t.activeElement;return!!(null!=(e=n.current)&&e.contains(r))||o.some(e=>{var n,o;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(o=t.getElementById(e.panelId.current))?void 0:o.contains(r))})}),f=(0,s.z)(e=>{for(let t of o)t.buttonId.current!==e&&t.close()}),p=(0,i.useMemo)(()=>({registerPopover:u,unregisterPopover:c,isFocusWithinPopoverGroup:d,closeOthers:f,mainTreeNodeRef:l.mainTreeNodeRef}),[u,c,d,f,l.mainTreeNodeRef]),h=(0,i.useMemo)(()=>({}),[]);return i.createElement(R.Provider,{value:p},(0,S.sY)({ourProps:{ref:r},theirProps:e,slot:h,defaultTag:"div",name:"Popover.Group"}),i.createElement(l.MainTreeNode,null))})})},73901:function(e,t,n){"use strict";n.d(t,{h:function(){return b},k:function(){return y}});var r=n(2784),o=n(28316),i=n(71232),a=n(25766),s=n(14488),l=n(57241),c=n(94913),u=n(80714),d=n(99121),f=n(60210),p=n(78116);let h=r.Fragment,m=r.Fragment,g=(0,r.createContext)(null),v=(0,r.createContext)(null);function y(){let e=(0,r.useContext)(v),t=(0,r.useRef)([]),n=(0,i.z)(n=>(t.current.push(n),e&&e.register(n),()=>o(n))),o=(0,i.z)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),a=(0,r.useMemo)(()=>({register:n,unregister:o,portals:t}),[n,o,t]);return[t,(0,r.useMemo)(()=>function(e){let{children:t}=e;return r.createElement(v.Provider,{value:a},t)},[a])]}let b=Object.assign((0,p.yV)(function(e,t){let n=(0,r.useRef)(null),i=(0,u.T)((0,u.h)(e=>{n.current=e}),t),m=(0,l.i)(n),y=function(e){let t=(0,d.n)(),n=(0,r.useContext)(g),o=(0,l.i)(e),[i,a]=(0,r.useState)(()=>{if(!t&&null!==n||f.O.isServer)return null;let e=null==o?void 0:o.getElementById("headlessui-portal-root");if(e)return e;if(null===o)return null;let r=o.createElement("div");return r.setAttribute("id","headlessui-portal-root"),o.body.appendChild(r)});return(0,r.useEffect)(()=>{null!==i&&(null!=o&&o.body.contains(i)||null==o||o.body.appendChild(i))},[i,o]),(0,r.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),i}(n),[b]=(0,r.useState)(()=>{var e;return f.O.isServer?null:null!=(e=null==m?void 0:m.createElement("div"))?e:null}),w=(0,r.useContext)(v),x=(0,c.H)();return(0,a.e)(()=>{!y||!b||y.contains(b)||(b.setAttribute("data-headlessui-portal",""),y.appendChild(b))},[y,b]),(0,a.e)(()=>{if(b&&w)return w.register(b)},[w,b]),(0,s.L)(()=>{var e;y&&b&&(b instanceof Node&&y.contains(b)&&y.removeChild(b),y.childNodes.length<=0&&(null==(e=y.parentElement)||e.removeChild(y)))}),x&&y&&b?(0,o.createPortal)((0,p.sY)({ourProps:{ref:i},theirProps:e,defaultTag:h,name:"Portal"}),b):null}),{Group:(0,p.yV)(function(e,t){let{target:n,...o}=e,i={ref:(0,u.T)(t)};return r.createElement(g.Provider,{value:n},(0,p.sY)({ourProps:i,theirProps:o,defaultTag:m,name:"Popover.Group"}))})})},63935:function(e,t,n){"use strict";let r;n.d(t,{u:function(){return L}});var o=n(2784),i=n(55635),a=n(71232),s=n(93939),l=n(25766),c=n(2422),u=n(94913),d=n(80714),f=n(86519),p=n(78417);function h(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e&&n.length>0&&e.classList.add(...n)}function m(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e&&n.length>0&&e.classList.remove(...n)}var g=n(28470),v=n(22725),y=n(78116);function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(/\s+/).filter(e=>e.length>1)}let w=(0,o.createContext)(null);w.displayName="TransitionContext";var x=((r=x||{}).Visible="visible",r.Hidden="hidden",r);let C=(0,o.createContext)(null);function k(e){return"children"in e?k(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function S(e,t){let n=(0,c.E)(e),r=(0,o.useRef)([]),l=(0,s.t)(),u=(0,i.G)(),d=(0,a.z)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.l4.Hidden,o=r.current.findIndex(t=>{let{el:n}=t;return n===e});-1!==o&&((0,p.E)(t,{[y.l4.Unmount](){r.current.splice(o,1)},[y.l4.Hidden](){r.current[o].state="hidden"}}),u.microTask(()=>{var e;!k(r)&&l.current&&(null==(e=n.current)||e.call(n))}))}),f=(0,a.z)(e=>{let t=r.current.find(t=>{let{el:n}=t;return n===e});return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>d(e,y.l4.Unmount)}),h=(0,o.useRef)([]),m=(0,o.useRef)(Promise.resolve()),g=(0,o.useRef)({enter:[],leave:[],idle:[]}),v=(0,a.z)((e,n,r)=>{h.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(t=>{let[n]=t;return n!==e})),null==t||t.chains.current[n].push([e,new Promise(e=>{h.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(g.current[n].map(e=>{let[t,n]=e;return n})).then(()=>e())})]),"enter"===n?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),b=(0,a.z)((e,t,n)=>{Promise.all(g.current[t].splice(0).map(e=>{let[t,n]=e;return n})).then(()=>{var e;null==(e=h.current.shift())||e()}).then(()=>n(t))});return(0,o.useMemo)(()=>({children:r,register:f,unregister:d,onStart:v,onStop:b,wait:m,chains:g}),[f,d,r,v,b,g,m])}function E(){}C.displayName="NestingContext";let T=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function A(e){var t;let n={};for(let r of T)n[r]=null!=(t=e[r])?t:E;return n}let M=y.AN.RenderStrategy,N=(0,y.yV)(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...s}=e,c=(0,o.useRef)(null),f=(0,d.T)(c,t);(0,u.H)();let p=(0,g.oJ)();if(void 0===n&&null!==p&&(n=(p&g.ZM.Open)===g.ZM.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,m]=(0,o.useState)(n?"visible":"hidden"),v=S(()=>{m("hidden")}),[b,x]=(0,o.useState)(!0),E=(0,o.useRef)([n]);(0,l.e)(()=>{!1!==b&&E.current[E.current.length-1]!==n&&(E.current.push(n),x(!1))},[E,n]);let T=(0,o.useMemo)(()=>({show:n,appear:r,initial:b}),[n,r,b]);(0,o.useEffect)(()=>{if(n)m("visible");else if(k(v)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[n,v]);let A={unmount:i},N=(0,a.z)(()=>{var t;b&&x(!1),null==(t=e.beforeEnter)||t.call(e)}),I=(0,a.z)(()=>{var t;b&&x(!1),null==(t=e.beforeLeave)||t.call(e)});return o.createElement(C.Provider,{value:v},o.createElement(w.Provider,{value:T},(0,y.sY)({ourProps:{...A,as:o.Fragment,children:o.createElement(O,{ref:f,...A,...s,beforeEnter:N,beforeLeave:I})},theirProps:{},defaultTag:o.Fragment,features:M,visible:"visible"===h,name:"Transition"})))}),O=(0,y.yV)(function(e,t){var n,r,x;let E;let{beforeEnter:T,afterEnter:N,beforeLeave:O,afterLeave:I,enter:L,enterFrom:R,enterTo:j,entered:P,leave:_,leaveFrom:D,leaveTo:z,...B}=e,H=(0,o.useRef)(null),F=(0,d.T)(H,t),V=null==(n=B.unmount)||n?y.l4.Unmount:y.l4.Hidden,{show:$,appear:U,initial:q}=function(){let e=(0,o.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[Z,W]=(0,o.useState)($?"visible":"hidden"),J=function(){let e=(0,o.useContext)(C);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:G,unregister:K}=J;(0,o.useEffect)(()=>G(H),[G,H]),(0,o.useEffect)(()=>{if(V===y.l4.Hidden&&H.current){if($&&"visible"!==Z){W("visible");return}return(0,p.E)(Z,{hidden:()=>K(H),visible:()=>G(H)})}},[Z,H,G,K,$,V]);let Y=(0,c.E)({base:b(B.className),enter:b(L),enterFrom:b(R),enterTo:b(j),entered:b(P),leave:b(_),leaveFrom:b(D),leaveTo:b(z)}),X=(x={beforeEnter:T,afterEnter:N,beforeLeave:O,afterLeave:I},E=(0,o.useRef)(A(x)),(0,o.useEffect)(()=>{E.current=A(x)},[x]),E),Q=(0,u.H)();(0,o.useEffect)(()=>{if(Q&&"visible"===Z&&null===H.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[H,Z,Q]);let ee=U&&$&&q,et=Q&&(!q||U)?$?"enter":"leave":"idle",en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,o.useState)(e),r=(0,s.t)(),i=(0,o.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),a=(0,o.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:i,hasFlag:a,removeFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,o.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}(0),er=(0,a.z)(e=>(0,p.E)(e,{enter:()=>{en.addFlag(g.ZM.Opening),X.current.beforeEnter()},leave:()=>{en.addFlag(g.ZM.Closing),X.current.beforeLeave()},idle:()=>{}})),eo=(0,a.z)(e=>(0,p.E)(e,{enter:()=>{en.removeFlag(g.ZM.Opening),X.current.afterEnter()},leave:()=>{en.removeFlag(g.ZM.Closing),X.current.afterLeave()},idle:()=>{}})),ei=S(()=>{W("hidden"),K(H)},J),ea=(0,o.useRef)(!1);!function(e){let{immediate:t,container:n,direction:r,classes:o,onStart:a,onStop:u}=e,d=(0,s.t)(),g=(0,i.G)(),v=(0,c.E)(r);(0,l.e)(()=>{t&&(v.current="enter")},[t]),(0,l.e)(()=>{let e=(0,f.k)();g.add(e.dispose);let t=n.current;if(t&&"idle"!==v.current&&d.current){var r,i,s;let n,l,c,d,g,y,b;return e.dispose(),a.current(v.current),e.add((r=o.current,i="enter"===v.current,s=()=>{e.dispose(),u.current(v.current)},l=i?"enter":"leave",c=(0,f.k)(),d=void 0!==s?(n={called:!1},function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!n.called)return n.called=!0,s(...t)}):()=>{},"enter"===l&&(t.removeAttribute("hidden"),t.style.display=""),g=(0,p.E)(l,{enter:()=>r.enter,leave:()=>r.leave}),y=(0,p.E)(l,{enter:()=>r.enterTo,leave:()=>r.leaveTo}),b=(0,p.E)(l,{enter:()=>r.enterFrom,leave:()=>r.leaveFrom}),m(t,...r.base,...r.enter,...r.enterTo,...r.enterFrom,...r.leave,...r.leaveFrom,...r.leaveTo,...r.entered),h(t,...r.base,...g,...b),c.nextFrame(()=>{m(t,...r.base,...g,...b),h(t,...r.base,...g,...y),function(e,t){let n=(0,f.k)();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=i+a;if(0!==s){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();n.add(()=>t()),n.dispose}(t,()=>(m(t,...r.base,...g),h(t,...r.base,...r.entered),d()))}),c.dispose)),e.dispose}},[r])}({immediate:ee,container:H,classes:Y,direction:et,onStart:(0,c.E)(e=>{ea.current=!0,ei.onStart(H,e,er)}),onStop:(0,c.E)(e=>{ea.current=!1,ei.onStop(H,e,eo),"leave"!==e||k(ei)||(W("hidden"),K(H))})});let es=B;return ee?es={...es,className:(0,v.A)(B.className,...Y.current.enter,...Y.current.enterFrom)}:ea.current&&(es.className=(0,v.A)(B.className,null==(r=H.current)?void 0:r.className),""===es.className&&delete es.className),o.createElement(C.Provider,{value:ei},o.createElement(g.up,{value:(0,p.E)(Z,{visible:g.ZM.Open,hidden:g.ZM.Closed})|en.flags},(0,y.sY)({ourProps:{ref:F},theirProps:es,defaultTag:"div",features:M,visible:"visible"===Z,name:"Transition.Child"})))}),I=(0,y.yV)(function(e,t){let n=null!==(0,o.useContext)(w),r=null!==(0,g.oJ)();return o.createElement(o.Fragment,null,!n&&r?o.createElement(N,{ref:t,...e}):o.createElement(O,{ref:t,...e}))}),L=Object.assign(N,{Child:I,Root:N})},55635:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(2784),o=n(86519);function i(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},49952:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(2784),o=n(2422);function i(e,t,n,i){let a=(0,o.E)(n);(0,r.useEffect)(()=>{function n(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)},[e,t,i])}},71232:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(2784),o=n(2422);let i=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current(...n)},[t])}},19778:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,o=n(2784),i=n(60210),a=n(25766),s=n(94913);let l=null!=(r=o.useId)?r:function(){let e=(0,s.H)(),[t,n]=o.useState(e?()=>i.O.nextId():null);return(0,a.e)(()=>{null===t&&n(i.O.nextId())},[t]),null!=t?""+t:void 0}},93939:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(2784),o=n(25766);function i(){let e=(0,r.useRef)(!1);return(0,o.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},25766:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(2784),o=n(60210);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},2422:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(2784),o=n(25766);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},14488:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(2784),o=n(62325),i=n(71232);function a(e){let t=(0,i.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&t()})}),[t])}},45599:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var r=n(2784),o=n(5179),i=n(37625),a=n(2422);function s(e,t,n){let o=(0,a.E)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var l=n(40113);function c(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=(0,r.useRef)(!1);function c(n,r){if(!a.current||n.defaultPrevented)return;let i=r(n);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(i,o.tJ.Loose)||-1===i.tabIndex||n.preventDefault(),t(n,i)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{a.current=n})},[n]);let u=(0,r.useRef)(null);s("pointerdown",e=>{var t,n;a.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),s("mousedown",e=>{var t,n;a.current&&(u.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),s("click",e=>{(0,i.tq)()||u.current&&(c(e,()=>u.current),u.current=null)},!0),s("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,l.s)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},57241:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(2784),o=n(34488);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>(0,o.r)(...t),[...t])}},58838:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var r=n(2784),o=n(25766);function i(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function a(e,t){let[n,a]=(0,r.useState)(()=>i(e));return(0,o.e)(()=>{a(i(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[n,t]),n}},58498:function(e,t,n){"use strict";n.d(t,{H:function(){return l},v:function(){return s}});var r=n(2784),o=n(91803),i=n(71232),a=n(57241);function s(){var e;let{defaultContainers:t=[],portals:n,mainTreeNodeRef:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,r.useRef)(null!=(e=null==s?void 0:s.current)?e:null),c=(0,a.i)(l),u=(0,i.z)(()=>{var e,r,o;let i=[];for(let e of t)null!==e&&(e instanceof HTMLElement?i.push(e):"current"in e&&e.current instanceof HTMLElement&&i.push(e.current));if(null!=n&&n.current)for(let e of n.current)i.push(e);for(let t of null!=(e=null==c?void 0:c.querySelectorAll("html > *, body > *"))?e:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(l.current)||t.contains(null==(o=null==(r=l.current)?void 0:r.getRootNode())?void 0:o.host)||i.some(e=>t.contains(e))||i.push(t));return i});return{resolveContainers:u,contains:(0,i.z)(e=>u().some(t=>t.contains(e))),mainTreeNodeRef:l,MainTreeNode:(0,r.useMemo)(()=>function(){return null!=s?null:r.createElement(o._,{features:o.A.Hidden,ref:l})},[l,s])}}function l(){let e=(0,r.useRef)(null);return{mainTreeNodeRef:e,MainTreeNode:(0,r.useMemo)(()=>function(){return r.createElement(o._,{features:o.A.Hidden,ref:e})},[e])}}},94913:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var r,o=n(2784),i=n(60210);function a(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[a,s]=o.useState(i.O.isHandoffComplete);return a&&!1===i.O.isHandoffComplete&&s(!1),o.useEffect(()=>{!0!==a&&s(!0)},[a]),o.useEffect(()=>i.O.handoff(),[]),!t&&a}},80714:function(e,t,n){"use strict";n.d(t,{T:function(){return s},h:function(){return a}});var r=n(2784),o=n(71232);let i=Symbol();function a(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=(0,r.useRef)(t);(0,r.useEffect)(()=>{a.current=t},[t]);let s=(0,o.z)(e=>{for(let t of a.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:s}},62404:function(e,t,n){"use strict";let r;n.d(t,{N:function(){return a},l:function(){return s}});var o=n(2784),i=n(40113),a=((r=a||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function s(){let e=(0,o.useRef)(0);return(0,i.s)("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}},40113:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(2784),o=n(2422);function i(e,t,n){let i=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){i.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},91803:function(e,t,n){"use strict";let r;n.d(t,{A:function(){return i},_:function(){return a}});var o=n(78116),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let a=(0,o.yV)(function(e,t){var n;let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(2&r)==2||(null!=(n=i["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.sY)({ourProps:a,theirProps:i,slot:{},defaultTag:"div",name:"Hidden"})})},28470:function(e,t,n){"use strict";let r;n.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return l}});var o=n(2784);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var a=((r=a||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function s(){return(0,o.useContext)(i)}function l(e){let{value:t,children:n}=e;return o.createElement(i.Provider,{value:t},n)}},99121:function(e,t,n){"use strict";n.d(t,{O:function(){return a},n:function(){return i}});var r=n(2784);let o=(0,r.createContext)(!1);function i(){return(0,r.useContext)(o)}function a(e){return r.createElement(o.Provider,{value:e.force},e.children)}},30952:function(e,t,n){"use strict";function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},22725:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}n.d(t,{A:function(){return r}})},86519:function(e,t,n){"use strict";n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=setTimeout(...t);return n.add(()=>clearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];let i={current:!0};return(0,r.Y)(()=>{i.current&&t[0]()}),n.add(()=>{i.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(62325)},60210:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class a{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let s=new a},5179:function(e,t,n){"use strict";let r,o,i,a,s;n.d(t,{C5:function(){return y},GO:function(){return h},TO:function(){return d},fE:function(){return f},jA:function(){return w},sP:function(){return g},tJ:function(){return m},z2:function(){return b}});var l=n(78417),c=n(34488);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),f=((o=f||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),p=((i=p||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((a=m||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,l.E)(n,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}var v=((s=v||{})[s.Keyboard=0]="Keyboard",s[s.Mouse=1]="Mouse",s);function y(e){null==e||e.focus({preventScroll:!0})}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function w(e,t){var n,r,o;let{sorted:i=!0,relativeTo:a=null,skipElements:s=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?i?b(e):e:h(e);s.length>0&&c.length>1&&(c=c.filter(e=>!s.includes(e))),a=null!=a?a:l.activeElement;let u=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(a))-1;if(4&t)return Math.max(0,c.indexOf(a))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,m=c.length,g;do{if(p>=m||p+m<=0)return 0;let e=d+p;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(g=c[e])||g.focus(f),p+=u}while(g!==l.activeElement);return 6&t&&null!=(o=null==(r=null==(n=g)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&g.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},78417:function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(e in t){let n=t[e];return"function"==typeof n?n(...o):n}let a=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,r),a}n.d(t,{E:function(){return r}})},62325:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return r}})},34488:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(60210);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},37625:function(e,t,n){"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},78116:function(e,t,n){"use strict";let r,o;n.d(t,{AN:function(){return l},Y2:function(){return f},l4:function(){return c},oA:function(){return g},sY:function(){return u},yV:function(){return m}});var i=n(2784),a=n(22725),s=n(78417),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function u(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:a=!0,name:l,mergeRefs:c}=e;c=null!=c?c:p;let u=h(n,t);if(a)return d(u,r,o,l,c);let f=null!=i?i:0;if(2&f){let{static:e=!1,...t}=u;if(e)return d(t,r,o,l,c)}if(1&f){let{unmount:e=!0,...t}=u;return(0,s.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,l,c)})}return d(u,r,o,l,c)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:s=n,children:l,refName:c="ref",...u}=v(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let p={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(p["data-headlessui-state"]=n.join(" "))}if(s===i.Fragment&&Object.keys(g(u)).length>0){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(u).map(e=>"  - ".concat(e)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>"  - ".concat(e)).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,a.A)(null==e?void 0:e.className(...n),u.className)}:(0,a.A)(null==e?void 0:e.className,u.className);return(0,i.cloneElement)(f,Object.assign({},h(f.props,g(v(u,["ref"]))),p,d,{ref:o(f.ref,d.ref)},t?{className:t}:{}))}return(0,i.createElement)(s,Object.assign({},v(u,["ref"]),s!==i.Fragment&&d,s!==i.Fragment&&p),f)}function f(){let e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(e=>null==e))return e.current=r,t}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(e=>null==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(o).map(e=>[e,void 0])));for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return r}function m(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},20324:function(e,t,n){"use strict";n.d(t,{m6:function(){return G}});let r=e=>{let t=s(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),o(n,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{let o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},o=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?o(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},i=/^\[(.+)\]$/,a=e=>{if(i.test(e)){let t=i.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},s=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return d(Object.entries(e.classGroups),n).forEach(([e,n])=>{l(n,r,e,t)}),r},l=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:c(t,e)).classGroupId=n;return}if("function"==typeof e){if(u(e)){l(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,o])=>{l(o,c(t,e),n,r)})})},c=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},u=e=>e.isThemeGetter,d=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,f=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,o=(o,i)=>{n.set(o,i),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},p=e=>{let{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{let n;let a=[],s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){a.push(e.slice(l,c)),l=c+i;continue}if("/"===u){n=c;continue}}"["===u?s++:"]"===u&&s--}let c=0===a.length?e:e.substring(l),u=c.startsWith("!"),d=u?c.substring(1):c;return{modifiers:a,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:n&&n>l?n-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},h=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},m=e=>({cache:f(e.cacheSize),parseClassName:p(e),...r(e)}),g=/\s+/,v=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(g),s="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f||!(p=r(u))){s=t+(s.length>0?" "+s:s);continue}f=!1}let m=h(l).join(":"),g=c?m+"!":m,v=g+p;if(i.includes(v))continue;i.push(v);let y=o(p,f);for(let e=0;e<y.length;++e){let t=y[e];i.push(g+t)}s=t+(s.length>0?" "+s:s)}return s};function y(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=b(e))&&(r&&(r+=" "),r+=t);return r}let b=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=b(e[r]))&&(n&&(n+=" "),n+=t);return n},w=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},x=/^\[(?:([a-z-]+):)?(.+)\]$/i,C=/^\d+\/\d+$/,k=new Set(["px","full","screen"]),S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>I(e)||k.has(e)||C.test(e),O=e=>U(e,"length",q),I=e=>!!e&&!Number.isNaN(Number(e)),L=e=>U(e,"number",I),R=e=>!!e&&Number.isInteger(Number(e)),j=e=>e.endsWith("%")&&I(e.slice(0,-1)),P=e=>x.test(e),_=e=>S.test(e),D=new Set(["length","size","percentage"]),z=e=>U(e,D,Z),B=e=>U(e,"position",Z),H=new Set(["image","url"]),F=e=>U(e,H,J),V=e=>U(e,"",W),$=()=>!0,U=(e,t,n)=>{let r=x.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},q=e=>E.test(e)&&!T.test(e),Z=()=>!1,W=e=>A.test(e),J=e=>M.test(e),G=function(e,...t){let n,r,o;let i=function(s){return r=(n=m(t.reduce((e,t)=>t(e),e()))).cache.get,o=n.cache.set,i=a,a(s)};function a(e){let t=r(e);if(t)return t;let i=v(e,n);return o(e,i),i}return function(){return i(y.apply(null,arguments))}}(()=>{let e=w("colors"),t=w("spacing"),n=w("blur"),r=w("brightness"),o=w("borderColor"),i=w("borderRadius"),a=w("borderSpacing"),s=w("borderWidth"),l=w("contrast"),c=w("grayscale"),u=w("hueRotate"),d=w("invert"),f=w("gap"),p=w("gradientColorStops"),h=w("gradientColorStopPositions"),m=w("inset"),g=w("margin"),v=w("opacity"),y=w("padding"),b=w("saturate"),x=w("scale"),C=w("sepia"),k=w("skew"),S=w("space"),E=w("translate"),T=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",P,t],D=()=>[P,t],H=()=>["",N,O],U=()=>["auto",I,P],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",P],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[I,P];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[N,O],blur:["none","",_,P],brightness:Y(),borderColor:[e],borderRadius:["none","","full",_,P],borderSpacing:D(),borderWidth:H(),contrast:Y(),grayscale:G(),hueRotate:Y(),invert:G(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[j,O],inset:M(),margin:M(),opacity:Y(),padding:D(),saturate:Y(),scale:Y(),sepia:G(),skew:Y(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",P]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),P]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,P]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",P]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",R,P]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",R,P]},P]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[R,P]},P]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",P]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",P]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",P,t]}],"min-w":[{"min-w":[P,t,"min","max","fit"]}],"max-w":[{"max-w":[P,t,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[P,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[P,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[P,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[P,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",L]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",P]}],"line-clamp":[{"line-clamp":["none",I,L]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,P]}],"list-image":[{"list-image":["none",P]}],"list-style-type":[{list:["none","disc","decimal",P]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,O]}],"underline-offset":[{"underline-offset":["auto",N,P]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",z]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},F]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Z()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[N,P]}],"outline-w":[{outline:[N,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[N,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,V]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",_,P]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",P]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",P]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",P]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[R,P]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",P]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,O,L]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(86570),t(70743)}),_N_E=e.O()}]);