@epigraph/configurator 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ /*! For license information please see main.d7ef0bea.js.LICENSE.txt */
2
+ !function(){var e={908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),o=n(2747),i=n(6037),a=n(4154),l=n(7728);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},8384:function(e,t,n){var r=n(3894),o=n(8699),i=n(4957),a=n(7184),l=n(7109);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),o=n(9255),i=n(9186),a=n(3423),l=n(3739);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),o=n(5774),i=n(1596);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},2854:function(e,t,n){var r=n(8384),o=n(511),i=n(835),a=n(707),l=n(8832),u=n(5077);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=u,e.exports=s},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},4903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},7538:function(e,t,n){var r=n(6478),o=n(4963),i=n(3629),a=n(5174),l=n(6800),u=n(9102),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&u(e),p=n||c||f||d,h=p?r(e.length,String):[],v=h.length;for(var y in e)!t&&!s.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,v))||h.push(y);return h}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},7897:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1986:function(e,t,n){var r=n(1705),o=n(3629);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},9066:function(e,t,n){var r=n(7197),o=n(1587),i=n(3581),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},4906:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(3355),o=n(3141);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,l))}},3355:function(e,t,n){var r=n(2854),o=n(5305),i=n(2206),a=n(8078),l=n(8383),u=n(3629),s=n(5174),c=n(9102),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,y,g){var m=u(e),b=u(t),w=m?d:l(e),x=b?d:l(t),_=(w=w==f?p:w)==p,k=(x=x==f?p:x)==p,E=w==x;if(E&&s(e)){if(!s(t))return!1;m=!0,_=!1}if(E&&!_)return g||(g=new r),m||c(e)?o(e,t,n,v,y,g):i(e,t,w,n,v,y,g);if(!(1&n)){var S=_&&h.call(e,"__wrapped__"),O=k&&h.call(t,"__wrapped__");if(S||O){var j=S?e.value():e,C=O?t.value():t;return g||(g=new r),y(j,C,n,v,g)}}return!!E&&(g||(g=new r),a(e,t,n,v,y,g))}},6703:function(e,t,n){var r=n(4786),o=n(257),i=n(8092),a=n(7907),l=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,c=u.toString,f=s.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:l).test(a(e))}},8150:function(e,t,n){var r=n(9066),o=n(4635),i=n(3141),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},3654:function(e,t,n){var r=n(2936),o=n(8836),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},75:function(e){e.exports=function(e,t){return e.has(t)}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},5305:function(e,t,n){var r=n(692),o=n(7897),i=n(75);e.exports=function(e,t,n,a,l,u){var s=1&n,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,y=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var g=e[h],m=t[h];if(a)var b=s?a(m,g,h,t,e,u):a(g,m,h,e,t,u);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(g===e||l(g,e,n,a,u)))return y.push(t)}))){v=!1;break}}else if(g!==m&&!l(g,m,n,a,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},2206:function(e,t,n){var r=n(7197),o=n(6219),i=n(9231),a=n(5305),l=n(234),u=n(2230),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=u),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,s,f,d);return d.delete(e),y;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var f=c;f--;){var d=s[f];if(!(u?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var v=!0;l.set(e,t),l.set(t,e);for(var y=u;++f<c;){var g=e[d=s[f]],m=t[d];if(i)var b=u?i(m,g,d,t,e,l):i(g,m,d,e,t,l);if(!(void 0===b?g===m||a(g,m,n,i,l):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return l.delete(e),l.delete(t),v}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),o=n(5918),i=n(2742);e.exports=function(e){return r(e,i,o)}},2799:function(e,t,n){var r=n(5964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8136:function(e,t,n){var r=n(6703),o=n(40);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},1587:function(e,t,n){var r=n(7197),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(u){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},5918:function(e,t,n){var r=n(4903),o=n(8174),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},8383:function(e,t,n){var r=n(908),o=n(5797),i=n(8319),a=n(3924),l=n(7091),u=n(9066),s=n(7907),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=s(r),y=s(o),g=s(i),m=s(a),b=s(l),w=u;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case v:return h;case y:return c;case g:return f;case m:return d;case b:return p}return t}),e.exports=w},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},4154:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7728:function(e,t,n){var r=n(9620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,n){var r=n(5525),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7184:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4086:function(e,t,n){var r=n(9676),o=n(8384),i=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),o=n(5797),i=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},4963:function(e,t,n){var r=n(4906),o=n(3141),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),o=n(4635);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),o=n(9488),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),o=n(8092);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},9102:function(e,t,n){var r=n(8150),o=n(6194),i=n(9494),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},2742:function(e,t,n){var r=n(7538),o=n(3654),i=n(1473);e.exports=function(e){return i(e)?r(e):o(e)}},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,l,u=o(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(u[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(u[l[f]]=a[l[f]])}}return u}},6921:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),u=n(47),s=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:a.default,Block:u.default,Inline:l.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};t.default=y},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=o;var i,a={},l={},u={},s={};function c(e,t){var n;if(void 0===t&&(t=i.ANY),"string"===typeof e)n=s[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=s.text;else if("number"===typeof e)e&i.LEVEL&i.BLOCK?n=s.block:e&i.LEVEL&i.INLINE&&(n=s.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=l[r[o]])break;n=n||u[e.tagName]}return null==n?null:t&i.LEVEL&n.scope&&t&i.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(i=t.Scope||(t.Scope={})),t.create=function(e,t){var n=c(e);if(null==n)throw new o("Unable to create "+e+" blot");var r=n,i=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(i,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=c,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(s[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(l[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(e){null!=u[e]&&null!=r.className||(u[e]=r)}))}return r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),u=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};u.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},u.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},u.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},u.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"===typeof n){if("number"===typeof e.delete&&"number"===typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"===typeof n.delete&&null!=e.insert&&(t-=1,"object"!==typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},u.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},u.prototype.filter=function(e){return this.ops.filter(e)},u.prototype.forEach=function(e){this.ops.forEach(e)},u.prototype.map=function(e){return this.ops.map(e)},u.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},u.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},u.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},u.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},u.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new u(n)},u.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var s=new u(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"===typeof d.retain){var p={};"number"===typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"===typeof f.retain);if(h&&(p.attributes=h),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var v=new u(t.rest());return s.concat(v).chop()}}else"number"===typeof d.delete&&"number"===typeof f.retain&&s.push(d)}return s.chop()},u.prototype.concat=function(e){var t=new u(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},u.prototype.diff=function(e,t){if(this.ops===e.ops)return new u;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new u,s=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return s.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var l=c.next(n),u=f.next(n);o(l.insert,u.insert)?i.retain(n,a.attributes.diff(l.attributes,u.attributes)):i.push(u).delete(n)}t-=n}})),i.chop()},u.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new u,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"===typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new u}}r.length()>0&&e(r,{},o)},u.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l.delete)continue;s.delete?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},u.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=u},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=s(f,n),f!==(o=s(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,c=r&&a(r)?r:[]):c=r&&l(r)?r:{},u(f,{name:n,newValue:e(h,c,o)})):"undefined"!==typeof o&&u(f,{name:n,newValue:o}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=f(n(3)),a=f(n(2)),l=f(n(0)),u=f(n(16)),s=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var i=l.default.create(y.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l.default.Embed);v.scope=l.default.Scope.BLOCK_BLOT;var y=function(e){function t(e){d(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[s.default,l.default.Embed,c.default],t.bubbleFormats=g,t.BlockEmbed=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=y(n(2)),l=y(n(14)),u=y(n(8)),s=y(n(9)),c=y(n(0)),f=n(15),d=y(f),p=y(n(3)),h=y(n(10)),v=y(n(34));function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),w=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(m(this,e),this.options=x(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(e){e===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;_.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var o=e.attrName||e.blotName;"string"===typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return _.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,u.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,u=k(e,t,n,r,i),s=o(u,4);return e=s[0],t=s[1],a=s[2],i=s[3],_.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,u=k(e,t,n,r,i),s=o(u,4);return e=s[0],t=s[1],a=s[2],i=s[3],_.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,u=k(e,0,n,r,i),s=o(u,4);return e=s[0],a=s[2],i=s[3],_.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],_.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return _.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function x(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},w.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function _(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===u.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=E(o,l,t):0!==r&&(o=E(o,n,r,t)),this.setSelection(o,u.default.sources.SILENT)),l.length()>0){var s,c,f=[u.default.events.TEXT_CHANGE,l,i,t];(s=this.emitter).emit.apply(s,[u.default.events.EDITOR_CHANGE].concat(f)),t!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return l}function k(e,t,n,o,i){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(i=o,o=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,i=o):"string"===typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||u.default.sources.API]}function E(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var s=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==u.default.sources.USER)})),c=o(s,2);i=c[0],l=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===u.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=o(d,2);i=p[0],l=p[1]}return new f.Range(i,l-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=u.default.events,w.sources=u.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":s.default,"core/theme":v.default},t.expandConfig=x,t.overload=k,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},t.default=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};o.DEFAULTS={},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var s,c;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(u(e)){if(!u(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var f=o(e),d=o(t)}catch(p){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),s=f.length-1;s>=0;s--)if(f[s]!=d[s])return!1;for(s=f.length-1;s>=0;s--)if(c=f[s],!a(e[c],t[c],n))return!1;return typeof e===typeof t}(e,t,n))};function l(e){return null===e||void 0===e}function u(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),l=f(n(0)),u=f(n(4)),s=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(s.default);v.blotName="code",v.tagName="CODE";var y=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,u=i-a+1,s=this.isolate(a,u),c=s.next;s.format(r,o),c instanceof t&&c.formatAt(0,e-a+n-u,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(u.default);y.blotName="code-block",y.tagName="PRE",y.TAB=" ",t.Code=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n(2)),l=g(n(20)),u=g(n(0)),s=g(n(13)),c=g(n(24)),f=n(4),d=g(f),p=g(n(16)),h=g(n(21)),v=g(n(11)),y=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var m=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),v=o(h,2),g=v[0],m=v[1],b=(0,y.default)({},(0,f.bubbleFormats)(g));if(g instanceof d.default){var w=g.descendant(u.default.Leaf,m),x=o(w,1)[0];b=(0,y.default)(b,(0,f.bubbleFormats)(x))}c=l.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=s}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,s,n,c[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof s.default){var l=e-t.offset(n.scroll),u=t.newlineIndex(l+a)-l+1;t.formatAt(l,u,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof d.default?n.push(t):t instanceof u.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(u.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t}));return y.default.apply(y.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],u=i[1],c=0,f=new a.default;null!=l&&(c=l instanceof s.default?l.newlineIndex(u)-u+1:l.length()-u,f=l.delta().slice(u,u+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(m)&&u.default.find(t[0].target)){var o=u.default.find(t[0].target),i=(0,f.bubbleFormats)(o),l=o.offset(this.scroll),s=t[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(s),p=(new a.default).insert(o.value()),h=(new a.default).retain(l).concat(d.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(21)),l=s(n(11)),u=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,s(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(e,t){e===u.default.events.TEXT_CHANGE&&t.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(u.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],u=a[1];if(null==l)return null;var s=l.position(u,!0),c=r(s,2);o=c[0],u=c[1];var f=document.createRange();if(t>0){f.setStart(o,u);var d=this.scroll.leaf(e+t),p=r(d,2);if(l=p[0],u=p[1],null==l)return null;var h=l.position(u,!0),v=r(h,2);return o=v[0],u=v[1],f.setEnd(o,u),f.getBoundingClientRect()}var y="left",g=void 0;return o instanceof Text?(u<o.data.length?(f.setStart(o,u),f.setEnd(o,u+1)):(f.setStart(o,u-1),f.setEnd(o,u),y="right"),g=f.getBoundingClientRect()):(g=l.domNode.getBoundingClientRect(),u>0&&(y="right")),{bottom:g.top+g.height,height:g.height,left:g[y],right:g[y],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),u=l.offset(t.scroll);return 0===a?u:l instanceof i.default.Container?u+l.length():u+l.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),u=r(l,2),s=u[0],c=u[1],f=s.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var u=this.scroll.line(Math.min(t.index+t.length,o));l=r(u,1)[0]}if(null!=a&&null!=l){var s=e.getBoundingClientRect();n.top<s.top?e.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(e.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"===typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[u.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(d)),e!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function v(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);s.blotName="break",s.tagName="BR",t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),i=n(30),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var l=null==n?a.create("text",t):a.create(t,n);this.appendChild(l)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(i.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n(31),a=n(17),l=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new i.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),i=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=i.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"===typeof t.retain?o.retain=e:"string"===typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(l){t=function(){}}try{n=Set}catch(l){n=function(){}}try{r=Promise}catch(l){r=function(){}}function o(i,l,u,s,c){"object"===typeof l&&(u=l.depth,s=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return"undefined"==typeof l&&(l=!0),"undefined"==typeof u&&(u=1/0),function i(u,h){if(null===u)return null;if(0===h)return u;var v,y;if("object"!=typeof u)return u;if(e(u,t))v=new t;else if(e(u,n))v=new n;else if(e(u,r))v=new r((function(e,t){u.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(u))v=[];else if(o.__isRegExp(u))v=new RegExp(u.source,a(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(o.__isDate(u))v=new Date(u.getTime());else{if(p&&Buffer.isBuffer(u))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(v),v;e(u,Error)?v=Object.create(u):"undefined"==typeof s?(y=Object.getPrototypeOf(u),v=Object.create(y)):(v=Object.create(s),y=s)}if(l){var g=f.indexOf(u);if(-1!=g)return d[g];f.push(u),d.push(v)}for(var m in e(u,t)&&u.forEach((function(e,t){var n=i(t,h-1),r=i(e,h-1);v.set(n,r)})),e(u,n)&&u.forEach((function(e){var t=i(e,h-1);v.add(t)})),u){var b;y&&(b=Object.getOwnPropertyDescriptor(y,m)),b&&null==b.set||(v[m]=i(u[m],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(m=0;m<w.length;m++){var x=w[m];(!(k=Object.getOwnPropertyDescriptor(u,x))||k.enumerable||c)&&(v[x]=i(u[x],h-1),k.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(c){var _=Object.getOwnPropertyNames(u);for(m=0;m<_.length;m++){var k,E=_[m];(k=Object.getOwnPropertyDescriptor(u,E))&&k.enumerable||(v[E]=i(u[E],h-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}(i,u)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"===typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"===typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();"object"===typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),l=p(n(8)),u=n(4),s=p(u),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof s.default||e instanceof u.BlockEmbed}var v=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],s=a[1],d=this.line(e+n),p=r(d,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&s>0){if(l instanceof u.BlockEmbed||p instanceof u.BlockEmbed)return void this.optimize();if(l instanceof f.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var y=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,y),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[s.default,u.BlockEmbed,d.default],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n(21)),l=v(n(11)),u=v(n(3)),s=v(n(2)),c=v(n(20)),f=v(n(0)),d=v(n(5)),p=v(n(10)),h=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),m=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},E),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0},_)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},_)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),r.addBinding({key:t.keys.DELETE},{collapsed:!1},k),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),r.listen(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=j(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,u.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var u=e.quill.getSelection();if(null!=u&&e.quill.hasFocus()){var s=e.quill.getLine(u.index),c=o(s,2),d=c[0],p=c[1],h=e.quill.getLeaf(u.index),v=o(h,2),y=v[0],g=v[1],m=0===u.length?[y,g]:e.quill.getLeaf(u.index+u.length),b=o(m,2),w=b[0],x=b[1],_=y instanceof f.default.Text?y.value().slice(0,g):"",k=w instanceof f.default.Text?w.value().slice(x):"",E={collapsed:0===u.length,empty:0===u.length&&d.length()<=1,format:e.quill.getFormat(u),offset:p,prefix:_,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix))&&!(null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,u,E)}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return y(n={key:e,shiftKey:t,altKey:null},r,/^$/),y(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed)||(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),!1)})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var u=r.formats(),s=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(u,s)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function _(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var u=this.quill.getLine(e.index+1),s=o(u,1)[0];if(s){var f=l.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,p)||{},i=s.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function E(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function S(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),u=l[0],s=l[1];if(null!=u){var c=this.quill.getIndex(u),p=u.newlineIndex(s,!0)+1,h=u.newlineIndex(c+s+i),v=u.domNode.textContent.slice(p,h).split("\n");s=0,v.forEach((function(t,o){e?(u.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(u.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,i,d.default.sources.SILENT)}}}}function O(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function j(e){if("string"===typeof e||"number"===typeof e)return j({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"===typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[m]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:O("bold"),italic:O("italic"),underline:O("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new s.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,u.default)({},r.formats(),{list:"checked"}),l=(new s.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new s.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var u=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new s.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:u});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new s.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(0)),l=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,u=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];o=s[0],i=s[1],u=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,u].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),d=r(f,2);return i=d[0],u=d[1],{startNode:o,startOffset:i,endNode:o,endOffset:u}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);s.allowedChildren=[i.default,o.BlockEmbed,s],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(l.default.Attributor.Style),f=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),d=new c("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=f,t.ColorStyle=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=s,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var u=0;function s(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),a=g(i),l=g(n(16)),u=g(n(25)),s=g(n(24)),c=g(n(35)),f=g(n(6)),d=g(n(22)),p=g(n(7)),h=g(n(55)),v=g(n(42)),y=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":u.default,"blots/cursor":s.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":y.default}),r.default.register(a.default,l.default,s.default,f.default,d.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var u="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(u).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=u,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),u=new i.default.Attributor.Class("align","ql-align",a),s=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=u,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),u=new i.default.Attributor.Class("direction","ql-direction",a),s=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=u,t.DirectionStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new l.default.Attributor.Class("font","ql-font",c),d=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l.default.Attributor.Style),p=new d("font","font-family",c);t.FontStyle=p,t.FontClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=u(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function u(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),l=h(n(8)),u=h(n(23)),s=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],k=function(e){function t(e,n){v(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,m),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,w):e.classList.contains("ql-header")?S(e,x):e.classList.contains("ql-size")&&S(e,_)),new d.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(s.default);k.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){v(this,t);var r=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){u.default.match(t,"enter")?(e.save(),t.preventDefault()):u.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",l.default.sources.USER),this.quill.setSelection(r+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var u=r.length();e>a?n(r,e-a,Math.min(t,a+u-e)):n(r,0,Math.min(u,e+t-a)),a+=u}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),i=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var l=function e(t,n){void 0===n&&(n=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),n&&e(t.parent))},u=function e(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(e),t.optimize(n))},s=t,c=0;s.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(e){var t=i.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(i.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=i.find(e,!1);l(t,!1),t instanceof o.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),a=(s=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=i.find(e.target,!0);return null==t?null:null==t.domNode[i.DATA_KEY].mutations?(t.domNode[i.DATA_KEY].mutations=[e],t):(t.domNode[i.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[i.DATA_KEY]&&e.update(e.domNode[i.DATA_KEY].mutations||[],n)})),null!=this.domNode[i.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||i.query(r,i.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=i.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=i.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),a=i.create(n,r);o.parent.insertBefore(a,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),i=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=i.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=i.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,u){if(e==t)return e?[[0,e]]:[];(u<0||e.length<u)&&(u=null);var c=i(e,t),f=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var d=e.substring(e.length-c),p=function(e,t){var l;if(!e)return[[1,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,s=e.length>t.length?t:e,c=u.indexOf(s);if(-1!=c)return l=[[1,u.substring(0,c)],[0,s],[1,u.substring(c+s.length)]],e.length>t.length&&(l[0][0]=l[2][0]=n),l;if(1==s.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,l,u,s=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(s,c+1));){var d=i(e.substring(n),t.substring(c)),p=a(e.substring(0,n),t.substring(0,c));f.length<p+d&&(f=t.substring(c-p,c)+t.substring(c,c+d),r=e.substring(0,n-p),o=e.substring(n+d),l=t.substring(0,c-p),u=t.substring(c+d))}return 2*f.length>=e.length?[r,o,l,u,f]:null}var l,u,s,c,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;l=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(u=l[0],s=l[1],c=l[2],f=l[3]):(c=l[0],f=l[1],u=l[2],s=l[3]);var h=l[4];return[u,s,c,f,h]}(e,t);if(f){var d=f[0],p=f[1],h=f[2],v=f[3],y=f[4],g=r(d,h),m=r(p,v);return g.concat([[0,y]],m)}return function(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),l=a,u=2*a,s=new Array(u),c=new Array(u),f=0;f<u;f++)s[f]=-1,c[f]=-1;s[l+1]=0,c[l+1]=0;for(var d=r-i,p=d%2!=0,h=0,v=0,y=0,g=0,m=0;m<a;m++){for(var b=-m+h;b<=m-v;b+=2){for(var w=l+b,x=(O=b==-m||b!=m&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1)-b;O<r&&x<i&&e.charAt(O)==t.charAt(x);)O++,x++;if(s[w]=O,O>r)v+=2;else if(x>i)h+=2;else if(p&&(E=l+d-b)>=0&&E<u&&-1!=c[E]&&O>=(k=r-c[E]))return o(e,t,O,x)}for(var _=-m+y;_<=m-g;_+=2){for(var k,E=l+_,S=(k=_==-m||_!=m&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1)-_;k<r&&S<i&&e.charAt(r-k-1)==t.charAt(i-S-1);)k++,S++;if(c[E]=k,k>r)g+=2;else if(S>i)y+=2;else if(!p){var O;if((w=l+d-_)>=0&&w<u&&-1!=s[w])if(x=l+(O=s[w])-w,O>=(k=r-k))return o(e,t,O,x)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),l(p),null!=u&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var a=r+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var l=t-r,u=[i[0],i[1].slice(0,l)],s=[i[0],i[1].slice(l)];return e.splice(o,1,u,s),[o+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],a=o[i],l=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=l&&a[1]+l[1]===l[1]+a[1])return o.splice(i,2,l,a),s(o,i,2);if(null!=l&&0===l[1].indexOf(a[1])){o.splice(i,2,[l[0],a[1]],[0,a[1]]);var u=l[1].slice(a[1].length);return u.length>0&&o.splice(i+2,0,[l[0],u]),s(o,i,3)}return e}(p,u)),p=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var a=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&a.push(e[i]);return a}(p)}function o(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),u=t.substring(o),s=r(i,a),c=r(l,u);return s.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function l(e){e.push([0,""]);for(var t,r=0,o=0,u=0,s="",c="";r<e.length;)switch(e[r][0]){case 1:u++,c+=e[r][1],r++;break;case n:o++,s+=e[r][1],r++;break;case 0:o+u>1?(0!==o&&0!==u&&(0!==(t=i(c,s))&&(r-o-u>0&&0==e[r-o-u-1][0]?e[r-o-u-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),s=s.substring(t)),0!==(t=a(c,s))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),s=s.substring(0,s.length-t))),0===o?e.splice(r-u,o+u,[1,c]):0===u?e.splice(r-o,o+u,[n,s]):e.splice(r-o-u,o+u,[n,s],[1,c]),r=r-o-u+(o?1:0)+(u?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,u=0,o=0,s="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&l(e)}var u=r;function s(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}u.INSERT=1,u.DELETE=n,u.EQUAL=0,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var u,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var d,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,n);break;case 4:c[s].fn.call(c[s].context,t,n,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[s].fn.apply(c[s].context,u)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var u=0,s=[],c=l.length;u<c;u++)(l[u].fn!==t||i&&!l[u].once||n&&l[u].context!==n)&&s.push(l[u]);s.length?this._events[a]=1===s.length?s[0]:s:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=b(n(3)),l=b(n(2)),u=b(n(0)),s=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),v=n(26),y=n(38),g=n(39),m=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,c.default)("quill:clipboard"),_="__ql-matcher",k=[[Node.TEXT_NODE,M],[Node.TEXT_NODE,D],["br",function(e,t){return N(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===C(e).fontStyle&&(n.italic=!0),r.fontWeight&&(C(e).fontWeight.startsWith("bold")||parseInt(C(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=u.default.query(e);if(null==n||"list-item"!==n.blotName||!N(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(u.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",A.bind(A,"bold")],["i",A.bind(A,"italic")],["style",function(){return new l.default}]],E=[d.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,y.DirectionStyle,g.FontStyle,m.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==I)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],u=i[1],s=P(this.container,a,u);return N(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new l.default).retain(s.length()-1).delete(1))),x.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,s.default.sources.USER),t.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[_]=e[_]||[],e[_].push(l)}))}})),[t,n]}}]),t}(f.default);function j(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return j(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new l.default)}function C(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function N(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!==typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function T(e){if(0===e.childNodes.length)return!1;var t=C(e);return["block","list-item"].indexOf(t.display)>-1}function P(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=P(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[_]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function A(e,t,n){return j(n,e,!0)}function L(e,t){var n=u.default.Attributor.Attribute.keys(e),r=u.default.Attributor.Class.keys(e),o=u.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=u.default.query(t,u.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=j(t,i)),t}function R(e,t){var n=u.default.query(e);if(null==n)return t;if(n.prototype instanceof u.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function D(e,t){return N(t,"\n")||(T(e)||t.length()>0&&e.nextSibling&&T(e.nextSibling))&&t.insert("\n"),t}function I(e,t){if(T(e)&&null!=e.nextElementSibling&&!N(t,"\n\n")){var n=e.offsetHeight+parseFloat(C(e).marginTop)+parseFloat(C(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function M(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!C(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&T(e.parentNode)||null!=e.previousSibling&&T(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&T(e.parentNode)||null!=e.nextSibling&&T(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}O.DEFAULTS={matchers:[],matchVisual:!0},t.default=O,t.matchAttributor=L,t.matchBlot=R,t.matchNewline=D,t.matchSpacing=I,t.matchText=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="bold",s.tagName=["STRONG","B"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),a=c(n(0)),l=c(n(5)),u=c(n(10)),s=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var d=(0,u.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");v(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=d.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var u=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];u=!s.hasAttribute("selected")&&(s.value||!1)}else u=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,u);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(u=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,u)),l.default.sources.USER)}else t.quill.format(n,u,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var u=t[i];"string"===typeof u&&(u=u.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+u+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var s=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(s.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),l=p(n(8)),u=n(43),s=p(u),c=p(n(27)),f=n(15),d=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],m=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return y(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(s.default);m.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return y(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===l.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=r(i,2),u=a[0],s=a[1];if(null!=u){e.linkRange=new f.Range(t.index-s,u.length());var d=c.default.formats(u.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=D(n(29)),o=n(36),i=n(38),a=n(64),l=D(n(65)),u=D(n(66)),s=n(67),c=D(s),f=n(37),d=n(26),p=n(39),h=n(40),v=D(n(56)),y=D(n(68)),g=D(n(27)),m=D(n(69)),b=D(n(70)),w=D(n(71)),x=D(n(72)),_=D(n(73)),k=n(13),E=D(k),S=D(n(74)),O=D(n(75)),j=D(n(57)),C=D(n(41)),N=D(n(28)),T=D(n(59)),P=D(n(60)),A=D(n(61)),L=D(n(108)),R=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":v.default,"formats/code":k.Code,"formats/italic":y.default,"formats/link":g.default,"formats/script":m.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":s.ListItem,"modules/formula":S.default,"modules/syntax":O.default,"modules/toolbar":j.default,"themes/bubble":L.default,"themes/snow":R.default,"ui/icons":C.default,"ui/picker":N.default,"ui/icon-picker":P.default,"ui/color-picker":T.default,"ui/tooltip":A.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),f=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=u(n(0)),a=u(n(4)),l=u(n(25));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(e){function t(e){s(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);s.blotName="script",s.tagName=["SUB","SUP"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},u=n(27);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=["alt","height","width"],d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,u.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);d.blotName="image",d.tagName="IMG",t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),l=n(27),u=(r=l)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=["height","width"],d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return u.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=u(n(35)),a=u(n(5)),l=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){s(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),t}(l.default);t.FormulaBlot=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=u(n(0)),a=u(n(5)),l=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(u(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){s(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(3)),a=f(n(8)),l=n(43),u=f(l),s=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(u.default);y.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){d(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],u=r.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-u),f=r.quill.getBounds(new s.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=y},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},4463:function(e,t,n){"use strict";var r=n(2791),o=n(1725),i=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[: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][: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]*$/,p=Object.prototype.hasOwnProperty,h={},v={};function y(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}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(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".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(v,e)||!p.call(h,e)&&(d.test(e)?v[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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".split(" ").forEach((function(e){var t=e.replace(m,b);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,b);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,b);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,k=60106,E=60107,S=60108,O=60114,j=60109,C=60110,N=60112,T=60113,P=60120,A=60115,L=60116,R=60121,D=60128,I=60129,M=60130,q=60131;if("function"===typeof Symbol&&Symbol.for){var z=Symbol.for;_=z("react.element"),k=z("react.portal"),E=z("react.fragment"),S=z("react.strict_mode"),O=z("react.profiler"),j=z("react.provider"),C=z("react.context"),N=z("react.forward_ref"),T=z("react.suspense"),P=z("react.suspense_list"),A=z("react.memo"),L=z("react.lazy"),R=z("react.block"),z("react.scope"),D=z("react.opaque.id"),I=z("react.debug_trace_mode"),M=z("react.offscreen"),q=z("react.legacy_hidden")}var F,B="function"===typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function V(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function K(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var o=u.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function W(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1);case 11:return e=K(e.type.render,!1);case 22:return e=K(e.type._render,!1);case 1:return e=K(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case k:return"Portal";case O:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return G(e.type);case R:return G(e._render);case L:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function $(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function se(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,ye,ge=(ye=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var je=null,Ce=null,Ne=null;function Te(e){if(e=ro(e)){if("function"!==typeof je)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),je(e.stateNode,e.type,t))}}function Pe(e){Ce?Ne?Ne.push(e):Ne=[e]:Ce=e}function Ae(){if(Ce){var e=Ce,t=Ne;if(Ne=Ce=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Le(e,t){return e(t)}function Re(e,t,n,r,o){return e(t,n,r,o)}function De(){}var Ie=Le,Me=!1,qe=!1;function ze(){null===Ce&&null===Ne||(De(),Ae())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(ye){Be=!1}function Ve(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var He=!1,Ke=null,We=!1,Ge=null,$e={onError:function(e){He=!0,Ke=e}};function Ye(e,t,n,r,o,i,a,l,u){He=!1,Ke=null,Ve.apply($e,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Qe(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],lt=null,ut=null,st=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function yt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=no(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){mt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==lt&&mt(lt)&&(lt=null),null!==ut&&mt(ut)&&(ut=null),null!==st&&mt(st)&&(st=null),ct.forEach(bt),ft.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function _t(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&xt(lt,e),null!==ut&&xt(ut,e),null!==st&&xt(st,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},Ot={};function jt(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return St[e]=n[t];return e}f&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=jt("animationend"),Nt=jt("animationiteration"),Tt=jt("animationstart"),Pt=jt("transitionend"),At=new Map,Lt=new Map,Rt=["abort","abort",Ct,"animationEnd",Nt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Lt.set(r,t),At.set(r,o),s(o,[r])}}(0,i.unstable_now)();var It=8;function Mt(e){if(0!==(1&e))return It=15,1;if(0!==(2&e))return It=14,2;if(0!==(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!==(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!==(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!==(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!==(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!==(1073741824&e)?(It=1,1073741824):(It=8,e)}function qt(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=It=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=Mt(u),o=It):0!==(l&=i)&&(r=Mt(l),o=It)}else 0!==(i=n&~a)?(r=Mt(i),o=It):0!==l&&(r=Mt(l),o=It);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Mt(t),o<=It)return t;It=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Kt(e)/Wt|0)|0},Kt=Math.log,Wt=Math.LN2;var Gt=i.unstable_UserBlockingPriority,$t=i.unstable_runWithPriority,Yt=!0;function Qt(e,t,n,r){Me||De();var o=Xt,i=Me;Me=!0;try{Re(o,e,t,n,r)}finally{(Me=i)||ze()}}function Zt(e,t,n,r){$t(Gt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if(Yt)if((o=0===(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Jt(e,t,n,r);if(null===i)o&&vt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,o),!0;case"dragenter":return ut=yt(ut,e,t,n,r,o),!0;case"mouseover":return st=yt(st,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,yt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ft.set(i,yt(ft.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;vt(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=Oe(r);if(null!==(o=no(o))){var i=Qe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ze(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Dr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function ln(){return!1}function un(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:ln,this.isPropagationStopped=ln,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),hn=o({},dn,{view:0,detail:0}),vn=un(hn),yn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(sn=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=sn=0,fn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=un(yn),mn=un(o({},yn,{dataTransfer:0})),bn=un(o({},hn,{relatedTarget:0})),wn=un(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=un(xn),kn=un(o({},dn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function Cn(){return jn}var Nn=o({},hn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=un(Nn),Pn=un(o({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=un(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=un(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=o({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=un(Rn),In=[9,13,27,32],Mn=f&&"CompositionEvent"in window,qn=null;f&&"documentMode"in document&&(qn=document.documentMode);var zn=f&&"TextEvent"in window&&!qn,Fn=f&&(!Mn||qn&&8<qn&&11>=qn),Bn=String.fromCharCode(32),Un=!1;function Vn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Kn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function $n(e,t,n,r){Pe(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Qn=null;function Zn(e){Nr(e,0)}function Xn(e){if(Z(oo(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Yn&&(Yn.detachEvent("onpropertychange",ir),Qn=Yn=null)}function ir(e){if("value"===e.propertyName&&Xn(Qn)){var t=[];if($n(t,Qn,e,Oe(e)),e=Zn,Me)e(t);else{Me=!0;try{Le(e,t)}finally{Me=!1,ze()}}}}function ar(e,t,n){"focusin"===e?(or(),Qn=n,(Yn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Qn)}function ur(e,t){if("click"===e)return Xn(t)}function sr(e,t){if("input"===e||"change"===e)return Xn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function yr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,_r=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_r||null==br||br!==X(r)||("selectionStart"in(r=br)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&dr(xr,r)||(xr=r,0<(r=Mr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(Rt,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<Er.length;Sr++)Lt.set(Er[Sr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(Ye.apply(this,arguments),He){if(!He)throw Error(a(198));var c=Ke;He=!1,Ke=null,We||(We=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Cr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Cr(o,l,s),i=u}}}if(We)throw e=Ge,We=!1,Ge=null,e}function Tr(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){e[Pr]||(e[Pr]=!0,l.forEach((function(t){jr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&jr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Rr(i,e,o,t),a.add(l))}function Rr(e,t,n,r){var o=Lt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Zt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=no(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(qe)return e(t,n);qe=!0;try{Ie(e,t,n)}finally{qe=!1,ze()}}((function(){var r=i,o=Oe(n),a=[];e:{var l=At.get(e);if(void 0!==l){var u=pn,s=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":s="focus",u=bn;break;case"focusout":s="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Ct:case Nt:case Tt:u=wn;break;case Pt:u=Ln;break;case"scroll":u=vn;break;case"wheel":u=Dn;break;case"copy":case"cut":case"paste":u=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=Fe(h,d))&&c.push(Ir(h,v,p)))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(s=n.relatedTarget||n.fromElement)||!no(s)&&!s[eo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?no(s):null)&&(s!==(f=Qe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=gn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:oo(u),p=null==s?l:oo(s),(l=new c(v,h+"leave",u,n,o)).target=f,l.relatedTarget=p,v=null,no(o)===r&&((c=new c(d,h+"enter",s,n,o)).target=p,c.relatedTarget=f,v=c),f=v,u&&s)e:{for(d=s,h=0,p=c=u;p;p=qr(p))h++;for(p=0,v=d;v;v=qr(v))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)d=qr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==u&&zr(a,l,u,c,!1),null!==s&&null!==f&&zr(a,f,s,c,!0)}if("select"===(u=(l=r?oo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=Jn;else if(Gn(l))if(er)y=sr;else{y=lr;var g=ar}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ur);switch(y&&(y=y(e,r))?$n(a,y,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&oe(l,"number",l.value)),g=r?oo(r):window,e){case"focusin":(Gn(g)||"true"===g.contentEditable)&&(br=g,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":_r=!0;break;case"contextmenu":case"mouseup":case"dragend":_r=!1,kr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":kr(a,n,o)}var m;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Kn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Kn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Kn&&(m=rn()):(tn="value"in(en=o)?en.value:en.textContent,Kn=!0)),0<(g=Mr(r,b)).length&&(b=new kn(b,e,null,n,o),a.push({event:b,listeners:g}),m?b.data=m:null!==(m=Hn(n))&&(b.data=m))),(m=zn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Un=!0,Bn);case"textInput":return(e=t.data)===Bn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Kn)return"compositionend"===e||!Mn&&Vn(e,t)?(e=rn(),nn=tn=en=null,Kn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(o=new kn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=m))}Nr(a,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(Ir(e,i,o)),null!=(i=Fe(e,t))&&r.push(Ir(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Fe(n,i))&&a.unshift(Ir(n,u,l)):o||null!=(u=Fe(n,i))&&a.push(Ir(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var Br=null,Ur=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Kr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function $r(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qr=0;var Zr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Zr,Jr="__reactProps$"+Zr,eo="__reactContainer$"+Zr,to="__reactEvents$"+Zr;function no(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Xr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Xr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Jr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var lo=[],uo=-1;function so(e){return{current:e}}function co(e){0>uo||(e.current=lo[uo],lo[uo]=null,uo--)}function fo(e,t){uo++,lo[uo]=e.current,e.current=t}var po={},ho=so(po),vo=so(!1),yo=po;function go(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){co(vo),co(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(vo,n)}function xo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,yo=ho.current,fo(ho,e),fo(vo,vo.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,co(vo),co(ho),fo(ho,e)):co(vo),fo(vo,n)}var Eo=null,So=null,Oo=i.unstable_runWithPriority,jo=i.unstable_scheduleCallback,Co=i.unstable_cancelCallback,No=i.unstable_shouldYield,To=i.unstable_requestPaint,Po=i.unstable_now,Ao=i.unstable_getCurrentPriorityLevel,Lo=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Io=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,qo={},zo=void 0!==To?To:function(){},Fo=null,Bo=null,Uo=!1,Vo=Po(),Ho=1e4>Vo?Po:function(){return Po()-Vo};function Ko(){switch(Ao()){case Lo:return 99;case Ro:return 98;case Do:return 97;case Io:return 96;case Mo:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return Lo;case 98:return Ro;case 97:return Do;case 96:return Io;case 95:return Mo;default:throw Error(a(332))}}function Go(e,t){return e=Wo(e),Oo(e,t)}function $o(e,t,n){return e=Wo(e),jo(e,t,n)}function Yo(){if(null!==Bo){var e=Bo;Bo=null,Co(e)}Qo()}function Qo(){if(!Uo&&null!==Fo){Uo=!0;var e=0;try{var t=Fo;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fo=null}catch(n){throw null!==Fo&&(Fo=Fo.slice(e+1)),jo(Lo,Yo),n}finally{Uo=!1}}}var Zo=x.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=so(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Jo.current;co(Jo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function li(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var ui=!1;function si(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;ui=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=i.baseState,l=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,v=a;switch(u=t,p=n,v.tag){case 1:if("function"===typeof(h=v.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(u="function"===typeof(h=v.payload)?h.call(p,d,u):h)||void 0===u)break e;d=o({},d,u);break e;case 2:ui=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,l|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Bl|=l,e.lanes=l,e.memoizedState=d}}function vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var yi=(new r.Component).refs;function gi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),o=pu(e),i=fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),hu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),o=pu(e),i=fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),hu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=pu(e),o=fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),di(e,o),hu(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,i))}function wi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"===typeof i&&null!==i?i=li(i):(o=mo(t)?yo:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?go(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function _i(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,si(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=li(i):(i=mo(t)?yo:ho.current,o.context=go(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&mi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var ki=Array.isArray;function Ei(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Si(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Oi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Qu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ei(e,t,n),r.return=e,r):((r=Gu(n.type,n.key,n.props,null,e.mode,r)).ref=Ei(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=$u(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Qu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Gu(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case k:return(t=Zu(t,e.mode,n)).return=e,t}if(ki(t)||U(t))return(t=$u(t,e.mode,n,null)).return=e,t;Si(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===o?n.type===E?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null}if(ki(n)||U(n))return null!==o?null:f(e,t,n,r,null);Si(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===E?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ki(r)||U(r))return f(t,e=e.get(n)||null,r,o,null);Si(t,r)}return null}function v(o,a,l,u){for(var s=null,c=null,f=a,v=a=0,y=null;null!==f&&v<l.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var g=p(o,f,l[v],u);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,v),null===c?s=g:c.sibling=g,c=g,f=y}if(v===l.length)return n(o,f),s;if(null===f){for(;v<l.length;v++)null!==(f=d(o,l[v],u))&&(a=i(f,a,v),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);v<l.length;v++)null!==(y=h(f,o,v,l[v],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),a=i(y,a,v),null===c?s=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(o,e)})),s}function y(o,l,u,s){var c=U(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,v=l,y=l=0,g=null,m=u.next();null!==v&&!m.done;y++,m=u.next()){v.index>y?(g=v,v=null):g=v.sibling;var b=p(o,v,m.value,s);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(o,v),l=i(b,l,y),null===f?c=b:f.sibling=b,f=b,v=g}if(m.done)return n(o,v),c;if(null===v){for(;!m.done;y++,m=u.next())null!==(m=d(o,m.value,s))&&(l=i(m,l,y),null===f?c=m:f.sibling=m,f=m);return c}for(v=r(o,v);!m.done;y++,m=u.next())null!==(m=h(v,o,y,m.value,s))&&(e&&null!==m.alternate&&v.delete(null===m.key?y:m.key),l=i(m,l,y),null===f?c=m:f.sibling=m,f=m);return e&&v.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var s="object"===typeof i&&null!==i&&i.type===E&&null===i.key;s&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case _:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){if(7===s.tag){if(i.type===E){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}}else if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=Ei(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===E?((r=$u(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Gu(i.type,i.key,i.props,null,e.mode,u)).ref=Ei(e,r,i),u.return=e,e=u)}return l(e);case k:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Zu(i,e.mode,u)).return=e,e=r}return l(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Qu(i,e.mode,u)).return=e,e=r),l(e);if(ki(i))return v(e,r,i,u);if(U(i))return y(e,r,i,u);if(c&&Si(e,i),"undefined"===typeof i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var ji=Oi(!0),Ci=Oi(!1),Ni={},Ti=so(Ni),Pi=so(Ni),Ai=so(Ni);function Li(e){if(e===Ni)throw Error(a(174));return e}function Ri(e,t){switch(fo(Ai,t),fo(Pi,e),fo(Ti,Ni),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Ti),fo(Ti,t)}function Di(){co(Ti),co(Pi),co(Ai)}function Ii(e){Li(Ai.current);var t=Li(Ti.current),n=he(t,e.type);t!==n&&(fo(Pi,e),fo(Ti,n))}function Mi(e){Pi.current===e&&(co(Ti),co(Pi))}var qi=so(0);function zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fi=null,Bi=null,Ui=!1;function Vi(e,t){var n=Hu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Hi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ki(e){if(Ui){var t=Bi;if(t){var n=t;if(!Hi(e,t)){if(!(t=$r(n.nextSibling))||!Hi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Fi=e);Vi(Fi,n)}Fi=e,Bi=$r(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Fi=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fi=e}function Gi(e){if(e!==Fi)return!1;if(!Ui)return Wi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Bi;t;)Vi(e,t),t=$r(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bi=$r(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bi=null}}else Bi=Fi?$r(e.stateNode.nextSibling):null;return!0}function $i(){Bi=Fi=null,Ui=!1}var Yi=[];function Qi(){for(var e=0;e<Yi.length;e++)Yi[e]._workInProgressVersionPrimary=null;Yi.length=0}var Zi=x.ReactCurrentDispatcher,Xi=x.ReactCurrentBatchConfig,Ji=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function la(e,t,n,r,o,i){if(Ji=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zi.current=null===e||null===e.memoizedState?La:Ra,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Zi.current=Da,e=n(r,o)}while(oa)}if(Zi.current=Aa,t=null!==ta&&null!==ta.next,Ji=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function sa(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ca(e,t){return"function"===typeof t?t(e):t}function fa(e){var t=sa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,s=o;do{var c=s.lane;if((Ji&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,ea.lanes|=c,Bl|=c}s=s.next}while(null!==s&&s!==o);null===u?i=r:u.next=l,cr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=sa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);cr(i,t.memoizedState)||(Ma=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ji&e)===e)&&(t._workInProgressVersionPrimary=r,Yi.push(t))),e)return n(t._source);throw Yi.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ll;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),u=Zi.current,s=u.useState((function(){return pa(o,t,n)})),c=s[1],f=s[0];s=na;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var y=ea;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!cr(l,e)){e=n(t._source),cr(f,e)||(c(e),e=pu(y),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Ht(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pu(y);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),cr(h,n)&&cr(v,t)&&cr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:f}).dispatch=c=Pa.bind(null,ea,e),s.queue=e,s.baseQueue=null,f=pa(o,t,n),s.memoizedState=s.baseState=f),f}function va(e,t,n){return ha(sa(),e,t,n)}function ya(e){var t=ua();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Pa.bind(null,ea,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(e){return e={current:e},ua().memoizedState=e}function ba(){return sa().memoizedState}function wa(e,t,n,r){var o=ua();ea.flags|=e,o.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var o=sa();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void ga(t,n,i,r)}ea.flags|=e,o.memoizedState=ga(1|t,n,i,r)}function _a(e,t){return wa(516,4,e,t)}function ka(e,t){return xa(516,4,e,t)}function Ea(e,t){return xa(4,2,e,t)}function Sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Oa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,Sa.bind(null,t,e),n)}function ja(){}function Ca(e,t){var n=sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Na(e,t){var n=sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ta(e,t){var n=Ko();Go(98>n?98:n,(function(){e(!0)})),Go(97<n?97:n,(function(){var n=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=n}}))}function Pa(e,t,n){var r=du(),o=pu(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,cr(u,l))return}catch(s){}hu(e,o,r)}}var Aa={readContext:li,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},La={readContext:li,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:li,useEffect:_a,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=ua();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ua();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pa.bind(null,ea,e),[r.memoizedState,e]},useRef:ma,useState:ya,useDebugValue:ja,useDeferredValue:function(e){var t=ya(e),n=t[0],r=t[1];return _a((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ya(!1),t=e[0];return ma(e=Ta.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ua();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=ya(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ga(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return ya(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:li,useCallback:Ca,useContext:li,useEffect:ka,useImperativeHandle:Oa,useLayoutEffect:Ea,useMemo:Na,useReducer:fa,useRef:ba,useState:function(){return fa(ca)},useDebugValue:ja,useDeferredValue:function(e){var t=fa(ca),n=t[0],r=t[1];return ka((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=fa(ca)[0];return[ba().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return fa(ca)[0]},unstable_isNewReconciler:!1},Da={readContext:li,useCallback:Ca,useContext:li,useEffect:ka,useImperativeHandle:Oa,useLayoutEffect:Ea,useMemo:Na,useReducer:da,useRef:ba,useState:function(){return da(ca)},useDebugValue:ja,useDeferredValue:function(e){var t=da(ca),n=t[0],r=t[1];return ka((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=da(ca)[0];return[ba().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return da(ca)[0]},unstable_isNewReconciler:!1},Ia=x.ReactCurrentOwner,Ma=!1;function qa(e,t,n,r){t.child=null===e?Ci(t,null,n,r):ji(t,e.child,n,r)}function za(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=la(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,qa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,il(e,t,o))}function Fa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Ku(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?il(e,t,i):(t.flags|=1,(e=Wu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,o,i){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0===(i&o))return t.lanes=e.lanes,il(e,t,i);0!==(16384&e.flags)&&(Ma=!0)}return Ha(e,t,n,r,i)}function Ua(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},_u(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},_u(t,e),null;t.memoizedState={baseLanes:0},_u(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_u(t,r);return qa(e,t,o,n),t.child}function Va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,o){var i=mo(n)?yo:ho.current;return i=go(t,i),ai(t,o),n=la(e,t,n,r,i,o),null===e||Ma?(t.flags|=1,qa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,il(e,t,o))}function Ka(e,t,n,r,o){if(mo(n)){var i=!0;_o(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,r),_i(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"===typeof s&&null!==s?s=li(s):s=go(t,s=mo(n)?yo:ho.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==s)&&xi(t,a,r,s),ui=!1;var d=t.memoizedState;a.state=d,hi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||vo.current||ui?("function"===typeof c&&(gi(t,n,c,r),u=t.memoizedState),(l=ui||bi(t,n,l,r,d,u,s))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ci(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Xo(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=li(u):u=go(t,u=mo(n)?yo:ho.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==f||d!==u)&&xi(t,a,r,u),ui=!1,d=t.memoizedState,a.state=d,hi(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||vo.current||ui?("function"===typeof p&&(gi(t,n,p,r),h=t.memoizedState),(s=ui||bi(t,n,s,r,d,h,u))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,i,o)}function Wa(e,t,n,r,o,i){Va(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&ko(t,n,!1),il(e,t,i);r=t.stateNode,Ia.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ji(t,e.child,null,i),t.child=ji(t,null,l,i)):qa(e,t,l,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ri(e,t.containerInfo)}var $a,Ya,Qa,Za={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,o=t.pendingProps,i=qi.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),fo(qi,1&i),null===e?(void 0!==o.fallback&&Ki(t),e=o.children,i=o.fallback,a?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Za,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Za,t.lanes=33554432,e):((n=Yu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=tl(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Za,o):(n=el(e,t,o.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Yu(t,o,0,null),n=$u(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function el(e,t,n,r){var o=e.child;return e=o.sibling,n=Wu(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tl(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Wu(a,l),null!==e?r=Wu(e,r):(r=$u(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nl(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function rl(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function ol(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(qa(e,t,r.children,n),0!==(2&(r=qi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nl(e,n);else if(19===e.tag)nl(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(qi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rl(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rl(t,!0,n,null,i,t.lastEffect);break;case"together":rl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Wu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function al(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ll(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mo(t.type)&&bo(),null;case 3:return Di(),co(vo),co(ho),Qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mi(t);var i=Li(Ai.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Li(Ti.current),Gi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Xr]=t,r[Jr]=l,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<Or.length;e++)Tr(Or[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,l),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Tr("invalid",r);break;case"textarea":ue(r,l),Tr("invalid",r)}for(var s in Ee(n,l),e=null,l)l.hasOwnProperty(s)&&(i=l[s],"children"===s?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&Tr("scroll",r));switch(n){case"input":Q(r),re(r,l,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xr]=t,e[Jr]=r,$a(e,t),t.stateNode=e,s=Se(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),i=r;break;case"iframe":case"object":case"embed":Tr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Or.length;i++)Tr(Or[i],e);i=r;break;case"source":Tr("error",e),i=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),i=r;break;case"details":Tr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Tr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Tr("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?_e(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===l?"string"===typeof f?("textarea"!==n||""!==f)&&me(e,f):"number"===typeof f&&me(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Tr("scroll",e):null!=f&&w(e,l,f,s))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Fr)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Li(Ai.current),Li(Ti.current),Gi(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return co(qi),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Gi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&qi.current)?0===ql&&(ql=3):(0!==ql&&3!==ql||(ql=4),null===Ll||0===(134217727&Bl)&&0===(134217727&Ul)||mu(Ll,Dl))),(r||n)&&(t.flags|=4),null);case 4:return Di(),null===e&&Ar(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(co(qi),null===(r=t.memoizedState))return null;if(l=0!==(64&t.flags),null===(s=r.rendering))if(l)al(r,!1);else{if(0!==ql||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=zi(e))){for(t.flags|=64,al(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fo(qi,1&qi.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>Wl&&(t.flags|=64,l=!0,al(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=zi(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),al(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ui)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=64,l=!0,al(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=qi.current,fo(qi,l?1&t|2:1&t),n):null;case 23:case 24:return ku(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ul(e){switch(e.tag){case 1:mo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Di(),co(vo),co(ho),Qi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mi(e),null;case 13:return co(qi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return co(qi),null;case 4:return Di(),null;case 10:return oi(e),null;case 23:case 24:return ku(),null;default:return null}}function sl(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function cl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}$a=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ya=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Li(Ti.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Tr("scroll",e),l||s===c||(l=[])):"object"===typeof c&&null!==c&&c.$$typeof===D?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var fl="function"===typeof WeakMap?WeakMap:Map;function dl(e,t,n){(n=fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ql||(Ql=!0,Zl=r),cl(0,t)},n}function pl(e,t,n){(n=fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return cl(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this),cl(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hl="function"===typeof WeakSet?WeakSet:Set;function vl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fu(e,n)}else t.current=null}function yl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function gl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Mu(n,e),Iu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&vi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))))}throw Error(a(163))}function ml(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=xe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bl(e,t){if(So&&"function"===typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(Eo,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Mu(t,n);else{r=t;try{o()}catch(i){Fu(r,i)}}n=n.next}while(n!==e)}break;case 1:if(vl(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Fu(t,i)}break;case 5:vl(t);break;case 4:Sl(e,t)}}function wl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xl(e){return 5===e.tag||3===e.tag||4===e.tag}function _l(e){e:{for(var t=e.return;null!==t;){if(xl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(me(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?kl(e,n,t):El(e,n,t)}function kl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(kl(e,t,n),e=e.sibling;null!==e;)kl(e,t,n),e=e.sibling}function El(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(El(e,t,n),e=e.sibling;null!==e;)El(e,t,n),e=e.sibling}function Sl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,s=u;;)if(bl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Ol(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?_e(n,u):"dangerouslySetInnerHTML"===l?ge(n,u):"children"===l?me(n,u):w(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 13:return null!==t.memoizedState&&(Kl=Ho(),ml(t.child,!0)),void jl(t);case 19:return void jl(t);case 23:case 24:return void ml(t,null!==t.memoizedState)}throw Error(a(163))}function jl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hl),t.forEach((function(t){var r=Uu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Nl=Math.ceil,Tl=x.ReactCurrentDispatcher,Pl=x.ReactCurrentOwner,Al=0,Ll=null,Rl=null,Dl=0,Il=0,Ml=so(0),ql=0,zl=null,Fl=0,Bl=0,Ul=0,Vl=0,Hl=null,Kl=0,Wl=1/0;function Gl(){Wl=Ho()+500}var $l,Yl=null,Ql=!1,Zl=null,Xl=null,Jl=!1,eu=null,tu=90,nu=[],ru=[],ou=null,iu=0,au=null,lu=-1,uu=0,su=0,cu=null,fu=!1;function du(){return 0!==(48&Al)?Ho():-1!==lu?lu:lu=Ho()}function pu(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ko()?1:2;if(0===uu&&(uu=Fl),0!==Zo.transition){0!==su&&(su=null!==Hl?Hl.pendingLanes:0),e=uu;var t=4186112&~su;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ko(),0!==(4&Al)&&98===e?e=Ft(12,uu):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),uu),e}function hu(e,t,n){if(50<iu)throw iu=0,au=null,Error(a(185));if(null===(e=vu(e,t)))return null;Vt(e,t,n),e===Ll&&(Ul|=t,4===ql&&mu(e,Dl));var r=Ko();1===t?0!==(8&Al)&&0===(48&Al)?bu(e):(yu(e,n),0===Al&&(Gl(),Yo())):(0===(4&Al)||98!==r&&99!==r||(null===ou?ou=new Set([e]):ou.add(e)),yu(e,n)),Hl=e}function vu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function yu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Ht(l),s=1<<u,c=i[u];if(-1===c){if(0===(s&r)||0!==(s&o)){c=t,Mt(s);var f=It;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=qt(e,e===Ll?Dl:0),t=It,0===r)null!==n&&(n!==qo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==qo&&Co(n)}15===t?(n=bu.bind(null,e),null===Fo?(Fo=[n],Bo=jo(Lo,Qo)):Fo.push(n),n=qo):14===t?n=$o(99,bu.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=$o(n,gu.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gu(e){if(lu=-1,su=uu=0,0!==(48&Al))throw Error(a(327));var t=e.callbackNode;if(Du()&&e.callbackNode!==t)return null;var n=qt(e,e===Ll?Dl:0);if(0===n)return null;var r=n,o=Al;Al|=16;var i=Ou();for(Ll===e&&Dl===r||(Gl(),Eu(e,r));;)try{Nu();break}catch(u){Su(e,u)}if(ri(),Tl.current=i,Al=o,null!==Rl?r=0:(Ll=null,Dl=0,r=ql),0!==(Fl&Ul))Eu(e,0);else if(0!==r){if(2===r&&(Al|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=zt(e))&&(r=ju(e,n))),1===r)throw t=zl,Eu(e,0),mu(e,n),yu(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Au(e);break;case 3:if(mu(e,n),(62914560&n)===n&&10<(r=Kl+500-Ho())){if(0!==qt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){du(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kr(Au.bind(null,e),r);break}Au(e);break;case 4:if(mu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Nl(n/1960))-n)){e.timeoutHandle=Kr(Au.bind(null,e),n);break}Au(e);break;default:throw Error(a(329))}}return yu(e,Ho()),e.callbackNode===t?gu.bind(null,e):null}function mu(e,t){for(t&=~Vl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function bu(e){if(0!==(48&Al))throw Error(a(327));if(Du(),e===Ll&&0!==(e.expiredLanes&Dl)){var t=Dl,n=ju(e,t);0!==(Fl&Ul)&&(n=ju(e,t=qt(e,t)))}else n=ju(e,t=qt(e,0));if(0!==e.tag&&2===n&&(Al|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=zt(e))&&(n=ju(e,t))),1===n)throw n=zl,Eu(e,0),mu(e,t),yu(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Au(e),yu(e,Ho()),null}function wu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Gl(),Yo())}}function xu(e,t){var n=Al;Al&=-2,Al|=8;try{return e(t)}finally{0===(Al=n)&&(Gl(),Yo())}}function _u(e,t){fo(Ml,Il),Il|=t,Fl|=t}function ku(){Il=Ml.current,co(Ml)}function Eu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bo();break;case 3:Di(),co(vo),co(ho),Qi();break;case 5:Mi(r);break;case 4:Di();break;case 13:case 19:co(qi);break;case 10:oi(r);break;case 23:case 24:ku()}n=n.return}Ll=e,Rl=Wu(e.current,null),Dl=Il=Fl=t,ql=0,zl=null,Vl=Ul=Bl=0}function Su(e,t){for(;;){var n=Rl;try{if(ri(),Zi.current=Aa,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Ji=0,na=ta=ea=null,oa=!1,Pl.current=null,null===n||null===n.return){ql=1,zl=t,Rl=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var s=u;if(0===(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!==(1&qi.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var y=d.updateQueue;if(null===y){var g=new Set;g.add(s),d.updateQueue=g}else y.add(s);if(0===(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var m=fi(-1,1);m.tag=2,di(l,m)}l.lanes|=1;break e}u=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new fl,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var w=Bu.bind(null,i,s,l);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((G(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==ql&&(ql=2),u=sl(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,pi(d,dl(0,i,t));break e;case 1:i=u;var x=d.type,_=d.stateNode;if(0===(64&d.flags)&&("function"===typeof x.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Xl||!Xl.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,pi(d,pl(d,i,t));break e}}d=d.return}while(null!==d)}Pu(n)}catch(k){t=k,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function Ou(){var e=Tl.current;return Tl.current=Aa,null===e?Aa:e}function ju(e,t){var n=Al;Al|=16;var r=Ou();for(Ll===e&&Dl===t||Eu(e,t);;)try{Cu();break}catch(o){Su(e,o)}if(ri(),Al=n,Tl.current=r,null!==Rl)throw Error(a(261));return Ll=null,Dl=0,ql}function Cu(){for(;null!==Rl;)Tu(Rl)}function Nu(){for(;null!==Rl&&!No();)Tu(Rl)}function Tu(e){var t=$l(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?Pu(e):Rl=t,Pl.current=null}function Pu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ll(n,t,Il)))return void(Rl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Il)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ul(t)))return n.flags&=2047,void(Rl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===ql&&(ql=5)}function Au(e){var t=Ko();return Go(99,Lu.bind(null,e,t)),null}function Lu(e,t){do{Du()}while(null!==eu);if(0!==(48&Al))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<i;){var s=31-Ht(i),c=1<<s;o[s]=0,l[s]=-1,u[s]=-1,i&=~c}if(null!==ou&&0===(24&r)&&ou.has(e)&&ou.delete(e),e===Ll&&(Rl=Ll=null,Dl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Al,Al|=32,Pl.current=null,Br=Yt,gr(l=yr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(O){u=null;break e}var f=0,d=-1,p=-1,h=0,v=0,y=l,g=null;t:for(;;){for(var m;y!==u||0!==i&&3!==y.nodeType||(d=f+i),y!==s||0!==c&&3!==y.nodeType||(p=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(m=y.firstChild);)g=y,y=m;for(;;){if(y===l)break t;if(g===u&&++h===i&&(d=f),g===s&&++v===c&&(p=f),null!==(m=y.nextSibling))break;g=(y=g).parentNode}y=m}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Ur={focusedElem:l,selectionRange:u},Yt=!1,cu=null,fu=!1,Yl=r;do{try{Ru()}catch(O){if(null===Yl)throw Error(a(330));Fu(Yl,O),Yl=Yl.nextEffect}}while(null!==Yl);cu=null,Yl=r;do{try{for(l=e;null!==Yl;){var b=Yl.flags;if(16&b&&me(Yl.stateNode,""),128&b){var w=Yl.alternate;if(null!==w){var x=w.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:_l(Yl),Yl.flags&=-3;break;case 6:_l(Yl),Yl.flags&=-3,Ol(Yl.alternate,Yl);break;case 1024:Yl.flags&=-1025;break;case 1028:Yl.flags&=-1025,Ol(Yl.alternate,Yl);break;case 4:Ol(Yl.alternate,Yl);break;case 8:Sl(l,u=Yl);var _=u.alternate;wl(u),null!==_&&wl(_)}Yl=Yl.nextEffect}}catch(O){if(null===Yl)throw Error(a(330));Fu(Yl,O),Yl=Yl.nextEffect}}while(null!==Yl);if(x=Ur,w=yr(),b=x.focusedElem,l=x.selectionRange,w!==b&&b&&b.ownerDocument&&vr(b.ownerDocument.documentElement,b)){null!==l&&gr(b)&&(w=l.start,void 0===(x=l.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),u=b.textContent.length,_=Math.min(l.start,u),l=void 0===l.end?_:Math.min(l.end,u),!x.extend&&_>l&&(u=l,l=_,_=u),u=hr(b,_),i=hr(b,l),u&&i&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),_>l?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Yt=!!Br,Ur=Br=null,e.current=n,Yl=r;do{try{for(b=e;null!==Yl;){var k=Yl.flags;if(36&k&&gl(b,Yl.alternate,Yl),128&k){w=void 0;var E=Yl.ref;if(null!==E){var S=Yl.stateNode;Yl.tag,w=S,"function"===typeof E?E(w):E.current=w}}Yl=Yl.nextEffect}}catch(O){if(null===Yl)throw Error(a(330));Fu(Yl,O),Yl=Yl.nextEffect}}while(null!==Yl);Yl=null,zo(),Al=o}else e.current=n;if(Jl)Jl=!1,eu=e,tu=t;else for(Yl=r;null!==Yl;)t=Yl.nextEffect,Yl.nextEffect=null,8&Yl.flags&&((k=Yl).sibling=null,k.stateNode=null),Yl=t;if(0===(r=e.pendingLanes)&&(Xl=null),1===r?e===au?iu++:(iu=0,au=e):iu=0,n=n.stateNode,So&&"function"===typeof So.onCommitFiberRoot)try{So.onCommitFiberRoot(Eo,n,void 0,64===(64&n.current.flags))}catch(O){}if(yu(e,Ho()),Ql)throw Ql=!1,e=Zl,Zl=null,e;return 0!==(8&Al)||Yo(),null}function Ru(){for(;null!==Yl;){var e=Yl.alternate;fu||null===cu||(0!==(8&Yl.flags)?et(Yl,cu)&&(fu=!0):13===Yl.tag&&Cl(e,Yl)&&et(Yl,cu)&&(fu=!0));var t=Yl.flags;0!==(256&t)&&yl(e,Yl),0===(512&t)||Jl||(Jl=!0,$o(97,(function(){return Du(),null}))),Yl=Yl.nextEffect}}function Du(){if(90!==tu){var e=97<tu?97:tu;return tu=90,Go(e,qu)}return!1}function Iu(e,t){nu.push(t,e),Jl||(Jl=!0,$o(97,(function(){return Du(),null})))}function Mu(e,t){ru.push(t,e),Jl||(Jl=!0,$o(97,(function(){return Du(),null})))}function qu(){if(null===eu)return!1;var e=eu;if(eu=null,0!==(48&Al))throw Error(a(331));var t=Al;Al|=32;var n=ru;ru=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"===typeof l)try{l()}catch(s){if(null===i)throw Error(a(330));Fu(i,s)}}for(n=nu,nu=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(s){if(null===i)throw Error(a(330));Fu(i,s)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Al=t,Yo(),!0}function zu(e,t,n){di(e,t=dl(0,t=sl(n,t),1)),t=du(),null!==(e=vu(e,1))&&(Vt(e,1,t),yu(e,t))}function Fu(e,t){if(3===e.tag)zu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){var o=pl(n,e=sl(t,e),1);if(di(n,o),o=du(),null!==(n=vu(n,1)))Vt(n,1,o),yu(n,o);else if("function"===typeof r.componentDidCatch&&(null===Xl||!Xl.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=du(),e.pingedLanes|=e.suspendedLanes&n,Ll===e&&(Dl&n)===n&&(4===ql||3===ql&&(62914560&Dl)===Dl&&500>Ho()-Kl?Eu(e,0):Vl|=n),yu(e,t)}function Uu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Ko()?1:2:(0===uu&&(uu=Fl),0===(t=Bt(62914560&~uu))&&(t=4194304))),n=du(),null!==(e=vu(e,t))&&(Vt(e,t,n),yu(e,n))}function Vu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hu(e,t,n,r){return new Vu(e,t,n,r)}function Ku(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wu(e,t){var n=e.alternate;return null===n?((n=Hu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gu(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Ku(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case E:return $u(n.children,o,i,t);case I:l=8,o|=16;break;case S:l=8,o|=1;break;case O:return(e=Hu(12,n,t,8|o)).elementType=O,e.type=O,e.lanes=i,e;case T:return(e=Hu(13,n,t,o)).type=T,e.elementType=T,e.lanes=i,e;case P:return(e=Hu(19,n,t,o)).elementType=P,e.lanes=i,e;case M:return Yu(n,o,i,t);case q:return(e=Hu(24,n,t,o)).elementType=q,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case j:l=10;break e;case C:l=9;break e;case N:l=11;break e;case A:l=14;break e;case L:l=16,r=null;break e;case R:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hu(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function $u(e,t,n,r){return(e=Hu(7,e,r,t)).lanes=n,e}function Yu(e,t,n,r){return(e=Hu(23,e,r,t)).elementType=M,e.lanes=n,e}function Qu(e,t,n){return(e=Hu(6,e,null,t)).lanes=n,e}function Zu(e,t,n){return(t=Hu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Ju(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function es(e,t,n,r){var o=t.current,i=du(),l=pu(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(mo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(mo(s)){n=xo(n,s,u);break e}}n=u}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=fi(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),hu(o,l,i),l}function ts(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ns(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rs(e,t){ns(e,t),(e=e.alternate)&&ns(e,t)}function os(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xu(e,t,null!=n&&!0===n.hydrate),t=Hu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,si(t),e[eo]=n.current,Ar(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function is(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function as(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var l=o;o=function(){var e=ts(a);l.call(e)}}es(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new os(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var u=o;o=function(){var e=ts(a);u.call(e)}}xu((function(){es(t,a,e,o)}))}return ts(a)}function ls(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!is(t))throw Error(a(200));return Ju(e,t,null,n)}$l=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||vo.current)Ma=!0;else{if(0===(n&r)){switch(Ma=!1,t.tag){case 3:Ga(t),$i();break;case 5:Ii(t);break;case 1:mo(t.type)&&_o(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;fo(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Xa(e,t,n):(fo(qi,1&qi.current),null!==(t=il(e,t,n))?t.sibling:null);fo(qi,1&qi.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ol(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(qi,qi.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return il(e,t,n)}Ma=0!==(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,ho.current),ai(t,n),o=la(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mo(r)){var i=!0;_o(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,si(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&gi(t,r,l,e),o.updater=mi,t.stateNode=o,o._reactInternals=t,_i(t,r,e,n),t=Wa(null,t,r,!0,i,n)}else t.tag=0,qa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Ku(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===A)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=Ha(null,t,o,e,n);break e;case 1:t=Ka(null,t,o,e,n);break e;case 11:t=za(null,t,o,e,n);break e;case 14:t=Fa(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ka(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ci(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)$i(),t=il(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Bi=$r(t.stateNode.containerInfo.firstChild),Fi=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Yi.push(i);for(n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else qa(e,t,r,n),$i();t=t.child}return t;case 5:return Ii(t),null===e&&Ki(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Hr(r,o)?l=null:null!==i&&Hr(r,i)&&(t.flags|=16),Va(e,t),qa(e,t,l,n),t.child;case 6:return null===e&&Ki(t),null;case 13:return Xa(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ji(t,null,r,n):qa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return qa(e,t,t.pendingProps,n),t.child;case 8:case 12:return qa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(fo(Jo,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0===(i=cr(u,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!vo.current){t=il(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&i)){1===u.tag&&((c=fi(-1,n&-n)).tag=2,di(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ii(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}qa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=li(o,i.unstable_observedBits)),t.flags|=1,qa(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Fa(e,t,o,i=Xo(o.type,i),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mo(r)?(e=!0,_o(t)):e=!1,ai(t,n),wi(t,r,o),_i(t,r,o,n),Wa(null,t,r,!0,e,n);case 19:return ol(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},os.prototype.render=function(e){es(e,this._internalRoot,null,null)},os.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;es(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(hu(e,4,du()),rs(e,4))},nt=function(e){13===e.tag&&(hu(e,67108864,du()),rs(e,67108864))},rt=function(e){if(13===e.tag){var t=du(),n=pu(e);hu(e,n,t),rs(e,n)}},ot=function(e,t){return t()},je=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));Z(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Le=wu,Re=function(e,t,n,r,o){var i=Al;Al|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(Al=i)&&(Gl(),Yo())}},De=function(){0===(49&Al)&&(function(){if(null!==ou){var e=ou;ou=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,yu(e,Ho())}))}Yo()}(),Du())},Ie=function(e,t){var n=Al;Al|=2;try{return e(t)}finally{0===(Al=n)&&(Gl(),Yo())}};var us={Events:[ro,oo,io,Pe,Ae,Du,{current:!1}]},ss={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cs={bundleType:ss.bundleType,version:ss.version,rendererPackageName:ss.rendererPackageName,rendererConfig:ss.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ss.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fs.isDisabled&&fs.supportsFiber)try{Eo=fs.inject(cs),So=fs}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=us,t.createPortal=ls,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Al;if(0!==(48&n))return e(t);Al|=1;try{if(e)return Go(99,e.bind(null,t))}finally{Al=n,Yo()}},t.hydrate=function(e,t,n){if(!is(t))throw Error(a(200));return as(null,e,t,!0,n)},t.render=function(e,t,n){if(!is(t))throw Error(a(200));return as(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!is(e))throw Error(a(40));return!!e._reactRootContainer&&(xu((function(){as(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=wu,t.unstable_createPortal=function(e,t){return ls(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!is(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return as(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},6770:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},l=a(n(2791)),u=a(n(4164)),s=a(n(8111)),c=a(n(6921)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,u;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(u=(l=n).onEditorChangeSelection)||void 0===u||u.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!==r&&void 0!==r?r:"",n}return r(t,e),t.prototype.validateProps=function(e){var t;if(l.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(e.children)&&"textarea"===(null===(t=l.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),a=null!==(n=e.value)&&void 0!==n?n:"";this.isEqualValue(a,o)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),i(this.cleanProps,this.dirtyProps).some((function(t){return!s.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!s.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),d((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor||(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()))},t.prototype.destroyEditor=function(){this.editor&&(this.unhookEditor(this.editor),delete this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new c.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?s.default(e.ops,t.ops):s.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"===typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),d((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=u.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,i={key:this.state.generation,ref:function(t){e.editingArea=t}};return l.default.Children.count(n)?l.default.cloneElement(l.default.Children.only(n),i):r?l.default.createElement("pre",o({},i)):l.default.createElement("div",o({},i))},t.prototype.render=function(){var e;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!==e&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,u;if(this.editor){var c=this.getEditorSelection(),f=!c&&e,d=c&&!e;s.default(e,c)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),f?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(u=(l=this.props).onBlur)||void 0===u||u.call(l,c,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=c.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(l.default.Component);function d(e){Promise.resolve().then(e)}e.exports=f},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},9117:function(e,t,n){"use strict";var r=n(1725),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=m.prototype=new g;b.constructor=m,r(b,y.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!_.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:w.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+O(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),j(a,t,n,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+O(l=e[s],s);u+=j(l,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=j(l=l.value,t,n,c=r+O(l,s++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function P(){var e=T.current;if(null===e)throw Error(p(321));return e}var A={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(p(143));return e}},t.Component=y,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,c=null,f=function e(){if(null!==s)try{var n=t.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,g=-1,m=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();b=e+m;try{y(!0,e)?x.postMessage(null):(v=!1,y=null)}catch(n){throw x.postMessage(null),n}}else v=!1},n=function(e){y=e,v||(v=!0,x.postMessage(null))},r=function(e,n){g=d((function(){e(t.unstable_now())}),n)},o=function(){p(g),g=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>S(a,n))void 0!==u&&0>S(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>S(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],j=[],C=1,N=null,T=3,P=!1,A=!1,L=!1;function R(e){for(var t=k(j);null!==t;){if(null===t.callback)E(j);else{if(!(t.startTime<=e))break;E(j),t.sortIndex=t.expirationTime,_(O,t)}t=k(j)}}function D(e){if(L=!1,R(e),!A)if(null!==k(O))A=!0,n(I);else{var t=k(j);null!==t&&r(D,t.startTime-e)}}function I(e,n){A=!1,L&&(L=!1,o()),P=!0;var i=T;try{for(R(n),N=k(O);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=N.callback;if("function"===typeof a){N.callback=null,T=N.priorityLevel;var l=a(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?N.callback=l:N===k(O)&&E(O),R(n)}else E(O);N=k(O)}if(null!==N)var u=!0;else{var s=k(j);null!==s&&r(D,s.startTime-n),u=!1}return u}finally{N=null,T=i,P=!1}}var M=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||P||(A=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return k(O)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:C++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,_(j,e),null===k(O)&&e===k(j)&&(L?o():L=!0,r(D,a-l))):(e.sortIndex=u,_(O,e),A||P||(A=!0,n(I))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},2391:function(e){"use strict";var t=function(){};e.exports=t}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";function e(t){return e="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(t)}function t(){t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}n.wrap=c;var d={};function p(){}function h(){}function v(){}var y={};s(y,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(O([])));m&&m!==r&&o.call(m,a)&&(y=m);var b=v.prototype=p.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,n){function r(i,a,l,u){var s=f(t[i],t,a);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==e(d)&&o.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,l,u)}),(function(e){r("throw",e,l,u)})):n.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return r("throw",e,l,u)}))}u(s.arg)}var i;this._invoke=function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return i=i?i.then(o,o):o()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=v,s(b,"constructor",v),s(v,"constructor",h),h.displayName=s(v,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},w(x.prototype),s(x.prototype,l,(function(){return this})),n.AsyncIterator=x,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new x(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),s(b,u,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=O,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(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&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},n}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if("function"!==typeof t&&null!==t)throw new 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&&l(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function c(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function d(e){var t=c();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function p(e,t,n){return p=c()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o},p.apply(null,arguments)}function h(e){var t="function"===typeof Map?new Map:void 0;return h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,s(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},h(e)}function v(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,l,"next",e)}function l(e){v(i,r,o,a,l,"throw",e)}a(void 0)}))}}var g=n(2791),m=n(4164);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){if(e){if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){var t,n=new Set,r=function(e,r){var o="function"===typeof e?e(t):e;if(o!==t){var i=t;t=r?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e,r,i){return r||i?function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is;console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");var a=r(t);function l(){var n=r(t);if(!i(a,n)){var o=a;e(a=n,o)}}return n.add(l),function(){return n.delete(l)}}(e,r,i):(n.add(e),function(){return n.delete(e)})},destroy:function(){return n.clear()}};return t=e(r,o,i),i}var O="undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?g.useEffect:g.useLayoutEffect;function j(e){var t="function"===typeof e?S(e):e,n=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.getState,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,o=(0,g.useReducer)((function(e){return e+1}),0),i=E(o,2),a=i[1],l=t.getState(),u=(0,g.useRef)(l),s=(0,g.useRef)(n),c=(0,g.useRef)(r),f=(0,g.useRef)(!1),d=(0,g.useRef)();void 0===d.current&&(d.current=n(l));var p=!1;(u.current!==l||s.current!==n||c.current!==r||f.current)&&(e=n(l),p=!r(d.current,e)),O((function(){p&&(d.current=e),u.current=l,s.current=n,c.current=r,f.current=!1}));var h=(0,g.useRef)(l);O((function(){var e=function(){try{var e=t.getState(),n=s.current(e);c.current(d.current,n)||(u.current=e,d.current=n,a())}catch(r){f.current=!0,a()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]);var v=p?e:d.current;return(0,g.useDebugValue)(v),v};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");var e=[n,t];return{next:function(){var t=e.length<=0;return{value:e.shift(),done:t}}}},n}var C=j((function(e,t){return{CORE_API:null,sideMenuState:0,cssLoaded:!1,setSideMenuState:function(n){e((function(){return{sideMenuState:n}}));var r=t().CORE_API;2!==n?r.exitHotspot():r.showAllHotspots()}}})),N=C,T=function(e,t){var n=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0});n.data=t,window.ui_wc_ref?window.ui_wc_ref.dispatchEvent(n):console.warn("ui webcomponent not found!")},P=function(e,t){var n=N((function(e){return e.CORE_API})),r=(0,g.useCallback)((function(e){t(e.data)}),[e,t,n]);(0,g.useEffect)((function(){if(n&&n.coreWCRef)return n.coreWCRef.addEventListener(e,r),function(){console.log(e),n.coreWCRef.removeEventListener(e,r)}}),[e,n])};function A(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var L=A("Tab"),R=A("TabList"),D=A("TabPanel");function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}function M(e,t){return g.Children.map(e,(function(e){return null===e?null:function(e){return L(e)||R(e)||D(e)}(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children?(0,g.cloneElement)(e,I({},e.props,{children:M(e.props.children,t)})):e}))}function q(e,t){return g.Children.forEach(e,(function(e){null!==e&&(L(e)||D(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children&&(R(e)&&t(e),q(e.props.children,t)))}))}function z(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=z(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var F=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(r&&(r+=" "),r+=t);return r},B=0;function U(){return"react-tabs-"+B++}function V(e){var t=0;return q(e,(function(e){L(e)&&t++})),t}var H,K=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"];function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}function G(e){return e&&"getAttribute"in e}function $(e){return G(e)&&e.getAttribute("data-rttab")}function Y(e){return G(e)&&"true"===e.getAttribute("aria-disabled")}var Q=function(e){var t=(0,g.useRef)([]),n=(0,g.useRef)([]),r=(0,g.useRef)([]),o=(0,g.useRef)();function i(t,n){t<0||t>=u()||(0,e.onSelect)(t,e.selectedIndex,n)}function a(e){for(var t=u(),n=e+1;n<t;n++)if(!Y(s(n)))return n;for(var r=0;r<e;r++)if(!Y(s(r)))return r;return e}function l(e){for(var t=e;t--;)if(!Y(s(t)))return t;for(t=u();t-- >e;)if(!Y(s(t)))return t;return e}function u(){return V(e.children)}function s(e){return t.current["tabs-"+e]}function c(e){var t=e.target;do{if(f(t)){if(Y(t))return;return void i([].slice.call(t.parentNode.children).filter($).indexOf(t),e)}}while(null!=(t=t.parentNode))}function f(e){if(!$(e))return!1;var t=e.parentElement;do{if(t===o.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var d=e.className,p=(e.disabledTabClassName,e.domRef),h=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,K));return g.createElement("div",W({},h,{className:F(d),onClick:c,onKeyDown:function(t){var n=e.direction,r=e.disableUpDownKeys;if(f(t.target)){var o=e.selectedIndex,d=!1,p=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(d=!0,p=!1,c(t)),"ArrowLeft"!==t.code&&37!==t.keyCode&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?"ArrowRight"!==t.code&&39!==t.keyCode&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(o=function(){for(var e=u();e--;)if(!Y(s(e)))return e;return null}(),d=!0,p=!0):36!==t.keyCode&&"Home"!==t.code||(o=function(){for(var e=u(),t=0;t<e;t++)if(!Y(s(t)))return t;return null}(),d=!0,p=!0):(o="rtl"===n?l(o):a(o),d=!0,p=!0):(o="rtl"===n?a(o):l(o),d=!0,p=!0),d&&t.preventDefault(),p&&i(o,t)}},ref:function(e){o.current=e,p&&p(e)},"data-rttabs":!0}),function(){var o=0,i=e.children,a=e.disabledTabClassName,l=e.focus,c=e.forceRenderTabPanel,f=e.selectedIndex,d=e.selectedTabClassName,p=e.selectedTabPanelClassName,h=e.environment;n.current=n.current||[],r.current=r.current||[];for(var v=n.current.length-u();v++<0;)n.current.push(U()),r.current.push(U());return M(i,(function(e){var i=e;if(R(e)){var u=0,v=!1;null==H&&function(e){var t=e||("undefined"!==typeof window?window:void 0);try{H=!("undefined"===typeof t||!t.document||!t.document.activeElement)}catch(n){H=!1}}(h);var y=h||("undefined"!==typeof window?window:void 0);H&&y&&(v=g.Children.toArray(e.props.children).filter(L).some((function(e,t){return y.document.activeElement===s(t)}))),i=(0,g.cloneElement)(e,{children:M(e.props.children,(function(e){var o="tabs-"+u,i=f===u,s={tabRef:function(e){t.current[o]=e},id:n.current[u],panelId:r.current[u],selected:i,focus:i&&(l||v)};return d&&(s.selectedClassName=d),a&&(s.disabledClassName=a),u++,(0,g.cloneElement)(e,s)}))})}else if(D(e)){var m={id:r.current[o],tabId:n.current[o],selected:f===o};c&&(m.forceRender=c),p&&(m.selectedClassName=p),o++,i=(0,g.cloneElement)(e,m)}return i}))}())};Q.defaultProps={className:"react-tabs",focus:!1},Q.propTypes={};var Z=Q;function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}var J=function(e){var t=e.children,n=e.defaultFocus,r=e.defaultIndex,o=e.focusTabOnClick,i=e.onSelect,a=(0,g.useState)(n),l=a[0],u=a[1],s=(0,g.useState)(function(e){return null===e.selectedIndex?1:0}(e)),c=s[0],f=(0,g.useState)(1===c?r||0:null),d=f[0],p=f[1];if((0,g.useEffect)((function(){u(!1)}),[]),1===c){var h=V(t);(0,g.useEffect)((function(){if(null!=d){var e=Math.max(0,h-1);p(Math.min(d,e))}}),[h])}var v=X({},e);return v.focus=l,v.onSelect=function(e,t,n){"function"===typeof i&&!1===i(e,t,n)||(o&&u(!0),1===c&&p(e))},null!=d&&(v.selectedIndex=d),delete v.defaultFocus,delete v.defaultIndex,delete v.focusTabOnClick,g.createElement(Z,v,t)};J.propTypes={},J.defaultProps={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1},J.tabsRole="Tabs";var ee=J,te=["children","className"];function ne(){return ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(this,arguments)}var re=function(e){var t=e.children,n=e.className,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,te);return g.createElement("ul",ne({},r,{className:F(n),role:"tablist"}),t)};re.tabsRole="TabList",re.propTypes={},re.defaultProps={className:"react-tabs__tab-list"};var oe=re,ie=["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"];function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}var le="react-tabs__tab",ue={className:le,disabledClassName:le+"--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:le+"--selected"},se=function(e){var t,n=(0,g.useRef)(),r=e.children,o=e.className,i=e.disabled,a=e.disabledClassName,l=e.focus,u=e.id,s=e.panelId,c=e.selected,f=e.selectedClassName,d=e.tabIndex,p=e.tabRef,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,ie);return(0,g.useEffect)((function(){c&&l&&n.current.focus()}),[c,l]),g.createElement("li",ae({},h,{className:F(o,(t={},t[f]=c,t[a]=i,t)),ref:function(e){n.current=e,p&&p(e)},role:"tab",id:u,"aria-selected":c?"true":"false","aria-disabled":i?"true":"false","aria-controls":s,tabIndex:d||(c?"0":null),"data-rttab":!0}),r)};se.propTypes={},se.tabsRole="Tab",se.defaultProps=ue;var ce=se,fe=["children","className","forceRender","id","selected","selectedClassName","tabId"];function de(){return de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(this,arguments)}var pe="react-tabs__tab-panel",he={className:pe,forceRender:!1,selectedClassName:"react-tabs__tab-panel--selected"},ve=function(e){var t,n=e.children,r=e.className,o=e.forceRender,i=e.id,a=e.selected,l=e.selectedClassName,u=e.tabId,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,fe);return g.createElement("div",de({},s,{className:F(r,(t={},t[l]=a,t)),role:"tabpanel",id:i,"aria-labelledby":u}),o||a?n:null)};ve.tabsRole="TabPanel",ve.propTypes={},ve.defaultProps=he;var ye=ve,ge=!1;console.log("(CONFIGURATOR) Setting Dev Environment to: false");var me="https://storage.googleapis.com/modular-configurator/sbd/ui",be="https://storage.googleapis.com/modular-configurator/sbd/common",we="https://storage.googleapis.com/gsc-epigraph-design/product-assets";var xe=j((function(e){return{activeVariants:{}}})),_e=j((function(e,t){return{itemsSpawned:{},fittingSKUIDS:[],setItemsSpawned:function(t){return e((function(){return{itemsSpawned:t,itemsCount:Object.keys(t).length}}))}}})),ke=j((function(e,t){return{infoObject:{},populateInfoObject:function(t){e((function(e){return{infoObject:t}}))},infoModalOpen:!1,updateInfoModalOpen:function(t){e((function(e){return{infoModalOpen:t}}))}}})),Ee=j((function(e){return{productData:{},setProductData:function(t){return e((function(){return{productData:t}}))},productCategoryData:{},setProductCategoryData:function(t){return e((function(){return{productCategoryData:t}}))},productLookData:{},setProductLookData:function(t){return e((function(){return{productLookData:t}}))},productHotspotsData:{},setProductHotspotsData:function(t){return e((function(){return{productHotspotsData:t}}))}}})),Se=n(184),Oe=function(e){var t=e.spawnGhosts,n=e.spawnItem,r=e.removeAllGhosts,o=e.skuID,i=e.categoryID,a=e.setDrawerOpen,l=e.setInfoDrawerData,u=e.setItemAllowed,s=E((0,g.useState)([]),2),c=(s[0],s[1],ke((function(e){return e.populateInfoObject}))),f=ke((function(e){return e.updateInfoModalOpen})),d=xe((function(e){return e.activeVariants})),p=Ee((function(e){return e})),h=_e((function(e){return e.fittingSKUIDS})),v=E((0,g.useState)(p.productData[o]?p.productData[o]:{}),2),y=v[0],m=(v[1],E((0,g.useState)(p.productData[o].title?p.productData[o].title:""),2)),b=m[0],w=(m[1],E((0,g.useState)(p.productData[o].quantity?p.productData[o].quantity:0),2)),x=(w[0],w[1],E((0,g.useState)(p.productData[o].thumbnail.default?p.productData[o].thumbnail.default:""),2)),_=x[0],k=x[1],S=E((0,g.useState)(p.productData[o].price?p.productData[o].price:""),2),O=(S[0],S[1],E((0,g.useState)(p.productData[o].thumbnail?p.productData[o].thumbnail:""),2)),j=O[0],C=(O[1],E((0,g.useState)(!1),2)),N=(C[0],C[1],E((0,g.useState)(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth),2)),T=N[0],P=(N[1],E((0,g.useState)(!1),2)),A=P[0],L=P[1];(0,g.useEffect)((function(){h.includes(o)?L(!0):L(!1)}),[h]),(0,g.useEffect)((function(){Object.keys(p.productData).length}),[p.productData]),(0,g.useEffect)((function(){return""!==j&&function(e){var t,n=e[Object.keys(e)[0]];if(Object.keys(e)[0],n)for(var r=0;r<Object.keys(j).length;r++)if(n.toLowerCase()==Object.keys(j)[r].toLowerCase())return t=Object.values(j)[r],void k(t);""==t&&(t=j.default)}(d),function(){}}),[d]);return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)("div",{onMouseEnter:function(){T<=768||A&&t&&t(o)},onMouseLeave:function(){T<=768||A&&r&&r()},onClick:function(e){return function(e){e.stopPropagation(),A&&(T<=768?(c(y),t&&t(o),l({sku:o,category:i}),a(!0),u(!0)):n(o,i))}(e)},style:A?{pointerEvents:"all"}:{opacity:"0.5",pointerEvents:"none"},className:"imageContainer",draggable:!1,children:(0,Se.jsxs)("div",{className:"contentContainer",children:[(0,Se.jsx)("div",{className:"contentOverlay",children:(0,Se.jsx)("img",{src:we+"/Icon/Plus.svg"})}),(0,Se.jsx)("img",{draggable:!1,alt:b,src:me+_}),(0,Se.jsx)("div",{className:"itemDetails",children:(0,Se.jsx)("span",{onClick:function(e){T<=768||(e.stopPropagation(),A&&r&&r(),c(y),f(o,A))},children:b})})]})})})};function je(e){if(null==e)throw new TypeError("Cannot destructure undefined")}var Ce=function(e){return e&&e[0].toUpperCase()+e.slice(1)||""},Ne=function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")};var Te=function(e){je(e);var t=Ee((function(e){return e})),n=xe((function(e){return e.activeVariants})),r=ke((function(e){return e.infoObject})),o=ke((function(e){return e.infoModalOpen})),i=ke((function(e){return e.updateInfoModalOpen})),a=E((0,g.useState)(""),2),l=a[0],u=a[1],s=E((0,g.useState)([]),2),c=s[0],f=s[1];return(0,g.useEffect)((function(){0!=Object.keys(t.productCategoryData).length&&f(t.productCategoryData.build)}),[t.productCategoryData]),(0,g.useEffect)((function(){return u(n[Object.keys(n)[0]]),function(){}}),[n]),(0,g.useEffect)((function(){return console.log(r),function(){}}),[]),(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsxs)("div",{className:o?"infoModal open":"infoModal",children:[(0,Se.jsx)("button",{className:"closeButton",onClick:function(){i(!1)},children:(0,Se.jsx)("img",{src:we+"/Icon/X.svg"})}),(0,Se.jsxs)("a",{href:r.link,className:"categoryLink",target:"_blank",children:[(0,Se.jsx)("h2",{className:"categoryTitle",children:function(e){if(e&&c.length>0){var t=c.find((function(t){return t.categoryID==e}));return console.log(c),console.log(t),t.label}}(r.categoryID)}),(0,Se.jsx)("img",{src:we+"/Icon/OpenTab.svg"})]}),(0,Se.jsx)("div",{className:"infoModalImageContainer",children:r.thumbnail?(0,Se.jsx)("img",{className:"itemImage",src:me+function(e){for(var t="",n=0;n<Object.keys(e).length;n++)if(l.toLowerCase()==Object.keys(e)[n].toLowerCase())return t=Object.values(e)[n];if(""==t)return t=e.default}(r.thumbnail)}):""}),(0,Se.jsxs)("div",{style:{textAlign:"center",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",marginTop:"1rem"},children:[(0,Se.jsx)("h2",{className:"itemTitle",children:r.title}),(0,Se.jsx)("p",{className:"itemDescription",children:r.description}),r.boundingBoxSize?(0,Se.jsxs)("p",{className:"infoModalDimensions",children:[r.boundingBoxSize.x.toFixed(1),"\u201d W x"," ",r.boundingBoxSize.y.toFixed(1),"\u201d D x"," ",r.boundingBoxSize.z.toFixed(1),"\u201d H"]}):"",(0,Se.jsx)("a",{href:r.link,target:"_blank",className:"openNewTab",children:"Open in a new tab"})]}),(0,Se.jsx)("div",{className:"infoModalActions",style:{width:"100%"},children:(0,Se.jsx)("button",{className:"addToCart",disabled:!0,children:r.price&&"$".concat(Ne(r.price))})})]})})},Pe=n(2391),Ae=n.n(Pe),Le=Re()?g.useLayoutEffect:g.useEffect;Ae(),"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math&&self;function Re(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var De=function(e){var t=e.children,n=e.type,r=void 0===n?"reach-portal":n,o=(0,g.useRef)(null),i=(0,g.useRef)(null),a=function(){var e=(0,g.useState)(Object.create(null))[1];return(0,g.useCallback)((function(){e(Object.create(null))}),[])}();return Le((function(){if(o.current){var e=o.current.ownerDocument;return i.current=null==e?void 0:e.createElement(r),e.body.appendChild(i.current),a(),function(){i.current&&i.current.ownerDocument&&i.current.ownerDocument.body.removeChild(i.current)}}}),[r,a]),i.current?(0,m.createPortal)(t,i.current):(0,g.createElement)("span",{ref:o})},Ie=function(){return Ie=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},Ie.apply(this,arguments)};function Me(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function qe(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ze(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Fe(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Be,Ue={},Ve="xstate.guard";function He(e,t,n){void 0===n&&(n=".");var r=Ge(e,n),o=Ge(t,n);return ct(o)?!!ct(r)&&o===r:ct(r)?r in o:Object.keys(r).every((function(e){return e in o&&He(r[e],o[e])}))}function Ke(e){try{return ct(e)||"number"===typeof e?"".concat(e):e.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function We(e,t){try{return ut(e)?e:e.toString().split(t)}catch(n){throw new Error("'".concat(e,"' is not a valid state path."))}}function Ge(e,t){return"object"===typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ut(e)?$e(e):"string"!==typeof e?e:$e(We(e,t));var n}function $e(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Ye(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function Qe(e,t,n){var r,o,i={};try{for(var a=qe(Object.keys(e)),l=a.next();!l.done;l=a.next()){var u=l.value,s=e[u];n(s)&&(i[u]=t(s,u,e))}}catch(c){r={error:c}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}var Ze=function(e){return function(t){var n,r,o=t;try{for(var i=qe(e),a=i.next();!a.done;a=i.next()){o=o[a.value]}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function Xe(e){return e?ct(e)?[[e]]:Je(Object.keys(e).map((function(t){var n=e[t];return"string"===typeof n||n&&Object.keys(n).length?Xe(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Je(e){var t;return(t=[]).concat.apply(t,Fe([],ze(e),!1))}function et(e){return ut(e)?e:[e]}function tt(e){return void 0===e?[]:et(e)}function nt(e,t,n){var r,o;if(st(e))return e(t,n.data);var i={};try{for(var a=qe(Object.keys(e)),l=a.next();!l.done;l=a.next()){var u=l.value,s=e[u];st(s)?i[u]=s(t,n.data):i[u]=s}}catch(c){r={error:c}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}function rt(e){return e instanceof Promise||!(null===e||!st(e)&&"object"!==typeof e||!st(e.then))}function ot(e,t){var n,r,o=ze([[],[]],2),i=o[0],a=o[1];try{for(var l=qe(e),u=l.next();!u.done;u=l.next()){var s=u.value;t(s)?i.push(s):a.push(s)}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[i,a]}function it(e,t){return Ye(e.states,(function(e,n){if(e){var r=(ct(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:it(e,r)}}}))}function at(e,t,n,r){var o=e?n.reduce((function(e,n){var o,i,a=n.assignment,l={state:r,action:n,_event:t},u={};if(st(a))u=a(e,t.data,l);else try{for(var s=qe(Object.keys(a)),c=s.next();!c.done;c=s.next()){var f=c.value,d=a[f];u[f]=st(d)?d(e,t.data,l):d}}catch(p){o={error:p}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return Object.assign({},e,u)}),e):e;return o}var lt=function(){};function ut(e){return Array.isArray(e)}function st(e){return"function"===typeof e}function ct(e){return"string"===typeof e}function ft(e,t){if(e)return ct(e)?{type:Ve,name:e,predicate:t?t[e]:void 0}:st(e)?{type:Ve,name:e.name,predicate:e}:e}var dt=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}();(Be={})[dt]=function(){return this},Be[Symbol.observable]=function(){return this};function pt(e){return!!e&&"__xstatenode"in e}function ht(e,t){return ct(e)||"number"===typeof e?Ie({type:e},t):e}function vt(e,t){if(!ct(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=ht(e);return Ie({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function yt(e,t){return et(t).map((function(t){return"undefined"===typeof t||"string"===typeof t||pt(t)?{target:t,event:e}:Ie(Ie({},t),{event:e})}))}function gt(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===Ve)return((null===i||void 0===i?void 0:i[t.name])||t.predicate)(n,r.data,a);var l=null===i||void 0===i?void 0:i[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function mt(e){return"string"===typeof e?{type:e}:e}function bt(e,t,n){if("object"===typeof e)return e;var r=function(){};return{next:e,error:t||r,complete:n||r}}function wt(e,t){return"".concat(e,":invocation[").concat(t,"]")}var xt,_t,kt=function(e){return"atomic"===e.type||"final"===e.type};function Et(e){return Object.keys(e.states).map((function(t){return e.states[t]})).filter((function(e){return"history"!==e.type}))}function St(e){var t=[e];return kt(e)?t:t.concat(Je(Et(e).map(St)))}function Ot(e,t){var n,r,o,i,a,l,u,s,c=Ct(new Set(e)),f=new Set(t);try{for(var d=qe(f),p=d.next();!p.done;p=d.next())for(var h=(k=p.value).parent;h&&!f.has(h);)f.add(h),h=h.parent}catch(E){n={error:E}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var v=Ct(f);try{for(var y=qe(f),g=y.next();!g.done;g=y.next()){if("compound"!==(k=g.value).type||v.get(k)&&v.get(k).length){if("parallel"===k.type)try{for(var m=(a=void 0,qe(Et(k))),b=m.next();!b.done;b=m.next()){var w=b.value;f.has(w)||(f.add(w),c.get(w)?c.get(w).forEach((function(e){return f.add(e)})):w.initialStateNodes.forEach((function(e){return f.add(e)})))}}catch(S){a={error:S}}finally{try{b&&!b.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}}else c.get(k)?c.get(k).forEach((function(e){return f.add(e)})):k.initialStateNodes.forEach((function(e){return f.add(e)}))}}catch(O){o={error:O}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}try{for(var x=qe(f),_=x.next();!_.done;_=x.next()){var k;for(h=(k=_.value).parent;h&&!f.has(h);)f.add(h),h=h.parent}}catch(j){u={error:j}}finally{try{_&&!_.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}return f}function jt(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(kt(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=jt(e,t)})),o}function Ct(e){var t,n,r=new Map;try{for(var o=qe(e),i=o.next();!i.done;i=o.next()){var a=i.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function Nt(e,t){return jt(e,Ct(Ot([e],t)))}function Tt(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Pt(e,t){return"compound"===t.type?Et(t).some((function(t){return"final"===t.type&&Tt(e,t)})):"parallel"===t.type&&Et(t).every((function(t){return Pt(e,t)}))}function At(e){return new Set(Je(e.map((function(e){return e.tags}))))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(xt||(xt={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(_t||(_t={}));var Lt=xt.Start,Rt=xt.Stop,Dt=xt.Raise,It=xt.Send,Mt=xt.Cancel,qt=xt.NullEvent,zt=xt.Assign,Ft=(xt.After,xt.DoneState,xt.Log),Bt=xt.Init,Ut=xt.Invoke,Vt=(xt.ErrorExecution,xt.ErrorPlatform),Ht=xt.ErrorCustom,Kt=xt.Update,Wt=xt.Choose,Gt=xt.Pure,$t=vt({type:Bt});function Yt(e,t){return t&&t[e]||void 0}function Qt(e,t){var n;if(ct(e)||"number"===typeof e)n=st(r=Yt(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(st(e))n={type:e.name||e.toString(),exec:e};else{var r;if(st(r=Yt(e.type,t)))n=Ie(Ie({},e),{exec:r});else if(r){var o=r.type||e.type;n=Ie(Ie(Ie({},r),e),{type:o})}else n=e}return n}var Zt=function(e,t){return e?(ut(e)?e:[e]).map((function(e){return Qt(e,t)})):[]};function Xt(e){var t=Qt(e);return Ie(Ie({id:ct(e)?e:t.id},t),{type:t.type})}function Jt(e){return ct(e)?{type:Dt,event:e}:en(e,{to:_t.Internal})}function en(e,t){return{to:t?t.to:void 0,type:It,event:st(e)?e:ht(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:st(e)?e.name:Ke(e)}}function tn(e,t){var n="".concat(xt.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function nn(e,t){var n="".concat(xt.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function rn(e,t){var n="".concat(xt.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function on(e,t,n,r,o,i){void 0===i&&(i=!1);var a=ze(i?[[],o]:ot(o,(function(e){return e.type===zt})),2),l=a[0],u=a[1],s=l.length?at(n,r,l,t):n,c=i?[n]:void 0,f=Je(u.map((function(n){var o;switch(n.type){case Dt:return{type:Dt,_event:vt(n.event)};case It:var a=function(e,t,n,r){var o,i={_event:n},a=vt(st(e.event)?e.event(t,n.data,i):e.event);if(ct(e.delay)){var l=r&&r[e.delay];o=st(l)?l(t,n.data,i):l}else o=st(e.delay)?e.delay(t,n.data,i):e.delay;var u=st(e.to)?e.to(t,n.data,i):e.to;return Ie(Ie({},e),{to:u,_event:a,event:a.data,delay:o})}(n,s,r,e.options.delays);return a;case Ft:return function(e,t,n){return Ie(Ie({},e),{value:ct(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(n,s,r);case Wt:if(!(d=null===(o=n.conds.find((function(n){var o=ft(n.cond,e.options.guards);return!o||gt(e,o,s,r,t)})))||void 0===o?void 0:o.actions))return[];var l=ze(on(e,t,s,r,Zt(tt(d),e.options.actions),i),2),u=l[0],f=l[1];return s=f,null===c||void 0===c||c.push(s),u;case Gt:var d;if(!(d=n.get(s,r.data)))return[];var p=ze(on(e,t,s,r,Zt(tt(d),e.options.actions),i),2),h=p[0],v=p[1];return s=v,null===c||void 0===c||c.push(s),h;case Rt:return function(e,t,n){var r=st(e.activity)?e.activity(t,n.data):e.activity,o="string"===typeof r?{id:r}:r;return{type:xt.Stop,activity:o}}(n,s,r);case zt:s=at(s,r,[n],t),null===c||void 0===c||c.push(s);break;default:var y=Qt(n,e.options.actions),g=y.exec;if(g&&c){var m=c.length-1;y=Ie(Ie({},y),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.apply(void 0,Fe([c[m]],ze(t),!1))}})}return y}})).filter((function(e){return!!e})));return[f,s]}function an(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(ct(e)||ct(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return an(e[n],t[n])}))}function ln(e){return"object"===typeof e&&null!==e&&("value"in e&&"_event"in e)}var un=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ue,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||Ue,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return Fe([],ze(new Set(Je(Fe([],ze(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:$t,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=$t;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),ct(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Fe([],ze(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Me(e,["configuration","transitions","tags","machine"]);return Ie(Ie({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return He(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;lt(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null===n||void 0===n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),sn=g.useLayoutEffect,cn={deferEvents:!1},fn=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Ie(Ie({},cn),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},e}(),dn=[],pn=function(e,t){dn.push(e);var n=t(e);return dn.pop(),n};function hn(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[dt]=function(){return this},t}function vn(e,t,n,r){var o,i=mt(e.src),a=null===(o=null===t||void 0===t?void 0:t.options.services)||void 0===o?void 0:o[i.type],l=e.data?nt(e.data,n,r):void 0,u=a?function(e,t,n){var r=hn(t);if(r.deferred=!0,pt(e)){var o=r.state=pn(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}(a,e.id,l):hn(e.id);return u.meta=e,u}var yn=new Map,gn=0,mn=function(){return"x:".concat(gn++)},bn=function(e,t){return yn.set(e,t),e},wn=function(e){return yn.get(e)},xn=function(e){yn.delete(e)};function _n(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:void 0}function kn(e){if(_n()){var t=function(){var e=_n();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function En(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=function(e){var t;return Ie(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[dt]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=bt(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var Sn,On={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(Sn||(Sn={}));var jn,Cn=function(){function e(t,n){var r=this;void 0===n&&(n=e.defaultOptions),this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Sn.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(e,t){if(ut(e))return r.batch(e),r.state;var n=vt(ht(e,t));if(r.status===Sn.Stopped)return r.state;if(r.status!==Sn.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r.nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t){var n,o=r.parent&&(t===_t.Parent||r.parent.id===t),i=o?r.parent:ct(t)?r.children.get(t)||wn(t):(n=t)&&"function"===typeof n.send?t:void 0;if(i)"machine"in i?i.send(Ie(Ie({},e),{name:e.name===Ht?"".concat(rn(r.id)):e.name,origin:r.sessionId})):i.send(e.data);else if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."))};var o=Ie(Ie({},e.defaultOptions),n),i=o.clock,a=o.logger,l=o.parent,u=o.id,s=void 0!==u?u:t.id;this.id=s,this.logger=a,this.clock=i,this.parent=l,this.options=o,this.scheduler=new fn({deferEvents:this.options.deferEvents}),this.sessionId=mn()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:pn(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=qe(e.actions),i=o.next();!i.done;i=o.next()){var a=i.value;this.exec(a,e,t)}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,a,l,u,s,c=this;if(e._sessionid=this.sessionId,this._state=e,this.options.execute&&this.execute(this.state),this.children.forEach((function(e){c.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var f=qe(this.eventListeners),d=f.next();!d.done;d=f.next()){(0,d.value)(e.event)}}catch(_){n={error:_}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}try{for(var p=qe(this.listeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e,e.event)}}catch(k){o={error:k}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}try{for(var v=qe(this.contextListeners),y=v.next();!y.done;y=v.next()){(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(E){a={error:E}}finally{try{y&&!y.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}var g=Pt(e.configuration||[],this.machine);if(this.state.configuration&&g){var m=e.configuration.find((function(e){return"final"===e.type&&e.parent===c.machine})),b=m&&m.doneData?nt(m.doneData,e.context,t):void 0;try{for(var w=qe(this.doneListeners),x=w.next();!x.done;x=w.next()){(0,x.value)(nn(this.id,b))}}catch(S){u={error:S}}finally{try{x&&!x.done&&(s=w.return)&&s.call(w)}finally{if(u)throw u.error}}this.stop()}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Sn.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r,o=this;if(!e)return{unsubscribe:function(){}};var i=n;return"function"===typeof e?r=e:(r=e.next.bind(e),i=e.complete.bind(e)),this.listeners.add(r),this.status!==Sn.NotStarted&&r(this.state),i&&(this.status===Sn.Stopped?i():this.onDone(i)),{unsubscribe:function(){r&&o.listeners.delete(r),i&&o.doneListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===Sn.Running)return this;this.machine._init(),bn(this.sessionId,this),this.initialized=!0,this.status=Sn.Running;var n=void 0===e?this.initialState:pn(this,(function(){return ln(e)?t.machine.resolveState(e):t.machine.resolveState(un.from(e,t.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,$t)})),this},e.prototype.stop=function(){var e,t,n,r,o,i,a,l,u,s,c=this;try{for(var f=qe(this.listeners),d=f.next();!d.done;d=f.next()){var p=d.value;this.listeners.delete(p)}}catch(k){e={error:k}}finally{try{d&&!d.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}try{for(var h=qe(this.stopListeners),v=h.next();!v.done;v=h.next()){(p=v.value)(),this.stopListeners.delete(p)}}catch(E){n={error:E}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var y=qe(this.contextListeners),g=y.next();!g.done;g=y.next()){p=g.value;this.contextListeners.delete(p)}}catch(S){o={error:S}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}try{for(var m=qe(this.doneListeners),b=m.next();!b.done;b=m.next()){p=b.value;this.doneListeners.delete(p)}}catch(O){a={error:O}}finally{try{b&&!b.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;Fe([],ze(this.state.configuration),!1).sort((function(e,t){return t.order-e.order})).forEach((function(e){var t,n;try{for(var r=qe(e.definition.exit),o=r.next();!o.done;o=r.next()){var i=o.value;c.exec(i,c.state)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}})),this.children.forEach((function(e){st(e.stop)&&e.stop()})),this.children.clear();try{for(var w=qe(Object.keys(this.delayedEventsMap)),x=w.next();!x.done;x=w.next()){var _=x.value;this.clock.clearTimeout(this.delayedEventsMap[_])}}catch(j){u={error:j}}finally{try{x&&!x.done&&(s=w.return)&&s.call(w)}finally{if(u)throw u.error}}return this.scheduler.clear(),this.scheduler=new fn({deferEvents:this.options.deferEvents}),this.initialized=!1,this.status=Sn.Stopped,this._initialState=void 0,xn(this.sessionId),this},e.prototype.batch=function(e){var t=this;if(this.status===Sn.NotStarted&&this.options.deferEvents)0;else if(this.status!==Sn.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));this.scheduler.schedule((function(){var n,r,o=t.state,i=!1,a=[],l=function(e){var n=vt(e);t.forward(n),o=pn(t,(function(){return t.machine.transition(o,n)})),a.push.apply(a,Fe([],ze(o.actions.map((function(e){return function(e,t){var n=e.exec;return Ie(Ie({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),i=i||!!o.changed};try{for(var u=qe(e),s=u.next();!s.done;s=u.next()){l(s.value)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}o.changed=i,o.actions=a,t.update(o,vt(e[e.length-1]))}))},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype.nextState=function(e){var t=this,n=vt(e);if(0===n.name.indexOf(Vt)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Vt)})))throw n.data.data;return pn(this,(function(){return t.machine.transition(t.state,n)}))},e.prototype.forward=function(e){var t,n;try{for(var r=qe(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,a=this.children.get(i);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));a.send(e)}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this;this.delayedEventsMap[e.id]=this.clock.setTimeout((function(){e.to?t.sendTo(e._event,e.to):t.send(e._event)}),e.delay)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions);var r=t.context,o=t._event,i=e.exec||Yt(e.type,n),a=st(i)?i:i?i.exec:e.exec;if(a)try{return a(r,o.data,{action:e,state:this.state,_event:o})}catch(b){throw this.parent&&this.parent.send({type:"xstate.error",data:b}),b}switch(e.type){case It:var l=e;if("number"===typeof l.delay)return void this.defer(l);l.to?this.sendTo(l._event,l.to):this.send(l._event);break;case Mt:this.cancel(e.sendId);break;case Lt:if(this.status!==Sn.Running)return;var u=e.activity;if(!this.state.activities[u.id||u.type])break;if(u.type===xt.Invoke){var s=mt(u.src),c=this.machine.options.services?this.machine.options.services[s.type]:void 0,f=u.id,d=u.data;0;var p="autoForward"in u?u.autoForward:!!u.forward;if(!c)return void 0;var h=d?nt(d,r,o):void 0;if("string"===typeof c)return;var v=st(c)?c(r,o.data,{data:h,src:s,meta:u.meta}):c;if(!v)return;var y=void 0;pt(v)&&(v=h?v.withContext(h):v,y={autoForward:p}),this.spawn(v,f,y)}else this.spawnActivity(u);break;case Rt:this.stopChild(e.activity.id);break;case Ft:var g=e.label,m=e.value;g?this.logger(g,m):this.logger(m)}},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),st(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(rt(e))return this.spawnPromise(Promise.resolve(e),t);if(st(e))return this.spawnCallback(e,t);if(function(e){try{return"function"===typeof e.send}catch(t){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&st(e.subscribe)}catch(t){return!1}}(e))return this.spawnObservable(e,t);if(pt(e))return this.spawnMachine(e,Ie(Ie({},n),{id:t}));if(null!==(r=e)&&"object"===typeof r&&"transition"in r&&"function"===typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,Ie(Ie({},this.options),{parent:this,id:n.id||t.id})),i=Ie(Ie({},On),n);i.sync&&o.onTransition((function(e){r.send(Kt,{state:e,id:o.id})}));var a=o;return this.children.set(o.id,a),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(vt(e,{origin:o.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=En(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(vt(nn(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=rn(t,e);try{o.send(vt(n,{origin:t}))}catch(r){o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=bt(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[dt]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,a=!1,l=new Set,u=new Set;try{o=e((function(e){r=e,u.forEach((function(t){return t(e)})),a||i.send(vt(e,{origin:t}))}),(function(e){l.add(e)}))}catch(c){this.send(rn(t,c))}if(rt(o))return this.spawnPromise(o,t);var s=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=bt(e);return u.add(t.next),{unsubscribe:function(){u.delete(t.next)}}},stop:function(){a=!0,st(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[dt]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(vt(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(vt(rn(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(vt(nn(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[dt]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[dt]=function(){return this},n))},e.prototype.attachDev=function(){var e=_n();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"===typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(Ie(Ie({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Ie({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}kn(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[dt]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Sn.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return setTimeout(e,t)})),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return clearTimeout(e)}))},logger:console.log.bind(console),devTools:!1},e.interpret=Nn,e}();function Nn(e,t){return new Cn(e,t)}function Tn(e){var t=g.useRef();return t.current||(t.current={v:e()}),t.current.v}!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(jn||(jn={}));var Pn=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},An=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var Ln=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Rn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function Dn(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function In(e){var t=(0,g.useRef)([]),n=(0,g.useRef)([]);sn((function(){var r=e.subscribe((function(e){var r,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"===typeof e.exec&&"__effect"in e.exec})),a=Ln(function(e,t){var n,r,o=Pn([[],[]],2),i=o[0],a=o[1];try{for(var l=An(e),u=l.next();!u.done;u=l.next()){var s=u.value;t(s)?i.push(s):a.push(s)}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[i,a]}(i,(function(e){return e.exec.__effect===jn.Effect})),2),l=a[0],u=a[1];(r=t.current).push.apply(r,Rn([],Ln(l.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,Rn([],Ln(u.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),sn((function(){for(;n.current.length;){var e=Ln(n.current.shift(),2);Dn(e[0],e[1])}})),(0,g.useEffect)((function(){for(;t.current.length;){var e=Ln(t.current.shift(),2);Dn(e[0],e[1])}}))}var Mn=function(){return Mn=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},Mn.apply(this,arguments)},qn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var zn=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Fn(e,t){void 0===t&&(t={});var n=(0,g.useCallback)((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=Tn((function(){return"function"===typeof e?e():e})),o=t.context,i=t.guards,a=t.actions,l=t.activities,u=t.services,s=t.delays,c=t.state,f=qn(t,["context","guards","actions","activities","services","delays","state"]),d=Tn((function(){var e={context:o,guards:i,actions:a,activities:l,services:u,delays:s};return Nn(r.withConfig(e,(function(){return Mn(Mn({},r.context),o)})),Mn({deferEvents:!0},f))}));return sn((function(){var e;return n&&(e=d.subscribe(function(e,t,n){if("object"===typeof e)return e;var r=function(){};return{next:e,error:void 0||r,complete:void 0||r}}(n))),function(){null===e||void 0===e||e.unsubscribe()}}),[n]),sn((function(){return d.start(c?un.create(c):void 0),function(){d.stop()}}),[]),sn((function(){Object.assign(d.machine.options.actions,a),Object.assign(d.machine.options.guards,i),Object.assign(d.machine.options.activities,l),Object.assign(d.machine.options.services,u),Object.assign(d.machine.options.delays,s)}),[a,i,l,u,s]),In(d),d}(e,t,n),o=zn((0,g.useState)((function(){var e=r.machine.initialState;return t.state?un.create(t.state):e})),2),i=o[0],a=o[1];return[i,r.send,r]}function Bn(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(){return Un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Un.apply(this,arguments)}function Vn(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Hn={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!==typeof t)return!1;if(Hn.str(e)||Hn.num(e))return e===t;if(Hn.obj(e)&&Hn.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Hn.und(n)||e===t}};function Kn(){var e=(0,g.useState)(!1)[1];return(0,g.useCallback)((function(){return e((function(e){return!e}))}),[])}function Wn(e,t){return Hn.und(e)||Hn.nul(e)?t:e}function Gn(e){return Hn.und(e)?[]:Hn.arr(e)?e:[e]}function $n(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Hn.fun(e)?e.apply(void 0,n):e}function Yn(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Vn(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Hn.und(t))return Un({to:t},e);var n=Object.keys(e).reduce((function(n,r){return Hn.und(t[r])?Un({},n,b({},r,e[r])):n}),{});return Un({to:t},n)}var Qn,Zn,Xn=function(){function e(){r(this,e),this.payload=void 0,this.children=[]}return i(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),Jn=function(e){u(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.apply(this,arguments)).payload=[],e.attach=function(){return e.payload.forEach((function(t){return t instanceof Xn&&t.addChild(a(e))}))},e.detach=function(){return e.payload.forEach((function(t){return t instanceof Xn&&t.removeChild(a(e))}))},e}return i(n)}(Xn),er=function(e){u(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.apply(this,arguments)).payload={},e.attach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof Xn&&t.addChild(a(e))}))},e.detach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof Xn&&t.removeChild(a(e))}))},e}return i(n,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof Xn)&&(t[n]=r instanceof Xn?r[e?"getAnimatedValue":"getValue"]():r)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),n}(Xn);function tr(e,t){Qn={fn:e,transform:t}}function nr(e){Zn=e}var rr,or=function(e){return"undefined"!==typeof window?window.requestAnimationFrame(e):-1};function ir(e){rr=e}var ar=function(){return Date.now()};function lr(e){e}var ur,sr,cr=function(e){return e.current};function fr(e){ur=e}var dr=function(e){u(n,e);var t=d(n);function n(e,o){var i;return r(this,n),(i=t.call(this)).update=void 0,i.payload=e.style?Un({},e,{style:ur(e.style)}):e,i.update=o,i.attach(),i}return i(n)}(er),pr=!1,hr=new Set,vr=function e(){if(!pr)return!1;var t,n=ar(),r=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}(hr);try{for(r.s();!(t=r.n()).done;){for(var o=t.value,i=!1,a=0;a<o.configs.length;a++){for(var l=o.configs[a],u=void 0,s=void 0,c=0;c<l.animatedValues.length;c++){var f=l.animatedValues[c];if(!f.done){var d=l.fromValues[c],p=l.toValues[c],h=f.lastPosition,v=p instanceof Xn,y=Array.isArray(l.initialVelocity)?l.initialVelocity[c]:l.initialVelocity;if(v&&(p=p.getValue()),l.immediate)f.setValue(p),f.done=!0;else if("string"!==typeof d&&"string"!==typeof p){if(void 0!==l.duration)h=d+l.easing((n-f.startTime)/l.duration)*(p-d),u=n>=f.startTime+l.duration;else if(l.decay)h=d+y/(1-.998)*(1-Math.exp(-(1-.998)*(n-f.startTime))),(u=Math.abs(f.lastPosition-h)<.1)&&(p=h);else{s=void 0!==f.lastTime?f.lastTime:n,y=void 0!==f.lastVelocity?f.lastVelocity:l.initialVelocity,n>s+64&&(s=n);for(var g=Math.floor(n-s),m=0;m<g;++m){h+=1*(y+=1*((-l.tension*(h-p)+-l.friction*y)/l.mass)/1e3)/1e3}var b=!(!l.clamp||0===l.tension)&&(d<p?h>p:h<p),w=Math.abs(y)<=l.precision,x=0===l.tension||Math.abs(p-h)<=l.precision;u=b||w&&x,f.lastVelocity=y,f.lastTime=n}v&&!l.toValues[c].done&&(u=!1),u?(f.value!==p&&(h=p),f.done=!0):i=!0,f.setValue(h),f.lastPosition=h}else f.setValue(p),f.done=!0}}o.props.onFrame&&(o.values[l.name]=l.interpolation.getValue())}o.props.onFrame&&o.props.onFrame(o.values),i||(hr.delete(o),o.stop(!0))}}catch(_){r.e(_)}finally{r.f()}return hr.size?sr?sr():or(e):pr=!1,pr};function yr(e,t,n){if("function"===typeof e)return e;if(Array.isArray(e))return yr({range:e,output:t,extrapolate:n});if(rr&&"string"===typeof e.output[0])return rr(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,l,u){var s=u?u(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],u,a,l,r.map)}}var gr=function(e){u(n,e);var t=d(n);function n(e,o,i,a){var l;return r(this,n),(l=t.call(this)).calc=void 0,l.payload=e instanceof Jn&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],l.calc=yr(o,i,a),l}return i(n,[{key:"getValue",value:function(){return this.calc.apply(this,Bn(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=yr(e,t,n)}},{key:"interpolate",value:function(e,t,r){return new n(this,e,t,r)}}]),n}(Jn),mr=function(e,t,n){return e&&new gr(e,t,n)};function br(e,t){"update"in e?t.add(e):e.getChildren().forEach((function(e){return br(e,t)}))}var wr=function(e){u(n,e);var t=d(n);function n(e){var o,i;return r(this,n),o=t.call(this),i=a(o),o.animatedStyles=new Set,o.value=void 0,o.startPosition=void 0,o.lastPosition=void 0,o.lastVelocity=void 0,o.startTime=void 0,o.lastTime=void 0,o.done=!1,o.setValue=function(e,t){void 0===t&&(t=!0),i.value=e,t&&i.flush()},o.value=e,o.startPosition=e,o.lastPosition=e,o}return i(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&br(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new gr(this,e,t,n)}}]),n}(Xn),xr=function(e){u(n,e);var t=d(n);function n(e){var o;return r(this,n),(o=t.call(this)).payload=e.map((function(e){return new wr(e)})),o}return i(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new gr(this,e,t)}}]),n}(Jn),_r=0,kr=function(){function e(){var t=this;r(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=_r++}return i(e,[{key:"update",value:function(e){if(!e)return this;var t=Yn(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=Vn(t,["delay","to"]);if(Hn.arr(o)||Hn.fun(o))this.queue.push(Un({},i,{delay:r,to:o}));else if(o){var a={};Object.entries(o).forEach((function(e){var t=e[0],n=Un({to:b({},t,e[1]),delay:$n(r,t)},i),o=a[n.delay]&&a[n.delay].to;a[n.delay]=Un({},a[n.delay],n,{to:Un({},o,n.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(i),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,o=e.to,i=void 0===o?{}:o;Hn.obj(r)&&(n.merged=Un({},r,n.merged)),Hn.obj(i)&&(n.merged=Un({},n.merged,i))}));var r=this.local=++this.guid,o=this.localQueue=this.queue;this.queue=[],o.forEach((function(t,i){var a=t.delay,l=Vn(t,["delay"]),u=function(t){i===o.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},s=Hn.arr(l.to)||Hn.fun(l.to);a?setTimeout((function(){r===n.guid&&(s?n.runAsync(l,u):n.diff(l).start(u))}),a):s?n.runAsync(l,u):n.diff(l).start(u)}))}else Hn.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,hr.has(t)||hr.add(t),pr||(pr=!0,or(sr||vr));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,hr.has(t)&&hr.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,o=(e.delay,Vn(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(Hn.arr(o.to))for(var l=function(e){var t=e,r=Un({},o,Yn(o.to[t]));Hn.arr(r.config)&&(r.config=r.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(r).start(e)}))}))},u=0;u<o.to.length;u++)l(u);else if(Hn.fun(o.to)){var s,c=0;a=a.then((function(){return o.to((function(e){var t=Un({},o,Yn(e));if(Hn.arr(t.config)&&(t.config=t.config[c]),c++,i===n.guid)return s=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),r.stop(e)})).then((function(){return s}))}))}a.then(t)}},{key:"diff",value:function(e){var t=this;this.props=Un({},this.props,e);var n=this.props,r=n.from,o=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,u=void 0===l?{}:l,s=n.reverse,c=n.attach,f=n.reset,d=n.immediate;if(s){var p=[a,o];o=p[0],a=p[1]}this.merged=Un({},o,this.merged,a),this.hasChanged=!1;var h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=Hn.num(i),s=Hn.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!Zn[i],c=Hn.arr(i),p=!l&&!c&&!s,v=Hn.und(o[r])?i:o[r],y=l||c||s?i:1,g=$n(u,r);h&&(y=h.animations[r].parent);var m,w=a.parent,x=a.interpolation,_=Gn(h?y.getPayload():y),k=i;p&&(k=rr({range:[0,1],output:[i,i]})(1));var E=x&&x.getValue(),S=!Hn.und(w)&&a.animatedValues.some((function(e){return!e.done})),O=!Hn.equ(k,E),j=!Hn.equ(k,a.previous),C=!Hn.equ(g,a.config);if(f||j&&O||C){if(l||s)w=x=a.parent||new wr(v);else if(c)w=x=a.parent||new xr(v);else if(p){var N=a.interpolation&&a.interpolation.calc(a.parent.value);N=void 0===N||f?v:N,a.parent?(w=a.parent).setValue(0,!1):w=new wr(0);var T={output:[N,i]};a.interpolation?(x=a.interpolation,a.interpolation.updateConfig(T)):x=w.interpolate(T)}return _=Gn(h?y.getPayload():y),m=Gn(w.getPayload()),f&&!p&&w.setValue(v,!1),t.hasChanged=!0,m.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=S?e.lastVelocity:void 0,e.lastTime=S?e.lastTime:void 0,e.startTime=ar(),e.done=!1,e.animatedStyles.clear()})),$n(d,r)&&w.setValue(p?y:i,!1),Un({},e,b({},r,Un({},a,{name:r,parent:w,interpolation:x,animatedValues:m,toValues:_,previous:k,config:g,fromValues:Gn(w.getValue()),immediate:$n(d,r),initialVelocity:Wn(g.velocity,0),clamp:Wn(g.clamp,!1),precision:Wn(g.precision,.01),tension:Wn(g.tension,170),friction:Wn(g.friction,26),mass:Wn(g.mass,1),duration:g.duration,easing:Wn(g.easing,(function(e){return e})),decay:g.decay})))}return O?e:(p&&(w.setValue(1,!1),x.updateConfig({output:[k,k]})),w.done=!0,t.hasChanged=!0,Un({},e,b({},r,Un({},e[r],{previous:k}))))}),this.animations),this.hasChanged)for(var v in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[v]=this.animations[v].interpolation,this.values[v]=this.animations[v].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),Er=function(e,t){var n=(0,g.useRef)(!1),r=(0,g.useRef)(),o=Hn.fun(t),i=(0,g.useMemo)((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new kr,a=o?$n(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),a=i[0],l=i[1];r.current=a;(0,g.useImperativeHandle)(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var u=(0,g.useMemo)((function(){return function(e){return r.current.map((function(t,n){t.update(o?$n(e,n,t):e[n]),l||t.start()}))}}),[e]);(0,g.useEffect)((function(){n.current?o||u(t):l||r.current.forEach((function(e){return e.start()}))})),(0,g.useEffect)((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var s=r.current.map((function(e){return e.getValues()}));return o?[s,u,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:s};var Sr=function(e){u(n,e);var t=d(n);function n(e){var o;return r(this,n),void 0===e&&(e={}),o=t.call(this),!e.transform||e.transform instanceof Xn||(e=Qn.transform(e)),o.payload=e,o}return i(n)}(er),Or={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},jr="[-+]?\\d*\\.?\\d+",Cr=jr+"%";function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var Tr=new RegExp("rgb"+Nr(jr,jr,jr)),Pr=new RegExp("rgba"+Nr(jr,jr,jr,jr)),Ar=new RegExp("hsl"+Nr(jr,Cr,Cr)),Lr=new RegExp("hsla"+Nr(jr,Cr,Cr,jr)),Rr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dr=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ir=/^#([0-9a-fA-F]{6})$/,Mr=/^#([0-9a-fA-F]{8})$/;function qr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zr(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=qr(o,r,e+1/3),a=qr(o,r,e),l=qr(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function Fr(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function Br(e){return(parseFloat(e)%360+360)%360/360}function Ur(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Vr(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Hr(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ir.exec(e))?parseInt(t[1]+"ff",16)>>>0:Or.hasOwnProperty(e)?Or[e]:(t=Tr.exec(e))?(Fr(t[1])<<24|Fr(t[2])<<16|Fr(t[3])<<8|255)>>>0:(t=Pr.exec(e))?(Fr(t[1])<<24|Fr(t[2])<<16|Fr(t[3])<<8|Ur(t[4]))>>>0:(t=Rr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Mr.exec(e))?parseInt(t[1],16)>>>0:(t=Dr.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ar.exec(e))?(255|zr(Br(t[1]),Vr(t[2]),Vr(t[3])))>>>0:(t=Lr.exec(e))?(zr(Br(t[1]),Vr(t[2]),Vr(t[3]))|Ur(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,o=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(o,")")}var Kr=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wr=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Gr=new RegExp("(".concat(Object.keys(Or).join("|"),")"),"g"),$r={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yr=["Webkit","Ms","Moz","O"];function Qr(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}$r=Object.keys($r).reduce((function(e,t){return Yr.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),$r);var Zr={};fr((function(e){return new Sr(e)})),lr("div"),ir((function(e){var t=e.output.map((function(e){return e.replace(Wr,Hr)})).map((function(e){return e.replace(Gr,Hr)})),n=t[0].match(Kr).map((function(){return[]}));t.forEach((function(e){e.match(Kr).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Kr).map((function(t,r){return yr(Un({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Kr,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")}))}})),nr(Or),tr((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=Vn(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var s=0===u.indexOf("--"),c=Qr(u,n[u],s);"float"===u&&(u="cssFloat"),s?e.style.setProperty(u,c):e.style[u]=c}for(var f in a){var d=l?f:Zr[f]||(Zr[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));"undefined"!==typeof e.getAttribute(d)&&e.setAttribute(d,a[f])}}),(function(e){return e}));var Xr,Jr,eo=(Xr=function(e){return(0,g.forwardRef)((function(t,n){var r=Kn(),o=(0,g.useRef)(!0),i=(0,g.useRef)(null),a=(0,g.useRef)(null),l=(0,g.useCallback)((function(e){var t=i.current;i.current=new dr(e,(function(){var e=!1;a.current&&(e=Qn.fn(a.current,i.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);(0,g.useEffect)((function(){return function(){o.current=!1,i.current&&i.current.detach()}}),[]),(0,g.useImperativeHandle)(n,(function(){return cr(a,o,r)})),l(t);var u,s=i.current.getValue(),c=(s.scrollTop,s.scrollLeft,Vn(s,["scrollTop","scrollLeft"])),f=(u=e,!Hn.fun(u)||u.prototype instanceof g.Component?function(e){return a.current=function(e,t){return t&&(Hn.fun(t)?t(e):Hn.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return g.createElement(e,Un({},c,{ref:f}))}))},void 0===(Jr=!1)&&(Jr=!0),function(e){return(Hn.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Jr?t[0].toLowerCase()+t.substring(1):t;return e[n]=Xr(n),e}),Xr)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function to(e,t){return e.map((function(e,n){return e+t[n]}))}function no(e,t){return e.map((function(e,n){return e-t[n]}))}function ro(e){return Math.hypot.apply(Math,e)}function oo(e,t,n){var r=ro(t),o=0===r?0:1/r,i=0===n?0:1/n,a=i*r,l=t.map((function(e){return i*e})),u=t.map((function(e){return o*e}));return{velocities:l,velocity:a,distance:ro(e),direction:u}}function io(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function ao(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function lo(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-ao(t-e,n-t,r)+t:e>n?+ao(e-n,n-t,r)+n:e}function uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function so(){return so=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(this,arguments)}function co(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fo(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function po(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vo(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return ho(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ho(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function yo(){}function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?yo:1===t.length?t[0]:function(){for(var e,n,r=vo(t);!(n=r()).done;){var o=n.value;e=o.apply(this,arguments)||e}return e}}function mo(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function bo(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function wo(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],l=i[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=wo(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var xo={threshold:function(e){return void 0===e&&(e=0),mo(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return mo(.15);case!1:return mo(0);default:return mo(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"===typeof e?e:mo(e)}},_o=so({},xo,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"===typeof e)return function(t){return _o.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,a=t.top,l=void 0===a?-1/0:a,u=t.bottom;return[[r,i],[l,void 0===u?1/0:u]]}}),ko="undefined"!==typeof window&&window.document&&window.document.createElement,Eo={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=ko?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},So=so({},_o,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,a=void 0!==i&&i,l=n.axis,u=mo(e,o?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=o||u[0]+u[1]>0,u},swipeVelocity:function(e){return void 0===e&&(e=.5),mo(e)},swipeDistance:function(e){return void 0===e&&(e=60),mo(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function Oo(e){return void 0===e&&(e={}),wo(e,Eo)}function jo(e){return void 0===e&&(e={}),wo(e,So)}function Co(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=fo(e,["domTarget","eventOptions","window","enabled"]),a=Oo({domTarget:t,eventOptions:n,window:r,enabled:o});return a.drag=jo(i),a}function No(e){return so({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:yo,canceled:!1,memo:void 0,args:void 0},e)}function To(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:No({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:No({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:No({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:No({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:No({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var Po=new Map,Ao=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var o=so({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}var t,n,r,o=e.prototype;return o.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},o.updateGestureState=function(e){Object.assign(this.state,e)},o.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},o.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,o=t.rubberband,i=t.threshold,a=this.state,l=a._bounds,u=a._initial,s=a._active,c=a._intentional,f=a.lastOffset,d=a.movement,p=this.getInternalMovement(e,this.state),h=!1===c[0]?Lo(p[0],i[0]):c[0],v=!1===c[1]?Lo(p[1],i[1]):c[1],y=this.checkIntentionality([h,v],p);if(y._blocked)return so({},y,{_movement:p,delta:[0,0]});var g,m,b,w,x=y._intentional,_=p;(!1!==x[0]&&!1===c[0]&&(m=bo(n,this.state),g=bo(r,this.state),u[0]=m[0],l[0]=g[0]),!1!==x[1]&&!1===c[1])&&(m=null!=(b=m)?b:bo(n,this.state),g=null!=(w=g)?w:bo(r,this.state),u[1]=m[1],l[1]=g[1]);var k=[!1!==x[0]?p[0]-x[0]:u[0],!1!==x[1]?p[1]-x[1]:u[1]],E=to(k,f),S=s?o:[0,0];return k=Ro(l,to(k,u),S),so({},y,{intentional:!1!==x[0]||!1!==x[1],_initial:u,_movement:_,movement:k,values:e,offset:Ro(l,E,S),delta:no(k,d)})},o.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}])&&uo(t.prototype,n),r&&uo(t,r),e}();function Lo(e,t){return Math.abs(e)>=t&&io(e)*t}function Ro(e,t,n){var r=t[0],o=t[1],i=n[0],a=n[1],l=e[0],u=l[0],s=l[1],c=e[1],f=c[0],d=c[1];return[lo(r,u,s,i),lo(o,f,d,a)]}function Do(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:l}}function Io(e,t,n){var r=e.state.offset,o=n.timeStamp;return so({},To()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}function Mo(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,so({},t,{event:n})].concat(o))}}var qo=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,a=vo(t.classes);!(i=a()).done;){var l=i.value;new l(t,r).addBindings(e)}for(var u=0,s=Object.entries(t.nativeRefs);u<s.length;u++){var c=s[u],f=c[0],d=c[1];Ko(e,f,Mo(d,so({},t.state.shared,{args:r})))}return t.config.domTarget?Bo(t,e):Uo(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Ho(t.config),n=t.config.eventOptions;e&&Go(e,Vo(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){Go(n,o[i],r)}e.windowListeners={}}(t)},this.state=To(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function zo(e,t){var n=e.config,r=e.windowListeners;n.window&&(Go(n.window,r[t],n.eventOptions),delete r[t])}function Fo(e,t,n){var r=e.config,o=e.windowListeners;void 0===n&&(n=[]),r.window&&(Go(r.window,o[t],r.eventOptions),Wo(r.window,o[t]=n,r.eventOptions))}function Bo(e,t){var n=e.config,r=e.domListeners,o=Ho(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;Go(o,Vo(r),i);for(var a=0,l=Object.entries(t);a<l.length;a++){var u=l[a],s=u[0],c=u[1],f=s.slice(2).toLowerCase();r.push([f,go.apply(void 0,c)])}Wo(o,r,i)}function Uo(e,t){for(var n={},r=e.config.eventOptions.capture?"Capture":"",o=0,i=Object.entries(t);o<i.length;o++){var a=i[o],l=a[0],u=a[1],s=Array.isArray(u)?u:[u];n[l+r]=go.apply(void 0,s)}return n}function Vo(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Ho(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function Ko(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Wo(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=vo(t);!(r=o()).done;){var i=r.value,a=i[0],l=i[1];e.addEventListener(a,l,n)}}function Go(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=vo(t);!(r=o()).done;){var i=r.value,a=i[0],l=i[1];e.removeEventListener(a,l,n)}}function $o(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(Po.get("drag"));e.wheel&&t.add(Po.get("wheel"));e.scroll&&t.add(Po.get("scroll"));e.move&&t.add(Po.get("move"));e.pinch&&t.add(Po.get("pinch"));e.hover&&t.add(Po.get("hover"));return t}(e),o=g.useMemo((function(){return new qo(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,g.useEffect(o.effect,[]),o.config.domTarget?Yo:o.bind}function Yo(){0}var Qo=function(e){function t(){return e.apply(this,arguments)||this}co(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return no(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,oo(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(Ao);function Zo(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Xo(e){var t="buttons"in e?e.buttons:0,n=Zo(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function Jo(e){var t=Zo(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var ei=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(Fo(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"===typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(po(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=Xo(e);if(n.down){t.updateSharedState(n);var r=Jo(e),o=t.getKinematics(r,e),i=Do(po(t),e),a=t.state._isTap,l=ro(o._movement);a&&l>=3&&(a=!1),t.updateGestureState(so({},i,o,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,o=r[0],i=r[1],a=t.state.movement,l=a[0],u=a[1],s=t.state._intentional,c=s[0],f=s[1],d=t.config.swipeVelocity,p=d[0],h=d[1],v=t.config.swipeDistance,y=v[0],g=v[1],m=so({},Do(po(t),e),t.getMovement(t.state.values)),b=[0,0];m.elapsedTime<220&&(!1!==c&&Math.abs(o)>p&&Math.abs(l)>y&&(b[0]=io(o)),!1!==f&&Math.abs(i)>h&&Math.abs(u)>g&&(b[1]=io(i))),t.updateGestureState(so({},m,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(po(t)),t.state._delayedEvent=!1,zo(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}co(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Jo(e);this.updateSharedState(Xo(e)),this.updateGestureState(so({},Io(this,t,e),Do(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(Ko(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&Ko(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Qo);function ti(e,t){var n,r,o=[],i=!1;return function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return i&&n===this&&t(l,o)||(r=e.apply(this,l),i=!0,n=this,o=l),r}}function ni(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!==r--;)if(!ni(e[r],t[r]))return!1;return!0}if("function"===typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ni(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"===typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!==typeof Element&&e instanceof Element)return!1;for(r=n;0!==r--;)if(("_owner"!==o[r]||!e.$$typeof)&&!ni(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}function ri(e,t){try{return ni(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}var oi=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],ii=oi.join(","),ai="undefined"===typeof Element,li=ai?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ui=!ai&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},si=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(ii));return t&&li.call(e,ii)&&r.unshift(e),r=r.filter(n)},ci=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),u=e(l.length?l:a.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:a,candidates:u})}else{li.call(a,ii)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var s=a.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(a),c=!r.shadowRootFilter||r.shadowRootFilter(a);if(s&&c){var f=e(!0===s?a.children:s.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scope:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},fi=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},di=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},pi=function(e){return"INPUT"===e.tagName},hi=function(e){return function(e){return pi(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ui(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},vi=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},yi=function(e,t){return!(t.disabled||function(e){return pi(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=li.call(e,"details>summary:first-of-type")?e.parentElement:e;if(li.call(o,"details:not([open]) *"))return!0;var i=ui(e).host,a=(null===i||void 0===i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return vi(e)}else{if("function"===typeof r){for(var l=e;e;){var u=e.parentElement,s=ui(e);if(u&&!u.shadowRoot&&!0===r(u))return vi(e);e=e.assignedSlot?e.assignedSlot:u||s===e.ownerDocument?u:s.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){var t="DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}));return t}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!li.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},gi=function(e,t){return!(hi(t)||fi(t)<0||!yi(e,t))},mi=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},bi=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,a=i?t.scope:t,l=fi(a,i),u=i?e(t.candidates):a;0===l?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:u})})),r.sort(di).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},wi=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ci([e],t.includeContainer,{filter:gi.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:mi}):si(e,t.includeContainer,gi.bind(null,t)),bi(n)},xi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==li.call(e,ii)&&gi(t,e)},_i=oi.concat("iframe").join(","),ki=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==li.call(e,_i)&&yi(t,e)};function Ei(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 Si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ji=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),Ci=function(e){return setTimeout(e,0)},Ni=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Ti=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},Pi=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},Ai=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,o=Si({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},l=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},u=function(e){var t=o[e];if("function"===typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"===typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},s=function(){var e=u("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||u("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},c=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=wi(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?ci([t],n.includeContainer,{filter:yi.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):si(t,n.includeContainer,yi.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return xi(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return xi(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(t)&&t.select()):e(s()))},d=function(e){var t=u("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=Pi(e);l(t)>=0||(Ti(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!ki(t,o.tabbableOptions)}):Ti(o.allowOutsideClick,e)||e.preventDefault())},h=function(e){var t=Pi(e),n=l(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),f(i.mostRecentlyFocusedNode||s()))},v=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Ti(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Pi(e);c();var n=null;if(i.tabbableGroups.length>0){var r=l(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var s=Ni(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(s<0&&(a.container===t||ki(t,o.tabbableOptions)&&!xi(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(s=r),s>=0){var d=0===s?i.tabbableGroups.length-1:s-1;n=i.tabbableGroups[d].lastTabbableNode}}else{var p=Ni(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(a.container===t||ki(t,o.tabbableOptions)&&!xi(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(p=r),p>=0){var h=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[h].firstTabbableNode}}}else n=u("fallbackFocus");n&&(e.preventDefault(),f(n))}(e)},y=function(e){var t=Pi(e);l(t)>=0||Ti(o.clickOutsideDeactivates,e)||Ti(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},g=function(){if(i.active)return ji.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?Ci((function(){f(s())})):f(s()),r.addEventListener("focusin",h,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",y,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),n},m=function(){if(i.active)return r.removeEventListener("focusin",h,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",v,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||c(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){o&&c(),g(),n&&n()};return o?(o(i.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!i.active)return this;var t=Si({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,m(),i.active=!1,i.paused=!1,ji.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),u=a(t,"checkCanReturnFocus"),s=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var c=function(){Ci((function(){s&&f(d(i.nodeFocusedBeforeActivation)),l&&l()}))};return s&&u?(u(d(i.nodeFocusedBeforeActivation)).then(c,c),this):(c(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,m()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,c(),g(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),i.active&&c(),this}}).updateContainerElements(e),n};var Li=!1;if("undefined"!==typeof window){var Ri={get passive(){Li=!0}};window.addEventListener("testPassive",null,Ri),window.removeEventListener("testPassive",null,Ri)}var Di,Ii="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Mi=[],qi=!1,zi=-1,Fi=void 0,Bi=void 0,Ui=function(e){return Mi.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Vi=function(e){var t=e||window.event;return!!Ui(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},Hi=function(){void 0!==Bi&&(document.body.style.paddingRight=Bi,Bi=void 0),void 0!==Fi&&(document.body.style.overflow=Fi,Fi=void 0)},Ki=function(e,t){if(e){if(!Mi.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Mi=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Mi),[n]),Ii?(e.ontouchstart=function(e){1===e.targetTouches.length&&(zi=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-zi;!Ui(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Vi(e):e.stopPropagation())}(t,e)},qi||(document.addEventListener("touchmove",Vi,Li?{passive:!1}:void 0),qi=!0)):function(e){if(void 0===Bi){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Bi=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Fi&&(Fi=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Wi=[],Gi="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Di||(Di={}));var $i,Yi=function(e){return Object.freeze(e)},Qi=function(e,t){this.inlineSize=e,this.blockSize=t,Yi(this)},Zi=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Yi(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Xi=function(e){return e instanceof SVGElement&&"getBBox"in e},Ji=function(e){if(Xi(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},ea=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},ta="undefined"!==typeof window?window:{},na=new WeakMap,ra=/auto|scroll/,oa=/^tb|vertical/,ia=/msie|trident/i.test(ta.navigator&&ta.navigator.userAgent),aa=function(e){return parseFloat(e||"0")},la=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Qi((n?t:e)||0,(n?e:t)||0)},ua=Yi({devicePixelContentBoxSize:la(),borderBoxSize:la(),contentBoxSize:la(),contentRect:new Zi(0,0,0,0)}),sa=function(e,t){if(void 0===t&&(t=!1),na.has(e)&&!t)return na.get(e);if(Ji(e))return na.set(e,ua),ua;var n=getComputedStyle(e),r=Xi(e)&&e.ownerSVGElement&&e.getBBox(),o=!ia&&"border-box"===n.boxSizing,i=oa.test(n.writingMode||""),a=!r&&ra.test(n.overflowY||""),l=!r&&ra.test(n.overflowX||""),u=r?0:aa(n.paddingTop),s=r?0:aa(n.paddingRight),c=r?0:aa(n.paddingBottom),f=r?0:aa(n.paddingLeft),d=r?0:aa(n.borderTopWidth),p=r?0:aa(n.borderRightWidth),h=r?0:aa(n.borderBottomWidth),v=f+s,y=u+c,g=(r?0:aa(n.borderLeftWidth))+p,m=d+h,b=l?e.offsetHeight-m-e.clientHeight:0,w=a?e.offsetWidth-g-e.clientWidth:0,x=o?v+g:0,_=o?y+m:0,k=r?r.width:aa(n.width)-x-w,E=r?r.height:aa(n.height)-_-b,S=k+v+w+g,O=E+y+b+m,j=Yi({devicePixelContentBoxSize:la(Math.round(k*devicePixelRatio),Math.round(E*devicePixelRatio),i),borderBoxSize:la(S,O,i),contentBoxSize:la(k,E,i),contentRect:new Zi(f,u,k,E)});return na.set(e,j),j},ca=function(e,t,n){var r=sa(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Di.DEVICE_PIXEL_CONTENT_BOX:return a;case Di.BORDER_BOX:return o;default:return i}},fa=function(e){var t=sa(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Yi([t.borderBoxSize]),this.contentBoxSize=Yi([t.contentBoxSize]),this.devicePixelContentBoxSize=Yi([t.devicePixelContentBoxSize])},da=function(e){if(Ji(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},pa=function(){var e=1/0,t=[];Wi.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new fa(t.target),o=da(t.target);r.push(n),t.lastReportedSize=ca(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},ha=function(e){Wi.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(da(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},va=function(){var e=0;for(ha(e);Wi.some((function(e){return e.activeTargets.length>0}));)e=pa(),ha(e);return Wi.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:Gi}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Gi),window.dispatchEvent(e)}(),e>0},ya=[],ga=function(e){if(!$i){var t=0,n=document.createTextNode("");new MutationObserver((function(){return ya.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),$i=function(){n.textContent=""+(t?t--:t++)}}ya.push(e),$i()},ma=0,ba={attributes:!0,characterData:!0,childList:!0,subtree:!0},wa=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],xa=function(e){return void 0===e&&(e=0),Date.now()+e},_a=!1,ka=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!_a){_a=!0;var n,r=xa(e);n=function(){var n=!1;try{n=va()}finally{if(_a=!1,e=r-xa(),!ma)return;n?t.run(1e3):e>0?t.run(e):t.start()}},ga((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ba)};document.body?t():ta.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wa.forEach((function(t){return ta.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),wa.forEach((function(t){return ta.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),Ea=new ka,Sa=function(e){!ma&&e>0&&Ea.start(),!(ma+=e)&&Ea.stop()},Oa=function(){function e(e,t){this.target=e,this.observedBox=t||Di.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=ca(this.target,this.observedBox,!0);return function(e){return!Xi(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),ja=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Ca=new WeakMap,Na=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ta=function(){function e(){}return e.connect=function(e,t){var n=new ja(e,t);Ca.set(e,n)},e.observe=function(e,t,n){var r=Ca.get(e),o=0===r.observationTargets.length;Na(r.observationTargets,t)<0&&(o&&Wi.push(r),r.observationTargets.push(new Oa(t,n&&n.box)),Sa(1),Ea.schedule())},e.unobserve=function(e,t){var n=Ca.get(e),r=Na(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&Wi.splice(Wi.indexOf(n),1),n.observationTargets.splice(r,1),Sa(-1))},e.disconnect=function(e){var t=this,n=Ca.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Pa=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ta.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ea(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ta.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ea(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ta.unobserve(this,e)},e.prototype.disconnect=function(){Ta.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Aa=function(e){return{type:zt,assignment:e}};function La(e){if("string"===typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Ra(e){return Ie(Ie({type:Ut},e),{toJSON:function(){e.onDone,e.onError;var t=Me(e,["onDone","onError"]);return Ie(Ie({},t),{type:Ut,src:La(e.src)})}})}var Da="",Ia="*",Ma={},qa=function(e){return"#"===e[0]},za=function(){function e(t,n,r,o){var i,a=this;void 0===r&&(r="context"in t?t.context:void 0),this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null===o||void 0===o?void 0:o.parent,this.key=this.config.key||(null===o||void 0===o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||Fe([this.machine.key],ze(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?Ye(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Ie(((r={})[o.id]=o,r),o.idMap)),o})):Ma;var l=0;!function e(t){var n,r;t.order=l++;try{for(var o=qe(Et(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===Da})):Da in this.config.on),this.strict=!!this.config.strict,this.onEntry=tt(this.config.entry||this.config.onEntry).map((function(e){return Qt(e)})),this.onExit=tt(this.config.exit||this.config.onExit).map((function(e){return Qt(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=tt(this.config.invoke).map((function(e,t){var n,r;if(pt(e)){var o=wt(a.id,t);return a.machine.options.services=Ie(((n={})[o]=e,n),a.machine.options.services),Ra({src:o,id:o})}if(ct(e.src)){o=e.id||wt(a.id,t);return Ra(Ie(Ie({},e),{id:o,src:e.src}))}if(pt(e.src)||st(e.src)){o=e.id||wt(a.id,t);return a.machine.options.services=Ie(((r={})[o]=e.src,r),a.machine.options.services),Ra(Ie(Ie({id:o},e),{src:o}))}var i=e.src;return Ra(Ie(Ie({id:wt(a.id,t)},e),{src:i}))})),this.activities=tt(this.config.activities).concat(this.invoke).map((function(e){return Xt(e)})),this.transition=this.transition.bind(this),this.tags=tt(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||St(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,a=r.guards,l=r.services,u=r.delays;return new e(this.config,{actions:Ie(Ie({},o),t.actions),activities:Ie(Ie({},i),t.activities),guards:Ie(Ie({},a),t.guards),services:Ie(Ie({},l),t.services),delays:Ie(Ie({},u),t.delays)},null!==n&&void 0!==n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return st(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Ye(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===Da,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===Ia}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(xt.After,"(").concat(e,")").concat(n)}(st(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(en(r,{delay:t})),e.onExit.push({type:Mt,sendId:r}),r},r=ut(t)?t.map((function(e,t){var r=n(e.delay,t);return Ie(Ie({},e),{event:r})})):Je(Object.keys(t).map((function(e,r){var o=t[e],i=ct(o)?{target:o}:o,a=isNaN(+e)?e:+e,l=n(a,r);return tt(i).map((function(e){return Ie(Ie({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return Ie(Ie({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof un?e.value:Ge(e,this.delimiter);if(ct(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),a=[this];return a.push.apply(a,Fe([],ze(Je(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Ke(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof un?e:un.create(e),n=Array.from(Ot([],this.getStateNodes(t.value)));return new un(Ie(Ie({},t),{value:this.resolve(t.value),configuration:n,done:Pt(n,this),tags:At(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var a=qe(Object.keys(e)),l=a.next();!l.done;l=a.next()){var u=l.value,s=e[u];if(s){var c=this.getStateNode(u)._transition(s,t,n);c&&(i[u]=c)}}}catch(v){r={error:v}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}var f=Object.keys(i).map((function(e){return i[e]})),d=Je(f.map((function(e){return e.transitions})));if(!f.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=Je(f.map((function(e){return e.entrySet}))),h=Je(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:d,entrySet:p,exitSet:Je(f.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Je(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return ct(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,vt(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,l=[],u=[];try{for(var s=qe(this.getCandidates(a)),c=s.next();!c.done;c=s.next()){var f=c.value,d=f.cond,p=f.in,h=e.context,v=!p||(ct(p)&&qa(p)?e.matches(Ge(this.getStateNodeById(p).path,this.delimiter)):He(Ge(p,this.delimiter),Ze(this.path.slice(0,-2))(e.value))),y=!1;try{y=!d||gt(this.machine,d,h,t,e)}catch(b){throw new Error("Unable to evaluate guard '".concat(d.name||d.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(b.message))}if(y&&v){void 0!==f.target&&(u=f.target),l.push.apply(l,Fe([],ze(f.actions),!1)),o=f;break}}}catch(w){n={error:w}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(o){if(!u.length)return{transitions:[o],entrySet:[],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var g=Je(u.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)}))),m=!!o.internal;return{transitions:[o],entrySet:m?[]:Je(g.map((function(e){return i.nodesFromChild(e)}))),exitSet:m?[]:[this],configuration:g,source:e,actions:l}}},e.prototype.nodesFromChild=function(e){if(e.escapes(this))return[];for(var t=[],n=e;n&&n!==this;)t.push(n),n=n.parent;return t.push(this),t},e.prototype.escapes=function(e){if(this===e)return!1;for(var t=this.parent;t;){if(t===e)return!1;t=t.parent}return!0},e.prototype.getActions=function(e,t,n,r){var o,i,a,l,u=Ot([],r?this.getStateNodes(r.value):[this]),s=e.configuration.length?Ot(u,e.configuration):u;try{for(var c=qe(s),f=c.next();!f.done;f=c.next()){Tt(u,h=f.value)||e.entrySet.push(h)}}catch(x){o={error:x}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}try{for(var d=qe(u),p=d.next();!p.done;p=d.next()){var h;Tt(s,h=p.value)&&!Tt(e.exitSet,h.parent)||e.exitSet.push(h)}}catch(_){a={error:_}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(a)throw a.error}}var v=Je(e.entrySet.map((function(r){var o=[];if("final"!==r.type)return o;var i=r.parent;if(!i.parent)return o;o.push(tn(r.id,r.doneData),tn(i.id,r.doneData?nt(r.doneData,t,n):void 0));var a=i.parent;return"parallel"===a.type&&Et(a).every((function(t){return Pt(e.configuration,t)}))&&o.push(tn(a.id)),o})));e.exitSet.sort((function(e,t){return t.order-e.order})),e.entrySet.sort((function(e,t){return e.order-t.order}));var y=new Set(e.entrySet),g=new Set(e.exitSet),m=ze([Je(Array.from(y).map((function(e){return Fe(Fe([],ze(e.activities.map((function(e){return function(e){var t=Xt(e);return{type:xt.Start,activity:t,exec:void 0}}(e)}))),!1),ze(e.onEntry),!1)}))).concat(v.map(Jt)),Je(Array.from(g).map((function(e){return Fe(Fe([],ze(e.onExit),!1),ze(e.activities.map((function(e){return function(e){var t=st(e)?e:Xt(e);return{type:xt.Stop,activity:t,exec:void 0}}(e)}))),!1)})))],2),b=m[0],w=m[1];return Zt(w.concat(e.actions).concat(b),this.machine.options.actions)},e.prototype.transition=function(e,t,n){void 0===e&&(e=this.initialState);var r,o,i=vt(t);if(e instanceof un)r=void 0===n?e:this.resolveState(un.from(e,n));else{var a=ct(e)?this.resolve($e(this.getResolvedPath(e))):this.resolve(e),l=null!==n&&void 0!==n?n:this.machine.context;r=this.resolveState(un.from(a,l))}if(this.strict&&!this.events.includes(i.name)&&(o=i.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var u=this._transition(r.value,r,i)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:r,actions:[]},s=Ot([],this.getStateNodes(r.value)),c=u.configuration.length?Ot(s,u.configuration):s;return u.configuration=Fe([],ze(c),!1),this.resolveTransition(u,r,r.context,i)},e.prototype.resolveRaisedTransition=function(e,t,n){var r,o=e.actions;return(e=this.transition(e,t))._event=n,e.event=n.data,(r=e.actions).unshift.apply(r,Fe([],ze(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r){var o,i,a=this;void 0===r&&(r=$t);var l=e.configuration,u=!t||e.transitions.length>0,s=u?Nt(this.machine,l):void 0,c=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,f=this.getActions(e,n,r,t),d=t?Ie({},t.activities):{};try{for(var p=qe(f),h=p.next();!h.done;h=p.next()){var v=h.value;v.type===Lt?d[v.activity.id||v.activity.type]=v:v.type===Rt&&(d[v.activity.id||v.activity.type]=!1)}}catch(D){o={error:D}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}var y,g,m=ze(on(this,t,n,r,f,this.machine.config.preserveActionOrder),2),b=m[0],w=m[1],x=ze(ot(b,(function(e){return e.type===Dt||e.type===It&&e.to===_t.Internal})),2),_=x[0],k=x[1],E=b.filter((function(e){var t;return e.type===Lt&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Ut})),S=E.reduce((function(e,t){return e[t.activity.id]=vn(t.activity,a.machine,w,r),e}),t?Ie({},t.children):{}),O=u?e.configuration:t?t.configuration:[],j=Pt(O,this),C=new un({value:s||t.value,context:w,_event:r,_sessionid:t?t._sessionid:null,historyValue:s?c?(y=c,g=s,{current:g,states:it(y,g)}):void 0:t?t.historyValue:void 0,history:!s||e.source?t:void 0,actions:s?k:[],activities:s?d:t?t.activities:{},events:[],configuration:O,transitions:e.transitions,children:S,done:j,tags:At(O),machine:this}),N=n!==w;C.changed=r.name===Kt||N;var T=C.history;T&&delete T.history;var P=!j&&(this._transient||l.some((function(e){return e._transient})));if(!u&&(!P||r.name===Da))return C;var A=C;if(!j)for(P&&(A=this.resolveRaisedTransition(A,{type:qt},r));_.length;){var L=_.shift();A=this.resolveRaisedTransition(A,L._event,r)}var R=A.changed||(T?!!A.actions.length||N||typeof T.value!==typeof A.value||!an(A.value,T.value):void 0);return A.changed=R,A.history=T,A},e.prototype.getStateNode=function(e){if(qa(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=qa(e)?e.slice("#".length):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"===typeof e&&qa(e))try{return this.getStateNodeById(e.slice(1))}catch(o){}for(var t=We(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||Ma;switch(this.type){case"parallel":return Ye(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):Ma}));case"compound":if(ct(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Ye(e,(function(e,t){return e?n.getStateNode(t).resolve(e):Ma})):this.initialStateValue||{};default:return e||Ma}},e.prototype.getResolvedPath=function(e){if(qa(e)){var t=this.machine.idMap[e.slice("#".length)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return We(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=Qe(this.states,(function(e){return e.initialStateValue||Ma}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=kt(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!==t&&void 0!==t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=ct(t.target)&&qa(t.target)?$e(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return kt(this)?[this]:"compound"!==this.type||this.initial?Je(Xe(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):[this]},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=ze(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:Qe(this.states,(function(t,n){if(!e)return t.historyValue();var r=ct(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?Je(Xe(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,a=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var a=qe(o),l=a.next();!l.done;l=a.next()){var u=l.value;r=r[i][u]}}catch(s){t={error:s}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return ct(a)?[n.getStateNode(a)]:Je(Xe(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=Je(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var a=qe(Object.keys(o)),l=a.next();!l.done;l=a.next()){var u=o[l.value];if(u.states)try{for(var s=(n=void 0,qe(u.events)),c=s.next();!c.done;c=s.next()){var f=c.value;i.add("".concat(f))}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!ct(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(o){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(o.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return tt(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return ct(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=Ie(Ie({},e),{actions:Zt(tt(e.actions)),cond:ft(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return Ie(Ie({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=Ia,a=o[i],l=void 0===a?[]:a,u=Me(o,["*"]);n=Je(Object.keys(u).map((function(e){var t=yt(e,u[e]);return t})).concat(yt(Ia,l)))}else n=[];var s=this.config.always?yt("",this.config.always):[],c=this.config.onDone?yt(String(tn(this.id)),this.config.onDone):[];var f=Je(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Fe([],ze(yt(String(nn(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Fe([],ze(yt(String(rn(e.id)),e.onError)),!1)),t}))),d=this.after,p=Je(Fe(Fe(Fe(Fe([],ze(c),!1),ze(f),!1),ze(n),!1),ze(s),!1).map((function(e){return tt(e).map((function(e){return r.formatTransition(e)}))})));try{for(var h=qe(d),v=h.next();!v.done;v=h.next()){var y=v.value;p.push(y)}}catch(g){e={error:g}}finally{try{v&&!v.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return p},e}();function Fa(){return Fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fa.apply(this,arguments)}function Ba(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var Ua="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function Va(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function Ha(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var Ka={box:"border-box"};function Wa(e,t){var n=t.label,r=t.enabled,o=t.resizeSourceRef,i=(0,g.useState)(0),a=i[0],l=i[1];(0,g.useDebugValue)(n+": "+a);var u=(0,g.useCallback)((function(e){l(e[0].borderBoxSize[0].blockSize),o.current="element"}),[o]);return Ua((function(){if(e.current&&r){var t=new Pa(u);return t.observe(e.current,Ka),function(){t.disconnect()}}}),[e,u,r]),r?a:0}function Ga(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var $a={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Ya={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Qa=function(e,t,n){return void 0===n&&(n=e.context),new za(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Fa({},$a,Ya)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Fa({},$a,Ya)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Fa({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[Aa({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(Ga()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),Za=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Xa=["velocity"],Ja=["onRest","config"],el={tension:170,friction:26},tl=el.tension,nl=el.friction,rl=g.forwardRef((function(e,t){var n=e.children,r=e.sibling,o=e.className,i=e.footer,a=e.header,l=e.open,u=e.initialState,s=e.lastSnapRef,c=e.initialFocusRef,f=e.onDismiss,d=e.maxHeight,p=e.defaultSnap,h=void 0===p?il:p,v=e.snapPoints,y=void 0===v?al:v,m=e.blocking,b=void 0===m||m,w=e.scrollLocking,x=void 0===w||w,_=e.style,k=e.onSpringStart,E=e.onSpringCancel,S=e.onSpringEnd,O=e.reserveScrollBarGap,j=void 0===O?b:O,C=e.expandOnContentDrag,N=void 0!==C&&C,T=Ba(e,Za),P=function(){var e=(0,g.useState)(!1),t=e[0],n=e[1],r=(0,g.useState)({}),o=r[0],i=r[1],a=(0,g.useCallback)((function(e){return i((function(t){var n;return Fa({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return Fa({},t,((n={})[e]=!0,n))}))}}),[]);return(0,g.useEffect)((function(){var e=Object.values(o);0!==e.length&&e.every(Boolean)&&n(!0)}),[o]),{ready:t,registerReady:a}}(),A=P.ready,L=P.registerReady,R=(0,g.useRef)(!1),D=(0,g.useRef)(k),I=(0,g.useRef)(E),M=(0,g.useRef)(S);(0,g.useEffect)((function(){D.current=k,I.current=E,M.current=S}),[E,k,S]);var q,z,F=function(e){var t=Hn.fun(e),n=Er(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r}((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=F[0],U=F[1],V=(0,g.useRef)(null),H=(0,g.useRef)(null),K=(0,g.useRef)(null),W=(0,g.useRef)(null),G=(0,g.useRef)(null),$=(0,g.useRef)(null),Y=(0,g.useRef)(0),Q=(0,g.useRef)(),Z=(0,g.useRef)(!1),X=(q=(0,g.useMemo)((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),z=(0,g.useRef)(null==q?void 0:q.matches),(0,g.useDebugValue)(z.current?"reduce":"no-preference"),(0,g.useEffect)((function(){var e=function(e){z.current=e.matches};return null==q||q.addListener(e),function(){return null==q?void 0:q.removeListener(e)}}),[q]),z),J=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,o=(0,g.useRef)({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return(0,g.useDebugValue)(n?"Enabled":"Disabled"),(0,g.useEffect)((function(){if(!n)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1;o.current={activate:function(){i||(i=!0,Ki(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){var t;i&&(i=!1,(t=e)?(Mi=Mi.filter((function(e){return e.targetElement!==t})),Ii?(t.ontouchstart=null,t.ontouchmove=null,qi&&0===Mi.length&&(document.removeEventListener("touchmove",Vi,Li?{passive:!1}:void 0),qi=!1)):Mi.length||Hi()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."))}}}),[n,t,r]),o}({targetRef:H,enabled:A&&x,reserveScrollBarGap:j}),ee=function(e){var t=e.targetRef,n=e.enabled,r=(0,g.useRef)({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return(0,g.useDebugValue)(n?"Enabled":"Disabled"),(0,g.useEffect)((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1,i=[],a=[];r.current={activate:function(){if(!o){o=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){o&&(o=!1,a.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],a=[])}}}),[t,n]),r}({targetRef:V,enabled:A&&b}),te=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,o=e.enabled,i=(0,g.useRef)({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return(0,g.useDebugValue)(o?"Enabled":"Disabled"),(0,g.useEffect)((function(){if(!o)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Ai(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;i.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[o,n,r,t]),i}({targetRef:V,fallbackRef:$,initialFocusRef:c||void 0,enabled:A&&b&&!1!==c}),ne=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,o=e.ready,i=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,o=e.footerRef,i=e.headerEnabled,a=e.headerRef,l=e.registerReady,u=e.resizeSourceRef,s=(0,g.useMemo)((function(){return l("contentHeight")}),[l]),c=function(e,t,n){var r=(0,g.useMemo)((function(){return t("maxHeight")}),[t]),o=(0,g.useState)((function(){return Ha(e)||"undefined"!=typeof window?window.innerHeight:0})),i=o[0],a=o[1],l=i>0,u=(0,g.useRef)(0);return(0,g.useDebugValue)(e?"controlled":"auto"),(0,g.useEffect)((function(){l&&r()}),[l,r]),Ua((function(){if(e)return a(Ha(e)),void(n.current="maxheightprop");var t=function(){u.current||(u.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",u.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(u.current)}}),[e,r,n]),i}(n,l,u),f=Wa(a,{label:"headerHeight",enabled:i,resizeSourceRef:u}),d=Wa(t,{label:"contentHeight",enabled:!0,resizeSourceRef:u}),p=Wa(o,{label:"footerHeight",enabled:r,resizeSourceRef:u}),h=Math.min(c-f-p,d)+f+p;(0,g.useDebugValue)("minHeight: "+h);var v=d>0;return(0,g.useEffect)((function(){v&&s()}),[v,s]),{maxHeight:c,minHeight:h,headerHeight:f,footerHeight:p}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=i.maxHeight,l=i.minHeight,u=i.headerHeight,s=i.footerHeight,c=function(e,t){var n=[].concat(e).map(Ha).reduce((function(e,n){return e.add(Va(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(o?t({height:n.current,footerHeight:s,headerHeight:u,minHeight:l,maxHeight:a}):[0],a),f=c.snapPoints,d=c.minSnap,p=c.maxSnap;return(0,g.useDebugValue)("minSnap: "+d+", maxSnap:"+p),{minSnap:d,maxSnap:p,findSnap:function(e){var t=Ha("function"==typeof e?e({footerHeight:s,headerHeight:u,height:n.current,minHeight:l,maxHeight:a,snapPoints:f,lastSnap:r.current}):e);return f.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),d)},maxHeight:a}}({contentRef:K,controlledMaxHeight:d,footerEnabled:!!i,footerRef:G,getSnapPoints:y,headerEnabled:!1!==a,headerRef:W,heightRef:Y,lastSnapRef:s,ready:A,registerReady:L,resizeSourceRef:Q}),re=ne.minSnap,oe=ne.maxSnap,ie=ne.maxHeight,ae=ne.findSnap,le=(0,g.useRef)(ie),ue=(0,g.useRef)(re),se=(0,g.useRef)(oe),ce=(0,g.useRef)(ae),fe=(0,g.useRef)(0);Ua((function(){le.current=ie,se.current=oe,ue.current=re,ce.current=ae,fe.current=ae(h)}),[ae,h,ie,oe,re]);var de=(0,g.useCallback)((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=Ba(n,Xa),a=Ba(e,Ja);return new Promise((function(e){return U(Fa({},a,{config:Fa({velocity:o},i,{mass:1,tension:tl,friction:Math.max(nl,nl+(nl-nl*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[U]),pe=Fn(Qa,{devTools:!1,actions:{onOpenCancel:(0,g.useCallback)((function(){return null==I.current?void 0:I.current({type:"OPEN"})}),[]),onSnapCancel:(0,g.useCallback)((function(e){return null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:(0,g.useCallback)((function(){return null==I.current?void 0:I.current({type:"CLOSE"})}),[]),onResizeCancel:(0,g.useCallback)((function(){return null==I.current?void 0:I.current({type:"RESIZE",source:Q.current})}),[]),onOpenEnd:(0,g.useCallback)((function(){return null==M.current?void 0:M.current({type:"OPEN"})}),[]),onSnapEnd:(0,g.useCallback)((function(e,t){return null==M.current?void 0:M.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:(0,g.useCallback)((function(){return null==M.current?void 0:M.current({type:"RESIZE",source:Q.current})}),[])},context:{initialState:u},services:{onSnapStart:(0,g.useCallback)((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:(0,g.useCallback)((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:(0,g.useCallback)((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:(0,g.useCallback)((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Q.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:(0,g.useCallback)((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:(0,g.useCallback)((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:(0,g.useCallback)((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:(0,g.useCallback)((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:Q.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:(0,g.useCallback)((function(e,t){try{return Promise.resolve(de({y:fe.current,ready:0,maxHeight:le.current,maxSnap:se.current,minSnap:fe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[de]),activate:(0,g.useCallback)((function(e,t){try{return R.current=!0,Promise.resolve(Promise.all([J.current.activate(),te.current.activate(),ee.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[ee,te,J]),deactivate:(0,g.useCallback)((function(){try{return J.current.deactivate(),te.current.deactivate(),ee.current.deactivate(),R.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[ee,te,J]),openImmediately:(0,g.useCallback)((function(){try{return Y.current=fe.current,Promise.resolve(de({y:fe.current,ready:1,maxHeight:le.current,maxSnap:se.current,minSnap:fe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[de]),openSmoothly:(0,g.useCallback)((function(){try{return Promise.resolve(de({y:0,ready:1,maxHeight:le.current,maxSnap:se.current,minSnap:fe.current,immediate:!0})).then((function(){return Y.current=fe.current,Promise.resolve(de({y:fe.current,ready:1,maxHeight:le.current,maxSnap:se.current,minSnap:fe.current,immediate:X.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[de,X]),snapSmoothly:(0,g.useCallback)((function(e,t){try{var n=ce.current(e.y);return Y.current=n,s.current=n,Promise.resolve(de({y:n,ready:1,maxHeight:le.current,maxSnap:se.current,minSnap:ue.current,immediate:X.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[de,s,X]),resizeSmoothly:(0,g.useCallback)((function(){try{var e=ce.current(Y.current);return Y.current=e,s.current=e,Promise.resolve(de({y:e,ready:1,maxHeight:le.current,maxSnap:se.current,minSnap:ue.current,immediate:"element"!==Q.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[de,s,X]),closeSmoothly:(0,g.useCallback)((function(e,t){try{return de({minSnap:Y.current,immediate:!0}),Y.current=0,Promise.resolve(de({y:0,maxHeight:le.current,maxSnap:se.current,immediate:X.current})).then((function(){return Promise.resolve(de({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[de,X])}}),he=pe[0],ve=pe[1];(0,g.useEffect)((function(){A&&ve(l?"OPEN":"CLOSE")}),[l,ve,A]),Ua((function(){(ie||oe||re)&&ve("RESIZE")}),[ie,oe,re,ve]),(0,g.useEffect)((function(){return function(){J.current.deactivate(),te.current.deactivate(),ee.current.deactivate()}}),[ee,te,J]),(0,g.useImperativeHandle)(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,a=void 0===i?"custom":i;ve("SNAP",{payload:{y:ce.current(e),velocity:o,source:a}})},get height(){return Y.current}}}),[ve]),(0,g.useEffect)((function(){var e=H.current,t=function(e){Z.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return N&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[N,H]);var ye=function(e,t){void 0===t&&(t={}),Po.set("drag",ei);var n=(0,g.useRef)();return n.current||(n.current=ti(Co,ri)),$o({drag:e},n.current(t))}((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,a=void 0!==i&&i,l=e.cancel,u=e.direction[1],s=e.down,c=e.first,d=e.last,p=e.memo,h=void 0===p?B.y.getValue():p,v=e.tap,y=e.velocity,g=-1*e.movement[1];if(!R.current)return l(),h;if(f&&o&&v)return l(),setTimeout((function(){return f()}),0),h;if(v)return h;var m=h+g,b=g*y,w=Math.max(ue.current,Math.min(se.current,m+2*b));if(!s&&f&&u>0&&m+b<ue.current/2)return l(),f(),h;var x=s?f||ue.current!==se.current?lo(m,f?0:ue.current,se.current,.55):m<ue.current?lo(m,ue.current,2*se.current,.55):lo(m,ue.current/2,se.current,.55):w;return N&&a?(x>=se.current&&(x=se.current),h===se.current&&H.current.scrollTop>0&&(x=se.current),Z.current=x<se.current):Z.current=!1,c&&ve("DRAG"),d?(ve("SNAP",{payload:{y:x,velocity:y>.05?y:1,source:"dragging"}}),h):(U({y:x,ready:1,maxHeight:le.current,maxSnap:se.current,minSnap:ue.current,immediate:!0,config:{velocity:y}}),h)}),{filterTaps:!0});if(Number.isNaN(se.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ue.current))throw new TypeError("minSnapRef is NaN!!");var ge=function(e){var t,n=e.spring,r=mr([n.y,n.maxHeight],(function(e,t){return Math.round(Va(t-e,0,16))+"px"})),o=mr([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Va(e,t,n)+"px"})),i=mr([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=mr([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=mr([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Va((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),u=mr([n.y,n.minSnap],(function(e,t){return t?Va(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=u,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return g.createElement(eo.div,Fa({},T,{"data-rsbs-root":!0,"data-rsbs-state":ol.find(he.matches),"data-rsbs-is-blocking":b,"data-rsbs-is-dismissable":!!f,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!i,className:o,ref:V,style:Fa({},ge,_,{opacity:B.ready})}),r,b&&g.createElement("div",Fa({key:"backdrop","data-rsbs-backdrop":!0},ye({closeOnTap:!0}))),g.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:$,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),f&&f())}},!1!==a&&g.createElement("div",Fa({key:"header","data-rsbs-header":!0,ref:W},ye()),a),g.createElement("div",Fa({key:"scroll","data-rsbs-scroll":!0,ref:H},N?ye({isContentDragging:!0}):{}),g.createElement("div",{"data-rsbs-content":!0,ref:K},n)),i&&g.createElement("div",Fa({key:"footer",ref:G,"data-rsbs-footer":!0},ye()),i)))})),ol=["closed","opening","open","closing","dragging","snapping","resizing"];function il(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function al(e){return e.minHeight}var ll=["onSpringStart","onSpringEnd","skipInitialTransition"],ul=(0,g.forwardRef)((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=Ba(e,ll),a=(0,g.useState)(!1),l=a[0],u=a[1],s=(0,g.useRef)(),c=(0,g.useRef)(null),f=(0,g.useRef)(o&&i.open?"OPEN":"CLOSED");Ua((function(){if(i.open)return cancelAnimationFrame(s.current),u(!0),function(){f.current="CLOSED"}}),[i.open]);var d=(0,g.useCallback)((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(s.current)}))}),[n]),p=(0,g.useCallback)((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(s.current=requestAnimationFrame((function(){return u(!1)})))}))}),[r]);return l?g.createElement(De,{"data-rsbs-portal":!0},g.createElement(rl,Fa({},i,{lastSnapRef:c,ref:t,initialState:f.current,onSpringStart:d,onSpringEnd:p}))):null})),sl=function(){var e=Ee((function(e){return e})),t=E((0,g.useState)([]),2),n=t[0],r=t[1],o=ke((function(e){return e.infoObject})),i=ke((function(e){return e.infoModalOpen})),a=E((0,g.useState)(0),2),l=a[0],u=a[1],s=E((0,g.useState)(!1),2),c=s[0],f=s[1],d=E((0,g.useState)({}),2),p=(d[0],d[1]),h=E((0,g.useState)(!1),2),v=h[0],y=h[1],m=ke((function(e){return e.populateInfoObject})),b=ke((function(e){return e.updateInfoModalOpen}));function w(e){if(C.current.scrollLeft!==e){var t,n,r,o=!1;window.requestAnimationFrame((function i(a){void 0===t&&(t=a);var l=a-t;if(n!==a){var u=l/200;C.current.scrollLeft>e?(r=(C.current.scrollLeft-e)*Math.min(u,1),C.current.scrollLeft-=r,C.current.scrollLeft===e&&(o=!0)):C.current.scrollLeft<e&&(r=(e-C.current.scrollLeft)*Math.min(u,1),C.current.scrollLeft+=r,C.current.scrollLeft===e&&(o=!0))}l<200&&(n=a,!o&&window.requestAnimationFrame(i))}))}}P("infoButtonClicked_ContextMenu",(function(e){m(e.itemData),b(!0),console.log("Info Button Clicked"),setInfoModalOpen(!0)})),P("closedContextMenu",(function(e){console.log(o.skuID),console.log("Context Menu Closed")})),(0,g.useEffect)((function(){0!=Object.keys(e.productCategoryData).length&&r(e.productCategoryData.build)}),[e.productCategoryData]);var x=(0,g.useCallback)((function(e,t){N.getState().CORE_API.spawnItemBySkuID(e,t)}),[]),_=(0,g.useCallback)((function(e){N.getState().CORE_API.spawnGhostsForSkuID(e,!1,1)}),[]),k=(0,g.useCallback)((function(e){i||N.getState().CORE_API.removeAllGhosts(e)}),[i]),S=(0,g.useRef)(null),O=(0,g.useRef)(null),j=(0,g.useRef)(null),C=(0,g.useRef)(null);function T(e){e.getBoundingClientRect().left<=0&&(e===S.current?u(0):e===O.current?u(1):e===j.current&&u(2))}function A(){f(!1),N.getState().CORE_API.removeAllGhosts()}function L(e){var t=e.categoryID,r=e.index;return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)("a",{className:l===r?"mobileTab scrolled":"mobileTab",onClick:function(){switch(r){case 0:w(S.current.offsetLeft);break;case 1:w(O.current.offsetLeft);break;case 2:w(j.current.offsetLeft)}},children:n[t].label})})}function R(e){var t=e.element,n=e.index;return(0,Se.jsxs)("div",{className:"subContainer topContainer",children:[(0,Se.jsx)("h4",{className:"subheading",children:t.label}),(0,Se.jsx)("div",{className:"sidemenuContent",children:(0,Se.jsx)("div",{className:"item-grid",children:t.skus.map((function(e){return(0,Se.jsx)(Oe,{skuID:e,categoryID:t.categoryID,spawnGhosts:_,spawnItem:x,removeAllGhosts:k,modalOpen:i,categoryDataIndex:n,setInfoDrawerData:p,setItemAllowed:y},"itemCardB"+e)}))})}),2!==n?(0,Se.jsx)("div",{className:"itemGridDivider"}):""]})}function D(e){var t=e.element,n=e.index;return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("section",{id:"section-".concat(t.categoryID),style:{display:"flex",width:"100%",gap:"1rem"},ref:0==n?S:1==n?O:j,children:t.skus.map((function(e){return(0,Se.jsx)(Oe,{skuID:e,categoryID:t.categoryID,spawnGhosts:_,spawnItem:x,removeAllGhosts:k,modalOpen:i,setDrawerOpen:f,setInfoDrawerData:p,setItemAllowed:y},"itemCardB"+e)}))},"mobileGridSection"+n),(0,Se.jsx)("div",{className:"itemGridDivider"})]})}return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(Te,{}),(0,Se.jsx)(ul,{open:c,onDismiss:A,expandOnContentDrag:!0,className:"",children:(0,Se.jsx)("div",{className:"infoDrawer epigraphDrawer",children:(0,Se.jsxs)("div",{className:"drawerContent",children:[(0,Se.jsx)("div",{className:"infoDrawerImageContainer",children:(0,Se.jsx)("img",{className:"itemImage",src:o.thumbnail?me+o.thumbnail.default:""})}),(0,Se.jsx)("h2",{className:"itemTitle",children:o.title}),(0,Se.jsxs)("a",{href:o.link,target:"_blank",className:"openNewTab",children:[(0,Se.jsx)("span",{children:"Open in new tab"}),(0,Se.jsx)("img",{src:we+"/Icon/OpenTab.svg"})]}),(0,Se.jsx)("div",{className:"infoDrawerActions",style:{width:"100%"},children:(0,Se.jsx)("button",{className:v?"addToCart":"addToCart addToCartDisabled",onClick:function(){v&&(x(o.skuID,o.categoryID),A())},children:"Add"})})]})})}),(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("div",{className:"mobileTabContent",children:(0,Se.jsxs)("div",{className:"scrollSpyTabs",children:[(0,Se.jsx)("div",{className:"secondMobileTabs",children:Object.keys(n).map((function(e,t){return(0,Se.jsx)(L,{categoryID:e,index:t},"mobileTabs"+e)}))}),(0,Se.jsx)("div",{className:"mobileGrid",ref:C,onScroll:function(){T(S.current),T(O.current),T(j.current)},children:n.map((function(e,t){return(0,Se.jsx)(D,{element:e,index:t},"mobileGrid"+t)}))})]})}),(0,Se.jsx)("div",{className:"container desktop",children:n.map((function(e,t){return(0,Se.jsx)(R,{element:e,index:t},"category_"+e.categoryID+"_"+t)}))})]})]})};function cl(e){var t=e.element,n=e.handleGlobalVariantSwitch,r=e.activeVariants;return(0,Se.jsx)("div",{className:"mobileGrid",children:t.look.map((function(e,o){return(0,Se.jsxs)("div",{onClick:function(){return n(t,e)},className:r[t.id]==e?"colorSelector selected":"colorSelector",children:[(0,Se.jsxs)("div",{className:"colorThumbnailContainer",children:[(0,Se.jsx)("div",{className:"colorThumbnail",children:(0,Se.jsx)("img",{src:be+Ee.getState().productLookData[e].thumbnail,style:{height:"100%",width:"100%",opacity:"1"}})}),(0,Se.jsx)("div",{className:"checkMark",children:(0,Se.jsx)("img",{src:we+"/Icon/Check.svg"})})]}),(0,Se.jsxs)("div",{className:"colorDetails",children:[(0,Se.jsx)("p",{children:Ce(Ee.getState().productLookData[e].label)}),(0,Se.jsx)("p",{children:Ce(Ee.getState().productLookData[e].accent)})]})]},"Color-"+o)}))})}var fl=function(){var e=Ee.getState().productCategoryData.color,t=xe((function(e){return e.activeVariants})),n=function(e,t){xe.getState().activeVariants[e.id]=t,xe.setState({activeVariants:x({},xe.getState().activeVariants)}),N.getState().CORE_API.switchGlobalVariant(e,t)},r=function(){N.getState().CORE_API.removeAllVariantOverrides(),N.getState().CORE_API.alert({alertMsg:"Removed all overrides!",alertTime:4e3,alertType:"success",alertLabel:"Removed:"})};return(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(Te,{}),(0,Se.jsxs)("div",{className:"mobileTabContent",children:[(0,Se.jsx)("button",{style:{cursor:"pointer",marginTop:"0.5rem"},onClick:function(){return r()},className:"removeAllColorOverridesButton",children:"Remove all overrides"}),e.map((function(e){return(0,Se.jsxs)("div",{children:[(0,Se.jsx)("div",{className:"secondMobileTabs",children:(0,Se.jsx)("div",{className:"mobileTab",children:e.label})}),(0,Se.jsx)(cl,{element:e,handleGlobalVariantSwitch:n,activeVariants:t})]},"".concat(e.label," Category"))}))]}),(0,Se.jsxs)("div",{className:"container desktop",children:[(0,Se.jsx)("button",{className:"removeAllColorOverridesButton",onClick:function(){return r()},children:"Remove all overrides"}),e.map((function(e,r){return(0,Se.jsxs)("div",{className:"subContainer topContainer",children:[(0,Se.jsx)("h4",{className:"subheading",children:e.label}),(0,Se.jsx)("div",{className:"sidemenuContent",children:(0,Se.jsx)("div",{className:"color-grid",children:e.look.map((function(r,o){return(0,Se.jsxs)("div",{onClick:function(){return n(e,r)},className:t[e.id]==r?"colorSelector selected":"colorSelector",children:[(0,Se.jsxs)("div",{className:"colorThumbnailContainer",children:[(0,Se.jsx)("div",{className:"colorThumbnail",children:(0,Se.jsx)("img",{src:be+Ee.getState().productLookData[r].thumbnail,style:{height:"100%",width:"100%",opacity:"1"}})}),(0,Se.jsx)("div",{className:"checkMark",children:(0,Se.jsx)("img",{src:we+"/Icon/Check.svg"})})]}),(0,Se.jsxs)("div",{className:"colorDetails",children:[(0,Se.jsx)("p",{children:Ce(Ee.getState().productLookData[r].label)}),(0,Se.jsx)("p",{children:Ce(Ee.getState().productLookData[r].accent)})]})]},"Color-"+o)}))})})]},"".concat(e.label,"-").concat(r))}))]})]})},dl=n(6770),pl=n.n(dl),hl=j((function(e,t){return{activeHotspotData:null,activeFeatureID:"",actions:{enterHotspotInFeaturesTab:function(t){2!==N.getState().sideMenuState&&N.setState({sideMenuState:2}),e({activeFeatureID:t})},exitHotspot:function(){e({activeFeatureID:null})}}}})),vl=function(e,t){return e.filter((function(e,n){return t!==n}))},yl=function(e,t,n){var r=e.slice();return r[t].quantity=n,r},gl=j((function(e,t){return{cart:[],deleteCartItem:function(t){e((function(e){return{cart:vl(e.cart,t)}}))},addToCart:function(t){e((function(e){return{cart:[].concat(Bn(e.cart),[t])}}))},updateQuantity:function(t,n){e((function(e){return{cart:yl(e.cart,t,n)}}))},previewCartModalOpen:!1,togglePreviewCartModal:function(){e((function(e){return{previewCartModalOpen:!e.previewCartModalOpen}}))}}})),ml=gl;var bl=["children","className"],wl="splide",xl="data-".concat(wl),_l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function kl(e){e.length=0}function El(e){return!Cl(e)&&"object"===typeof e}function Sl(e){return Array.isArray(e)}function Ol(e){return"string"===typeof e}function jl(e){return"undefined"===typeof e}function Cl(e){return null===e}function Nl(e){return e instanceof HTMLElement}function Tl(e){return Sl(e)?e:[e]}function Pl(e,t){Tl(e).forEach(t)}function Al(e,t){return e.indexOf(t)>-1}function Ll(e,t){return e.push.apply(e,Bn(Tl(t))),e}var Rl=Array.prototype;function Dl(e,t,n){return Rl.slice.call(e,t,n)}function Il(e,t,n){e&&Pl(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function Ml(e,t){Il(e,Ol(t)?t.split(" "):t,!0)}function ql(e,t){Pl(t,e.appendChild.bind(e))}function zl(e,t){Pl(e,(function(e){var n=t.parentNode;n&&n.insertBefore(e,t)}))}function Fl(e,t){return Nl(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function Bl(e,t){return e?Dl(e.children).filter((function(e){return Fl(e,t)})):[]}function Ul(e,t){return t?Bl(e,t)[0]:e.firstElementChild}function Vl(e,t,n){if(e){var r=Object.keys(e);r=n?r.reverse():r;for(var o=0;o<r.length;o++){var i=r[o];if("__proto__"!==i&&!1===t(e[i],i))break}}return e}function Hl(e){return Dl(arguments,1).forEach((function(t){Vl(t,(function(n,r){e[r]=t[r]}))})),e}function Kl(e,t){return Vl(t,(function(t,n){Sl(t)?e[n]=t.slice():El(t)?e[n]=Kl(El(e[n])?e[n]:{},t):e[n]=t})),e}function Wl(e,t){e&&Pl(t,(function(t){e.removeAttribute(t)}))}function Gl(e,t,n){El(t)?Vl(t,(function(t,n){Gl(e,n,t)})):Cl(n)?Wl(e,t):e.setAttribute(t,String(n))}function $l(e,t,n){var r=document.createElement(e);return t&&(Ol(t)?Ml(r,t):Gl(r,t)),n&&ql(n,r),r}function Yl(e,t,n){if(jl(n))return getComputedStyle(e)[t];if(!Cl(n)){var r=e.style;n="".concat(n),r[t]!==n&&(r[t]=n)}}function Ql(e,t){Yl(e,"display",t)}function Zl(e,t){return e.getAttribute(t)}function Xl(e,t){return e&&e.classList.contains(t)}function Jl(e){return e.getBoundingClientRect()}function eu(e){Pl(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function tu(e){return Ul((new DOMParser).parseFromString(e,"text/html").body)}function nu(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function ru(e,t){return e&&e.querySelector(t)}function ou(e,t){return Dl(e.querySelectorAll(t))}function iu(e,t){Il(e,t,!1)}function au(e){return Ol(e)?e:e?"".concat(e,"px"):""}function lu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)throw new Error("[".concat(wl,"] ").concat(t))}function uu(e){setTimeout(e)}var su=function(){};function cu(e){return requestAnimationFrame(e)}var fu=Math.min,du=Math.max,pu=Math.floor,hu=Math.ceil,vu=Math.abs;function yu(e,t,n,r){var o=fu(t,n),i=du(t,n);return r?o<e&&e<i:o<=e&&e<=i}function gu(e,t,n){var r=fu(t,n),o=du(t,n);return fu(du(r,e),o)}function mu(e){return+(e>0)-+(e<0)}function bu(e,t){return Pl(t,(function(t){e=e.replace("%s","".concat(t))})),e}function wu(e){return e<10?"0".concat(e):"".concat(e)}var xu={};var _u="mounted",ku="ready",Eu="move",Su="moved",Ou="shifted",ju="click",Cu="active",Nu="inactive",Tu="visible",Pu="hidden",Au="slide:keydown",Lu="refresh",Ru="updated",Du="resize",Iu="resized",Mu="repositioned",qu="drag",zu="dragging",Fu="dragged",Bu="scroll",Uu="scrolled",Vu="destroy",Hu="arrows:mounted",Ku="arrows:updated",Wu="pagination:mounted",Gu="pagination:updated",$u="navigation:mounted",Yu="autoplay:play",Qu="autoplay:playing",Zu="autoplay:pause",Xu="lazyload:loaded";function Ju(e){var t=e.event,n={},r=[];function o(e,t,n){i(e,t,(function(e,t){r=r.filter((function(r){return!!(r[0]!==e||r[1]!==t||n&&r[2]!==n)||(e.removeEventListener(t,r[2],r[3]),!1)}))}))}function i(e,t,n){Pl(e,(function(e){e&&t.split(" ").forEach(n.bind(null,e))}))}function a(){r=r.filter((function(e){return o(e[0],e[1])})),t.offBy(n)}return t.on(Vu,a,n),{on:function(e,r,o){t.on(e,r,n,o)},off:function(e){t.off(e,n)},emit:t.emit,bind:function(e,t,n,o){i(e,t,(function(e,t){r.push([e,t,n,o]),e.addEventListener(t,n,o)}))},unbind:o,destroy:a}}function es(e,t,n,r){var o,i,a=Date.now,l=0,u=!0,s=0;function c(){if(!u){var i=a()-o;if(i>=e?(l=1,o=a()):l=i/e,n&&n(l),1===l&&(t(),r&&++s>=r))return f();cu(c)}}function f(){u=!0}function d(){cancelAnimationFrame(i),l=0,i=0,u=!0}return{start:function(t){!t&&d(),o=a()-(t?l*e:0),u=!1,cu(c)},rewind:function(){o=a(),l=0,n&&n(l)},pause:f,cancel:d,set:function(t){e=t},isPaused:function(){return u}}}function ts(e,t){var n;return function(){var r=arguments,o=this;n||(n=es(t||0,(function(){e.apply(o,r),n=null}),null,1)).start()}}var ns="ttb",rs={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};var os=wl,is="".concat(wl,"__slider"),as="".concat(wl,"__track"),ls="".concat(wl,"__list"),us="".concat(wl,"__slide"),ss="".concat(us,"--clone"),cs="".concat(us,"__container"),fs="".concat(wl,"__arrows"),ds="".concat(wl,"__arrow"),ps="".concat(ds,"--prev"),hs="".concat(ds,"--next"),vs="".concat(wl,"__pagination"),ys="".concat(vs,"__page"),gs="".concat(wl,"__progress"),ms="".concat(gs,"__bar"),bs="".concat(wl,"__autoplay"),ws="".concat(wl,"__play"),xs="".concat(wl,"__pause"),_s="".concat(wl,"__spinner"),ks="is-active",Es="is-prev",Ss="is-next",Os="is-visible",js="is-loading",Cs=[ks,Os,Es,Ss,js],Ns={slide:us,clone:ss,arrows:fs,arrow:ds,prev:ps,next:hs,pagination:vs,page:ys,spinner:_s};var Ts="role",Ps="aria-controls",As="aria-current",Ls="aria-label",Rs="aria-hidden",Ds="tabindex",Is="aria-orientation",Ms=[Ts,Ps,As,Ls,Rs,Is,Ds,"disabled"],qs="slide",zs="loop",Fs="fade";function Bs(e,t,n,r){var o,i=Ju(e),a=i.on,l=i.emit,u=i.bind,s=i.destroy,c=e.Components,f=e.root,d=e.options,p=d.isNavigation,h=d.updateOnMove,v=c.Direction.resolve,y=Zl(r,"style"),g=n>-1,m=Ul(r,".".concat(cs)),b=d.focusableNodes&&ou(r,d.focusableNodes);function w(){var o=g?n:t,i=bu(d.i18n.slideX,o+1),a=e.splides.map((function(e){return e.splide.root.id})).join(" ");Gl(r,Ls,i),Gl(r,Ps,a),Gl(r,Ts,"menuitem"),k(E())}function x(){o||_()}function _(){if(!o){var n=e.index;k(E()),function(e){var t=!e&&(!E()||g);Gl(r,Rs,t||null),Gl(r,Ds,!t&&d.slideFocus?0:null),b&&b.forEach((function(e){Gl(e,Ds,t?-1:null)}));e!==Xl(r,Os)&&(Il(r,Os,e),l(e?Tu:Pu,S))}(function(){if(e.is(Fs))return E();var t=Jl(c.Elements.track),n=Jl(r),o=v("left"),i=v("right");return pu(t[o])<=hu(n[o])&&pu(n[i])<=hu(t[i])}()),Il(r,Es,t===n-1),Il(r,Ss,t===n+1)}}function k(e){e!==Xl(r,ks)&&(Il(r,ks,e),p&&Gl(r,As,e||null),l(e?Cu:Nu,S))}function E(){var r=e.index;return r===t||d.cloneStatus&&r===n}var S={index:t,slideIndex:n,slide:r,container:m,isClone:g,mount:function(){g||(r.id="".concat(f.id,"-slide").concat(wu(t+1))),u(r,"click keydown",(function(e){l("click"===e.type?ju:Au,S,e)})),a([Lu,Mu,Ou,Su,Uu],_),a($u,w),h&&a(Eu,x)},destroy:function(){o=!0,s(),iu(r,Cs),Wl(r,Ms),Gl(r,"style",y)},update:_,style:function(e,t,n){Yl(n&&m||r,e,t)},isWithin:function(n,r){var o=vu(n-t);return g||!d.rewind&&!e.is(zs)||(o=fu(o,e.length-o)),o<=r}};return S}var Us="".concat(xl,"-interval");var Vs={passive:!1,capture:!0},Hs="touchmove mousemove",Ks="touchend touchcancel mouseup";var Ws=["Left","Right","Up","Down"],Gs="keydown";var $s="".concat(xl,"-lazy"),Ys="".concat($s,"-srcset"),Qs="[".concat($s,"], [").concat(Ys,"]");var Zs=[" ","Enter","Spacebar"];var Xs=Object.freeze({__proto__:null,Options:function(e,t,n){var r,o,i,a=ts(u);function l(e){e&&removeEventListener("resize",a)}function u(){var t,a=(t=function(e){return e[1].matches},Dl(o).filter(t)[0]||[]);a[0]!==i&&function(t){var o=n.breakpoints[t]||r;o.destroy?(e.options=r,e.destroy("completely"===o.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=o)}(i=a[0])}return{setup:function(){try{Kl(n,JSON.parse(Zl(e.root,xl)))}catch(a){lu(!1,a.message)}r=Kl({},n);var t=n.breakpoints;if(t){var i="min"===n.mediaQuery;o=Object.keys(t).sort((function(e,t){return i?+t-+e:+e-+t})).map((function(e){return[e,matchMedia("(".concat(i?"min":"max","-width:").concat(e,"px)"))]})),u()}},mount:function(){o&&addEventListener("resize",a)},destroy:l}},Direction:function(e,t,n){return{resolve:function(e,t){var r=n.direction;return rs[e]["rtl"!==r||t?r===ns?0:-1:1]||e},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var r,o,i,a,l=Ju(e).on,u=e.root,s={},c=[];function f(){!function(){o=Ul(u,".".concat(is)),i=ru(u,".".concat(as)),a=Ul(i,".".concat(ls)),lu(i&&a,"A track/list element is missing."),Ll(c,Bl(a,".".concat(us,":not(.").concat(ss,")")));var e=v(".".concat(bs)),t=v(".".concat(fs));Hl(s,{root:u,slider:o,track:i,list:a,slides:c,arrows:t,autoplay:e,prev:ru(t,".".concat(ps)),next:ru(t,".".concat(hs)),bar:ru(v(".".concat(gs)),".".concat(ms)),play:ru(e,".".concat(ws)),pause:ru(e,".".concat(xs))})}(),function(){var e=u.id||(t=wl,"".concat(t).concat(wu(xu[t]=(xu[t]||0)+1)));var t;u.id=e,i.id=i.id||"".concat(e,"-track"),a.id=a.id||"".concat(e,"-list")}(),Ml(u,r=y())}function d(){[u,i,a].forEach((function(e){Wl(e,"style")})),kl(c),iu(u,r)}function p(){d(),f()}function h(){iu(u,r),Ml(u,r=y())}function v(e){return Ul(u,e)||Ul(o,e)}function y(){return["".concat(os,"--").concat(n.type),"".concat(os,"--").concat(n.direction),n.drag&&"".concat(os,"--draggable"),n.isNavigation&&"".concat(os,"--nav"),ks]}return Hl(s,{setup:f,mount:function(){l(Lu,p,8),l(Ru,h)},destroy:d})},Slides:function(e,t,n){var r=Ju(e),o=r.on,i=r.emit,a=r.bind,l=t.Elements,u=l.slides,s=l.list,c=[];function f(){u.forEach((function(e,t){h(e,t,-1)}))}function d(){y((function(e){e.destroy()})),kl(c)}function p(){d(),f()}function h(t,n,r){var o=Bs(e,n,r,t);o.mount(),c.push(o)}function v(e){return e?g((function(e){return!e.isClone})):c}function y(e,t){v(t).forEach(e)}function g(e){return c.filter("function"===typeof e?e:function(t){return Ol(e)?Fl(t.slide,e):Al(Tl(e),t.index)})}return{mount:function(){f(),o(Lu,p),o([_u,Lu],(function(){c.sort((function(e,t){return e.index-t.index}))}))},destroy:d,update:function(){y((function(e){e.update()}))},register:h,get:v,getIn:function(e){var r=t.Controller,o=r.toIndex(e),i=r.hasFocus()?1:n.perPage;return g((function(e){return yu(e.index,o,o+i-1)}))},getAt:function(e){return g(e)[0]},add:function(e,t){Pl(e,(function(e){if(Ol(e)&&(e=tu(e)),Nl(e)){var r=u[t];r?zl(e,r):ql(s,e),Ml(e,n.classes.slide),function(e,t){var n=ou(e,"img"),r=n.length;r?n.forEach((function(e){a(e,"load error",(function(){--r||t()}))})):t()}(e,i.bind(null,Du))}})),i(Lu)},remove:function(e){eu(g(e).map((function(e){return e.slide}))),i(Lu)},forEach:y,filter:g,style:function(e,t,n){y((function(r){r.style(e,t,n)}))},getLength:function(e){return e?u.length:c.length},isEnough:function(){return c.length>n.perPage}}},Layout:function(e,t,n){var r,o,i=Ju(e),a=i.on,l=i.bind,u=i.emit,s=t.Slides,c=t.Direction.resolve,f=t.Elements,d=f.root,p=f.track,h=f.list,v=s.getAt;function y(){o=null,r=n.direction===ns,Yl(d,"maxWidth",au(n.width)),Yl(p,c("paddingLeft"),m(!1)),Yl(p,c("paddingRight"),m(!0)),g()}function g(){var e=Jl(d);o&&o.width===e.width&&o.height===e.height||(Yl(p,"height",function(){var e="";r&&(lu(e=b(),"height or heightRatio is missing."),e="calc(".concat(e," - ").concat(m(!1)," - ").concat(m(!0),")"));return e}()),s.style(c("marginRight"),au(n.gap)),s.style("width",(n.autoWidth?"":au(n.fixedWidth)||(r?"":w()))||null),s.style("height",au(n.fixedHeight)||(r?n.autoHeight?"":w():b())||null,!0),o=e,u(Iu))}function m(e){var t=n.padding,r=c(e?"right":"left");return t&&au(t[r]||(El(t)?0:t))||"0px"}function b(){return au(n.height||Jl(h).width*n.heightRatio)}function w(){var e=au(n.gap);return"calc((100%".concat(e&&" + ".concat(e),")/").concat(n.perPage||1).concat(e&&" - ".concat(e),")")}function x(e,t){var n=v(e);if(n){var r=Jl(n.slide)[c("right")],o=Jl(h)[c("left")];return vu(r-o)+(t?0:_())}return 0}function _(){var e=v(0);return e&&parseFloat(Yl(e.slide,c("marginRight")))||0}return{mount:function(){y(),l(window,"resize load",ts(u.bind(this,Du))),a([Ru,Lu],y),a(Du,g)},listSize:function(){return Jl(h)[c("width")]},slideSize:function(e,t){var n=v(e||0);return n?Jl(n.slide)[c("width")]+(t?0:_()):0},sliderSize:function(){return x(e.length-1,!0)-x(-1,!0)},totalSize:x,getPadding:function(e){return parseFloat(Yl(p,c("padding".concat(e?"Right":"Left"))))||0}}},Clones:function(e,t,n){var r,o=Ju(e),i=o.on,a=o.emit,l=t.Elements,u=t.Slides,s=t.Direction.resolve,c=[];function f(){(r=v())&&(!function(t){var r=u.get().slice(),o=r.length;if(o){for(;r.length<t;)Ll(r,r);Ll(r.slice(-t),r.slice(0,t)).forEach((function(i,a){var s=a<t,f=function(t,r){var o=t.cloneNode(!0);return Ml(o,n.classes.clone),o.id="".concat(e.root.id,"-clone").concat(wu(r+1)),o}(i.slide,a);s?zl(f,r[0].slide):ql(l.list,f),Ll(c,f),u.register(f,a-t+(s?0:o),i.index)}))}}(r),a(Du))}function d(){eu(c),kl(c)}function p(){d(),f()}function h(){r<v()&&a(Lu)}function v(){var t=n.clones;if(e.is(zs)){if(!t){var r=function(e,t){if(Ol(t)){var n=$l("div",{style:"width: ".concat(t,"; position: absolute;")},e);t=Jl(n).width,eu(n)}return t}(l.list,n[s("fixedWidth")]);t=(r&&hu(Jl(l.track)[s("width")]/r)||n[s("autoWidth")]&&e.length||n.perPage)*(n.drag?(n.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){f(),i(Lu,p),i([Ru,Du],h)},destroy:d}},Move:function(e,t,n){var r,o=Ju(e),i=o.on,a=o.emit,l=t.Layout,u=l.slideSize,s=l.getPadding,c=l.totalSize,f=l.listSize,d=l.sliderSize,p=t.Direction,h=p.resolve,v=p.orient,y=t.Elements,g=y.list,m=y.track;function b(){O()||(t.Scroll.cancel(),w(e.index),a(Mu))}function w(e){x(k(e,!0))}function x(t,n){if(!e.is(Fs)){var r=n?t:function(t){if(e.is(zs)){var n=v(t-E()),r=j(!1,t)&&n<0,o=j(!0,t)&&n>0;(r||o)&&(t=_(t,o))}return t}(t);g.style.transform="translate".concat(h("X"),"(").concat(r,"px)"),t!==r&&a(Ou)}}function _(e,t){var n=e-S(t),r=d();return e-=v(r*(hu(vu(n)/r)||1))*(t?1:-1)}function k(t,r){var o=v(c(t-1)-function(e){var t=n.focus;return"center"===t?(f()-u(e,!0))/2:+t*u(e)||0}(t));return r?function(t){n.trimSpace&&e.is(qs)&&(t=gu(t,0,v(d()-f())));return t}(o):o}function E(){var e=h("left");return Jl(g)[e]-Jl(m)[e]+v(s(!1))}function S(e){return k(e?t.Controller.getEnd():0,!!n.trimSpace)}function O(){return e.state.is(4)&&n.waitForTransition}function j(e,t){t=jl(t)?E():t;var n=!0!==e&&v(t)<v(S(!1)),r=!1!==e&&v(t)>v(S(!0));return n||r}return{mount:function(){r=t.Transition,i([_u,Iu,Ru,Lu],b)},destroy:function(){Wl(g,"style")},move:function(o,i,l,u){if(!O()){var s=e.state.set,c=E();o!==i&&(r.cancel(),x(_(c,o>i),!0)),s(4),a(Eu,i,l,o),r.start(i,(function(){s(3),a(Su,i,l,o),"move"===n.trimSpace&&o!==l&&c===E()?t.Controller.go(o>l?">":"<",!1,u):u&&u()}))}},jump:w,translate:x,shift:_,cancel:function(){x(E()),r.cancel()},toIndex:function(e){for(var n=t.Slides.get(),r=0,o=1/0,i=0;i<n.length;i++){var a=n[i].index,l=vu(k(a,!0)-e);if(!(l<=o))break;o=l,r=a}return r},toPosition:k,getPosition:E,getLimit:S,isBusy:O,exceededLimit:j}},Controller:function(e,t,n){var r,o,i,a=Ju(e).on,l=t.Move,u=l.getPosition,s=l.getLimit,c=t.Slides,f=c.isEnough,d=c.getLength,p=e.is(zs),h=e.is(qs),v=n.start||0,y=v;function g(){r=d(!0),o=n.perMove,i=n.perPage,v=gu(v,0,r-1)}function m(e,n,r,o,i){var a=n?e:C(e);t.Scroll.scroll(n||r?l.toPosition(a,!0):e,o,(function(){N(l.toIndex(l.getPosition())),i&&i()}))}function b(e){return x(!1,e)}function w(e){return x(!0,e)}function x(e,t){var n=o||(T()?1:i),r=_(v+n*(e?-1:1),v);return-1===r&&h&&!function(e,t,n){return vu(e-t)<n}(u(),s(!e),1)?e?0:k():t?r:S(r)}function _(e,t,a){if(f()){var l=k();e<0||e>l?e=yu(0,e,t,!0)||yu(l,t,e,!0)?O(j(e)):p?o||T()?e:e<0?-(r%i||i):r:n.rewind?e<0?l:0:-1:a||e===t||(e=o?e:O(j(t)+(e<t?-1:1)))}else e=-1;return e}function k(){var e=r-i;return(T()||p&&o)&&(e=r-1),du(e,0)}function S(e){return p?f()?e%r+(e<0?r:0):-1:e}function O(e){return gu(T()?e:i*e,0,k())}function j(e){return T()||(e=yu(e,r-i,r-1)?r-1:e,e=pu(e/i)),e}function C(e){var t=l.toIndex(e);return h?gu(t,0,k()):t}function N(e){e!==v&&(y=v,v=e)}function T(){return!jl(n.focus)||n.isNavigation}return{mount:function(){g(),a([Ru,Lu],g,9)},go:function(e,t,r){var o=function(e){var t=v;if(Ol(e)){var n=E(e.match(/([+\-<>])(\d+)?/)||[],3),r=n[1],o=n[2];"+"===r||"-"===r?t=_(v+ +"".concat(r).concat(+o||1),v,!0):">"===r?t=o?O(+o):b(!0):"<"===r&&(t=w(!0))}else t=p?e:gu(e,0,k());return t}(e);if(n.useScroll)m(o,!0,!0,n.speed,r);else{var i=S(o);i>-1&&!l.isBusy()&&(t||i!==v)&&(N(i),l.move(o,i,y,r))}},scroll:m,getNext:b,getPrev:w,getAdjacent:x,getEnd:k,setIndex:N,getIndex:function(e){return e?y:v},toIndex:O,toPage:j,toDest:C,hasFocus:T}},Arrows:function(e,t,n){var r,o=Ju(e),i=o.on,a=o.bind,l=o.emit,u=n.classes,s=n.i18n,c=t.Elements,f=t.Controller,d=c.arrows,p=c.prev,h=c.next,v={};function y(){if(n.arrows&&(p&&h||(d=$l("div",u.arrows),p=g(!0),h=g(!1),r=!0,ql(d,[p,h]),zl(d,Ul("slider"===n.arrows&&c.slider||e.root)))),p&&h)if(v.prev)Ql(d,!1===n.arrows?"none":"");else{var t=c.track.id;Gl(p,Ps,t),Gl(h,Ps,t),v.prev=p,v.next=h,function(){var e=f.go;i([_u,Su,Ru,Lu,Uu],m),a(h,"click",(function(){e(">",!0)})),a(p,"click",(function(){e("<",!0)}))}(),l(Hu,p,h)}}function g(e){return tu('<button class="'.concat(u.arrow," ").concat(e?u.prev:u.next,'" type="button"><svg xmlns="').concat("http://www.w3.org/2000/svg",'" viewBox="0 0 ').concat(40," ").concat(40,'" width="').concat(40,'" height="').concat(40,'"><path d="').concat(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",'" />'))}function m(){var t=e.index,n=f.getPrev(),r=f.getNext(),o=n>-1&&t<n?s.last:s.prev,i=r>-1&&t>r?s.first:s.next;p.disabled=n<0,h.disabled=r<0,Gl(p,Ls,o),Gl(h,Ls,i),l(Ku,p,h,n,r)}return{arrows:v,mount:function(){y(),i(Ru,y)},destroy:function(){r?eu(d):(Wl(p,Ms),Wl(h,Ms))}}},Autoplay:function(e,t,n){var r,o,i,a=Ju(e),l=a.on,u=a.bind,s=a.emit,c=es(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&Yl(t,"width","".concat(100*e,"%")),s(Qu,e)})),f=c.isPaused,d=t.Elements;function p(e){var t=e?"pause":"play",r=d[t];r&&(Gl(r,Ps,d.track.id),Gl(r,Ls,n.i18n[t]),u(r,"click",e?v:h))}function h(){f()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),o=r=i=!1,s(Yu))}function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];f()||(c.pause(),s(Zu)),i=e}function y(){i||(r||o?v(!1):h())}function g(){var r=t.Slides.getAt(e.index);c.set(r&&+Zl(r.slide,Us)||n.interval)}return{mount:function(){var e=n.autoplay;e&&(p(!0),p(!1),function(){var e=d.root;n.pauseOnHover&&u(e,"mouseenter mouseleave",(function(e){r="mouseenter"===e.type,y()}));n.pauseOnFocus&&u(e,"focusin focusout",(function(e){o="focusin"===e.type,y()}));l([Eu,Bu,Lu],c.rewind),l(Eu,g)}(),"pause"!==e&&h())},destroy:c.cancel,play:h,pause:v,isPaused:f}},Cover:function(e,t,n){var r=Ju(e).on;function o(e){t.Slides.forEach((function(t){var n=Ul(t.container||t.slide,"img");n&&n.src&&i(e,n,t)}))}function i(e,t,n){n.style("background",e?'center/cover no-repeat url("'.concat(t.src,'")'):"",!0),Ql(t,e?"none":"")}return{mount:function(){n.cover&&(r(Xu,(function(e,t){i(!0,e,t)})),r([_u,Ru,Lu],o.bind(null,!0)))},destroy:function(){o(!1)}}},Scroll:function(e,t,n){var r,o,i=Ju(e),a=i.on,l=i.emit,u=t.Move,s=u.getPosition,c=u.getLimit,f=u.exceededLimit;function d(t,i,a,v){var y,g=s(),m=1;i=i||(y=vu(t-g),du(y/1.5,800)),o=a,h(),r=es(i,p,(function(r){var o,i=s(),a=(g+(t-g)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(r)-s())*m;u.translate(i+a),e.is(qs)&&!v&&f()&&(m*=.6,vu(a)<10&&(o=f(!1),d(c(!o),600,null,!0)))}),1),l(Bu),r.start()}function p(){var t=s(),n=u.toIndex(t);yu(n,0,e.length-1)||u.translate(u.shift(t,n>0),!0),o&&o(),l(Uu)}function h(){r&&r.cancel()}function v(){r&&!r.isPaused()&&(h(),p())}return{mount:function(){a(Eu,h),a([Ru,Lu],v)},destroy:h,scroll:d,cancel:v}},Drag:function(e,t,n){var r,o,i,a,l,u,s,c,f,d=Ju(e),p=d.on,h=d.emit,v=d.bind,y=d.unbind,g=t.Move,m=t.Scroll,b=t.Controller,w=t.Elements.track,x=t.Direction,_=x.resolve,k=x.orient,E=g.getPosition,S=g.exceededLimit,O=!1;function j(){var e=n.drag;M(!e),l="free"===e}function C(e){if(!c){var t=n.noDrag,r=I(e),o=!t||!Fl(e.target,t);s=!1,!o||!r&&e.button||(g.isBusy()?nu(e,!0):(f=r?w:window,i=null,a=null,v(f,Hs,N,Vs),v(f,Ks,T,Vs),g.cancel(),m.cancel(),P(e)))}}function N(t){if(a||h(qu),a=t,t.cancelable){var i=R(t)-R(o);if(u){g.translate(r+function(t){return t/(O&&e.is(qs)?5:1)}(i));var l=D(t)-D(o)>200,c=O!==(O=S());(l||c)&&P(t),h(zu),s=!0,nu(t)}else{var f=n.dragMinThreshold;f=El(f)?f:{mouse:0,touch:+f||10},u=vu(i)>(I(t)?f.touch:f.mouse),L()&&nu(t)}}}function T(r){y(f,Hs,N),y(f,Ks,T);var s=e.index;if(a){if(u||r.cancelable&&L()){var c=function(t){if(e.is(zs)||!O){var n=o===a&&i||o,r=R(a)-R(n),l=D(t)-D(n),u=D(t)-D(a)<200;if(l&&u)return r/l}return 0}(r),d=function(e){return E()+mu(e)*fu(vu(e)*(n.flickPower||600),l?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(c);l?b.scroll(d):e.is(Fs)?b.go(s+k(mu(c))):b.go(b.toDest(d),!0),nu(r)}h(Fu)}else l||E()===g.toPosition(s)||b.go(s,!0);u=!1}function P(e){i=o,o=e,r=E()}function A(e){!c&&s&&nu(e,!0)}function L(){return vu(R(a)-R(o))>vu(R(a,!0)-R(o,!0))}function R(e,t){return(I(e)?e.touches[0]:e)["page".concat(_(t?"Y":"X"))]}function D(e){return e.timeStamp}function I(e){return"undefined"!==typeof TouchEvent&&e instanceof TouchEvent}function M(e){c=e}return{mount:function(){v(w,Hs,su,Vs),v(w,Ks,su,Vs),v(w,"touchstart mousedown",C,Vs),v(w,"click",A,{capture:!0}),v(w,"dragstart",nu),p([_u,Ru],j)},disable:M,isDragging:function(){return u}}},Keyboard:function(e,t,n){var r,o,i=Ju(e),a=i.on,l=i.bind,u=i.unbind,s=e.root,c=t.Direction.resolve;function f(){var e=n.keyboard;e&&("focused"===e?(r=s,Gl(s,Ds,0)):r=window,l(r,Gs,v))}function d(){u(r,Gs),Nl(r)&&Wl(r,Ds)}function p(){var e=o;o=!0,uu((function(){o=e}))}function h(){d(),f()}function v(t){if(!o){var n=t.key,r=Al(Ws,n)?"Arrow".concat(n):n;r===c("ArrowLeft")?e.go("<"):r===c("ArrowRight")&&e.go(">")}}return{mount:function(){f(),a(Ru,h),a(Eu,p)},destroy:d,disable:function(e){o=e}}},LazyLoad:function(e,t,n){var r=Ju(e),o=r.on,i=r.off,a=r.bind,l=r.emit,u="sequential"===n.lazyLoad,s=[],c=0;function f(){p(),d()}function d(){t.Slides.forEach((function(e){ou(e.slide,Qs).forEach((function(t){var r=Zl(t,$s),o=Zl(t,Ys);if(r!==t.src||o!==t.srcset){var i=n.classes.spinner,a=t.parentElement,l=Ul(a,".".concat(i))||$l("span",i,a);Gl(l,Ts,"presentation"),s.push({_img:t,_Slide:e,src:r,srcset:o,_spinner:l}),!t.src&&Ql(t,"none")}}))})),u&&y()}function p(){c=0,s=[]}function h(){(s=s.filter((function(t){var r=n.perPage*((n.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,r)||v(t)}))).length||i(Su)}function v(e){var t=e._img;Ml(e._Slide.slide,js),a(t,"load error",(function(t){!function(e,t){var n=e._Slide;iu(n.slide,js),t||(eu(e._spinner),Ql(e._img,""),l(Xu,e._img,n),l(Du));u&&y()}(e,"error"===t.type)})),["srcset","src"].forEach((function(n){e[n]&&(Gl(t,n,e[n]),Wl(t,"src"===n?$s:Ys))}))}function y(){c<s.length&&v(s[c++])}return{mount:function(){n.lazyLoad&&(d(),o(Lu,f),u||o([_u,Lu,Su,Uu],h))},destroy:p}},Pagination:function(e,t,n){var r,o=Ju(e),i=o.on,a=o.emit,l=o.bind,u=o.unbind,s=t.Slides,c=t.Elements,f=t.Controller,d=f.hasFocus,p=f.getIndex,h=[];function v(){y(),n.pagination&&s.isEnough()&&(!function(){var t=e.length,o=n.classes,i=n.i18n,a=n.perPage,u="slider"===n.pagination&&c.slider||c.root,f=d()?t:hu(t/a);r=$l("ul",o.pagination,u);for(var p=0;p<f;p++){var v=$l("li",null,r),y=$l("button",{class:o.page,type:"button"},v),m=s.getIn(p).map((function(e){return e.slide.id})),b=!d()&&a>1?i.pageX:i.slideX;l(y,"click",g.bind(null,p)),Gl(y,Ps,m.join(" ")),Gl(y,Ls,bu(b,p+1)),h.push({li:v,button:y,page:p})}}(),a(Wu,{list:r,items:h},m(e.index)),b())}function y(){r&&(eu(r),h.forEach((function(e){u(e.button,"click")})),kl(h),r=null)}function g(e){f.go(">".concat(e),!0,(function(){var t,n=s.getAt(f.toIndex(e));n&&((t=n.slide).setActive&&t.setActive()||t.focus({preventScroll:!0}))}))}function m(e){return h[f.toPage(e)]}function b(){var e=m(p(!0)),t=m(p());e&&(iu(e.button,ks),Wl(e.button,As)),t&&(Ml(t.button,ks),Gl(t.button,As,!0)),a(Gu,{list:r,items:h},e,t)}return{items:h,mount:function(){v(),i([Ru,Lu],v),i([Eu,Uu],b)},destroy:y,getAt:m,update:b}},Sync:function(e,t,n){var r=t.Elements.list,o=[];function i(){e.splides.forEach((function(t){var n;!t.isParent&&(n=t.splide,[e,n].forEach((function(t){var r=Ju(t),i=t===e?n:e;r.on(Eu,(function(e,t,n){i.go(i.is(zs)?n:e)})),o.push(r)})))})),n.isNavigation&&function(){var t=Ju(e),n=t.on;n(ju,u),n(Au,s),n([_u,Ru],l),Gl(r,Ts,"menu"),o.push(t),t.emit($u,e.splides)}()}function a(){Wl(r,Ms),o.forEach((function(e){e.destroy()})),kl(o)}function l(){Gl(r,Is,n.direction!==ns?"horizontal":null)}function u(t){e.go(t.index)}function s(e,t){Al(Zs,t.key)&&(u(e),nu(t))}return{mount:i,destroy:a,remount:function(){a(),i()}}},Wheel:function(e,t,n){var r=Ju(e).bind;function o(r){if(r.cancelable){var o=r.deltaY;if(o){var i=o<0;e.go(i?"<":">"),function(r){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(r)}(i)&&nu(r)}}}return{mount:function(){n.wheel&&r(t.Elements.track,"wheel",o,Vs)}}}}),Js={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:Ns,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function ec(e,t,n){var r=Ju(e).on;return{mount:function(){r([_u,Lu],(function(){uu((function(){t.Slides.style("transition","opacity ".concat(n.speed,"ms ").concat(n.easing))}))}))},start:function(e,n){var r=t.Elements.track;Yl(r,"height",au(Jl(r).height)),uu((function(){n(),Yl(r,"height","")}))},cancel:su}}function tc(e,t,n){var r,o=Ju(e).bind,i=t.Move,a=t.Controller,l=t.Elements.list;function u(){s("")}function s(e){Yl(l,"transition",e)}return{mount:function(){o(l,"transitionend",(function(e){e.target===l&&r&&(u(),r())}))},start:function(t,o){var l=i.toPosition(t,!0),u=i.getPosition(),c=function(t){var r=n.rewindSpeed;if(e.is(qs)&&r){var o=a.getIndex(!0),i=a.getEnd();if(0===o&&t>=i||o>=i&&0===t)return r}return n.speed}(t);vu(l-u)>=1&&c>=1?(s("transform ".concat(c,"ms ").concat(n.easing)),i.translate(l,!0),r=o):(i.jump(t),o())},cancel:u}}var nc=function(){function e(t,n){r(this,e),this.event=function(){var e={};function t(t,r){n(t,(function(t,n){var o=e[t];e[t]=o&&o.filter((function(e){return e._key?e._key!==r:r||e._namespace!==n}))}))}function n(e,t){Tl(e).join(" ").split(" ").forEach((function(e){var n=e.split(".");t(n[0],n[1])}))}return{on:function(t,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;n(t,(function(t,n){e[t]=e[t]||[],Ll(e[t],{_event:t,_callback:r,_namespace:n,_priority:i,_key:o}).sort((function(e,t){return e._priority-t._priority}))}))},off:t,offBy:function(n){Vl(e,(function(e,r){t(r,n)}))},emit:function(t){var n=arguments;(e[t]||[]).forEach((function(e){e._callback.apply(e,Dl(n,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return Al(Tl(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};var o=Ol(t)?ru(document,t):t;lu(o,"".concat(o," is invalid.")),this.root=o,Kl(Js,e.defaults),Kl(Kl(this._options,Js),n||{})}return i(e,[{key:"mount",value:function(e,t){var n=this,r=this.state,o=this.Components;return lu(r.is([1,5]),"Already mounted!"),r.set(1),this._Components=o,this._Transition=t||this._Transition||(this.is(Fs)?ec:tc),this._Extensions=e||this._Extensions,Vl(Hl({},Xs,this._Extensions,{Transition:this._Transition}),(function(e,t){var r=e(n,o,n._options);o[t]=r,r.setup&&r.setup()})),Vl(o,(function(e){e.mount&&e.mount()})),this.emit(_u),Ml(this.root,"is-initialized"),r.set(3),this.emit(ku),this}},{key:"sync",value:function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}},{key:"go",value:function(e){return this._Components.Controller.go(e),this}},{key:"on",value:function(e,t){return this.event.on(e,t,null,20),this}},{key:"off",value:function(e){return this.event.off(e),this}},{key:"emit",value:function(e){var t;return(t=this.event).emit.apply(t,[e].concat(Bn(Dl(arguments,1)))),this}},{key:"add",value:function(e,t){return this._Components.Slides.add(e,t),this}},{key:"remove",value:function(e){return this._Components.Slides.remove(e),this}},{key:"is",value:function(e){return this._options.type===e}},{key:"refresh",value:function(){return this.emit(Lu),this}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.event,n=this.state;return n.is(1)?t.on(ku,this.destroy.bind(this,e),this):(Vl(this._Components,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(Vu),t.destroy(),e&&kl(this.splides),n.set(5)),this}},{key:"options",get:function(){return this._options},set:function(e){var t=this._options;Kl(t,e),this.state.is(1)||this.emit(Ru,t)}},{key:"length",get:function(){return this._Components.Slides.getLength(!0)}},{key:"index",get:function(){return this._Components.Controller.getIndex()}}]),e}(),rc=nc;rc.defaults={},rc.STATES=_l;var oc=[[_u,"onMounted"],[ku,"onReady"],[Eu,"onMove"],[Su,"onMoved"],[ju,"onClick"],[Cu,"onActive"],[Nu,"onInactive"],[Tu,"onVisible"],[Pu,"onHidden"],[Lu,"onRefresh"],[Ru,"onUpdated"],[Du,"onResize"],[Iu,"onResized"],[qu,"onDrag"],[zu,"onDragging"],[Fu,"onDragged"],[Bu,"onScroll"],[Uu,"onScrolled"],[Vu,"onDestroy"],[Hu,"onArrowsMounted"],[Ku,"onArrowsUpdated"],[Wu,"onPaginationMounted"],[Gu,"onPaginationUpdated"],[$u,"onNavigationMounted"],[Yu,"onAutoplayPlay"],[Qu,"onAutoplayPlaying"],[Zu,"onAutoplayPause"],[Xu,"onLazyLoadLoaded"]];function ic(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function ac(e){return null!==e&&"object"===typeof e}function lc(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((function(e,n){return!lc(e,t[n])}));if(ac(e)&&ac(t)){var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some((function(n){return!Object.prototype.hasOwnProperty.call(t,n)||!lc(e[n],t[n])}))}return e===t}function uc(e,t){var n=e;return function(e,t){if(e)for(var n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];if("__proto__"!==o&&!1===t(e[o],o))break}}(t,(function(e,t){Array.isArray(e)?n[t]=e.slice():ac(e)?n[t]=uc(ac(n[t])?n[t]:{},e):n[t]=e})),n}var sc=function(e){u(n,e);var t=d(n);function n(){var e;return r(this,n),(e=t.apply(this,arguments)).splideRef=g.createRef(),e.slides=[],e}return i(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.Extensions,r=e.Transition,o=this.splideRef.current;o&&(this.splide=new rc(o,t),this.bind(this.splide),this.splide.mount(n,r),this.options=uc({},t||{}),this.slides=this.getSlides())}},{key:"componentWillUnmount",value:function(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}},{key:"componentDidUpdate",value:function(){if(this.splide){var e=this.props.options;e&&!lc(this.options,e)&&(this.splide.options=e,this.options=uc({},e));var t,n,r=this.getSlides();t=this.slides,n=r,(t.length!==n.length||t.some((function(e,t){return e!==n[t]})))&&(this.splide.refresh(),this.slides=r)}}},{key:"sync",value:function(e){var t;null==(t=this.splide)||t.sync(e)}},{key:"go",value:function(e){var t;null==(t=this.splide)||t.go(e)}},{key:"getSlides",value:function(){var e;if(this.splide){var t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}},{key:"bind",value:function(e){var t=this;oc.forEach((function(n){var r=E(n,2),o=r[0],i=r[1],a=t.props[i];"function"===typeof a&&e.on(o,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a.apply(void 0,[e].concat(n))}))}))}},{key:"renderTrack",value:function(){return g.createElement("div",{className:"splide__track"},g.createElement("ul",{className:"splide__list"},this.props.children))}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.hasSliderWrapper,o=e.hasAutoplayProgress,i=e.hasAutoplayControls,a=e.playButtonLabel,l=void 0===a?"Play":a,u=e.pauseButtonLabel,s=void 0===u?"Pause":u,c=e.renderControls;return g.createElement("div",{id:t,className:ic("splide",n),ref:this.splideRef},r?g.createElement("div",{className:"splide__slider"},this.renderTrack()):this.renderTrack(),o&&g.createElement("div",{className:"splide__progress"},g.createElement("div",{className:"splide__progress__bar"})),i&&g.createElement("div",{className:"splide__autoplay"},g.createElement("button",{className:"splide__play"},l),g.createElement("button",{className:"splide__pause"},s)),c&&c())}}]),n}(g.Component),cc=function(e){var t=e.children,n=e.className,r=function(e,t){if(null==e)return{};var n,r,o=Vn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,bl);return g.createElement("li",x({className:ic("splide__slide",n)},r),t)},fc=function(){var e=_e((function(e){return e.itemsSpawned})),t=E((0,g.useState)([]),2),n=t[0],r=t[1],o=(0,g.useRef)(null),i=hl((function(e){return e.activeFeatureID})),a=(0,g.useCallback)((function(){var t=[];Object.keys(e).map((function(n){var r=e[n];r.hotspotSpawned&&r.hotspotsData.map((function(r){t=[].concat(Bn(t),[{itemData:x({},e[n].itemData),hotspotData:x({},r)}])}))})),r(t)}),[e]);function l(e){if(o.current.scrollTop!==e){var t,n,r,i=!1;window.requestAnimationFrame((function a(l){void 0===t&&(t=l);var u=l-t;if(n!==l){var s=u/200;o.current.scrollTop>e?(r=(o.current.scrollTop-e)*Math.min(s,1),o.current.scrollTop-=r,o.current.scrollTop===e&&(i=!0)):o.current.scrollTop<e&&(r=(e-o.current.scrollTop)*Math.min(s,1),o.current.scrollTop+=r,o.current.scrollTop===e&&(i=!0))}u<200&&(n=l,!i&&window.requestAnimationFrame(a))}))}}return(0,g.useEffect)((function(){a()}),[Object.keys(e).length]),(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)(Te,{}),(0,Se.jsx)("div",{className:"col desktop",ref:o,children:(0,Se.jsx)("div",{className:"tabs",children:n.map((function(e,t){return(0,Se.jsxs)(Se.Fragment,{children:[console.log(e.hotspotData),e.hotspotData&&(0,Se.jsx)(u,{activeFeatureID:i,tabKey:e,index:t},"tabs_"+e.itemData.skuID+"_"+e.hotspotData.hotspotID)]})}))})})]});function u(e){var t=e.tabKey,n=e.index,r=e.activeFeatureID,i=E((0,g.useState)([]),2),a=i[0],u=i[1],c=(0,g.useRef)(null),f=(0,g.useRef)(null),d=(0,g.useCallback)((function(e){N.getState().CORE_API.clickHotspot("hotspot3D_"+e,{ignoreUI:!0})}),[]);return(0,g.useEffect)((function(){for(var e=[],n=t.hotspotData,r=0;r<n.carousel.length;r++)""!==n.carousel[r].type&&""!==n.carousel[r].link&&(e=[].concat(Bn(e),[x(x({},n.carousel[r]),{},{index:r})]));u(e)}),[t]),(0,g.useEffect)((function(){var e=f.current;e&&(r===e.id?function(e){e.checked=!0;var t=e.nextElementSibling.nextElementSibling.childNodes[0];e.nextElementSibling.nextElementSibling.setAttribute("style","height:".concat(t.clientHeight+335,"px")),console.log(e.nextElementSibling.nextElementSibling.childNodes[0].childNodes),l(e.nextElementSibling.clientHeight*n)}(e):function(e){e.checked=!1}(e))}),[r]),(0,Se.jsxs)("div",{className:"accordionTab",children:[(0,Se.jsx)("input",{type:"checkbox",name:"accordion",id:"rd_"+t.itemData.skuID+"_"+t.hotspotData.hotspotID,defaultChecked:!1,ref:f,onClick:function(e){var r=e.target;if(r.checked){o.current.firstChild.querySelectorAll(".accordionTab input").forEach((function(e){e.checked=!1})),o.current.firstChild.querySelectorAll(".tab-content").forEach((function(e){e.setAttribute("style","height: 0px")})),r.checked=!0;var i=r.nextElementSibling.nextElementSibling.childNodes[0];r.nextElementSibling.nextElementSibling.setAttribute("style","height:".concat(i.clientHeight,"px")),l(r.nextElementSibling.clientHeight*n),d(t.itemData.skuID+"_"+t.hotspotData.hotspotID,{ignoreUI:!1})}else o.current.firstChild.querySelectorAll(".tab-content").forEach((function(e){e.setAttribute("style","height: 0px")})),N.getState().CORE_API.exitHotspot()}}),(0,Se.jsxs)("label",{className:"tab-label",htmlFor:"rd_"+t.itemData.skuID+"_"+t.hotspotData.hotspotID,children:[(0,Se.jsx)("span",{children:t.hotspotData.title}),(0,Se.jsx)("img",{className:"accordion-closed",src:we+"/Icon/Plus.svg"}),(0,Se.jsx)("img",{className:"accordion-open",src:we+"/Icon/Minus.svg"})]}),(0,Se.jsx)("div",{className:"tab-content",children:(0,Se.jsxs)("div",{className:"hotspot-content",children:[(0,Se.jsx)("h2",{children:t.hotspotData.title}),(0,Se.jsx)(pl(),{className:"ignore",modules:{toolbar:!1},theme:"bubble",readOnly:!0,value:t.hotspotData.description}),1==a.length&&(0,Se.jsx)(Se.Fragment,{children:a.map((function(e,n){return(0,Se.jsx)(Se.Fragment,{children:""!=e.type&&""!=e.link&&(0,Se.jsx)("div",{className:"carousel",children:(0,Se.jsxs)("div",{className:"",children:["img"===e.type&&(0,Se.jsx)("img",{src:e.link,alt:e.type}),"video"===e.type&&(0,Se.jsx)("video",{src:e.link,muted:e.muted,loop:e.loop,controls:e.controls})]})},"carouselTabs_"+t.itemData.skuID+"_"+t.hotspotData.hotspotID+"_"+e.index)})}))}),a.length>1&&(0,Se.jsx)("div",{className:"carousel",children:(0,Se.jsx)(sc,{options:{perPage:1,preloadPages:3},ref:c,children:a.map((function(e,n){return""!=e.type&&""!=e.link&&(0,Se.jsx)(s,{carouselTabKey:e,index:n},"carouselTabs_"+t.itemData.skuID+"_"+t.hotspotData.hotspotID+"_"+e.index)}))})})]})})]})}function s(e){var t=e.carouselTabKey,n=(0,g.useRef)(null);return(0,Se.jsx)(cc,{children:(0,Se.jsxs)("div",{className:"carouselTabParent",children:["img"===t.type&&(0,Se.jsx)("img",{ref:n,src:t.link,alt:t.type}),"video"===t.type&&(0,Se.jsx)("video",{ref:n,src:t.link,muted:t.muted,loop:t.loop,controls:t.controls})]})})}},dc=function(e){var t=e.open,n=e.setOpen,r=e.heading,o=e.inputValue,i=e.buttonText,a=e.inputPlaceholder,l=e.onSubmit,u=E((0,g.useState)(t),2),s=u[0],c=u[1],f=E((0,g.useState)(""),2),d=f[0],p=f[1];return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsxs)("div",{className:!0===t?"uiModal open":"uiModal",children:[(0,Se.jsxs)("div",{className:"modalDialog",children:[(0,Se.jsx)("div",{className:"modalCloseContainer",children:(0,Se.jsx)("button",{onClick:function(){n(!1)},children:(0,Se.jsx)("img",{src:we+"/Icon/X.svg"})})}),(0,Se.jsx)("h2",{className:"modalHeading",children:r}),void 0!==o?(0,Se.jsx)("input",{type:"text",value:o,readOnly:!0}):(0,Se.jsx)("input",{placeholder:a||"",type:"text",value:d,onChange:function(e){!function(e){p(e.target.value)}(e)}}),(0,Se.jsx)("button",{role:"button",onClick:function(){c(!s),l&&l()},children:i})]}),(0,Se.jsx)("div",{className:"modalOverlay"})]})})},pc=function(e){var t=e.itemObject,n=E((0,g.useState)(null),2),r=n[0],o=n[1];return(0,g.useEffect)((function(){var e=Ee.getState().productData[t.skuID];o(e)}),[]),(0,Se.jsx)(Se.Fragment,{children:r&&(0,Se.jsxs)("div",{className:"cartItem",draggable:!1,children:[(0,Se.jsx)("div",{className:"cartItemImage",children:(0,Se.jsx)("img",{draggable:!1,src:me+r.thumbnail[t.currentVariant?t.currentVariant:"default"],alt:r.title})}),(0,Se.jsxs)("div",{className:"cartItemDetails",children:[(0,Se.jsx)("h4",{children:r.title}),(0,Se.jsxs)("div",{className:"cartRow",children:[(0,Se.jsxs)("span",{className:"itemCount",children:["qty: ",t.count]}),(0,Se.jsxs)("h3",{className:"itemPrice",children:["$",r.price]})]})]})]})})},hc=function(e){var t=e.contextMenuObject,n=e.contextMenuDrawerOpen,r=e.dismissContextMenuDrawer,o=E((0,g.useState)(n),2),i=(o[0],o[1]),a=E((0,g.useState)(t),2),l=a[0],u=a[1],s=E((0,g.useState)(null),2),c=s[0],f=s[1],d=E((0,g.useState)([]),2),p=d[0],h=d[1];return(0,g.useEffect)((function(){return i(n),function(){}}),[n]),(0,g.useEffect)((function(){if(t)return u(t),function(){}}),[t]),(0,g.useEffect)((function(){if(h([]),l&&l.itemData){var e=[],t=l.itemData.look;if(t){var n=Ee.getState().productLookData;t.map((function(t){n.hasOwnProperty(t)&&e.push(n[t])})),l.overrideVariant?f(l.overrideVariant):f(l.currentVariant),h(e)}}}),[l]),(0,Se.jsx)(ul,{open:n,onDismiss:r,className:"contextMenuDrawer epigraphDrawer",expandOnContentDrag:!0,children:(0,Se.jsxs)("div",{className:"contextMenuParent interactable",children:[(0,Se.jsx)("div",{className:"contextContent",children:l&&l.itemData?(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("h3",{children:l.itemData.name}),(0,Se.jsxs)("p",{children:[l.itemData.boundingBoxSize.x.toFixed(1),"\u201d W x"," ",l.itemData.boundingBoxSize.y.toFixed(1),"\u201d D x"," ",l.itemData.boundingBoxSize.z.toFixed(1),"\u201d H"]}),(0,Se.jsx)("p",{children:"25 in. 6 Drawer"}),(0,Se.jsx)("p",{style:{marginTop:"0.5rem"},children:"Red with Black Accents"})]}):""}),(0,Se.jsx)("div",{className:"contextButtons",children:(0,Se.jsxs)("button",{role:"button",onClick:function(){return handleItemDelete()},children:[(0,Se.jsx)("img",{src:we+"/Icon/Trash.svg"}),(0,Se.jsx)("span",{children:"Remove"})]})}),(0,Se.jsx)("div",{className:"color-grid",style:{marginTop:"1rem"},children:p.map((function(e,t){return(0,Se.jsxs)("div",{onClick:function(){N.getState().CORE_API.overrideCurrentItemMaterial(e.id),f(e.id)},className:c==e.id?"colorSelector selected":"colorSelector",children:[(0,Se.jsxs)("div",{className:"colorThumbnailContainer",children:[(0,Se.jsx)("div",{className:"colorThumbnail",children:(0,Se.jsx)("img",{src:be+e.thumbnail,style:{height:"100%",width:"100%",opacity:"1"}})}),(0,Se.jsx)("div",{className:"checkMark",children:(0,Se.jsx)("img",{src:we+"/Icon/Check.svg"})})]}),(0,Se.jsxs)("div",{className:"colorDetails",children:[(0,Se.jsx)("p",{children:"COLOR"}),(0,Se.jsx)("p",{children:Ce(e.label)})]})]},"Color-"+t)}))})]})})},vc=function(e){var t=e.open,n=e.dataObject,r=e.dismissDrawer,o=E((0,g.useState)(t),2),i=o[0],a=o[1],l=E((0,g.useState)((function(){return void 0===n.index?"":n.index})),2);l[0],l[1];return(0,g.useEffect)((function(){return a(t),function(){}}),[t]),(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)(ul,{open:i,className:"epigraphDrawer hotspotDrawer",onDismiss:r,snapPoints:function(e){return[e.minHeight,e.maxHeight/2]},expandOnContentDrag:!0,children:(0,Se.jsxs)("div",{className:"drawerContent",children:[(0,Se.jsx)("h2",{children:n.title}),(0,Se.jsx)(pl(),{className:"ignore",modules:{toolbar:!1},theme:"bubble",readOnly:!0,value:n.description}),(0,Se.jsx)("div",{className:"carousel",children:n.carousel?(0,Se.jsx)(sc,{children:n.carousel.map((function(e,t){""!=e.type&&""!=e.link&&("img"===e.type&&(e.link,"".concat(e.title," image")),"video"===e.type&&(e.link,e.muted,e.loop,e.controls),"SplideSlide-".concat(t))}))}):""})]})})})},yc=function(e){je(e);var t=ml((function(e){return e.cart})),n=ml((function(e){return e.previewCartModalOpen})),r=ml((function(e){return e.togglePreviewCartModal})),o=Ee((function(e){return e}));return P("cartItemsChange",(function(e){var t=[];e.forEach((function(e){var n=function(e){return o.productData[e]}(e.skuID);n.count=e.count,n.currentVariant=e.currentVariant,t.push(n)})),ml.setState({cart:[].concat(t)})})),(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsxs)("div",{className:n?"previewCartModal open":"previewCartModal",children:[(0,Se.jsxs)("div",{style:{width:"100%",height:"100%"},children:[(0,Se.jsx)("button",{className:"closeButton",onClick:function(){r()},children:(0,Se.jsx)("img",{src:we+"/Icon/X.svg"})}),t.length<=0&&(0,Se.jsx)("h3",{style:{padding:"2rem"},children:"Your cart is currently empty"}),t.length>0&&(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("h2",{className:"cartTitle",children:"Review Products"}),(0,Se.jsx)("div",{style:{position:"relative",paddingTop:"0.5rem",width:"100%",height:"100%"},children:(0,Se.jsx)("div",{className:"previewCartContent",children:t.map((function(e,t){return(0,Se.jsx)(pc,{itemObject:e,index:t},"Cart Item-".concat(t))}))})})]})]}),(0,Se.jsx)("div",{style:{background:"#fff",display:"flex",justifyContent:"center",alignItems:"center",height:"5rem",width:"100%",boxShadow:"0px 2px 12px rgba(0, 0, 0, 0.1)"},children:(0,Se.jsx)("button",{className:"checkoutButton",disabled:!0,children:(0,Se.jsx)("span",{children:"Add To Cart"})})})]})})},gc=function(){return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)("link",{href:"https://unpkg.com/@epigraph/configurator/dist/epigraph-configurator.css",rel:"stylesheet",onLoad:function(){return N.setState({cssLoaded:!0})}})})},mc=function(e){var t=e.coreRef,n=e.viewInYourSpaceRef,r=(Ee((function(e){return e})),N((function(e){return e.setSideMenuState}))),o=N((function(e){return e.sideMenuState})),i=E((0,g.useState)(!0),2),a=i[0],l=i[1],u=E((0,g.useState)(!1),2),s=(u[0],u[1],E((0,g.useState)(!1),2)),c=s[0],f=s[1],d=E((0,g.useState)(!1),2),p=d[0],h=d[1],v=E((0,g.useState)(!1),2),y=v[0],m=v[1],b=E((0,g.useState)(!1),2),w=b[0],x=b[1],_=E((0,g.useState)("Link not generated!"),2),k=_[0],S=_[1],O=E((0,g.useState)(0),2),j=O[0],C=O[1],T=(0,g.useRef)(null),A=(0,g.useRef)(null),L=E((0,g.useState)({}),2),R=L[0],D=L[1],I=E((0,g.useState)(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth),2),M=I[0],q=I[1],z=E((0,g.useState)({}),2),F=z[0],B=z[1],U=E((0,g.useState)(!1),2),V=U[0];U[1];function H(){q(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)}(0,g.useEffect)((function(){return window.addEventListener("resize",H,!1),function(){}}),[]),(0,g.useEffect)((function(){T.current&&(T.current.appendChild(t.current),T.current.appendChild(n.current))}),[T]),P("hotspotClick",(function(e){M<=768&&(B(_e.getState().itemsSpawned[e.itemGUID].itemData.hotspots[e.hotspotSkuID]),h(!0))})),P("itemAdded",(function(e){N.getState().CORE_API.alert({alertMsg:"Item added to your tool chest!",alertTime:2e3,alertType:"add",alertLabel:"Added!"})}));var K=ml((function(e){return e.cart})),W=ml((function(e){return e.previewCartModalOpen})),G=ml((function(e){return e.togglePreviewCartModal}));function $(e){return e.length>0?e.map((function(e){return e.count*e.price})).reduce((function(e,t){return e+t})):0}function Y(e){r(e)}(0,g.useEffect)((function(){return C($(K)),function(){}}),[K,$]),(0,g.useEffect)((function(){window.shareTriggered=function(e){return Q(e)},window.saveTriggered=function(e){return Q(e)}}),[y,w]);(0,g.useCallback)((function(e){}),[]);var Q=(0,g.useCallback)((function(e){var t=new URL(window.location.href);t.searchParams.set("epgsharedconfigid",e),S(t.href),x(!0)}),[]);P("saveButtonTrigger",(function(e){window.saveTriggered(e.configID)})),P("shareButtonTrigger",(function(e){window.shareTriggered(e.configID)})),P("openedContextMenu",(function(e){M<=768&&(D(e),f(!0))}));var Z=(0,g.useCallback)((function(){navigator.clipboard.writeText(k),N.getState().CORE_API.alert({alertMsg:"Copied to Clipboard!",alertTime:4e3,alertType:"success",alertLabel:"Copied!"})}),[k]),X=(0,g.useCallback)((function(){var e=0;return K.map((function(t){return e+=t.count})),e}),[K]);return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsxs)("div",{className:"overlayUI",children:[(0,Se.jsxs)("div",{className:"uiModals",children:[(0,Se.jsx)(dc,{open:y,setOpen:m,heading:"Save This Configuration",inputPlaceholder:"Email Address",buttonText:"Send"}),(0,Se.jsxs)("div",{className:!0===w?"uiModal open":"uiModal",children:[(0,Se.jsxs)("div",{className:"modalDialog",children:[(0,Se.jsx)("div",{className:"modalCloseContainer",children:(0,Se.jsx)("button",{onClick:function(){x(!1)},children:(0,Se.jsx)("img",{src:we+"/Icon/X.svg"})})}),(0,Se.jsx)("h2",{className:"modalHeading",children:"Share This Configuration"}),(0,Se.jsx)("input",{type:"text",value:k,readOnly:!0}),(0,Se.jsx)("button",{role:"button",onClick:function(){x(!1),Z()},children:"Copy Link"})]}),(0,Se.jsx)("div",{className:"modalOverlay"})]})]}),(0,Se.jsx)(hc,{contextMenuDrawerOpen:c,dismissContextMenuDrawer:function(){f(!1),N.getState().CORE_API.closeContextMenu()},contextMenuObject:R}),(0,Se.jsx)(vc,{open:p,dataObject:F,dismissDrawer:function(){h(!1),N.getState().CORE_API.exitHotspot()}}),(0,Se.jsxs)("div",{className:"leftShell",children:[a?"":(0,Se.jsxs)("div",{className:"title",children:[(0,Se.jsx)("h1",{children:"Craftsman"}),(0,Se.jsx)("h1",{children:"Build your Own Tool Storage"})]}),(0,Se.jsx)("div",{id:"epigraph-configurator-core-slot",className:a?"menuOpen":"",ref:T,children:(0,Se.jsx)("view-in-your-space",{"debug-model-viewer":!0,ref:n,style:{position:"absolute",zIndex:"213"}})}),(0,Se.jsx)("div",{id:"view-in-your-space-slot",className:a?"menuOpen":"",ref:A})]}),(0,Se.jsxs)("div",{className:W?"previewCartModal mobile open":"previewCartModal mobile",children:[(0,Se.jsx)("button",{className:"closeButton",onClick:function(){G()},children:(0,Se.jsx)("img",{src:we+"/Icon/X.svg"})}),K.length>0?(0,Se.jsxs)("div",{style:{position:"relative",paddingTop:"0.5rem",width:"100%",height:"100%"},children:[(0,Se.jsx)("div",{className:"previewCartContent",children:K.map((function(e,t){return(0,Se.jsx)(pc,{itemObject:e,index:t},"Cart Item - ".concat(t))}))}),(0,Se.jsxs)("div",{className:"previewCartButtonContainer",children:[(0,Se.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[(0,Se.jsx)("img",{alt:"save",sr:!0,className:"button interactable",src:we+"/Icon/Save.svg"}),(0,Se.jsx)("img",{alt:"restart",sr:!0,className:"button interactable",src:we+"/Icon/Restart.svg"})]}),(0,Se.jsxs)("button",{className:"checkoutButton",children:[(0,Se.jsx)("span",{children:"Add To Cart"}),(0,Se.jsx)("img",{src:we+"/Icon/ArrowRight.svg"})]})]})]}):(0,Se.jsx)("h3",{style:{padding:"2rem"},children:"Your cart is currently empty"})]}),(0,Se.jsxs)("div",{className:a?"sideMenu open interactable":"sideMenu interactable",children:[(0,Se.jsxs)("div",{className:"mobileExpandButton",children:[(0,Se.jsx)("span",{children:"EXPAND CONFIGURATOR"}),(0,Se.jsx)("button",{role:"button",onClick:function(){l(!a)},children:(0,Se.jsx)("img",{src:we+"/Icon/ArrowUp.svg"})})]}),(0,Se.jsx)("div",{className:"sideMenuTabContainer",children:(0,Se.jsxs)(ee,{style:{width:"100%"},children:[(0,Se.jsxs)(oe,{className:"firstMobileTabs",children:[(0,Se.jsx)(ce,{children:(0,Se.jsxs)("div",{className:"mobileTab",onClick:function(){Y(0)},children:[V?(0,Se.jsx)("img",{className:"icon",alt:"null",src:me+"/svg/Build Tab Icon.svg"}):"","Build"]})}),(0,Se.jsx)(ce,{children:(0,Se.jsxs)("div",{className:"mobileTab",onClick:function(){Y(1)},children:[V?(0,Se.jsx)("img",{className:"icon",alt:"null",src:me+"/svg/Color Tab Icon.svg"}):"","Color"]})})]}),(0,Se.jsx)(ye,{children:(0,Se.jsx)(sl,{sideMenuState:0},"BuildUI1")}),(0,Se.jsx)(ye,{children:(0,Se.jsx)(fl,{sideMenuState:1})})]})}),(0,Se.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative"},children:[(0,Se.jsxs)("div",{className:"sideMenuTabs",children:[(0,Se.jsxs)("div",{className:0===o?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){Y(0)},children:[V?(0,Se.jsx)("img",{className:"icon",alt:"null",src:me+"/img/Build Tab Icon.png"}):"",(0,Se.jsx)("span",{children:"Build"})]}),(0,Se.jsxs)("div",{className:1===o?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){Y(1)},children:[V?(0,Se.jsx)("img",{className:"icon",alt:"null",src:me+"/svg/Color Tab Icon.svg"}):"",(0,Se.jsx)("span",{children:"Color"})]}),(0,Se.jsxs)("div",{className:2===o?"activeSideMenuTab rightTopBarButton button":"inactiveSideMenuTab rightTopBarButton button",onClick:function(){Y(2)},children:[V?(0,Se.jsx)("img",{className:"icon",alt:"null",src:me+"/img/Product Features Tab Icon.png"}):"",(0,Se.jsx)("span",{children:"Features"})]})]}),(0,Se.jsxs)("div",{className:"sideMenuContent",children:[(0,Se.jsx)(yc,{}),0===o&&(0,Se.jsx)(sl,{},"BuildUI2"),1===o&&(0,Se.jsx)(fl,{}),2===o&&(0,Se.jsx)(fc,{})]})]}),(0,Se.jsxs)("div",{className:"bottomBar right button",onClick:function(){G()},children:[(0,Se.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Se.jsx)("span",{children:"REVIEW"}),(0,Se.jsx)("div",{className:"cartNumber",children:X()})]}),(0,Se.jsx)("div",{style:{display:"flex",alignItems:"center",color:"#fff"},children:(0,Se.jsx)("div",{className:"button reviewButton",children:(0,Se.jsxs)("div",{className:"",children:["$",Ne(j)]})})})]})]})]})})};function bc(e){var t=e.disableUi,n=e.onRefFound,r=e.launchInAR,o=Ee((function(e){return e})),i=_e((function(e){return e})),a=hl((function(e){return e})),l=(0,g.useRef)(null),u=(0,g.useRef)(null),s=E((0,g.useState)(!1),2),c=s[0],f=s[1],d=N((function(e){return e.CORE_API})),p=N((function(e){return e.cssLoaded}));return P("configurator-core-ready",(function(e){if(o.setProductData(e.productData),o.setProductCategoryData(e.productCategoryData),o.setProductLookData(e.productLookData),o.setProductHotspotsData(e.productHotspotsData),e.productCategoryData.color.map((function(e){return xe.getState().activeVariants[e.id]=e.look[0]})),e.configuration&&e.configuration.globalVariants){var t=e.configuration.globalVariants;Object.keys(t).map((function(e){xe.getState().activeVariants[e]=t[e]})),xe.setState({activeVariants:x({},xe.getState().activeVariants)})}f(!0)})),P("itemChange",(function(e){i.setItemsSpawned(x({},e.itemsSpawned))})),P("hotspotClick",(function(e){var t=e.hotspotAbsID;console.log(t),a.actions.enterHotspotInFeaturesTab(t)})),P("hotspotExit",(function(e){a.actions.exitHotspot()})),P("fittingSKUIDs",(function(e){_e.setState({fittingSKUIDS:e.skuids})})),P("saveButtonTrigger",(function(e){return console.log(e)})),P("shareButtonTrigger",(function(e){return console.log(e)})),P("openedContextMenu",(function(e){return console.log(e)})),P("cartItemsChange",(function(e){return console.log(e)})),P("preload:hide",(function(){T("preload:hide")})),P("preload:show",(function(){T("preload:show")})),(0,g.useEffect)((function(){var e=l.current;e&&n(e)}),[l]),(0,g.useEffect)((function(){var e=u.current;e&&d&&(e.coreApi=d)}),[u,d]),(0,g.useEffect)((function(){p&&c&&setTimeout((function(){T("preload:hide")}),1e3)}),[p,c]),(0,Se.jsxs)("div",{className:"configuratorParentDiv",style:{display:"flex",width:"100%",height:"100%",justifyContent:"center",alignItems:"center"},children:[(0,Se.jsx)(gc,{}),(0,Se.jsx)("epigraph-configurator-core",{ref:l,id:"ec-core",style:r?{opacity:"0",pointerEvents:"none"}:{width:"100%",height:"100%",backgroundColor:"red"},"load-config-id":window.ui_wc_ref.configID,"client-access-key":window.ui_wc_ref.projectID}),(0,Se.jsx)("view-in-your-space",{"hide-button":!0===r?"false":"true","launch-in-ar":!0===r?"true":"false",ref:u,class:!0===r?"viewInYourSpace-AR":"viewInYourSpace"}),c&&!t&&!r&&p&&(0,Se.jsx)("div",{className:"shadowRoot",children:(0,Se.jsx)(mc,{coreRef:l,viewInYourSpaceRef:u})})]})}function wc(e){return xc.apply(this,arguments)}function xc(){return(xc=y(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){var r=new XMLHttpRequest;r.withCredentials=!1,r.open("GET","https://api.seeitinyourspace.com/auth/"+n),r.setRequestHeader("Content-Type","application/json"),r.onreadystatechange=function(){if(4===this.readyState){var t=JSON.parse(this.responseText);console.warn(t),e(t)}},r.onerror=function(){t({status:this.status,statusText:r.statusText})},r.send()})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var _c=document.createElement("template");_c.innerHTML='\n<style>\n .preloadContainer {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n flex-direction: column;\n }\n\n .preloadLogo {\n opacity: 1;\n width: 65px;\n position: fixed;\n display:flex;\n justify-content:center;\n align-items:center;\n }\n\n .preloadLogo > slot > img{\n width: 100%;\n height: 100%;\n }\n\n .preloadLoader {\n color: #b17de1;\n border: 8px solid #7679e2;\n border-top: 8px solid #b17de1;\n border-radius: 50%;\n width: 140px;\n height: 140px;\n animation: spin 1.5s linear infinite;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n </style>\n\n <div class="preloadContainer" id="preloadContainer"> \n <div class="preloadLogo">\n <slot name="loading-logo">\n <img src="https://media-exp1.licdn.com/dms/image/C4E0BAQFWa-g7A7GXWw/company-logo_200_200/0/1633468291193?e=2147483647&v=beta&t=ec6iB2InYEhOsI7JM2t6Lc6n6HwvOih4D48LURGWUJU">\n </slot>\n </div>\n <div part="circular-loader" class="preloadLoader"></div>\n </div>\n';var kc=document.createElement("template");kc.innerHTML="\n <style>\n .preload-main-container{\n width: 100%;\n height: 100%;\n position: absolute;\n background-color: white;\n opacity: 0;\n z-index: 9999999;\n transition: 500ms;\n pointer-events: none;\n user-select: none;\n }\n\n .showPreload {\n opacity: 1;\n pointer-event: all !important;\n }\n </style>\n";var Ec=function(e){u(o,e);var n=d(o);function o(){var e;return r(this,o),(e=n.call(this)).clientAccessKey=null,e.validationPassed=!1,e.projectID="sbd",e.configID="default",e.api={core:null},window.ui_wc_ref=a(e),e.attachShadow({mode:"open"}),e.setupPreloadScreen(),e}return i(o,[{key:"setupPreloadScreen",value:function(){var e=document.createElement("div");e.id="preloadMainContainer",e.classList.add("preload-main-container"),e.appendChild(kc.content.cloneNode(!0)),e.appendChild(_c.content.cloneNode(!0)),e.classList.add("showPreload"),this.shadowRoot.appendChild(e),this.addEventListener("preload:show",(function(t){e.classList.add("showPreload")})),this.addEventListener("preload:hide",(function(t){e.classList.remove("showPreload")}))}},{key:"_importEpigraphCoreWebComponent",value:function(){this._epigraphCoreScriptElem=document.createElement("script"),this._epigraphCoreScriptElem.setAttribute("type","module");this._epigraphCoreScriptElem.setAttribute("src","https://unpkg.com/@epigraph/configurator-core"),this._epigraphCoreScriptElem.setAttribute("id","configuratorCoreScript"),document.head.appendChild(this._epigraphCoreScriptElem)}},{key:"_importViewInYourSpaceWebComponent",value:function(){this._viewInYourSpaceScriptElem=document.createElement("script"),this._viewInYourSpaceScriptElem.setAttribute("type","module"),this._viewInYourSpaceScriptElem.setAttribute("src","https://unpkg.com/@epigraph/view-in-your-space"),this._viewInYourSpaceScriptElem.setAttribute("id","viewInYourSpaceScript"),document.head.appendChild(this._viewInYourSpaceScriptElem)}},{key:"connectedCallback",value:function(){var e=y(t().mark((function e(){var n,r,o,i,a,l=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.clientAccessKey=this.getAttribute("client-access-key"),this.savedConfigIdFromAttribute=this.getAttribute("config-id"),e.next=4,wc(this.clientAccessKey);case 4:if(n=e.sent,this.validationPassed=n.passed,this.projectID=n.projectID,this.validationPassed){e.next=10;break}return console.error("Request from an invalidated source: "+window.location.href),e.abrupt("return");case 10:(r=document.createElement("div")).id="configuratorContainer",r.style.width="100%",r.style.height="100%",r.style.userSelect="none",this.shadowRoot.appendChild(r),(o=document.createElement("link")).setAttribute("href",me+"/styles/global.css"),o.setAttribute("rel","stylesheet"),document.head.appendChild(o),this.savedConfigIdFromAttribute?this.configID=this.savedConfigIdFromAttribute:(i=new URL(window.location).searchParams,(a=i.get("epgsharedconfigid"))&&(this.configID=a)),this._importEpigraphCoreWebComponent(),this._importViewInYourSpaceWebComponent(),this._epigraphCoreScriptElem.addEventListener("load",(function(){m.render((0,Se.jsx)(bc,{disableUi:l.hasAttribute("disable-ui"),launchInAR:l.hasAttribute("launch-in-ar"),onRefFound:function(e){l.api.core=e.api,N.setState({CORE_API:e.api})}}),r)}));case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),o}(h(HTMLElement));window.customElements.define("epigraph-configurator",Ec)}()}();
3
+ //# sourceMappingURL=main.d7ef0bea.js.map